/* ==========================================================================
   style-login.css  —  STAL Landing Page
   Government / space-tech identity: deep navy + saffron accent + India green
   ========================================================================== */

/* --- Google Font (Noto Sans: good Devanagari + Latin coverage) ----------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif:wght@700&display=swap');

/* --- Tokens -------------------------------------------------------------- */
:root {
    --c-navy:    #0b3a67;
    --c-blue:    #1475c6;
    --c-sky:     #e9f4fc;
    --c-saffron: #f59e0b;
    --c-green:   #138808;
    --c-white:   #ffffff;
    --c-text:    #1d2b3a;
    --c-muted:   #64768a;
    --c-line:    #dce8f3;

    --f-sans:  'Noto Sans', system-ui, -apple-system, sans-serif;
    --f-serif: 'Noto Serif', Georgia, serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-card: 0 4px 24px rgba(11, 58, 103, 0.10);
    --shadow-nav:  0 2px 16px rgba(11, 58, 103, 0.18);
    --transition:  0.28s ease;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   NAV
   ========================================================================== */

header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    /* start: transparent over the hero */
    background: transparent;
    padding: 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

/* JS adds .scrolled once the page scrolls 60 px */
header.scrolled {
    background: var(--c-navy);
    box-shadow: var(--shadow-nav);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #ff9933 0 33.34%, #ffffff 33.34% 66.67%, var(--c-green) 66.67% 100%) 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.nav-brand {
    font-family: var(--f-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-white);
    text-decoration: none;
    letter-spacing: 0.2px;
    opacity: 0;    /* hidden at top — hero title says it all */
    transition: opacity var(--transition);
}

header.scrolled .nav-brand { opacity: 1; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition), color var(--transition);
}

.nav-links a:hover {
    color: var(--c-white);
    border-bottom-color: var(--c-saffron);
}

