:root {
    --primary-blue: #004C97;
    --accent-blue: #829CD0;
    --neutral-bg: #EBEBEB;
    --text-dark: #323232;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #004C97 0%, #0066CC 50%, #829CD0 100%);
    --gradient-hero: linear-gradient(160deg, #004C97 0%, #003366 40%, #001a33 100%);
}

/* Global Resets */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
html { scroll-behavior: smooth; }

/* Navigation - Modern Cohesity-style */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 6%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

nav.scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1);
}

.logo img { height: 56px; width: auto; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.02); }

/* Mobile Menu Logic */
#menu-toggle { display: none; }
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-links a:hover {
    color: var(--primary-blue);
    background: rgba(0, 76, 151, 0.06);
}

/* Sign Out link - always red */
.nav-links a[href="/logout"] {
    color: #dc2626 !important;
}

.nav-links a[href="/logout"]:hover {
    color: #b91c1c !important;
    background: rgba(220, 38, 38, 0.08) !important;
}
.nav-links a.nav-cta {
    background: var(--white);
    color: var(--primary-blue) !important;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--primary-blue);
}
.nav-links a.nav-cta:hover {
    background: rgba(0, 76, 151, 0.06);
    transform: translateY(-2px);
}

/* Navigation Sign In button with user icon */
.nav-links a.nav-cta .user-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    fill: var(--primary-blue);
    flex-shrink: 0;
}

/* Navigation Register button - solid blue style */
.nav-links a.nav-register {
    background: var(--primary-blue);
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-blue);
}
.nav-links a.nav-register:hover {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 76, 151, 0.3);
}

/* Hero Section - Seamless Gradient with Flowing Image */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7rem 6% 4rem;
    background: linear-gradient(115deg, #f8fafc 0%, #f0f7ff 35%, #d4e5f7 55%, #829CD0 75%, #004C97 100%);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(130, 156, 208, 0.15) 50%, rgba(0, 76, 151, 0.25) 100%);
    pointer-events: none;
}

.hero-text {
    flex: 1;
    max-width: 550px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: none;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-text h1 .highlight {
    color: var(--primary-blue);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    max-width: 600px;
    line-height: 1.6;
}

.hero-text p strong {
    color: var(--primary-blue);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    display: block;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Hero Section - Desktop: Full-width carousel with overlay text panel */
.hero-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f0fc 25%, #d4e8f9 50%, #c5dff6 75%, #b6d6f3 100%);
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-wrapper {
    height: 100%;
}

.hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.20) 0%, rgba(200, 225, 250, 0.15) 50%, rgba(180, 210, 245, 0.2) 100%);
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 100px 4% 60px 6%;
    z-index: 10;
}

.glass-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 550px;
    height: 550px;
    flex-shrink: 0;
    box-shadow: 0 25px 80px rgba(0, 40, 86, 0.2), 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-box h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.glass-box h1 .highlight {
    color: var(--primary-blue);
    display: block;
}

.glass-box p {
    font-size: 1rem;
    margin-bottom: 0.85rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.glass-box p strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.glass-box .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.hero-slider .swiper-pagination {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 20;
    text-align: center;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--white);
    transform: scale(1.2);
}

/* Hero Responsive - Tablet & Mobile (Stacked Layout) */
@media (max-width: 1024px) {
    .hero-viewport {
        position: relative;
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        position: relative;
        width: 100%;
        height: auto;
        padding: 100px 5% 30px;
        order: 1;
        display: block !important;
        align-items: unset;
    }
    
    .hero-carousel {
        position: relative;
        width: 100%;
        height: auto;
        order: 2;
    }
    
    .hero-slider {
        height: auto;
    }
    
    .hero-slider .swiper-wrapper {
        height: auto;
    }
    
    .glass-box {
        width: 100%;
        height: auto;
        box-sizing: border-box;
        flex-shrink: unset;
        display: block;
        padding: 2rem 1.5rem;
    }
    
    .glass-box h1 {
        font-size: 2rem;
    }
    
    .glass-box p {
        font-size: 0.95rem;
    }
}

