/* Sanjivani Talent Conclave — fresh light theme */
:root {
    --bg: #eef5fb;
    --bg-alt: #dceaf6;
    --surface: #ffffff;
    --text: #0c2340;
    --text-soft: #3a5570;
    --accent: #0e6eb8;
    --accent-dark: #084d82;
    --accent-light: #cce5f8;
    --gold: #d4880c;
    --gold-light: #fff6e3;
    --border: rgba(14, 110, 184, 0.2);
    --shadow: 0 10px 36px rgba(12, 35, 64, 0.09);
    --shadow-lg: 0 24px 56px rgba(12, 35, 64, 0.14);
    --radius: 16px;
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-fade {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 95% 5%, rgba(14, 110, 184, 0.12), transparent 55%),
        radial-gradient(ellipse 55% 45% at 5% 95%, rgba(212, 136, 12, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    display: block;
    border-radius: 2px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-light), #fff);
    border: 1px solid var(--border);
    color: var(--accent-dark);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(14, 110, 184, 0.08);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 127, 196, 0.3);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-light);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 20px;
    width: 2px;
    height: calc(100% + 6px);
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.35;
}

.timeline-item:last-child::after {
    display: none;
}

.register-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 14px 36px;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(26, 127, 196, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-body);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 127, 196, 0.4);
    color: #fff;
}

.register-btn:focus-visible,
.nav-link:focus-visible,
.menu-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.nav-link {
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 100;
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#mobile-menu.open {
    max-height: 340px;
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: var(--shadow);
    border-color: var(--border) !important;
}

/* Scroll reveal animations */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade {
    opacity: 0;
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal {
    transform: translateY(32px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal-fade {
    transform: none;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible,
.reveal-fade.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-parent.visible .stagger-child {
    opacity: 1;
    transform: translateY(0);
}

.stagger-parent.visible .stagger-child:nth-child(1) { transition-delay: 0.05s; }
.stagger-parent.visible .stagger-child:nth-child(2) { transition-delay: 0.12s; }
.stagger-parent.visible .stagger-child:nth-child(3) { transition-delay: 0.19s; }
.stagger-parent.visible .stagger-child:nth-child(4) { transition-delay: 0.26s; }
.stagger-parent.visible .stagger-child:nth-child(5) { transition-delay: 0.33s; }

.bracket {
    position: relative;
}

.bracket::before,
.bracket::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--accent);
    opacity: 0.5;
}

.bracket::before {
    top: 0;
    left: 0;
    border-top: 3px solid;
    border-left: 3px solid;
    border-radius: 4px 0 0 0;
}

.bracket::after {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid;
    border-right: 3px solid;
    border-radius: 0 0 4px 0;
}

hr.gold {
    border: none;
    border-top: 1px solid var(--border);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.icon-box {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #f8fbfe 0%, var(--bg) 45%, #e8f3fa 100%);
}

.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-year-inline {
    display: inline-block;
    font-style: normal;
    font-weight: 700;
    background: linear-gradient(120deg, var(--accent-dark), var(--accent) 50%, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-image-shell {
    position: relative;
    z-index: 2;
    padding: 4px;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--accent), var(--gold) 55%, var(--accent-light));
    box-shadow: var(--shadow-lg);
}

.hero-image-frame {
    position: relative;
    isolation: isolate;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.hero-campus-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.25rem 0.75rem;
    background: linear-gradient(180deg, #eef5fb 0%, #fff 100%);
    min-height: 280px;
}

.hero-campus-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform 6s ease-out;
}

.hero-image-frame.in-view .hero-campus-img {
    transform: scale(1.02);
}

.hero-campus-caption {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
}

.hero-caption-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin: 0;
}

.hero-caption-sub {
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text-soft);
    margin: 0.2rem 0 0;
}

@media (max-width: 768px) {
    .hero-campus-img-wrap {
        min-height: 220px;
        padding: 1rem 0.75rem 0.5rem;
    }

    .hero-campus-img {
        max-height: 320px;
    }

    .hero-campus-caption {
        padding: 0.95rem 1rem;
        gap: 0.85rem;
    }

    .hero-caption-title {
        font-size: 1.05rem;
    }

    .hero-caption-sub {
        font-size: 0.9rem;
    }
}

.section-alt {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.section-white {
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(14, 110, 184, 0.06);
}

.campus-showcase {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.campus-showcase img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.campus-showcase:hover img {
    transform: scale(1.03);
}

/* Ellora heritage gallery */
.ellora-feature {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}

.ellora-feature .ellora-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--text);
}

.ellora-feature .ellora-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ellora-feature-caption {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, var(--accent-light), #fff);
}

.ellora-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 1024px) {
    .ellora-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ellora-gallery figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ellora-gallery figure:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.ellora-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ellora-gallery figure.ellora-tall img {
    height: 260px;
    object-position: center top;
}

.ellora-gallery figcaption {
    padding: 0.65rem 0.75rem;
    font-size: 0.7rem;
    line-height: 1.45;
    color: var(--text-soft);
    background: var(--surface);
}

.ellora-preview {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ellora-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ellora-preview img {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    object-position: center;
    display: block;
}

.day-pill {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(14, 110, 184, 0.25);
}

.award-banner {
    background: linear-gradient(135deg, var(--accent-light), var(--gold-light));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Register page hero */
.register-hero-section {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.register-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.register-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(238, 245, 251, 0.55) 0%,
        rgba(238, 245, 251, 0.88) 55%,
        rgba(238, 245, 251, 0.98) 100%
    );
}

.register-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
}

.register-hero-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    padding: 2rem 2rem 1.75rem;
}