.login-btn {
    background: var(--c-saffron);
    color: var(--c-navy);
    font-family: var(--f-sans);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.55rem 1.4rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.login-btn:hover {
    background: #e08e09;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--c-white);
    overflow: hidden;
}

/* background image + overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(170deg, rgba(11,58,103,0.72) 0%, rgba(11,58,103,0.45) 55%, rgba(11,58,103,0.75) 100%),
        url('../img/banner.png') center / cover no-repeat;
    z-index: 0;
}

/* subtle vignette at top so navbar text stays readable */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 30%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* logo strip */
.hero-logos {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-logos-container {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(255,255,255,0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius-lg);
    padding: 1.4rem 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transition: background var(--transition), box-shadow var(--transition);
}

.hero-logos-container:hover {
    background: rgba(255,255,255,0.50);
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

.hero-logos img {
    height: 90px;
    width: auto;
    object-fit: contain;
    /* lighten dark/black logos so they read on the frosted glass card */
    filter: brightness(1.3) drop-shadow(0 1px 4px rgba(0,0,0,0.15));
    transition: transform var(--transition), filter var(--transition);
}

.hero-logos img:hover {
    transform: scale(1.06);
    filter: brightness(1.45) drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}

.hero-content h1 {
    font-family: var(--f-serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.18;
    max-width: 760px;
    margin: 0 auto 1.2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* saffron underline on a key phrase */
.hero-content h1 span {
    display: inline;
    border-bottom: 3px solid var(--c-saffron);
    padding-bottom: 2px;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0 auto 2.2rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: var(--c-saffron);
    color: var(--c-navy);
    font-family: var(--f-sans);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 18px rgba(245,158,11,0.4);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cta-button:hover {
    background: #e08e09;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(245,158,11,0.5);
}

/* scroll-down cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.65);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    z-index: 1;
    animation: bounce 2s ease infinite;
}

.hero-scroll-cue::after {
    content: '';
    display: block;
    width: 1.5px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.65), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ==========================================================================
   SECTION SHARED
   ========================================================================== */

section { padding: 6rem 0; }

.section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.9rem;
    color: var(--c-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    display: block;
    height: 1.5px;
    width: 36px;
    background: var(--c-blue);
    opacity: 0.4;
}

.section-title {
    text-align: center;
    font-family: var(--f-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-lead {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 3.5rem;
    color: var(--c-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================================================
   FEATURES
   ========================================================================== */

.features {
    background: var(--c-sky);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    background: var(--c-white);
    padding: 2.4rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

/* saffron-to-green top accent bar */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--c-saffron), var(--c-green));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(11, 58, 103, 0.15);
    border-color: rgba(20, 117, 198, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--c-sky);
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    font-size: 1.8rem;
    transition: background var(--transition), border-color var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(20, 117, 198, 0.08);
    border-color: rgba(20, 117, 198, 0.3);
}

.feature-card h3 {
    font-family: var(--f-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--c-navy);
    line-height: 1.3;
}

.feature-card p {
    color: var(--c-muted);
    font-size: 0.97rem;
    line-height: 1.65;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about { background: var(--c-white); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* left accent line running the full height of the text column */
.about-text {
    position: relative;
    padding-left: 1.6rem;
}

.about-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--c-saffron) 0%, var(--c-blue) 50%, var(--c-green) 100%);
}

.about-text h2 {
    font-family: var(--f-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.about-text p {
    color: var(--c-muted);
    font-size: 1.02rem;
    margin-bottom: 1.2rem;
    line-height: 1.72;
}

/* stat row — 3 items with a vertical line between each */
.about-stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 2rem 0;
    padding: 1.2rem 0;
}

/* vertical divider between siblings */
.about-stat + .about-stat {
    border-left: 1.5px solid var(--c-line);
}

.about-stat {
    text-align: center;
    flex: 1;
    padding: 0 2rem;
}

.about-stat strong {
    display: block;
    font-family: var(--f-serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--c-navy);
    line-height: 1;
}

.about-stat span {
    font-size: 0.82rem;
    color: var(--c-muted);
    font-weight: 600;
}

/* logo strip — centered, no divider lines */
.about-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.8rem;
    margin-top: 2rem;
    padding-top: 0;
    border-top: none;
}

/* float-up entrance: each logo rises in turn */
@keyframes logoFloat {
    0%   { opacity: 0; transform: translateY(18px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0)   scale(1); }
}

.about-logos img {
    height: 56px;
    width: auto;
    object-fit: contain;
    opacity: 0;                        /* hidden until animation fires */
    filter: grayscale(0.15);
    transition: filter var(--transition), transform var(--transition), opacity var(--transition);
}

/* fire animation once the section is in view (.visible added by IntersectionObserver) */
.about-content.visible .about-logos img:nth-child(1) {
    animation: logoFloat 0.55s ease 0.1s forwards;
}
.about-content.visible .about-logos img:nth-child(2) {
    animation: logoFloat 0.55s ease 0.25s forwards;
}
.about-content.visible .about-logos img:nth-child(3) {
    animation: logoFloat 0.55s ease 0.4s forwards;
}

.about-logos img:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.08) translateY(-3px);
}

/* image column */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(11, 58, 103, 0.18);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-image img:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(11, 58, 103, 0.22);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--c-navy);
    color: rgba(255,255,255,0.72);
    padding: 1.5rem 0;
    /* India tricolor strip at top */
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #ff9933 0 33.34%, #ffffff 33.34% 66.67%, var(--c-green) 66.67% 100%) 1;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.88rem;
    letter-spacing: 0.15px;
    color: rgba(255,255,255,0.65);
}

/* ==========================================================================
   SCROLL-TRIGGERED FADE (single quiet entrance per section)
   ========================================================================== */

.loading {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.loading.visible {
    opacity: 1;
    transform: translateY(0);
}

/* feature cards stagger */
.features-grid .feature-card:nth-child(1).loading { transition-delay: 0.05s; }
.features-grid .feature-card:nth-child(2).loading { transition-delay: 0.14s; }
.features-grid .feature-card:nth-child(3).loading { transition-delay: 0.23s; }

/* ==========================================================================
   SCROLL-AWARE NAV (JS helper embedded here as a <style>-safe :not hack)
   We actually inject the JS snippet via a <script> in index.html
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .loading, .hero::before, header, .cta-button, .login-btn,
    .feature-card, .about-image img, .hero-logos img,
    .hero-scroll-cue { transition: none; animation: none; }
}