/*
Theme Name: Aryabhatta ACASST Theme
Theme URI: https://adamasuniversity.ac.in/acasst
Description: A custom premium academic theme for the Aryabhatta Centre for Advanced Studies in Space Science and Technology (ACASST) and the Agrotechnology and Rural Development Centre (AGROCENTRE).
Version: 1.0.0
Author: Abhishek Singh
Author URI: https://abhisheksingh.tech
Text Domain: acasst-theme
*/

/* ==========================================================================
   1. DESIGN SYSTEM & ROOT TOKENS
   ========================================================================== */
:root {
    /* Color Palette (HSL Space Science & Sustainability Accents) */
    --bg-primary: hsl(210, 20%, 98%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-accent: hsl(222, 47%, 15%);
    --text-main: hsl(215, 20%, 15%);
    --text-muted: hsl(215, 15%, 45%);
    --text-light: hsl(210, 20%, 98%);
    
    --color-primary: hsl(222, 47%, 12%); /* Deep Space Navy */
    --color-secondary: hsl(255, 60%, 45%); /* Nebula Indigo */
    --color-accent: hsl(38, 92%, 50%); /* Stellar Amber */
    --color-success: hsl(142, 60%, 40%); /* Agrotech Green */
    
    --border-color: hsl(210, 14%, 90%);
    --border-hover: hsl(210, 14%, 80%);
    
    /* Layout Spacing & Sizing */
    --container-width: 1280px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. MODERN CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 0.5em;
}

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

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section {
    padding: 80px 0;
}

.section-grey {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   4. PREMIUM UI ELEMENTS & BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   5. HEADER & RESPONSIVE PORTAL NAV
   ========================================================================== */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-group img {
    height: 52px;
    width: auto;
}

.logo-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 8px 0;
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav li.current-menu-item a::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav li.current-menu-item a {
    color: var(--color-secondary);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-fast);
}

/* ==========================================================================
   6. DYNAMIC HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    height: calc(100vh - 80px);
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
    background-color: var(--color-primary);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    text-align: center;
    color: var(--text-light);
    z-index: 10;
}

.slide-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.slide-title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.15;
}

.slide-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    z-index: 100;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* ==========================================================================
   7. INSTITUTION TIMELINE / LISTS
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 48px;
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 4px solid var(--color-secondary);
    z-index: 10;
}

.timeline-year {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.timeline-content {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   8. DATA TABLES & MATRICES
   ========================================================================== */
.data-table-container {
    overflow-x: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

.data-table th, .data-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: hsl(210, 14%, 96%);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: hsl(210, 20%, 98%);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-ongoing {
    background-color: hsl(38, 92%, 95%);
    color: hsl(38, 92%, 40%);
}

.status-completed {
    background-color: hsl(142, 60%, 95%);
    color: hsl(142, 60%, 35%);
}

/* ==========================================================================
   9. TEAM PROFILE CARDS
   ========================================================================== */
.team-section-title {
    text-align: center;
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.director-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 64px;
}

.director-img-container {
    width: 100%;
    height: 320px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: #eee;
}

.director-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-info h3 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.director-title {
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.director-bio {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.director-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.director-meta-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================================================
   10. INSTITUTIONAL FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-accent);
    color: var(--text-light);
    padding: 80px 0 40px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 48px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li strong {
    color: var(--text-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

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

/* ==========================================================================
   11. ACCESSIBILITY & UTILITIES
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: var(--color-secondary);
    color: var(--text-light);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-4px);
}

/* ==========================================================================
   12. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-normal);
    }
    
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-desc {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }
    
    .director-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .director-img-container {
        height: 280px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
