/* ==========================================================================
   LEGACY PAGE LAYOUT & STYLES
   ========================================================================== */

.legacy-page-wrapper {
    background-color: #0b0f19;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.legacy-page-wrapper *,
.legacy-page-wrapper *::before,
.legacy-page-wrapper *::after {
    box-sizing: inherit;
}

/* 1. Hero Section */
.legacy-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 120px 20px 100px;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.70) 0%, rgba(11, 15, 25, 0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: #eab308;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(234, 179, 8, 0.2);
}

.hero-quote {
    color: #cbd5e1;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

/* 2. Content Container Section */
.legacy-content-section {
    position: relative;
    margin-top: -50px;
    z-index: 5;
    background-color: transparent;
}

.content-card {
    background: #ffffff;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 80px 8% 60px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: #38bdf8;
    font-size: 1.85rem;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 30px 0;
}

.image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    background-color: #f1f5f9;
}

.legacy-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover .legacy-img {
    transform: scale(1.05);
}

.text-block p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 24px 0;
}

.text-block p:last-child {
    margin-bottom: 0;
}

/* 3. Action Button */
.action-row {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.btn-legacy-contact {
    display: inline-block;
    padding: 12px 48px;
    border: 2px solid #1e3a8a;
    border-radius: 6px;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    background: transparent;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
}

.btn-legacy-contact:hover {
    background-color: #1e3a8a;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.25);
}

/* 4. Responsive Breakpoints */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .content-card {
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;
        padding: 60px 6% 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-quote {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content-card {
        border-top-left-radius: 35px;
        border-bottom-left-radius: 35px;
        padding: 40px 5% 30px;
    }

    .btn-legacy-contact {
        width: 100%;
        text-align: center;
    }
}


/* ==========================================================================
   VISION & BEGINNING ALTERNATING SECTION STYLES
   ========================================================================== */

.vision-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.75); /* Dark overlay to highlight cards */
    z-index: 1;
}

.vision-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px; /* Space between the two rows */
}

/* Row Base Layout */
.vision-row {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Semi-transparent Blue Content Card */
.vision-card {
    background: rgba(40, 68, 122, 0.82); /* Exact semi-transparent navy blue */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 50px 50px 50px 180px; /* Extra padding on the side overlapping the image */
    width: 80%;
    box-sizing: border-box;
}

.card-title {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    letter-spacing: -0.3px;
    text-transform: strtolower;
}

.card-desc {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

/* White Framed Image Box */
.vision-img-frame {
    width: 280px;
    height: 360px;
    border: 6px solid #ffffff; /* Thick white frame */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    z-index: 3; /* Keeps frame above blue box */
    flex-shrink: 0;
    overflow: hidden;
    position: absolute;
}

.vision-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.vision-img-frame:hover .vision-card-img {
    transform: scale(1.05);
}

/* Row 1 Alignment: Image Left, Card Right */
.row-left-img {
    justify-content: flex-end;
}

.row-left-img .vision-img-frame {
    left: 0;
}

.row-left-img .vision-card {
    padding-left: 170px;
    padding-right: 50px;
}

/* Row 2 Alignment: Card Left, Image Right */
.row-right-img {
    justify-content: flex-start;
}

.row-right-img .vision-img-frame {
    right: 0;
}

.row-right-img .vision-card {
    padding-right: 170px;
    padding-left: 50px;
}

/* --------------------------------------------------------------------------
   Responsive Design (Tablets & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .vision-row {
        flex-direction: column;
        align-items: center;
    }

    .vision-img-frame {
        position: relative;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-width: 320px;
        height: 320px;
        margin-bottom: -40px; /* Overlap effect on mobile */
    }

    .vision-card {
        width: 100% !important;
        padding: 60px 30px 30px 30px !important;
        text-align: center;
    }

    .vision-container {
        gap: 60px;
    }
}

@media (max-width: 576px) {
    .vision-section {
        padding: 60px 15px;
    }

    .card-title {
        font-size: 1.35rem;
    }

    .card-desc {
        font-size: 0.92rem;
    }
}

/* ==========================================================================
   MODERN ANIMATED HIGHLIGHTS & TOMORROW CTA STYLES
   ========================================================================== */

