/* 
  EAGLE TECHNOVATION - INDUSTRIAL DESIGN SYSTEM
  Inspired by Forged.build
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@1,400;1,600;1,700&display=swap');

:root {
    --bg-main: #010409;
    /* Deeper Black-Navy */
    --bg-darker: #000205;
    --accent: #0050FF;
    --accent-cyan: #00D2FF;
    --accent-silver: #E0E0E0;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-blur: blur(12px);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Grid Pattern */
    background-image:
        linear-gradient(rgba(0, 132, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 132, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    /* NOTE: background-attachment:fixed intentionally removed — it disables
       GPU compositing on iOS/Android causing severe scroll jank */
    background-attachment: scroll;
}

/* Hide scrollbar for all modern browsers to keep a clean, immersive screen design */
html,
body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Typography */
h1,
h2,
h3,
h4,
.headline {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: var(--accent-cyan);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
}

.italic-serif {
    font-family: var(--font-serif);
    text-transform: lowercase;
    font-style: italic;
    letter-spacing: 0;
    color: var(--accent);
    opacity: 0.9;
}

p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    backdrop-filter: var(--glass-blur);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.hero-title span {
    display: block;
}

.hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 32px;
    border-radius: 100px;
    /* Rivor pill style */
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
    letter-spacing: 0.1em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 132, 255, 0.4);
    color: #fff;
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(0, 132, 255, 0.05);
    color: var(--accent);
}

/* Glass & Glow Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.glow-bg {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 132, 255, 0.2) 0%, rgba(0, 132, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

.glow-cyan {
    background: radial-gradient(circle, rgba(0, 209, 193, 0.2) 0%, rgba(0, 209, 193, 0) 70%);
}

.pill-container {
    border-radius: 500px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
}

.marquee {
    background: linear-gradient(90deg, var(--bg-main) 0%, rgba(0, 80, 255, 0.08) 50%, var(--bg-main) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    overflow: hidden;
    white-space: nowrap;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.marquee-content {
    display: inline-flex;
    animation: scroll 30s linear infinite;
}

.marquee-item {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0 40px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 20px;
}

.marquee-item span {
    color: var(--accent);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
    background: var(--bg-main);
}



.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.about-features {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

/* Programs */
.programs {
    padding: 100px 0;
    background: var(--bg-darker);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.program-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
    transform: translateY(-10px);
}

.program-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.program-card .duration {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Stats */
.stats {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item h4 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer */
footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-links h5 {
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Navigation Responsive Fixes */
/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Padding reduction for mobile */
    .about,
    .programs,
    .showcase,
    .testimonials,
    .contact,
    .vision-features,
    .stats {
        padding: 60px 0 !important;
    }

    /* Font size reductions for mobile */
    h1 {
        font-size: clamp(2.2rem, 9vw, 3rem) !important;
    }

    h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
    }

    .btn {
        width: auto !important;
        /* Don't force full width if they want reduced size */
        min-width: 200px;
        text-align: center;
        padding: 12px 28px !important;
        font-size: 0.8rem !important;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px !important;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
    }

    /* Remove floating hero elements for mobile as requested */
    .floating-elements {
        display: none !important;
    }

    /* Hero section font and spacing adjustments for mobile */
    .hero-title {
        font-size: 1.5rem !important;
        /* Even smaller for mobile to fit brand on one line */
        letter-spacing: -0.5px !important;
    }

    .hero-title span {
        white-space: nowrap !important;
        /* Keep brand and lines unified */
    }

    .hero-title .italic-serif {
        font-size: 0.9em !important;
    }

    .hero-center {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    .marquee {
        padding: 15px 0 !important;
    }

    .marquee-item {
        font-size: 0.9rem !important;
        gap: 10px !important;
        padding: 0 20px !important;
    }

    .logo-text-container {
        gap: 4px !important;
    }

    .logo-text.eagle {
        font-size: 0.9rem !important;
    }

    .logo-text.technovation {
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }

    .navbar-brand img {
        height: 28px !important;
    }

    .hero-title .pill-img-container {
        width: 100px !important;
        height: 45px !important;
    }

    .contact .row {
        --bs-gutter-x: 20px !important;
        /* Fix horizontal overflow */
    }

    .contact .col-lg-7.glass-card {
        padding: 30px 20px !important;
        /* Reduce padding for mobile */
        margin-top: 30px !important;
        /* Reduce top spacing */
    }

    .contact h2 span {
        white-space: normal !important;
        /* Allow wrapping of contact title */
    }

    .contact .section-label {
        margin-bottom: 10px !important;
    }

    .contact h3 {
        font-size: 1.2rem !important;
        margin-bottom: 25px !important;
    }

    .video-container div[style*="backdrop-filter"] {
        padding: 8px 12px !important;
    }

    .video-container div[style*="font-size: 0.8rem"] {
        font-size: 0.65rem !important;
    }

    .video-container div[style*="width: 45px"] {
        width: 35px !important;
        height: 35px !important;
    }
}

.mobile-nav.active {
    transform: translateY(0) !important;
}

/* Glassmorphism for Vision Section */
.vision-features {
    position: relative;
}

.vision-features::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 132, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 209, 193, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.vision-card {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.vision-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent-cyan) !important;
}

/* ==========================================================================
   EXTRACTED COMPONENT STYLES
   ========================================================================== */

/* Header Styles */
.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav .nav-link {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
    }
}

