/**
 * Component Styles
 * Organized by component for easy maintenance
 * Each section handles ONE component (Single Responsibility)
 */

/* ========================================
   NAVBAR COMPONENT
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-logo img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.navbar-logo img:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--text-color);
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-cta {
    background: var(--accent-color);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.navbar-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.navbar-cta::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========================================
   HERO SECTION
   ======================================== */

#hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--background-secondary) 100%);
    color: var(--text-color);
    text-align: center;
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--success-color);
}

#hero h1 {
    font-size: 4.5rem;
    margin-bottom: 28px;
    position: relative;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-color);
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

#hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 48px;
    position: relative;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ========================================
   CTA BUTTONS
   ======================================== */

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-color);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    border: 1px solid var(--accent-color);
}

.cta-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.cta-button-secondary:hover {
    background: var(--background-secondary);
    border-color: var(--text-secondary);
    box-shadow: var(--shadow-md);
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background: var(--background-color);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    text-align: center;
}

.stat {
    animation: fadeInUp 0.8s ease-out backwards;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

#features {
    background: var(--background-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.feature {
    background: var(--card-bg);
    padding: 40px 36px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
}

.feature svg {
    width: 28px;
    height: 28px;
    fill: var(--accent-color);
}

.feature h3 {
    font-size: 1.375rem;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

#testimonials {
    background: var(--background-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.testimonial {
    background: var(--card-bg);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.testimonial:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-info h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--text-color);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

#contact {
    text-align: center;
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
}

#contact h2 {
    margin-bottom: 16px;
}

#contact p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */

#main-footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-section p,
.footer-section a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    #hero p {
        font-size: 1.125rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .navbar-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar-menu a {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .navbar-menu a:last-child {
        border-bottom: none;
    }

    .navbar-cta {
        margin-top: 12px;
        border-radius: 8px;
    }

    .hamburger {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    .feature-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 32px 28px;
    }

    .section {
        padding: 80px 0;
    }

    .stats-section {
        padding: 60px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 160px 0 100px;
    }

    #hero h1 {
        font-size: 2.25rem;
    }

    #hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: 6px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .container {
        padding: 0 16px;
    }
}
