/* ============================================
   SkillInfyTech Stipend Internship — Premium Light Theme
   Brand: #3b82f6 (Blue) → #7c3aed (Purple)
   Font: Sora (display) + DM Sans (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --purple: #7c3aed;
    --purple-light: #a855f7;
    --cyan: #06b6d4;

    --grad: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    --grad-soft: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(124,58,237,0.08) 100%);
    --grad-hero: linear-gradient(160deg, #eef4ff 0%, #f5f0ff 50%, #edf5ff 100%);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --surface: #ffffff;
    --surface-2: #f8faff;
    --border: rgba(59,130,246,0.12);
    --border-subtle: rgba(0,0,0,0.06);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-card: 0 4px 24px rgba(59,130,246,0.08), 0 1px 4px rgba(0,0,0,0.05);
    --shadow-hover: 0 16px 48px rgba(59,130,246,0.16), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-btn: 0 4px 20px rgba(124,58,237,0.35);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================ Reset ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================ Header =========== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.header.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 1px 16px rgba(0,0,0,0.07);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo { height: 44px; width: auto; }

.logo-text {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.18s, background 0.18s;
    position: relative;
}

.nav-link:hover { color: var(--text-primary); background: var(--surface-2); }

.nav-link.active {
    color: var(--blue);
    background: rgba(59,130,246,0.07);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 14px; right: 14px;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.22s var(--ease);
}

.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    gap: 5px;
}

.hamburger .bar {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================ Floating BG dots = */
.floating-element {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.floating-element:nth-child(1) {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%);
    top: -100px; left: -140px;
    animation: drift 10s ease-in-out infinite;
}
.floating-element:nth-child(2) {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(124,58,237,0.09) 0%, transparent 70%);
    top: 30%; right: -80px;
    animation: drift 13s ease-in-out infinite reverse;
}
.floating-element:nth-child(3) {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
    bottom: 10%; left: 15%;
    animation: drift 8s ease-in-out infinite 2s;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -15px); }
    66% { transform: translate(-15px, 20px); }
}

/* ============================================ Hero ============== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--grad-hero);
}

/* Dot grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(59,130,246,0.18) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.35;
    pointer-events: none;
}

/* Top gradient bar */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad);
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 140px 0 100px;
    width: 100%;
}

/* Announcement chip */
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(124,58,237,0.22);
    border-radius: var(--radius-full);
    padding: 7px 16px 7px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 28px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(124,58,237,0.1);
}
.hero-chip-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--grad);
    flex-shrink: 0;
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.75); }
}

.hero-image {
    width: 100%;
    max-width: 860px;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(59,130,246,0.18), 0 8px 24px rgba(0,0,0,0.08);
    margin: 0 auto 44px;
    display: block;
    border: 1px solid rgba(255,255,255,0.8);
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    display: block;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stat {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 7px;
}
.hero-stat i { color: var(--blue); font-size: 13px; }

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================ Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(124,58,237,0.45);
    filter: brightness(1.06);
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); }

.btn-secondary {
    background: rgba(255,255,255,0.9);
    color: var(--purple);
    border: 1.5px solid rgba(124,58,237,0.3);
    backdrop-filter: blur(6px);
}
.btn-secondary:hover {
    background: #fff;
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124,58,237,0.15);
}

/* ============================================ Sections ========= */
.section { padding: 96px 0; position: relative; }

.section-alt { background: var(--surface-2); }

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.section-label {
    display: inline-block;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-dark);
    margin-bottom: 14px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 56px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* ============================================ Grid ============== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================ Cards ============= */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59,130,246,0.18);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 52px; height: 52px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.375rem;
    transition: background 0.25s, transform 0.25s;
}
.card-icon i { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.card:hover .card-icon { background: var(--grad); transform: scale(1.06); }
.card:hover .card-icon i { -webkit-text-fill-color: #fff; background: none; }

.card-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================ Benefit Cards ===== */
.benefit-card {
    text-align: center;
    background: var(--surface);
}

.benefit-value {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0 6px;
    letter-spacing: -0.02em;
}

/* ============================================ Certifications ==== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.cert-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(59,130,246,0.2);
}

.cert-logo {
    width: 100%;
    max-height: 72px;
    object-fit: contain;
    filter: grayscale(0.2) contrast(1.05);
    transition: filter 0.2s;
}
.cert-card:hover .cert-logo { filter: none; }

/* ============================================ CPQT Section ====== */
.cpqt-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.info-item:hover {
    border-color: rgba(59,130,246,0.2);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 42px; height: 42px;
    background: var(--grad);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.info-item div:last-child {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rewards-box {
    background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, rgba(124,58,237,0.05) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    margin-top: 8px;
}

.rewards-box .section-title {
    font-size: 1.5rem;
    text-align: left;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.rewards-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.rewards-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.rewards-list li::before {
    content: '';
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--grad);
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--grad);
}

/* checkmark via box decoration */
.rewards-list li::before {
    content: '✓';
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1;
}

/* ============================================ Apply Section ===== */
.apply-section {
    text-align: center;
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
}

.apply-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(59,130,246,0.14) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.3;
    pointer-events: none;
}

.apply-section .container { position: relative; z-index: 1; }

.apply-note {
    max-width: 600px;
    margin: 28px auto 0;
    background: rgba(255,255,255,0.85);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    backdrop-filter: blur(4px);
}

.apply-note strong { color: var(--text-primary); }

/* ============================================ Back to Top ======= */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 48px; height: 48px;
    background: var(--grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    z-index: 999;
    box-shadow: 0 4px 18px rgba(124,58,237,0.35);
    font-size: 0.875rem;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(124,58,237,0.45); }

/* ============================================ Scroll animations = */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Stagger siblings */
.grid > .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.grid > .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.grid > .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.grid > .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.grid > .animate-on-scroll:nth-child(6) { transition-delay: 0.4s; }

/* ============================================ Responsive ======== */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }

    /* Hide the nav list entirely on mobile by default */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        z-index: 999;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Show when JS adds .active */
    .nav-menu.active { display: flex; }

    /* Close button area — tap anywhere outside nav links closes it */
    .nav-menu .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
        padding: 14px 40px;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-sm);
        color: var(--text-primary);
    }
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--blue);
        background: rgba(59,130,246,0.07);
    }
    .nav-menu .nav-link::after { display: none; }

    /* Hamburger always on top */
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .hero-container { padding: 120px 0 72px; }

    .hero-image { height: 200px; border-radius: var(--radius-lg); }

    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; justify-content: center; }

    .hero-stats { gap: 8px; }
    .hero-stat { font-size: 12px; padding: 6px 14px; }

    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

    .cert-grid { grid-template-columns: repeat(2, 1fr); }

    .section-title { font-size: 1.75rem; }

    .rewards-box { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .grid-4 { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1rem; }
    .card { padding: 22px 18px; }
    .benefit-value { font-size: 1.625rem; }
    .back-to-top { bottom: 20px; right: 20px; }
}