html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
}

.hero-font {
    font-family: 'Playfair Display', serif;
}

.hero-bg {
    /* Starry night with landscape background */
    background-image: url("../images/hero/modern-bustling-city_997657-18059.jpg");
    background-size: cover;
    background-position: center top;
}

.glass-card {
    background-color: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 45px rgba(255, 255, 255, 0.08);
    transition: all 0.7s ease;
}

.glass-card:hover {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 65px rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
}


.typing-text {
    min-height: 1.5em;
    display: inline-block;
}

/* Services Section Styles */
.services-section {
    padding: 80px 20px;
    position: relative;
    z-index: 10;
    /* Removed overflow: hidden to prevent hover clipping */
}

.services-container {
    max-width: 1200px;
    margin: 0;
    /* Align container to the left */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    justify-items: start;
    padding-left: 180px;
    /* Shifted right as requested */
}

/* Removed nth-child rule for vertical stacking */

/* Media Queries for Responsive Design */
@media(max-width: 991px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 30px;
        max-width: 550px;
    }

    .service-card:nth-child(3) {
        grid-column: span 1;
    }

    .service-card {
        padding-left: 195px;
        max-width: 100%;
        /* Restored to original mobile behavior */
        height: auto;
        min-height: 180px;
        /* Restored original min-height */
    }

    .service-image {
        width: 150px;
        /* Restored to 150px */
        height: 170px;
        /* Restored to 170px */
        left: -15px;
        top: -10px;
    }

    .service-card:hover .service-image {
        transform: none !important;
    }
}

@media(max-width: 480px) {
    .services-container {
        padding: 0 15px;
        gap: 35px;
    }

    .service-card {
        padding: 25px 20px 25px 155px;
        height: auto;
        min-height: 160px;
        text-align: left;
        align-items: flex-start;
        border-radius: 20px;
        margin-top: 20px;
    }

    .service-image {
        position: absolute;
        top: -10px;
        left: -15px !important;
        transform: none !important;
        width: 120px;
        height: 140px;
        border-radius: 14px;
    }

    .service-card:hover .service-image {
        transform: none !important;
    }

    .service-card h3 {
        font-size: 13px;
        line-height: 1.25;
    }

    .learn-btn {
        padding: 4px 14px;
        font-size: 10px;
        margin-top: 10px;
    }
}




.services-comet-track {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 99px;
    overflow: hidden;
}

.services-comet-streak {
    position: absolute;
    top: 0;
    left: -150px;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, transparent, #d8b4fe, #ffffff);
    box-shadow: 0 0 25px rgba(216, 180, 254, 1), 0 0 10px #ffffff;
    animation: cometPassServices 4s linear infinite;
}

@keyframes cometPassServices {
    0% {
        left: -100px;
    }

    100% {
        left: 100%;
    }
}

/* CARD */
.service-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 200px;
    border-radius: 20px;
    padding: 30px 25px 30px 190px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}





.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}



/* IMAGE */
.service-image {
    position: absolute;
    left: -25px;
    top: -10px;
    width: 170px;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    border: 2.2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}


.service-card:hover .service-image {
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(-2deg) scale(1.05);
}

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



/* NUMBER */
.service-number {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 32px;
    font-weight: 500;
    color: white;
    z-index: 2;
}


/* TEXT */
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    max-width: 100%;
}


.service-card:hover h3 {
    color: #ffffff;
}

.service-card h3 span {
    color: #3b82f6;
}


/* BUTTON */
.learn-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 24px;
    border: 1.5px solid #3b82f6;
    border-radius: 99px;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: fit-content;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}



.learn-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    cursor: pointer;
    outline: none;
}



/* RESPONSIVE */


/* Hide scrollbar for the logo container */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shimmer 2s infinite;
}


/* Sidebar Collapse Styles */
#desktop-sidebar {
    transition: width 0.3s ease, padding 0.3s ease;
}

.sidebar-collapsed {
    width: 80px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.sidebar-collapsed .expanded-content {
    display: none !important;
}

.sidebar-collapsed .collapsed-content {
    display: flex !important;
}

.sidebar-collapsed .nav-item {
    padding: 0 !important;
    height: 52px;
    width: 52px;
    justify-content: center !important;
    margin: 0 auto;
    border-radius: 16px !important;
}

.sidebar-collapsed .nav-item svg {
    margin: 0 !important;
}

.sidebar-collapsed .nav-link-text {
    display: none !important;
}

.sidebar-collapsed .active-nav-bg {
    -webkit-mask-image: radial-gradient(circle at center, white 40%, transparent 100%) !important;
    mask-image: radial-gradient(circle at center, white 40%, transparent 100%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.0) 100%) !important;
}

.sidebar-collapsed .active-nav-indicator {
    display: none !important;
}

