@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #04060d;
    --bg-card: rgba(8, 12, 24, 0.85);
    --border-card: rgba(0, 210, 255, 0.08);
    --accent-blue: #0055ff;
    --accent-cyan: #00d2ff;
    --text-primary: #f8fafc;
    --text-secondary: #8a9fb4;
    --text-glow: 0 0 10px rgba(0, 210, 255, 0.25);
    --card-glow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: 215px;
    letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
    body {
        padding-top: 340px;
    }
}

/* Background watermark using ECE Logo */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('assets/ece-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.02;
    pointer-events: none;
    z-index: -2;
    filter: blur(3px);
}

/* 3D WebGL Canvas Background Styling */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    background: radial-gradient(circle at center, #080d1a 0%, #030509 100%);
    pointer-events: none;
}

/* Header & Navigation Styles */
header {
    background: rgba(5, 8, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 100%;
    padding: 0.75rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Bigger VSB Logo / Banner */
.vsb-logo {
    height: 130px; 
    max-height: 130px;
    transition: all 0.3s ease;
}

.college-title {
    font-family: 'Outfit', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.college-title h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.college-subtitle {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-top: 0.2rem;
    letter-spacing: 0.4px;
}

.college-details-line {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.1rem;
    letter-spacing: 0.2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dept-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    box-shadow: var(--text-glow);
}

.dept-badge img {
    height: 22px;
}

.btn-admin {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--text-glow);
    background: rgba(0, 210, 255, 0.05);
}

/* Sticky Secondary Sub-nav */
.sub-nav {
    background: rgba(8, 12, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.08);
    position: fixed;
    top: 155px;
    left: 0;
    width: 100%;
    z-index: 99;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), top 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-nav.header-hidden {
    transform: translateY(-235px);
}

@media (max-width: 1024px) {
    .sub-nav {
        top: 280px;
    }
    .sub-nav.header-hidden {
        transform: translateY(-365px);
    }
}

.nav-links {
    max-width: max-content;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    padding: 0 1rem;
    overflow-x: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1200px) {
    .nav-links {
        justify-content: flex-start !important;
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-bottom: 0.25rem;
    }
}

.nav-links::-webkit-scrollbar {
    display: none; 
}

.nav-links li a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    text-shadow: var(--text-glow);
}

/* Main Hero Section */
.hero {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    height: 160px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.5));
    animation: floating3D 4s ease-in-out infinite;
}

.hero h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #d2f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Page Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-cyan), transparent);
}

/* 3D Tilt Card Base with Easing curves for buttery smooth movements */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease, border-color 0.6s ease;
}

/* Department Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .info-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--card-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.vision-mission {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vm-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.vm-box h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-cyan);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vm-box ul {
    list-style: none;
}

.vm-box ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.vm-box ul li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* Tabs & Tables Styles */
.details-tabs {
    margin-top: 4rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Premium Table Styling */
.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-glow);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) rgba(255,255,255,0.05);
}

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

th {
    padding: 1rem 1.25rem;
    background: rgba(0, 102, 255, 0.15);
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(0, 210, 255, 0.2);
}

td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

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

tr:hover td {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

/* Intake cards styling */
.intake-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .intake-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.intake-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.intake-card h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 0.75rem;
}

.intake-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Events Section Grid */
.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--card-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.event-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.event-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-primary {
    background: var(--accent-cyan);
    color: #04060d;
    border: 1px solid var(--accent-cyan);
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.35);
    transform: translateY(-2px);
}

/* Event File (Download Panel) */
.download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    gap: 1rem;
}

#downloads-topics-grid .download-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#downloads-topics-grid .download-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
    transform: translateY(-4px) scale(1.02);
    background: rgba(0, 210, 255, 0.05);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-grow: 1;
}

.file-icon {
    font-size: 2.2rem;
}

.file-details h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.file-details p {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.btn-download {
    background: transparent;
    border: 1.5px solid var(--accent-cyan);
    color: var(--accent-cyan);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
    flex-shrink: 0;
}

.btn-download:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: var(--text-glow);
}

