/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.logo span {
    color: #4f46e5; /* Accent color */
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    cursor: pointer;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4f46e5;
}

.btn-nav {
    background-color: #4f46e5;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.3s !important;
}

.btn-nav:hover {
    background-color: #4338ca;
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #f8f9fa 100%);
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: #718096;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, background 0.3s;
}

.btn:active {
    transform: scale(0.98);
}

.primary-btn {
    background-color: #4f46e5;
    color: #ffffff;
}

.primary-btn:hover {
    background-color: #4338ca;
}

.secondary-btn {
    background-color: #ffffff;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.secondary-btn:hover {
    background-color: #f5f3ff;
}

/* --- Features Section --- */
.features-section {
    padding: 80px 8%;
    background-color: #ffffff;
    text-align: center;
}

.features-section h2 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 50px;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 10px;
}

.feature-card p {
    color: #718096;
    font-size: 15px;
}

/* --- Responsive Media Query --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Features Page Specific Styles --- */

/* Active Nav Link Indicator */
.nav-links a.active {
    color: #4f46e5;
    font-weight: 700;
}

/* Page Sub-Header */
.page-header {
    text-align: center;
    padding: 80px 20px 40px 20px;
    background: linear-gradient(180deg, #e0e7ff 0%, #ffffff 100%);
}

.page-header h1 {
    font-size: 40px;
    color: #1a202c;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Alternating Feature Rows */
.details-section {
    padding: 60px 8%;
    background-color: #ffffff;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

/* Flips the row layout on alternating items */
.detail-row.reverse {
    flex-direction: row-reverse;
}

.detail-text, .detail-visual {
    flex: 1;
}

.badge {
    background-color: #e0e7ff;
    color: #4f46e5;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-text h2 {
    font-size: 32px;
    color: #1a202c;
    margin: 15px 0;
    line-height: 1.3;
}

.detail-text p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.7;
}

/* Decorative visual placeholders to mimic images/UI components */
.mock-ui {
    height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.graphic-blue {
    background: linear-gradient(135deg, #bfdbfe 0%, #3b82f6 100%);
    color: #ffffff;
}

.graphic-indigo {
    background: linear-gradient(135deg, #c7d2fe 0%, #4f46e5 100%);
    color: #ffffff;
}

/* Mini Feature Grid Section */
.more-features {
    background-color: #f8f9fa;
    padding: 80px 8%;
    text-align: center;
}

.more-features h2 {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 55px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    text-align: left;
}

.mini-card h4 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 8px;
}

.mini-card p {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

/* --- Responsive Layout for Features --- */
@media (max-width: 900px) {
    .detail-row, .detail-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .detail-visual {
        width: 100%;
    }
    
    .mock-ui {
        height: 200px;
    }
}

/* --- About Page Specific Styles --- */

/* About Hero */
.about-hero {
    padding: 100px 8% 60px 8%;
    background-color: #ffffff;
    text-align: center;
}

.about-hero-content {
    max-width: 750px;
    margin: 0 auto;
}

.about-hero .badge {
    display: inline-block;
    margin-bottom: 20px;
}

.about-hero h1 {
    font-size: 42px;
    color: #1a202c;
    margin-bottom: 25px;
    line-height: 1.2;
}

.lead-text {
    font-size: 20px;
    color: #4a5568;
    line-height: 1.6;
}

/* Values Grid Layout */
.values-section {
    padding: 80px 8%;
    background-color: #f8f9fa;
}

.section-title-wrapper {
    max-width: 600px;
    margin-bottom: 60px;
}

.section-title-wrapper h2 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 15px;
}

.section-title-wrapper p {
    color: #718096;
    font-size: 16px;
}

.values-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.value-item {
    flex: 1;
    min-width: 250px;
}

.value-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #c7d2fe; /* Light indigo accent */
    margin-bottom: 10px;
}

.value-item h4 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 12px;
}

.value-item p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

/* Team Grid Layout */
.team-section {
    padding: 90px 8%;
    background-color: #ffffff;
    text-align: center;
}

.team-section h2 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 15px;
}

.team-subtitle {
    color: #718096;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.team-card {
    background-color: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 35px 25px;
    width: 240px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    text-align: center;
}

/* Dynamic avatar shapes to serve as clean photo fallbacks */
.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.avatar-color-1 { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.avatar-color-2 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.avatar-color-3 { background: linear-gradient(135deg, #ec4899, #be185d); }

.team-card h3 {
    font-size: 18px;
    color: #1a202c;
    margin-bottom: 5px;
}

.team-card .role {
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 32px;
    }
    
    .lead-text {
        font-size: 18px;
    }
    
    .team-grid {
        gap: 25px;
    }
}

/* --- Global Footer Styles --- */
.site-footer {
    background-color: #1a202c; /* Deep dark background */
    color: #a0aec0; /* Balanced lighter gray text for readability */
    padding: 80px 8% 30px 8%;
    border-top: 1px solid #2d3748;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

/* Bigger footprint for the brand description and newsletter */
.site-footer .brand-col, 
.site-footer .newsletter-col {
    flex: 1.5;
    min-width: 260px;
}

/* Adjusting Brand Logo colors for dark background */
.site-footer .logo {
    color: #ffffff;
    margin-bottom: 20px;
}

.brand-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    margin-right: 15px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #ffffff;
}

/* Column Headings */
.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 22px;
}

/* Link Lists */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #ffffff;
}

/* Newsletter Input Box Styles */
.newsletter-col p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    border-color: #4f46e5;
}

.newsletter-form button {
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background-color: #4338ca;
}

/* Bottom copyright area layout */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #2d3748;
    padding-top: 30px;
    font-size: 13px;
}

.bottom-links a {
    color: #718096;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.bottom-links a:hover {
    color: #a0aec0;
}

/* --- Footer Responsive adjustments --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .bottom-links a {
        margin: 0 10px;
    }
}