/* ===== Hero Section ===== */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 40%, #2D2B55 100%);
    color: var(--surface);
    padding: 0.5rem 3rem 2rem; /* Reduced top padding */
    isolation: isolate;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 2rem; /* Reduced bottom margin */
    gap: 4rem;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 650px;
}

.hero-image {
    flex: 0 0 auto;
}

/* Headline Styles */
#home h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1rem; /* Reduced margin */
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

#home h1 span {
    background: linear-gradient(135deg, #FFFFFF 20%, #E2E8F0 50%, #CBD5E0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding: 0 0.25rem;
}

.hero-subhead {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2rem; /* Reduced margin */
    opacity: 0.9;
    line-height: 1.5;
}

/* Hero Image Styles */
.myimg {
    position: relative;
    width: 300px; /* Slightly smaller */
    height: 300px; /* Slightly smaller */
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 0 0 8px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(108, 99, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.myimg::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary),
        var(--accent),
        var(--secondary),
        var(--primary)
    );
    z-index: -1;
    animation: rotate 8s linear infinite;
    opacity: 0.6;
}

.myimg::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    z-index: -1;
    border: 2px solid rgba(255, 255, 255, 0.2);
}


/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1.2rem; /* Reduced gap */
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.9rem 2rem; /* Reduced padding */
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1rem; /* Slightly smaller */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Reduced gap */
    text-decoration: none;
}

.cta-primary {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: var(--secondary);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--surface); /* This is white */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9) !important; /* Slightly darker white */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem; /* Moved up slightly */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem; /* Slightly smaller */
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator i {
    font-size: 1.3rem; /* Slightly smaller */
    margin-bottom: 0.3rem; /* Reduced margin */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-8px) translateX(-50%); /* Reduced bounce */
    }
    60% {
        transform: translateY(-4px) translateX(-50%); /* Reduced bounce */
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem; /* Reduced gap */
        margin-bottom: 1.5rem; /* Reduced margin */
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    
    #home h1 {
        font-size: 2.8rem; /* Slightly smaller */
        padding-top: 10px;
    }
    
    .hero-subhead {
        font-size: 1.2rem; /* Slightly smaller */
    }

}

@media (max-width: 768px) {
    #home {
        padding: 1rem 1.5rem 1.5rem; /* Reduced padding */
    }

    #home h1 {
        font-size: 2.3rem; /* Slightly smaller */
        margin-bottom: 0.8rem; /* Reduced margin */
    }

    .hero-subhead {
        font-size: 1.1rem; /* Slightly smaller */
        margin-bottom: 1.5rem; /* Reduced margin */
    }

    .myimg {
        width: 220px; /* Smaller for mobile */
        height: 220px; /* Smaller for mobile */
    }

   .hero-cta {
    flex-direction: column;
    align-items: center; /* ← ADD THIS */
    justify-content: center; /* ← ADD THIS */
    width: 100%;
    max-width: 280px;
    margin: 0 auto; /* ← ADD THIS */
    gap: 0.8rem;
}

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem; /* Reduced padding */
    }

}

@media (max-width: 480px) {
    #home h1 {
        font-size: 2rem; /* Slightly smaller */
    }

    .myimg {
        width: 180px; /* Smaller for mobile */
        height: 180px; /* Smaller for mobile */
    }
    
    .scroll-indicator {
        bottom: 1rem; /* Moved up slightly */
        font-size: 0.8rem; /* Slightly smaller */
    }
    
    .scroll-indicator i {
        font-size: 1.1rem; /* Slightly smaller */
    }
}
/* Bubble Animation */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    top: 0;
    left: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.1;
    animation: rise 15s infinite ease-in;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateX(20px) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        bottom: 1080px;
        transform: translateX(-20px) rotate(360deg);
        opacity: 0;
    }
}