/* Hero Responsive - Mobile */
@media (max-width: 768px) {
    .hero-viewport {
        overflow-x: hidden;
    }
    
    .hero-content {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 100px 1.5rem 30px 1.5rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box;
    }
    
    .hero-slider .swiper-slide {
        height: auto;
    }
    
    .hero-slider .swiper-slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 50vh;
    }
    
    .glass-box {
        text-align: center;
        padding: 2rem 1.5rem;
        border-radius: 20px;
        width: 100%;
        height: auto;
        box-sizing: border-box;
        flex-shrink: unset;
        display: block;
    }
    
    .glass-box h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .glass-box p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .glass-box .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .glass-box .hero-buttons .cta-btn-primary,
    .glass-box .hero-buttons .cta-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-slider .swiper-pagination {
        position: relative;
        bottom: 0;
        margin: 15px 0 30px;
    }
    
    .hero-slider .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
        background: rgba(0, 76, 151, 0.3);
    }
    
    .hero-slider .swiper-pagination-bullet-active {
        background: var(--primary-blue);
    }
}

/* Hero Responsive - Small Mobile */
@media (max-width: 480px) {
    .hero-content {
        padding: 90px 4% 20px;
    }
    
    .glass-box {
        padding: 1.5rem 1.25rem;
    }
    
    .glass-box h1 {
        font-size: 1.5rem;
    }
    
    .glass-box p {
        font-size: 0.85rem;
    }
    
    .hero-slider .swiper-slide img {
        max-height: 45vh;
    }
}

/* Hero Primary CTA Button */
.cta-btn-primary {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 76, 151, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 76, 151, 0.4);
    background: #003d7a;
}

/* Hero Secondary/Outline Button */
.cta-btn-secondary {
    background: transparent;
    color: var(--primary-blue) !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    font-size: 0.95rem;
    cursor: pointer;
}

.cta-btn-secondary:hover {
    background: rgba(0, 76, 151, 0.08);
    transform: translateY(-2px);
}

/* General CTA Button */
.cta-btn {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 76, 151, 0.2);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 76, 151, 0.3);
    background: #003d7a;
}

/* Secondary/Outline Button */
.cta-btn-outline {
    background: transparent;
    color: var(--white) !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Trust Indicators */
.trust-section {
    background: var(--white);
    padding: 3rem 6%;
    text-align: center;
    border-bottom: 1px solid var(--neutral-bg);
}

.trust-section p {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.trust-logos img {
    height: 32px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.trust-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Section Container */
.section-container {
    padding: 7rem 6%;
    text-align: center;
    background: var(--white);
}

.section-container.alt-bg {
    background: var(--neutral-bg);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-container h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: block;
    font-size: 0.85rem;
}

.section-description {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Feature Grid - Modern Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-bg);
    text-align: left;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 76, 151, 0.1);
    border-color: var(--accent-blue);
}

.feature-image {
    width: 100%;
    height: 340px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.03);
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1.5rem 1.5rem 0;
}

.feature-card p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 1.5rem 1.5rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #a8f0c0 0%, #7be8b0 30%, #60e0a0 60%, #a8f0c0 100%);
    padding: 3rem 4%;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 100% at 90% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 10% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background: rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

