* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary-color: #00A3FF; /* Vibrant Light Blue */
    --secondary-color: #D1EAFF; /* Premium Sky Blue */
    --text-color: #1A2B45; /* Deep Navy Shell */
    --bg-white: #EDF7FF; /* Clean Light Blue Tint */
    --bg-light: #DCEFFF; /* Deeper Sky Blue Contrast */
    --card-bg: rgba(255, 255, 255, 0.9);
    --transition-speed: 0.4s;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Global Glowing Cursor Sparkle Trail Effect */
.sparkle-particle {
    position: fixed;
    pointer-events: none; /* Ignore all mouse clicks so it doesn't block UI */
    z-index: 10000;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-color), 0 0 6px white;
    /* Uses CSS variables injected dynamically by JavaScript for random trajectories */
    animation: sparkleAnim 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes sparkleAnim {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(0) translate(var(--tx, 0px), var(--ty, 0px));
        opacity: 0;
    }
}

/* Scroll Snapping Container */
.main-container {
    width: 100%;
    /* No fixed height or overflow-y: scroll here so body handles it */
    scroll-behavior: smooth;
}

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem; /* Generous padding for content sections */
    position: relative;
    overflow: hidden;
    min-height: auto; /* Allow natural height */
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3.8rem;
    margin-bottom: 6rem;
    width: 100%;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--primary-color);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    z-index: 2000;
    background: #F8FBFF; /* Very soft blue tint */
    box-shadow: 0 4px 20px rgba(0, 163, 255, 0.08);
    border-bottom: 1px solid rgba(0, 163, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2500;
}

.logo-img {
    height: 80px !important;
    width: auto !important;
    display: block !important;
    animation: logoDrop 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.2); /* Strongly push near-white to pure white for perfect blending */
    opacity: 0;
    transition: height 0.3s ease;
    background-color: transparent !important;
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px !important;
    }
}


@keyframes logoDrop {
    0% {
        transform: translateY(-300px) scale(0.3) rotate(-10deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes logoDrop {
    0% {
        transform: translateY(-200px) scale(0.5);
        opacity: 0;
    }

    60% {
        transform: translateY(20px) scale(1.1);
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 2600;
}

.mobile-menu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active svg {
    transform: rotate(90deg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Home Slide */
#home {
    height: 100vh;
    width: 100vw;
    background: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%); /* Removed scale */
    z-index: 1;
}

.video-blur-mask {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 140px;
    height: 70px;
    z-index: 2;
    /* Gaussian blur for natural softening */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Remove artificial tints to maintain natural lighting/colors */
    background: transparent;
    /* Feathered edges to blend smoothly into the surroundings */
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.contact-hero-video {
    /* Zoom removed */
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)); /* Neutral dark overlay - colors moved to content sections */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white; /* Ensure text is white */
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Ensure readability */
    line-height: 1.1;
}

.text-accent {
    color: #007AFF; /* Premium Royal Blue */
    text-shadow: 0 0 20px rgba(0, 122, 255, 0.2); /* Soft premium glow */
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for subtext */
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 163, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: white; /* White text for outline button in hero */
    border: 2px solid white; /* White border */
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* About Slide - Why Choose Us */
#about {
    padding-top: 0; /* Removed top gap */
    padding-bottom: 1rem; /* Reduced to tightly knit sections together */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background: var(--bg-light); /* Perfectly matches the start of the Our Services section for a seamless visual alignment */
    min-height: auto;
}

#about .section-title {
    color: var(--text-color);
}

#about .section-subtitle {
    color: #666;
}

#about::after {
    display: none; /* Removed the faint grid that was drawing a visual white box around the section */
}

.about-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover; /* Absolutely 1:1 clarity since the container perfectly matches 16:9 */
    z-index: 0;
    opacity: 1;
}

#about .section-title {
    position: relative;
    z-index: 2;
    color: white;
    margin-top: 4rem; /* Added margin for safe space from navbar */
    margin-bottom: 4rem;
}

.about-container {
    max-width: 100%; /* Changed from 1300px to allow absolute edges */
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack scroll track and text block */
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.about-text {
    align-self: center;
    width: 100%;
    max-width: 100%; /* Changed from 1400px to full width */
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    margin: 0;
}

/* Main about section styling */

/* Accent line already handled globally */

.why-choose-more-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

#knowMoreBtn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 163, 255, 0.3);
    margin-bottom: 2rem;
}

#knowMoreBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 163, 255, 0.4);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1300px;
    padding: 1rem;
    transition: opacity 0.6s ease;
}

.wc-flip-card {
    background: transparent;
    perspective: 1000px;
    height: 250px;
    width: 100%;
}

.wc-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.wc-flip-card:hover .wc-flip-inner {
    transform: rotateY(180deg);
}

.wc-flip-front, .wc-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wc-flip-front {
    background: white;
    color: var(--primary-color);
    border-top: 5px solid var(--primary-color);
}