/*********************************/
/* White Background Section */
.white-bg-section {
    background: var(--surface);
    padding: 4rem 2rem;
    color: var(--text-primary);
}
/* Roles Container */
.roles-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.role-badge {
    background: rgba(108, 99, 255, 0.1);
    padding: 0.8rem 1.5rem; /* Matches hero padding */
    border-radius: 3rem;
    font-size: 1rem; /* Matches hero font size */
    font-weight: 500;
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Matches hero transition */
    color: var(--primary);
    animation: badgeEntrance 0.8s ease forwards; /* Matches hero animation */
    opacity: 0;
    transform: translateY(20px);
}

.role-badge:hover {
    background: rgba(108, 99, 255, 0.15);
    transform: translateY(-4px) scale(1.05); /* Matches hero hover effect */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); /* Matches hero shadow */
}

.role-badge:nth-child(1) { animation-delay: 0.4s; }
.role-badge:nth-child(2) { animation-delay: 0.6s; }
.role-badge:nth-child(3) { animation-delay: 0.8s; }
.role-badge:nth-child(4) { animation-delay: 1.0s; }
.role-badge:nth-child(5) { animation-delay: 1.2s; }

@keyframes badgeEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 5rem; /* Matches hero gap */
    max-width: 1500px; /* Matches hero max-width */
    margin: 0 auto;
    padding: 3rem 2rem; /* Matches hero padding */
    background: var(--light-gray);
    border-radius: 1.2rem; /* Matches hero border radius */
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.stat-item {
    text-align: center;
    padding: 0 1rem;
}

.stat-number {
    font-size: 2.2rem; /* Matches hero font size */
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.3rem; /* Matches hero margin */
}

.stat-label {
    font-size: 0.85rem; /* Matches hero font size */
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    opacity: 0.8; /* Matches hero opacity */
}

/* Responsive Design - Matches hero responsiveness */
@media (max-width: 968px) {
    .stats-bar {
        gap: 2rem; /* Matches hero gap */
    }
    
    .stat-number {
        font-size: 1.9rem; /* Matches hero font size */
    }
}

@media (max-width: 768px) {
    .white-bg-section {
        padding: 3rem 1.5rem; /* Adjusted padding */
    }
    
    .roles-container {
        gap: 0.8rem; /* Matches hero gap */
        margin-bottom: 2.5rem; /* Adjusted margin */
    }
    
    .role-badge {
        padding: 0.6rem 1.2rem; /* Matches hero padding */
        font-size: 0.9rem; /* Matches hero font size */
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: 1.2rem; /* Matches hero gap */
        padding: 1rem; /* Matches hero padding */
    }
    
    .stat-item {
        flex: 1 0 calc(50% - 1.2rem); /* Matches hero flex */
        min-width: 100px; /* Matches hero min-width */
    }
    
    .stat-number {
        font-size: 1.7rem; /* Matches hero font size */
    }
    
    .stat-label {
        font-size: 0.8rem; /* Matches hero font size */
    }
}

@media (max-width: 480px) {
    .white-bg-section {
        padding: 2.5rem 1rem; /* Adjusted padding */
    }
    
    .role-badge {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem; /* Matches hero padding */
    }
    
    .stats-bar {
        gap: 1.5rem; /* Adjusted gap */
        padding: 0.8rem; /* Matches hero padding */
        border-radius: 1rem; /* Matches hero border radius */
    }
    
    .stat-number {
        font-size: 1.5rem; /* Matches hero font size */
    }
    
    .stat-label {
        font-size: 0.85rem; /* Matches hero font size */
    }
}
@media (max-width: 768px) {
    /* Reorder elements for mobile */
    .hero-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Change order: heading first */
    .hero-content {
        order: 1;
    }
    
    /* Image second */
    .hero-image {
        order: 2;
    }
    
    /* Existing mobile styles remain below */
    #home {
        padding: 1rem 1.5rem 1.5rem;
    }

    #home h1 {
        font-size: 2.3rem;
        margin-bottom: 0.8rem;
    }

    .hero-subhead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .myimg {
        width: 220px;
        height: 220px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        gap: 0.8rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }
}