/* Tablet (iPad) - 2x2 grid */
@media (max-width: 1024px) {
    .stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    
    .stat-item {
        justify-content: center;
        padding: 2rem 1.5rem;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    /* Vertical divider between columns */
    .stat-item:nth-child(1),
    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Horizontal divider between rows */
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Mobile - stacked vertical */
@media (max-width: 640px) {
    .stats-section {
        padding: 2rem 5%;
    }
    
    .stats-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 1.5rem 1rem;
        border-right: none !important;
    }
    
    .stat-item:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Tech Section */
.tech-section {
    background: var(--primary-blue);
    color: var(--white);
    padding: 7rem 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 80% at 10% 90%, rgba(130, 156, 208, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 90% 10%, rgba(0, 102, 204, 0.2) 0%, transparent 50%);
}

.tech-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.tech-subtitle {
    color: var(--accent-blue);
}

.tech-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.tech-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.tech-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.tech-feature::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: rgba(130, 156, 208, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* App Download Section */
.app-download {
    padding: 6rem 6%;
    text-align: center;
    background: var(--neutral-bg);
}

.app-download h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
}

.app-download p {
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    opacity: 0.8;
    font-size: 1.1rem;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-badges a {
    transition: all 0.3s ease;
    display: block;
}

.app-badges img {
    height: 56px;
    width: auto;
}

.app-badges a:hover {
    transform: translateY(-4px);
}

/* Page Header for inner pages */
.page-header {
    background: linear-gradient(115deg, #f8fafc 0%, #f0f7ff 35%, #d4e5f7 55%, #829CD0 75%, #004C97 100%);
    padding: 8rem 6% 4rem;
    text-align: center;
}

.page-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.75;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Blog Section */
.blog-section {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-bg);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 76, 151, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--neutral-bg);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.blog-content h3 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.blog-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-link::after {
    content: '→';
}

.blog-link:hover {
    gap: 0.75rem;
}

/* Team Section */
.team-section {
    background: var(--neutral-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 76, 151, 0.1);
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    background: var(--neutral-bg);
    border: 4px solid var(--white);
    box-shadow: 0 4px 20px rgba(0, 76, 151, 0.1);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.team-role {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    background: var(--neutral-bg);
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: inherit;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    opacity: 0.5;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-blue);
    opacity: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 1.5rem 1.5rem;
}

/* Footer */
footer {
    background: #002856;
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
}

.footer-main {
    display: flex;
    padding: 60px 6% 40px;
    gap: 4rem;
}

.footer-brand {
    flex: 0 0 30%;
    max-width: 30%;
}

.footer-logo {
    height: 76px;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-weight: 400;
}

.footer-links {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column {
    padding: 0;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: #829CD0;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-signature {
    text-align: center;
    padding: 20px 6%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-signature p {
    font-size: 1rem;
    color: #829CD0;
    font-style: italic;
    letter-spacing: 0.5px;
}

.footer-bottom {
    background: var(--neutral-bg);
    padding: 1.25rem 6%;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-align: center;
}

.footer-bottom-side {
    width: 20%;
}

.footer-bottom-center {
    width: 60%;
    text-align: center;
}

.footer-bottom-version {
    width: 20%;
    text-align: right;
    opacity: 0.45;
    font-size: 0.75rem;
}

/* Footer Responsive - Tablet */
@media (max-width: 1024px) {
    .footer-main {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-brand {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
    }

    .footer-logo {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .footer-brand p {
        max-width: 600px;
        margin: 0 auto !important;
    }

    .footer-links {
        flex: 0 0 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 3rem;
    }
}

/* Footer Responsive - Mobile */
@media (max-width: 640px) {
    .footer-main {
        padding: 40px 5% 30px;
        gap: 2.5rem;
    }

    .footer-brand {
        text-align: center !important;
    }

    .footer-brand p {
        font-size: 1rem;
        margin: 0 auto !important;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-column h4 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .footer-column a {
        font-size: 0.8rem;
        padding: 0.35rem 0;
    }

    .footer-signature {
        padding: 15px 5%;
    }

    .footer-signature p {
        font-size: 0.9rem;
    }

    .footer-bottom-side,
    .footer-bottom-version {
        display: none;
    }

    .footer-bottom-center {
        width: 100%;
    }
}

.footer-bottom a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-blue);
}

/* Fixed Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    margin-left: 0;
}

.social-link:hover {
    width: 70px;
    margin-left: -20px;
    border-radius: 8px 0 0 8px;
    z-index: 10;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link.linkedin {
    background: #0077B5;
}

.social-link.email {
    background: #10b981;
}

.social-link.twitter {
    background: #000000;
}

/* Hide social sidebar on mobile, show bottom bar instead */
@media (max-width: 768px) {
    .social-sidebar {
        display: none;
    }
    
    /* Page-level social bar at bottom (mobile only) */
    .page-social-bar-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex !important;
        z-index: 1000;
    }
    
    .page-social-bar-mobile a {
        flex: 1;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: filter 0.3s ease;
    }
    
    .page-social-bar-mobile a.social-linkedin { background: #0077b5; }
    .page-social-bar-mobile a.social-email { background: #10b981; }
    .page-social-bar-mobile a.social-twitter { background: #000000; }
    
    .page-social-bar-mobile a:hover { filter: brightness(1.15); }
    
    .page-social-bar-mobile svg {
        width: 24px;
        height: 24px;
        fill: #ffffff;
    }
    
    /* Add bottom padding to footer so social bar doesn't block content */
    footer {
        padding-bottom: 54px;
    }
}

/* Hide page social bar on desktop */
.page-social-bar-mobile {
    display: none;
}

/* Mobile Menu Responsive - 1200px breakpoint */
@media (max-width: 1200px) {
    nav {
        flex-wrap: wrap;
    }
    
    .hamburger { 
        display: flex;
        z-index: 1001;
        order: 3;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 0 0 0.75rem;
        box-shadow: 0 20px 40px rgba(0, 76, 151, 0.15);
        gap: 0;
        z-index: 1000;
    }
    
    .nav-links a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a.active {
        background: rgba(0, 76, 151, 0.1);
        color: var(--primary-blue);
        font-weight: 600;
    }
    
    .nav-links a:hover {
        background: rgba(0, 76, 151, 0.08);
    }
    
    .nav-links a svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .nav-links a[href="/logout"] {
        color: #dc2626 !important;
    }
    
    .nav-links a[href="/logout"]:hover {
        background: rgba(220, 38, 38, 0.1) !important;
        color: #b91c1c !important;
    }
    
    /* Mobile: Adjust button sizing for better fit */
    .nav-links a.nav-cta,
    .nav-links a.nav-register {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 8px;
        border-bottom: none;
        margin: 0.5rem 1rem;
        width: auto;
        line-height: 1.4;
        height: 2.5rem;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .nav-links a.nav-register {
        border: 3px solid var(--primary-blue);
    }

    .nav-links a.nav-cta {
        border: 2px solid var(--primary-blue);
    }
    
    .nav-links a.nav-cta .user-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        margin-right: 4px;
    }
    
    #menu-toggle:checked ~ .nav-links { 
        display: flex;
    }
    
    #menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    #menu-toggle:checked ~ .hamburger span:nth-child(2) { 
        opacity: 0; 
    }
    
    #menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 6rem 5% 3rem;
        text-align: center;
        background: linear-gradient(180deg, #f8fafc 0%, #e8f4fc 50%, #829CD0 100%);
    }
    .hero::before {
        display: none;
    }
    .hero-text {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        max-width: 350px;
        justify-content: center;
    }

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

    .tech-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        flex-wrap: wrap;
        gap: 2rem 0;
    }

    .footer-column {
        flex: 0 0 50%;
        border-right: none;
        padding: 0 1.5rem 0 0;
    }

    .footer-column:nth-child(2),
    .footer-column:nth-child(4) {
        padding: 0 0 0 1.5rem;
    }
}

@media (max-width: 640px) {
    nav { padding: 0.25rem 4%; }
    .section-container { padding: 4rem 4%; }
    .feature-card { padding: 2rem 1.5rem; }


    .blog-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding-top: 40px;
    }

    .footer-brand {
        padding: 0 4% 2rem !important;
        text-align: center !important;
    }

    .footer-logo {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .footer-links {
        padding: 1.5rem 4%;
        gap: 1.5rem 0;
    }

    .footer-column {
        flex: 0 0 50%;
        padding: 0 1rem 0 0;
    }

    .footer-column:nth-child(2),
    .footer-column:nth-child(4) {
        padding: 0 0 0 1rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1.25rem 0;
    }
}