.highlights-cta-wrapper {
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 1. Staggered Highlights Section */
.highlights-section {
    background-color: #f8fafc;
    border-top-right-radius: 90px;
    padding: 100px 20px 120px;
    position: relative;
    z-index: 2;
}

.highlights-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Glassmorphism & Modern Card Styling */
.highlight-card {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    padding: 30px 36px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
}

/* Card Subtle Hover Glow */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.25);
    border-color: rgba(56, 189, 248, 0.4);
}

.highlight-card:hover .card-glow {
    opacity: 1;
}

.highlight-card.card-left {
    align-self: flex-start;
    margin-left: 2%;
}

.highlight-card.card-right {
    align-self: flex-end;
    margin-right: 2%;
}

.card-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.card-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    color: #cbd5e1;
    font-weight: 300;
}

/* 2. Dark CTA Section */
.tomorrow-cta-section {
    position: relative;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    border-top-left-radius: 90px;
    margin-top: -60px;
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.85) 0%, rgba(11, 15, 25, 0.95) 100%);
    border-top-left-radius: 90px;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
}

.cta-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-desc {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 20px 0;
    font-weight: 300;
}

/* Interactive Animated Button */
.cta-btn-wrapper {
    margin-top: 40px;
}

.btn-modern-animated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 44px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-modern-animated .btn-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modern-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.btn-modern-animated:hover .btn-arrow {
    transform: translateX(5px);
}

/* 3. Scroll Reveal Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tomorrow-cta-section {
        background-attachment: scroll; /* Fallback for touch devices */
    }

    .highlight-card.card-left,
    .highlight-card.card-right {
        align-self: center;
        margin-left: 0;
        margin-right: 0;
    }

    .cta-title {
        font-size: 1.85rem;
    }

    .cta-desc {
        font-size: 1rem;
    }
}

/* ==========================================================================
   ADVANCED MODERN ANIMATIONS (No HTML/PHP Changes Needed)
   ========================================================================== */

/* 1. KEYFRAME DEFINITIONS */
@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

@keyframes shimmerGlow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 20px 45px rgba(56, 189, 248, 0.25);
    }
}

/* 2. HERO SECTION ANIMATIONS */
.legacy-hero .hero-title {
    animation: heroReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.legacy-hero .hero-quote {
    animation: heroReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
    opacity: 0; /* Prevents flash before animation starts */
}

/* 3. CONTENT CARD & GRID SECTION */
.legacy-content-section .content-card {
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

/* Image Reveal & Hover Zoom with Shimmer Overlay */
.legacy-content-section .image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.legacy-content-section .image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
    background-size: 200% 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.legacy-content-section .image-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.legacy-content-section .image-wrapper:hover::after {
    opacity: 1;
    animation: shimmerGlow 1.8s infinite;
}

.legacy-content-section .legacy-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    display: block;
    width: 100%;
}

.legacy-content-section .image-wrapper:hover .legacy-img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* Button Micro-Interactions */
.btn-legacy-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.btn-legacy-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn-legacy-contact:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-legacy-contact:hover::before {
    transform: translateX(100%);
}

.btn-legacy-contact:active {
    transform: translateY(-1px) scale(0.99);
}

/* 4. VISION & BEGINNING SECTION (Staggered Animation & Ambient Float) */
.vision-section {
    position: relative;
    overflow: hidden;
}

/* Subtle continuous float on the image frames */
.vision-row .vision-img-frame {
    animation: floatGentle 6s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    border-radius: 16px;
    overflow: hidden;
}

.vision-row.row-right-img .vision-img-frame {
    animation-delay: -3s; /* Offset alternate row float */
}

.vision-img-frame:hover {
    animation-play-state: paused; /* Pause float on hover for precise focus */
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.vision-card-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vision-img-frame:hover .vision-card-img {
    transform: scale(1.08);
}

/* Modern Glassmorphism Card Hover Effects */
.vision-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.vision-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Title Underline Accent Animation */
.vision-card .card-title {
    position: relative;
    display: inline-block;
}

.vision-card .card-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: width 0.4s ease;
}

.vision-card:hover .card-title::after {
    width: 100%;
}

/* 5. SMOOTH SCROLL BEHAVIOR */
html {
    scroll-behavior: smooth;
}