.register-hero-card h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-top: 1rem;
}

.register-hero-card .register-intro {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-soft);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.register-main {
    position: relative;
    z-index: 3;
    max-width: 42rem;
    margin: -1.25rem auto 0;
    padding: 0 1.5rem 3rem;
}

.register-form-wrap .register-btn {
    width: 100%;
}

@media (max-width: 640px) {
    .register-hero-section {
        min-height: 260px;
    }

    .register-hero-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}

/* Forms (register + admin) */
.form-label {
    display: block;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.form-label .req {
    color: var(--accent);
}

.form-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 127, 196, 0.15);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.availability-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    border-radius: 10px;
    overflow: hidden;
}

.availability-table th,
.availability-table td {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: center;
    background: var(--surface);
}

.availability-table th {
    background: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}

.availability-table td:first-child {
    text-align: left;
    color: var(--text);
}

.availability-table input[type="radio"] {
    accent-color: var(--accent);
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.form-alert {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1px solid;
}

.form-alert.success {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--text);
}

.form-alert.error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.export-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 16px rgba(26, 127, 196, 0.3);
}

.export-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 127, 196, 0.35);
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success overlay */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(244, 248, 252, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.success-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.success-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

.success-overlay.visible .success-card {
    transform: scale(1) translateY(0);
}

.success-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--accent-light);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-pop 0.5s ease 0.15s both;
}

.success-check svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    stroke-width: 2.5;
    fill: none;
}

.success-check path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: success-draw 0.45s ease 0.45s forwards;
}

@keyframes success-pop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes success-draw {
    to { stroke-dashoffset: 0; }
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.success-sub {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.success-ref {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    margin-bottom: 1.25rem;
    border-radius: 6px;
}

.success-countdown {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.success-countdown span {
    color: var(--accent);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .success-card,
    .success-check,
    .success-check path {
        animation: none;
        transition: none;
    }
    .success-check path {
        stroke-dashoffset: 0;
    }
}

.site-logo {
    height: 5rem;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(12, 35, 64, 0.08));
}

.site-logo-sm {
    height: 3.5rem;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.hero-logo {
    height: 4.75rem;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    flex-shrink: 0;
}

.float-decoration {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