/* Event Card Styles */
@keyframes slow-zoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1) translate(-1%, -1%);
    }

    100% {
        transform: scale(1);
    }
}

.animate-slow-zoom {
    animation: slow-zoom 30s ease-in-out infinite;
}

@keyframes float-glow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    33% {
        transform: translate(2%, 2%) scale(1.1);
        opacity: 0.5;
    }

    66% {
        transform: translate(-2%, 1%) scale(0.9);
        opacity: 0.3;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
}

.animate-float-glow {
    animation: float-glow 15s ease-in-out infinite;
}


.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.event-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

/* Scroll Reveal Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-hidden {
    opacity: 0 !important;
}

.reveal-animate {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideRightFade {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal-slide-right {
    opacity: 0 !important;
}

.reveal-slide-right.reveal-animate {
    animation: slideRightFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Comet Pass Animation */
@keyframes cometPass {
    0% {
        left: -150px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        left: calc(100% + 150px);
        opacity: 0;
    }
}

.animate-comet-pass {
    animation: cometPass 10s infinite linear;
}

/* Moving Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-moving-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Service Detail Modal Styles */
#service-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(40px);
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
}

#service-detail-modal.active {
    display: flex;
    opacity: 1;
}

.modal-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}


.modal-nav {
    position: absolute;
    top: 40px;
    right: 80px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10;
}

.modal-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.modal-nav-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.modal-counter {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.4);
}

.modal-counter span {
    color: white;
    font-weight: 600;
}

.modal-content-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 120px 40px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.modal-top-section {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 80px;
    align-items: center;
}

.modal-left-card {
    width: 100%;
    height: 550px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.active .modal-left-card {
    transform: translateY(0);
    opacity: 1;
}

.modal-right-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.active .modal-right-info {
    transform: translateX(0);
    opacity: 1;
}

.modal-service-id {
    font-family: 'Playfair Display', serif;
    font-size: 100px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 0.8;
    margin-bottom: 15px;
}

.modal-service-category {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-weight: 400;
}

.modal-service-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    line-height: 1.1;
    color: #d1b8ff;
    margin-bottom: 60px;
    max-width: 600px;
}

.modal-bottom-area {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 20px;
}

.modal-description {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 400;
    max-width: 800px;
}

.modal-subcards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.modal-subcard {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 32px;
    padding: 45px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}



.modal-subcard:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}



.modal-subcard h4 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}


.modal-subcard p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 500;
}


.modal-close {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

@media (max-width: 1200px) {
    .modal-content-container {
        padding: 100px 30px;
    }

    .modal-top-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .modal-left-card {
        height: 400px;
        max-width: 450px;
        margin: auto;
    }

    .modal-service-title {
        font-size: 42px;
        margin: 0 auto 40px;
    }

    .modal-bottom-area {
        gap: 40px;
    }

    .modal-description {
        font-size: 18px;
        text-align: center;
        margin: auto;
    }

    .modal-subcards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-subcard {
        padding: 35px;
        min-height: 180px;
    }

    .modal-nav {
        right: 30px;
        top: 30px;
    }

    .modal-close {
        left: 30px;
        top: 30px;
    }
}

/* Scroll Progress Button Styles */
.progress-wrap {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

.scroll-progress-path {
    stroke: rgba(255, 255, 255, 0.1);
}

.scroll-progress-fill {
    stroke: #3b82f6;
    /* Blue-500 */
    stroke-dasharray: 307.919;
    stroke-dashoffset: 307.919;
    transition: stroke-dashoffset 10ms linear;
}

/* Rocket Animation */
.rocket-icon {
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rocket-fly {
    transform: translateY(-80px) scale(0.6);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

.progress-wrap:hover .rocket-icon {
    transform: translateY(-3px);
    color: #3b82f6;
}

.progress-wrap.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Ensure sidebar progress is always visible */
.sidebar-progress-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}



/* Floating version for Mobile */
.mobile-progress-btn {
    position: fixed;
    bottom: 100px;
    /* Above bottom nav */
    right: 20px;
    width: 54px;
    height: 54px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-progress-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hide the right-side floating button ONLY on desktop when sidebar is collapsed */
@media (min-width: 768px) {
    .sidebar-collapsed~#scroll-top-btn {
        display: none !important;
    }
}

.sidebar-collapsed .active-nav-bg,
.sidebar-collapsed .active-nav-indicator {
    display: none !important;
}

/* Team Section Styles */
@keyframes slow-pan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-running-bg {
    background-size: 200% auto;
    animation: slow-pan 6s linear infinite;
}

.member-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card.is-expanded {
    background: #151515;
    border-color: rgba(59, 130, 246, 0.3);
}

.bio-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-expanded .bio-content {
    max-height: 400px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expand-icon {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-expanded .expand-icon {
    transform: rotate(180deg);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes elasticPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.case-reveal-animate {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}