/* ============================================================
   GENNAI.IN - Department of Generative AI
   Custom Stylesheet
   ============================================================ */

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #8B5CF6;
    --accent: #A78BFA;
    --gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A78BFA 100%);
    --gradient-light: linear-gradient(135deg, #EEF2FF 0%, #F3E8FF 100%);
    --hero-gradient: linear-gradient(135deg, #E0E7FF 0%, #EDE9FE 40%, #F3E8FF 100%);
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 25px rgba(99,102,241,0.12);
    --shadow-lg: 0 20px 40px rgba(99,102,241,0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: var(--primary); transition: all 0.2s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ---- Typography ---- */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99,102,241,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ---- Navbar ---- */
#mainNav {
    padding: 12px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

#mainNav.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

#mainNav .navbar-brand { font-size: 1rem; }

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(99,102,241,0.08);
}

.btn-primary-grad {
    background: var(--gradient);
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}
.btn-primary-grad:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
    color: white !important;
}

/* ---- Hero Section ---- */
.hero-section {
    background: var(--hero-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99,102,241,0.2);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 2.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
}

.hero-tag {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-tags-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

/* ---- Stat Cards ---- */
.stats-section {
    background: white;
    padding: 3rem 0;
    box-shadow: var(--shadow-sm);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--gradient-light);
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-4px); }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ---- Section Styles ---- */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.bg-light-grad { background: var(--bg-light); }

/* ---- Cards ---- */
.card-hover {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.2);
}

/* ---- Faculty Cards ---- */
.faculty-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.faculty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.3);
}

.faculty-photo-wrap {
    background: var(--gradient-light);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.faculty-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    background: var(--gradient);
}

.faculty-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 auto;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.faculty-spec-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 100px;
    margin-top: 8px;
}

.faculty-body { padding: 1.5rem; }
.faculty-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.faculty-role { font-size: 0.85rem; color: var(--primary); font-weight: 500; }
.faculty-qual { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.achievement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 4px 0;
}
.achievement-item i { color: var(--primary); font-size: 0.85rem; }

/* ---- Scholar Cards ---- */
.scholar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.scholar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99,102,241,0.3);
}

.scholar-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.status-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}

.status-coursework { background: #DBEAFE; color: #1D4ED8; }
.status-research { background: #D1FAE5; color: #065F46; }
.status-thesis { background: #FEF3C7; color: #92400E; }
.status-starting { background: #F3E8FF; color: #6D28D9; }
.status-defense   { background: #FEF3C7; color: #92400E; }
.status-completed { background: #D1FAE5; color: #065F46; }

/* ---- Event Cards ---- */
.event-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.2);
}

.event-header {
    background: var(--gradient);
    padding: 1.5rem;
    color: white;
    position: relative;
}

.event-type-badge {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,0.25);
    color: white;
    padding: 3px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 8px;
}

.event-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.status-upcoming { background: #10B981; color: white; }
.status-completed { background: rgba(255,255,255,0.25); color: white; }

/* ---- Gallery ---- */
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(99,102,241,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

/* ---- Page Hero ---- */
.page-hero {
    background: var(--hero-gradient);
    padding: 140px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

/* ---- Contact ---- */
.contact-info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.contact-form-wrap {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* ---- Features ---- */
.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.25);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(99,102,241,0.3);
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--gradient);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 100px;
    border: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--primary-dark);
}

.btn-outline-white {
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 100px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

/* ---- Footer ---- */
.footer-section {
    background: #0F172A;
}

.footer-top { border-bottom: 1px solid rgba(255,255,255,0.08); }

.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.footer-links a:hover { color: white; padding-left: 4px; }

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}
.footer-contact i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.55); }
.footer-contact a:hover { color: white; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.2); }

.hover-white:hover { color: white !important; }

/* ---- About Page ---- */
.value-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient);
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Alerts ---- */
.alert-success-custom {
    background: #D1FAE5;
    border: 1px solid #6EE7B7;
    color: #065F46;
    border-radius: 10px;
    padding: 12px 16px;
}

.alert-error-custom {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    border-radius: 10px;
    padding: 12px 16px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-section { padding-top: 100px; text-align: center; }
    .section-pad { padding: 3rem 0; }
    .hero-tags { justify-content: center; }
    .page-hero { padding: 120px 0 40px; }
    .contact-form-wrap { padding: 1.5rem; }
    .nav-link { padding: 10px 0 !important; }
}

/* ---- Scroll to top ---- */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
}