/* HOD Section Styling */
.hod-container {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: var(--card-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .hod-container {
        flex-direction: row;
        align-items: center;
    }
}

.hod-profile-wrapper {
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;
}

.hod-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--accent-cyan);
    object-fit: cover;
    box-shadow: var(--text-glow);
}

.hod-details {
    flex-grow: 1;
}

.hod-details h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.hod-title {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hod-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.hod-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 500px) {
    .hod-meta {
        grid-template-columns: 1fr 1fr;
    }
}

.meta-item h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.meta-item p {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Student Coordinators Styles */
.coordinators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 480px) {
    .coordinators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .coordinators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .coordinators-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.coord-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--card-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.coord-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    box-shadow: var(--text-glow);
}

.coord-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.coord-role {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.coord-year {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Modals & Popups styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 14, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #090e1a;
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 0 35px rgba(0, 210, 255, 0.35);
}

#clubPortalModal .modal-content {
    max-width: 850px;
    padding: 2rem 2.5rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-cyan);
}

.modal-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   ADMIN MODE STYLES
   ========================================================================== */

/* Floating Admin Controls Panel style */
.admin-controls-panel {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(500px);
    background: rgba(8, 12, 23, 0.95);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 5px 30px rgba(0, 210, 255, 0.4);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-controls-panel.active {
    transform: translateX(-50%) translateY(0);
}

.admin-badge-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: adminPulse 3s infinite;
}

.admin-actions-btns {
    display: flex;
    gap: 0.75rem;
}

.btn-save-changes {
    background: #00d2ff;
    color: #05070e;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-changes:hover {
    background: #fff;
    box-shadow: var(--text-glow);
}

.btn-admin-logout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin-logout:hover {
    background: #ef4444;
    color: #fff;
}

/* Editability indicator styles when admin mode active */
body.admin-mode [contenteditable="true"] {
    border: 1px dashed rgba(0, 210, 255, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: text;
    transition: all 0.3s ease;
}

body.admin-mode [contenteditable="true"]:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.05);
}

body.admin-mode [contenteditable="true"]:focus {
    outline: none;
    border-color: var(--accent-cyan);
    border-style: solid;
    background: rgba(0, 210, 255, 0.1);
    box-shadow: var(--text-glow);
}

@keyframes adminPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */

/* Tablet & Smaller Screens (max-width: 1024px) */
@media (max-width: 1024px) {
    .header-container {
        padding: 1rem;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 0.75rem;
    }

    .vsb-logo {
        height: 80px;
    }

    .college-title h1 {
        font-size: 1.35rem;
    }

    .hero h2 {
        font-size: 2.75rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .coordinators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Phones (max-width: 600px) */
@media (max-width: 600px) {
    body {
        padding-top: 0 !important;
    }

    header {
        height: auto !important;
        padding: 0.25rem 0 !important;
    }

    .header-container {
        padding: 0.25rem 0.75rem !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
    }

    .logo-section {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: left !important;
    }

    .vsb-logo {
        height: 34px !important;
    }

    .vsb-trust-logo {
        display: none !important; /* Hide trust logo on mobile to save vertical space */
    }

    .college-title {
        text-align: left !important;
    }

    .college-title h1 {
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .college-subtitle,
    .college-details-line {
        display: none !important; /* Hide academic lines on mobile for compact bar view */
    }

    .header-actions {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-top: 0.15rem !important;
    }

    .dept-badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
        width: auto !important;
        margin: 0 !important;
    }

    .dept-badge img {
        height: 12px !important;
        width: 12px !important;
    }

    .btn-admin {
        width: auto !important;
        padding: 0.25rem 0.6rem !important;
        font-size: 0.7rem !important;
        margin: 0 !important;
    }

    .sub-nav {
        top: 86px !important; /* Position right below compact header bar */
        background: rgba(8, 12, 23, 0.98) !important;
        border-radius: 0 !important;
    }

    .sub-nav.header-hidden {
        transform: translateY(-120px) !important;
    }

    .nav-links {
        padding: 0 0.5rem !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .nav-links li a {
        padding: 0.8rem 1.1rem !important;
        font-size: 0.75rem !important;
        letter-spacing: 0.3px !important;
        white-space: nowrap !important;
    }

    .hero {
        padding: 5rem 1rem;
    }

    .hero-logo {
        height: 120px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .vm-box {
        padding: 1.5rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .table-container {
        padding: 0.5rem;
    }

    td, th {
        padding: 0.75rem 0.85rem;
        font-size: 0.8rem;
    }

    .download-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .file-info {
        gap: 1rem;
    }

    .btn-download {
        width: 100%;
        height: 40px;
        border-radius: 8px;
    }

    .hod-container {
        padding: 1.75rem;
        gap: 2rem;
        text-align: center;
    }

    .hod-photo {
        width: 150px;
        height: 150px;
    }

    .hod-details h3 {
        font-size: 1.6rem;
    }

    .hod-meta {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: left;
    }

    .coordinators-grid {
        grid-template-columns: 1fr;
    }

    .admin-controls-panel {
        width: 90%;
        flex-direction: column;
        border-radius: 16px;
        padding: 1rem;
        gap: 1rem;
    }

    .admin-actions-btns {
        width: 100%;
    }

    .btn-save-changes, .btn-admin-logout {
        flex-grow: 1;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
}

/* Event Registration Carousel & 1:1 Poster Styles */
.registration-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.carousel-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.carousel-control:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: var(--text-glow);
}

.poster-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.poster-card-container {
    display: flex;
    width: 100%;
    flex-grow: 1;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.poster-card {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--card-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.poster-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    margin-bottom: 1.5rem;
    background: #060913;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-1to1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.btn-admin-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(8, 12, 23, 0.85);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: none;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10;
}

body.admin-mode .btn-admin-overlay {
    display: block;
}

.btn-admin-overlay:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: var(--text-glow);
}

.poster-details {
    text-align: center;
}

.poster-details h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.poster-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.admin-input-group {
    text-align: left;
}

.admin-text-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--accent-cyan);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.admin-text-field:focus {
    outline: none;
    background: rgba(0, 210, 255, 0.05);
    border-style: solid;
}

/* Admin Profile Avatar Styles in floating console */
.admin-profile-avatar-container {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.admin-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
    box-shadow: var(--text-glow);
}

.btn-avatar-edit {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--accent-blue);
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.55rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: background 0.3s ease;
}

.btn-avatar-edit:hover {
    background: var(--accent-cyan);
}

.btn-admin-only-inline {
    display: none !important;
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--accent-blue);
    border: 1.5px solid #fff;
    color: #fff;
    font-size: 0.65rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    z-index: 10;
    transition: all 0.3s ease;
}

body.admin-mode .btn-admin-only-inline {
    display: flex !important;
}

.btn-admin-only-inline:hover {
    background: var(--accent-cyan);
    transform: scale(1.1);
}

/* VSB Trust Logo styling */
.vsb-trust-logo {
    height: 115px;
    max-height: 115px;
    margin-left: 1.25rem;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .vsb-trust-logo {
        height: 95px;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Certificate Generation Section and Card Styles */
.certificate-container {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.certificate-card {
    background: var(--bg-card);
    border: 2px dashed rgba(0, 210, 255, 0.25);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--card-glow);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.certificate-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 45px rgba(0, 210, 255, 0.25);
    transform: translateY(-5px);
}

.certificate-toy-model {
    border: 3px double rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    background: rgba(5, 7, 14, 0.7);
    margin-bottom: 2rem;
    position: relative;
}

.certificate-toy-model::after {
    content: "TEMPLATE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    letter-spacing: 5px;
}

.cert-college {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.cert-dept {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.cert-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.cert-present {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.cert-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-cyan);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    width: 250px;
    margin: 0 auto 1.5rem;
    padding-bottom: 0.25rem;
}

.cert-achievement {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.5;
}

.cert-badge-gold {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 2.2rem;
}

/* Double HOD Slot grid adjustments */
.hod-list-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.admin-supabase-config {
    display: none !important;
}

.admin-supabase-config.active {
    display: flex !important;
}

.btn-admin-gear {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.btn-admin-gear:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--text-glow);
    transform: rotate(45deg);
}

.event-reg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-cyan);
    color: var(--bg-dark) !important;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    box-shadow: var(--text-glow);
    transition: all 0.3s ease;
    margin-top: 1.25rem;
    border: 1px solid var(--accent-cyan);
    cursor: pointer;
}

.event-reg-link:hover {
    background: transparent;
    color: var(--accent-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floating3D {
    0% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateY(10deg) rotateX(5deg); }
    100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
}

/* Footer & slideInFromLeft Animation */
footer {
    background: #05070e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 0;
    margin-top: 5rem;
    overflow: hidden;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInFromLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Quiz Option Buttons */
.quiz-option-btn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: #060913;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-option-btn:hover:not(:disabled) {
    border-color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.03);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
    transform: translateY(-1px);
}

/* MCQ Proctoring & 16:9 Portal Styles */
.quiz-registration-container {
    background: rgba(10, 15, 30, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(0, 210, 255, 0.3) !important;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.12), inset 0 0 25px rgba(0, 210, 255, 0.05) !important;
}

@media (max-width: 768px) {
    .quiz-registration-container {
        aspect-ratio: auto !important;
        height: auto !important;
        padding: 1.25rem 1rem !important;
    }
}

.proctor-blocker {
    background: rgba(239, 68, 68, 0.05) !important;
    border: 2px dashed rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.15), inset 0 0 20px rgba(239, 68, 68, 0.05) !important;
    backdrop-filter: blur(12px) !important;
}


/* === 15. Scroll Reveal Animations (HackerRank SaaS style) === */
.reveal-item {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }
.reveal-delay-4 { transition-delay: 0.8s; }


/* === 16. Laptop & Notebook Viewport Optimizations === */
@media (min-width: 1024px) and (max-width: 1280px) {
    body {
        padding-top: 195px !important;
    }
    .sub-nav {
        top: 135px !important;
    }
    .vsb-logo {
        height: 100px !important;
        max-height: 100px !important;
    }
    .vsb-trust-logo {
        height: 90px !important;
        max-height: 90px !important;
    }
}


/* === 17. Comprehensive Mobile Viewport Optimizations === */
@media (max-width: 768px) {
    body {
        padding-top: 230px !important;
    }
    
    .sub-nav {
        top: 170px !important;
    }
    
    .sub-nav.header-hidden {
        transform: translateY(-260px) !important;
    }
    
    section {
        padding: 4rem 1.25rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .hero h2 {
        font-size: 2.4rem !important;
        letter-spacing: -0.02em !important;
        line-height: 1.2 !important;
    }
    
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .btn-primary {
        padding: 0.7rem 1.8rem !important;
        font-size: 0.8rem !important;
    }
    
    .header-container {
        padding: 0.5rem 1.5rem !important;
        gap: 0.75rem !important;
        justify-content: center !important;
    }
    
    .logo-section {
        gap: 0.75rem !important;
        justify-content: center !important;
    }
    
    .college-title h1 {
        font-size: 1.15rem !important;
    }
    
    .college-subtitle {
        font-size: 0.65rem !important;
    }
    
    .college-details-line {
        display: none !important;
    }
    
    .vsb-logo {
        height: 50px !important;
    }
    
    .vsb-trust-logo {
        height: 45px !important;
    }
    
    .hod-list-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .hod-container {
        flex-direction: column !important;
        padding: 2.5rem 1.5rem !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .hod-photo {
        width: 150px !important;
        height: 150px !important;
    }
    
    .hod-details h3 {
        font-size: 1.5rem !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .download-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 240px !important;
    }
    
    .sub-nav {
        top: 185px !important;
    }
    
    .hero h2 {
        font-size: 2rem !important;
    }
    
    .college-title h1 {
        font-size: 0.95rem !important;
    }
    
    .college-subtitle {
        font-size: 0.55rem !important;
    }
    
    .vsb-logo {
        height: 40px !important;
    }
    
    .vsb-trust-logo {
        height: 35px !important;
    }
}