.wc-flip-front h3 {
    font-size: 1.4rem;
    margin: 0;
}

.wc-flip-back {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wc-flip-back p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1200px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

.mission-vision-boxes {
    display: flex;
    justify-content: space-between; /* Far left and far right */
    align-items: center;
    gap: 2rem;
    margin-top: 8rem; /* Perfectly positioned to not cover the background video logo */
    width: 100%;
    padding: 0 5vw; /* Absolute edges with slight safety margin */
}

/* Ensure Mission on left and Vision on right based on user request */
.mission-vision-boxes .mv-box:nth-child(1) { order: 2; } /* Vision (right) */
.mission-vision-boxes .mv-box:nth-child(2) { order: 1; } /* Mission (left) */

.mv-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1.5rem;
    width: 300px; /* Reduced from 350px */
    height: 300px;
    aspect-ratio: 1 / 1;
    animation: floatingCards 5s ease-in-out infinite alternate;
}

@keyframes floatingCards {
    0% { transform: translateY(0); }
    100% { transform: translateY(15px); } /* Downward floating */
}

.mv-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1.5rem;
    width: 300px; /* Reduced from 350px */
    height: 300px;
    aspect-ratio: 1 / 1;
    animation: floatingCards 5s ease-in-out infinite alternate;
}

@keyframes floatingCards {
    0% { transform: translateY(0); }
    100% { transform: translateY(15px); } /* Downward floating */
}

/* Synchronized floating without delay */

.mv-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.mv-box h3 {
    font-size: 1.8rem; /* Big text */
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.mv-box p {
    font-size: 1.15rem; /* Big text */
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Redesign */
@media (max-width: 992px) {
    .about-stats {
        width: 95%;
        margin-top: -4rem;
        flex-wrap: wrap;
        gap: 2rem;
        border-radius: 30px;
    }

    #about .section-title {
        order: 1 !important;
        margin-bottom: 2rem;
        color: var(--text-color) !important; /* Force dark text since background is no longer the dark video on mobile */
    }

    .about-bg-video {
        position: relative !important;
        display: block !important;
        order: 2 !important;
        align-self: stretch !important; /* Force flex child to expand to full width if layout crashes */
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        background-color: #0b1120; /* Solid dark fallback while evaluating heavy 18MB MP4 payload */
        border-radius: 15px; /* Add a subtle rounding for a premium card-style look */
        margin-bottom: 2rem !important;
        z-index: 10 !important; /* Force it to render on top of any background artifacts */
        flex-shrink: 0 !important; /* Protect from being squashed by flex column */
    }

    .about-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 1.5rem;
        order: 3 !important;
    }

    .about-text {
        flex: 1 1 100%;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {

    .mission-vision-boxes {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
        margin-top: 2rem; /* Boxes naturally sit clean below the contained top-video */
    }

    .mv-box {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 2rem;
    }

    .mv-box h3 {
        font-size: 1.5rem;
    }

    .mv-box p {
        font-size: 1rem;
    }
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

#services {
    background-image: url('service.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 248, 255, 0.85) 100%);
    z-index: 1;
}

#services .container,
#services .section-title,
#services .section-subtitle,
#services .card-stack-container {
    position: relative;
    z-index: 2;
}

#services .section-title {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Services section styling */

#services .section-subtitle {
    color: #666;
    text-align: center;
    margin-top: -4rem;
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.card-stack-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 550px;
    margin: 4rem auto 2rem;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stack-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent; /* Background now handled by faces */
    perspective: 1500px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
    will-change: transform, opacity;
    pointer-events: none;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.stack-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.stack-card.flipped {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    width: 90vw !important;
    max-width: 800px !important;
    height: 80vh !important;
    max-height: 700px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5000 !important;
    pointer-events: auto !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@media (max-width: 768px) {
    .stack-card.flipped {
        width: 95vw !important;
        height: 85vh !important;
        max-height: 85vh !important;
    }
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 163, 255, 0.12);
    background: #F0F7FF;
    overflow: hidden;
    border: 1px solid rgba(0, 163, 255, 0.1);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from top for scrolling */
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, #F0F7FF 0%, #E6F3FF 100%);
    overflow-y: auto; /* Allow scrolling for long text */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.card-back::-webkit-scrollbar {
    width: 6px;
}

.card-back::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.card-back::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stack-card .card-front img {
    width: 100%;
    height: 65%;
    object-fit: cover;
}

.learn-more-btn {
    display: block;
    width: fit-content;
    margin: 1rem auto;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.25);
}

.learn-more-btn:hover {
    background: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stack-card .card-front h3 {
    padding: 0.5rem 2rem 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    text-align: center;
}

.card-back h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 163, 255, 0.1);
    padding-bottom: 0.5rem;
}

.card-back p {
    font-size: 1.1rem;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.close-details-btn {
    align-self: center;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-details-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--text-color);
}

/* Interaction States */
.stack-card.card-front {
    cursor: pointer;
}

@media (hover: hover) {
    .stack-card.card-front:hover {
        transform: translateY(-8px) scale(1.03);
        z-index: 50;
    }
}

/* Expanded state for Touch/Click */


/* 3D Stack States */
.card-front {
    transform: translateY(0) scale(1) translateZ(0);
    opacity: 1;
    z-index: 30;
    pointer-events: auto; /* explicitly allow interaction */
}

.card-behind-1 {
    transform: translateY(-20px) scale(0.95) translateZ(-50px);
    opacity: 0.8;
    z-index: 20;
    pointer-events: none; /* explicitly disable interaction */
}

.card-behind-2 {
    transform: translateY(-40px) scale(0.90) translateZ(-100px);
    opacity: 0.4;
    z-index: 10;
    pointer-events: none; /* explicitly disable interaction */
}

.card-hidden {
    transform: translateY(-60px) scale(0.85) translateZ(-150px);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* The aggressive leftward swipe animation */
.card-swiping {
    transform: translateX(-150%) scale(1.05) rotate(-5deg) translateZ(50px);
    opacity: 0;
    z-index: 40;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.4s ease;
}

/* Contact Section Redesign */
#contact {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    background: #fdfdfd;
}

.contact-hero {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.contact-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(77, 166, 255, 0.85) 0%, rgba(11, 17, 32, 0.4) 100%);
    z-index: 2;
}