/* About Accordion */
.custom-accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
}

.custom-accordion .accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.custom-accordion .accordion-button {
    background: transparent;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 0;
    box-shadow: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--accent-cyan);
    box-shadow: none;
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(0) sepia(1) saturate(5) hue-rotate(180deg);
}

.custom-accordion .accordion-body {
    padding: 0 0 25px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.acc-num {
    color: var(--accent);
    font-weight: 900;
    margin-right: 15px;
    font-size: 0.8em;
}

/* Program Cards */
.program-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-5px);
}

.program-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card .card-footer {
    margin-top: auto;
}

/* Features Slider */
.features-slider::-webkit-scrollbar {
    display: none;
}

.feature-card {
    min-width: 320px;
    scroll-snap-align: start;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: rgba(0, 132, 255, 0.3);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.feature-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

/* Contact Form */
.form-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 700;
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    outline: none;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent);
    background: rgba(0, 132, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 132, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }

    #contactForm {
        grid-template-columns: 1fr !important;
    }

    #contactForm div {
        grid-column: span 1 !important;
    }

    .contact .col-lg-7 {
        padding: 40px 20px !important;
    }
}

/* Hero Float Animation */
@keyframes cinematicFloat {
    0% {
        transform: translateY(0px) rotateX(5deg) rotateY(-10deg) rotateZ(-5deg);
    }

    50% {
        transform: translateY(-25px) rotateX(-5deg) rotateY(10deg) rotateZ(0deg) scale(1.05);
    }

    100% {
        transform: translateY(0px) rotateX(5deg) rotateY(-10deg) rotateZ(-5deg);
    }
}

@keyframes cinematicFloatReverse {
    0% {
        transform: translateY(0px) rotateX(-5deg) rotateY(10deg) rotateZ(5deg);
    }

    50% {
        transform: translateY(25px) rotateX(5deg) rotateY(-10deg) rotateZ(0deg) scale(1.05);
    }

    100% {
        transform: translateY(0px) rotateX(-5deg) rotateY(10deg) rotateZ(5deg);
    }
}

.float-animate-1 {
    animation: cinematicFloat 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    transform-style: preserve-3d;
}

.float-animate-2 {
    animation: cinematicFloatReverse 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    transform-style: preserve-3d;
}

/* Showcase Project Cards */
.project-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.project-card:hover .project-img {
    transform: scale(1.1) rotate(5deg);
}

/* Testimonial Cards */
.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Form Inputs - Bootstrap Overrides */
.glass-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 14px 20px !important;
    transition: all 0.3s ease !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(0, 80, 255, 0.2) !important;
    color: #fff !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.glass-input option {
    background: #010409;
    color: #fff;
}

/* Scroll Animation Classes */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
    will-change: auto; /* Release GPU layer after animation completes */
}

/* ── Copy Protection & Security Styles ───────────────────────────────────────── */
html,
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea,
select,
option {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.col-lg-4.col-md-6.footer-brand {
    margin-top: 0px !important;
}

/* ==========================================================================
   MOBILE SCROLL PERFORMANCE — critical fixes for smooth scrolling on touch
   ========================================================================== */
@media (max-width: 768px) {

    /* Allow native vertical scroll, block horizontal to prevent accidental swipe */
    body {
        touch-action: pan-y;
        overscroll-behavior-y: contain;
    }

    /* ── Global backdrop-filter kill ─────────────────────────────────────────
       backdrop-filter triggers a separate compositing layer per element on
       mobile WebKit/Blink. With many elements blurred simultaneously the GPU
       runs out of tile memory and the browser falls back to software rendering,
       causing severe scroll stutter. Disable ALL of them on mobile — the
       semi-transparent backgrounds still look good without the blur. */
    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Disable heavy 3D floating animations — they create stacking contexts
       that conflict with scroll compositing */
    .float-animate-1,
    .float-animate-2 {
        animation: none !important;
        transform: none !important;
    }

    /* Simplify scroll reveal on mobile: fade only, no translateY,
       so there is no layout shift during scroll */
    .section-reveal {
        transform: none;
        transition: opacity 0.5s ease;
    }

    .section-reveal.active {
        transform: none;
    }

    /* Remove translateY hover lifts — hover isn't used on touch but
       any accidental trigger stalls scroll */
    .program-card:hover,
    .project-card:hover,
    .testimonial-card:hover,
    .btn-primary:hover,
    .feature-card:hover {
        transform: none !important;
    }

    /* Ensure scrollable containers use hardware-accelerated scrolling */
    .features-slider {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
    }
}