@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-deep-navy: #0F172A;
    --bg-charcoal: #1E293B;
    --color-saffron: #F97316;
    --color-saffron-dark: #EA580C;
    --text-white: #F8FAFC;
    --text-muted: #CBD5E1;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep-navy);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* =========================================================================
   GATEWAY PAGE (index.html)
   ========================================================================= */
.gateway-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, var(--bg-charcoal) 0%, var(--bg-deep-navy) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gateway-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg opacity="0.05" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h20v20H0z" fill="none"/><path d="M10 0v20M0 10h20" stroke="%23F97316" stroke-width="0.5"/></svg>');
    z-index: 2;
    animation: pulseGrid 10s infinite alternate;
}

@keyframes pulseGrid {
    0% { opacity: 0.02; }
    100% { opacity: 0.08; }
}

.password-box {
    position: relative;
    z-index: 10;
    background: rgba(30, 41, 59, 0.7);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 115, 22, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 450px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.password-box h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-saffron);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.password-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

#passwordInput {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0.5rem;
    outline: none;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.2em;
}

#passwordInput:focus {
    border-color: var(--color-saffron);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

#passwordInput::placeholder {
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.3);
}

.btn-enter {
    width: 100%;
    padding: 1rem;
    background: var(--color-saffron);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.btn-enter:hover {
    background: var(--color-saffron-dark);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    position: absolute;
    bottom: -1.5rem;
    left: 0; right: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.unlocked {
    animation: unlockFade 1s forwards;
}

@keyframes unlockFade {
    to { opacity: 0; filter: blur(10px); transform: scale(1.1); }
}


/* =========================================================================
   NAVIGATION (ALL PAGES)
   ========================================================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text h2 {
    font-size: 1.5rem;
    color: white;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--color-saffron);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-saffron);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}


/* =========================================================================
   GLOBAL COMPONENTS & LAYOUTS
   ========================================================================= */
main {
    padding-top: 80px; /* offset for header */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 60px; height: 4px;
    background: var(--color-saffron);
}

.subtitle {
    color: var(--color-saffron);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse .split-img {
    order: 2;
}

@media (max-width: 991px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .split-layout.reverse .split-img {
        order: -1;
    }
}

.image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: var(--bg-charcoal);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure no cropping per instructions */
    display: block;
    transition: transform 0.5s ease;
    background-color: var(--bg-charcoal); /* for padding if image aspect ratio varies */
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    pointer-events: none;
}

/* =========================================================================
   HERO SECTIONS
   ========================================================================= */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-charcoal);
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-img {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 50%;
}

.hero-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center right;
    mask-image: linear-gradient(to left, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

@media (max-width: 991px) {
    .hero h1 { font-size: 3rem; }
    .hero-img { opacity: 0.3; width: 100%; }
    .hero-img img { mask-image: none; -webkit-mask-image: none; }
}

/* =========================================================================
   STAT COUNTERS
   ========================================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    background: rgba(30, 41, 59, 0.5);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(30, 41, 59, 0.8);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-saffron);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================================
   CONTENT CARDS / CASE STUDIES
   ========================================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.case-card {
    background: var(--bg-charcoal);
    border-radius: 1rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--color-saffron);
    transition: var(--transition);
}

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

.case-card:hover::before {
    height: 100%;
}

.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.case-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.icon-box {
    width: 50px; height: 50px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-saffron);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* =========================================================================
   TIMELINE (JOURNEY PAGE)
   ========================================================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    top: 0; left: -6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--color-saffron);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-saffron);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-muted);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    background: var(--bg-charcoal);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--color-saffron);
}

/* =========================================================================
   RESPONSIVE DESIGN (MOBILE MENU)
   ========================================================================= */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 80px; left: 0; right: 0;
        background: var(--bg-charcoal);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Utility Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   UI EXTENSION MODULES (EXPANSION PACK)
   ========================================================================= */

/* 1. Grid Systems */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.masonry-grid {
    column-count: 2;
    column-gap: 2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    background: var(--bg-charcoal);
    border-radius: 1rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* 2. Accordions / Details UI */
details.modern-accordion {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

details.modern-accordion[open] {
    border-color: rgba(249, 115, 22, 0.3);
}

details.modern-accordion summary {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none; /* remove default arrow */
    position: relative;
    color: white;
}

details.modern-accordion summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    color: var(--color-saffron);
    font-size: 1.5rem;
    transition: var(--transition);
}

details.modern-accordion[open] summary::after {
    content: '-';
}

details.modern-accordion .details-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* 3. Progress Bars / Charts */
.progress-container {
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-saffron) 0%, var(--color-saffron-dark) 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4. Specialized Cards & Callouts */
.quote-block {
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8), transparent);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.quote-block blockquote {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.quote-block blockquote::before {
    content: '"';
    font-size: 5rem;
    color: rgba(249, 115, 22, 0.3);
    position: absolute;
    top: -2rem; left: -3rem;
}

.cta-banner {
    background: var(--color-saffron-dark);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* 5. Tables & Data */
.data-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

table.modern-table {
    width: 100%;
    border-collapse: collapse;
}

table.modern-table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--color-saffron);
    font-family: var(--font-heading);
    text-align: left;
    padding: 1.5rem;
}

table.modern-table td {
    padding: 1.5rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