.contact-hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 700px;
}

.contact-hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
}

.contact-main-wrapper {
    padding: 6rem 8%;
    background: #f8f9fa;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-map-side {
    width: 100%;
}

.map-frame-wrapper {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    height: 600px;
    border: 1px solid rgba(77, 166, 255, 0.1);
}

.map-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: brightness(1.05) contrast(1.1);
}

.contact-details-side {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* High Specificity for Heading Standardization */
#contact .contact-details-side .contact-side-title {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 3.5rem;
    position: relative;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

#contact .contact-details-side .contact-side-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100px !important;
    height: 5px !important;
    background: var(--primary-color) !important;
    border-radius: 2.5px !important;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(77, 166, 255, 0.05);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(77, 166, 255, 0.15);
    border-color: #4da6ff;
}

.card-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(77, 166, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4da6ff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon-box {
    background: #4da6ff;
    color: white;
}

.card-text h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.card-text p, .card-text a {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s;
}

.card-text a:hover {
    color: #4da6ff;
}

@media (max-width: 1200px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .contact-hero {
        height: 350px;
        text-align: center;
        justify-content: center;
        padding: 0 5%;
    }
    .contact-hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-main-wrapper {
        padding: 4rem 5%;
    }
    .map-frame-wrapper {
        height: 400px;
    }
    .contact-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
    }
}

@media (max-width: 1024px) {

    #about,
    #contact {
        grid-template-columns: 1fr;
        height: auto;
        scroll-snap-align: none;
    }

    .main-container {
        scroll-snap-type: none;
    }

    section {
        height: auto;
        padding: 6rem 2rem;
    }

    #home {
        height: 100vh;
        padding: 0;
    }

    .section-title {
        font-size: 2.8rem;
        margin-bottom: 4rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-image-container,
    .map-container {
        height: 400px;
    }

    .card-stack-container {
        height: 450px;
        max-width: 90vw;
    }

    .card-hidden {
        transform: translateY(-40px) scale(0.85) translateZ(-100px);
    }
    
    .card-swiping {
        transform: translateX(-100%) scale(1.05) rotate(-5deg) translateZ(50px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    font-weight: 500;
    pointer-events: none;
    animation: indicatorPulse 2s infinite ease-in-out;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    animation: none;
    display: none;
}

@keyframes indicatorPulse {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, -10px); opacity: 1; }
}

/* Lock Utility */
.no-scroll {
    overflow: hidden !important;
}

/* Footer & Developer Link */
footer {
    background-color: var(--bg-light); /* Alice Blue matching the theme */
    padding: 6rem 4rem 2rem;
    border-top: 1px solid rgba(0, 163, 255, 0.15);
    color: var(--text-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    mix-blend-mode: darken; /* Ensures logo blends into the footer background */
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    max-width: 400px;
}

.footer-col h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 0.95rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #777;
}

.developer-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.developer-section p {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0; /* Remove margin to align with link */
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.instagram-link:hover {
    color: #E1306C; /* Instagram Pink/Red */
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .contact-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-section {
        padding: 4rem 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(245, 245, 220, 0.98); /* Beige background */
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 2400;
        opacity: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-color);
    }

    #contact {
        padding: 4rem 1.5rem;
    }
    
    .contact-content-wrapper {
        gap: 1.5rem;
    }

    .contact-info-section {
        padding: 2.5rem 1.5rem;
    }

    .detail-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .map-container {
        min-height: 300px;
    }

    footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}