/* 
========================================================================
   IEEE ITS JSSATEB - OFFICIAL INSTITUTIONAL STYLE SHEET
   Adhering strictly to the IEEE Visual Identity & Brand Guidelines
========================================================================
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* --- Root Theme Variables (IEEE Blue Default - Light Theme Preferred) --- */
:root {
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme Colors (Default: Professional Light Theme) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --card-bg: #ffffff;
    --card-hover-bg: #f8fafc;
    --border-color: #e2e8f0;
    --border-hover: #00629b;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    
    --ieee-blue: #00629b; /* Official IEEE Blue (Pantone 286C) */
    --ieee-blue-hover: #004b78;
    --ieee-blue-glow: rgba(0, 98, 155, 0.15);
    
    --ieee-accent: #00a3e0; /* IEEE Accent Teal/Light Blue */
    --ieee-accent-hover: #0087ba;
    
    --btn-primary-bg: #00629b;
    --btn-primary-hover: #004b78;
    
    --selection-bg: rgba(0, 98, 155, 0.1);
    --scrollbar-thumb: #cbd5e1;
    --scrollbar-bg: #f8fafc;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 98, 155, 0.08), 0 8px 10px -6px rgba(0, 98, 155, 0.04);
    --shadow-lg: 0 20px 40px -8px rgba(0, 98, 155, 0.12), 0 15px 15px -10px rgba(0, 98, 155, 0.05);

    /* Animation and Borders Constants */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.3s ease;
}

/* --- Dark Theme Overrides --- */
[data-theme="dark"] {
    --bg-primary: #0b0f17;
    --bg-secondary: #111723;
    --bg-tertiary: #192233;
    
    --card-bg: #111723;
    --card-hover-bg: #161e2e;
    --border-color: #26334d;
    --border-hover: #00a3e0;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    
    --ieee-blue: #007cc2;
    --ieee-blue-hover: #009be3;
    --ieee-blue-glow: rgba(0, 163, 224, 0.2);
    
    --ieee-accent: #00a3e0;
    --ieee-accent-hover: #33b5e6;
    
    --btn-primary-bg: #00629b;
    --btn-primary-hover: #007cc2;
    
    --selection-bg: rgba(0, 163, 224, 0.2);
    --scrollbar-thumb: #1e293b;
    --scrollbar-bg: #0b0f17;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 30px -5px rgba(0,0,0,0.6), 0 4px 10px -2px rgba(0, 163, 224, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.8), 0 10px 20px -5px rgba(0, 163, 224, 0.08);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

::selection {
    background-color: var(--selection-bg);
    color: var(--text-primary);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    transition: color var(--transition-smooth);
}

h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2.25rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; }

p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- General Grid Geometric Decorator --- */
.engineering-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 98, 155, 0.01) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 98, 155, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* --- Announcements / Live News Ticker --- */
.news-ticker-bar {
    background-color: var(--ieee-blue);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0;
    overflow: hidden;
    position: relative;
    z-index: 102;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.news-ticker-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

.news-badge {
    background-color: var(--ieee-accent);
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
}

@keyframes marquee {
    0% { transform: translateX(50%); }
    100% { transform: translateX(-50%); }
}

/* --- Navigation Header --- */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

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

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

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ieee-blue);
    letter-spacing: 0.02em;
    font-family: var(--font-heading);
}

.brand-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.25rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--ieee-blue);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--ieee-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle-btn:hover {
    border-color: var(--ieee-blue);
    background-color: var(--bg-tertiary);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

/* --- Page Heroes & Title Blocks --- */
.page-hero {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ieee-blue);
    margin-bottom: 0.75rem;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 750px;
}

/* --- Institutional Layouts --- */
.main-layout-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 3.5rem;
    padding: 5rem 0;
}

.full-layout-section {
    padding: 5rem 0;
}

/* Card Styling (Crisp, Outlined, Corporate) */
.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.info-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.info-card-icon {
    color: var(--ieee-blue);
    width: 24px;
    height: 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: #ffffff;
    border: 1px solid var(--btn-primary-bg);
}

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

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

.btn-secondary:hover {
    border-color: var(--ieee-blue);
    background-color: var(--bg-tertiary);
}

/* --- Sidebar Panels --- */
.sidebar-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 2px solid var(--ieee-blue);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-list-item {
    font-size: 0.85rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.sidebar-list-item svg {
    color: var(--ieee-blue);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* --- Home: Hero & Introduction --- */
.home-hero {
    padding: 7rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ieee-blue);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--ieee-blue);
}

.hero-title span {
    display: block;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    max-width: 580px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Structured grid outline image container */
.graphic-box {
    width: 100%;
    max-width: 420px;
    height: 380px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-interior {
    width: 100%;
    height: 100%;
    border: 1px dashed var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.graphic-formula {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ieee-blue);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin: 1.5rem 0;
}

.graphic-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-tertiary);
}

/* --- About: Academic Section --- */
.academic-quote {
    border-left: 4px solid var(--ieee-blue);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-primary);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.objective-item {
    display: flex;
    gap: 0.75rem;
}

.objective-bullet {
    width: 24px;
    height: 24px;
    background-color: rgba(0, 98, 155, 0.1);
    color: var(--ieee-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Why Join Table */
.academic-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.academic-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.academic-table th {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.academic-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.academic-table tr:hover {
    background-color: var(--bg-secondary);
}

/* --- Team Roster Layout --- */
.team-hierarchy {
    margin-bottom: 4rem;
}

.team-hierarchy-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
    margin-bottom: 2rem;
}

.roster-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.roster-grid-standard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Academic Profile Card */
.profile-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.25rem;
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.profile-card:hover {
    border-color: var(--ieee-blue);
    box-shadow: var(--shadow-md);
}

.profile-avatar-box {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-avatar-box svg {
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
}

.profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.profile-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ieee-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.profile-dept {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.profile-socials {
    display: flex;
    gap: 0.5rem;
}

.profile-social-link {
    width: 28px;
    height: 28px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.profile-social-link:hover {
    background-color: var(--ieee-blue);
    border-color: var(--ieee-blue);
    color: #ffffff;
}

.profile-social-link svg {
    width: 14px;
    height: 14px;
}

/* --- Events Calendar & Details --- */
.schedule-table-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.schedule-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.schedule-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.schedule-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Timeline Layout */
.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-event-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.75rem 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-event-card:hover {
    border-color: var(--ieee-blue);
    box-shadow: var(--shadow-md);
}

.timeline-meta {
    width: 180px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ieee-blue);
    margin-bottom: 0.25rem;
}

.timeline-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-tertiary);
}

.timeline-event-info {
    flex-grow: 1;
}

.timeline-event-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-event-summary {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.timeline-event-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-bullet-item {
    font-size: 0.8rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.timeline-bullet-item svg {
    color: var(--ieee-accent);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* --- Global Opportunities / Initiatives --- */
.initiative-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.initiative-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.initiative-badge {
    background-color: rgba(0, 98, 155, 0.08);
    border: 1px solid rgba(0, 98, 155, 0.2);
    color: var(--ieee-blue);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Contact & Queries --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-detail-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon-box {
    width: 40px;
    height: 40px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--ieee-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.contact-icon-box svg {
    width: 18px;
    height: 18px;
}

.contact-text-box {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 0.2rem;
}

.contact-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

/* Structured Geometric Form Fields */
.form-field {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.form-input {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.65rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    border-color: var(--ieee-blue);
}

textarea.form-input {
    resize: none;
    min-height: 100px;
}

.form-status {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    display: none;
}
.form-status.success { color: #10b981; display: block; }
.form-status.error { color: #ef4444; display: block; }

/* --- Deep Academic Footer --- */
footer {
    background-color: #0b0f17;
    border-top: 3px solid var(--ieee-blue);
    padding: 4.5rem 0 2rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

footer h1, footer h2, footer h3, footer h4 {
    color: #f8fafc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

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

.footer-desc {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
}

.footer-social-link {
    width: 32px;
    height: 32px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.footer-social-link:hover {
    background-color: var(--ieee-blue);
    border-color: var(--ieee-blue);
    color: #ffffff;
}

.footer-social-link svg {
    width: 14px;
    height: 14px;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.4rem;
}

.footer-col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col-link {
    color: #94a3b8;
}

.footer-col-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy {
    color: #64748b;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-bottom-link {
    color: #64748b;
    font-size: 0.8rem;
}

.footer-bottom-link:hover {
    color: #ffffff;
}

/* --- Registration Modal Dialog --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 23, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
    border-color: var(--ieee-blue);
    color: var(--text-primary);
}

.modal-close-btn svg {
    width: 16px;
    height: 16px;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

/* --- Scroll Reveals --- */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

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

/* --- Responsive Adaptations (Media Queries) --- */

@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    h1 { font-size: 2.25rem; }
    .main-layout-grid { grid-template-columns: 1fr; gap: 3rem; }
    .roster-grid-large { grid-template-columns: 1fr; }
    .roster-grid-standard { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        transition: right var(--transition-smooth);
        z-index: 100;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-actions { margin-right: 2.5rem; }
    
    .home-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .hero-tag, .hero-btns { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .graphic-box { margin-left: auto; margin-right: auto; }
    
    .objectives-grid { grid-template-columns: 1fr; }
    .roster-grid-standard { grid-template-columns: 1fr; }
    .profile-card { flex-direction: column; text-align: center; align-items: center; }
    .profile-socials { justify-content: center; }
    
    .timeline-event-card { flex-direction: column; gap: 1rem; }
    .timeline-meta { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding-right: 0; padding-bottom: 1rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}

/* ========================================================================
   🏆 PREMIUM PORTAL MICRO-ANIMATIONS & INTERACTIONS
   ======================================================================== */

/* 1. Page Fade-In Transition */

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

body {
    animation: pageReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes pageReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Scroll Progress bar indicators (Injected dynamically) */
#scroll-indicator {
    box-shadow: 0 0 10px rgba(0, 163, 224, 0.5);
}

/* 3. Mathematical Formula Decryptor Hover Visuals */
.graphic-formula {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: border-color var(--transition-fast), 
                color var(--transition-fast), 
                transform var(--transition-fast), 
                box-shadow var(--transition-fast);
}

.graphic-formula:hover {
    border-color: var(--ieee-blue);
    color: var(--ieee-blue);
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--ieee-blue-glow);
}

/* 4. Advanced 3D Lifts & Glow shadows for cards */
.info-card, .profile-card, .timeline-event-card, .initiative-card, .contact-form-card, .schedule-table-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.info-card:hover, .profile-card:hover, .timeline-event-card:hover, .contact-form-card:hover, .schedule-table-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), 0 5px 15px rgba(0, 98, 155, 0.05);
}

/* 5. Canvas Hero Layers */
.home-hero {
    overflow: hidden;
    position: relative;
}

.hero-content, .hero-graphic {
    position: relative;
    z-index: 2;
}

/* 6. Timeline Interactive Highlights */
.timeline-event-card .timeline-meta {
    position: relative;
}

.timeline-event-card .timeline-meta::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 2px;
    background-color: transparent;
    transition: background-color var(--transition-smooth);
}

.timeline-event-card:hover .timeline-meta::after {
    background-color: var(--ieee-accent);
}

/* --- Distinctive Visual Roster Tiers & Badges --- */

/* Badge Bases */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.6rem;
    width: fit-content;
}

.role-badge.badge-chair {
    background-color: rgba(212, 175, 55, 0.12); /* Gold tint */
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #bfa128;
}

[data-theme="dark"] .role-badge.badge-chair {
    background-color: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.role-badge.badge-vice {
    background-color: rgba(0, 163, 224, 0.1);
    border: 1px solid rgba(0, 163, 224, 0.25);
    color: var(--ieee-accent);
}

.role-badge.badge-lead {
    background-color: rgba(0, 98, 155, 0.08);
    border: 1px solid rgba(0, 98, 155, 0.2);
    color: var(--ieee-blue);
}

[data-theme="dark"] .role-badge.badge-lead {
    background-color: rgba(0, 163, 224, 0.1);
    border: 1px solid rgba(0, 163, 224, 0.3);
    color: var(--ieee-accent);
}

.role-badge.badge-coord {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.role-badge.badge-creator {
    background-color: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.role-badge.badge-mentor {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Tier 1: Featured Card (Chair / Faculty Advisor) */
.profile-card.featured-chair {
    border: 2px solid var(--ieee-blue);
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    box-shadow: 0 10px 25px -5px rgba(0, 98, 155, 0.12);
}

.profile-card.featured-chair:hover {
    border-color: var(--ieee-accent);
    box-shadow: 0 15px 35px -5px rgba(0, 163, 224, 0.22);
}

.profile-card.featured-chair .profile-avatar-box {
    width: 125px;
    height: 125px;
    border: 2px solid var(--ieee-blue);
}

.profile-card.featured-chair .profile-name {
    font-size: 1.4rem;
}

/* Tier 2: Core ExeCom Card */
.profile-card.featured-execom {
    border-top: 3px solid var(--ieee-blue);
    box-shadow: var(--shadow-md);
}

.profile-card.featured-execom:hover {
    border-color: var(--ieee-accent);
}

/* Tier 3: Subcommittee Member Card */
.profile-card.compact-member {
    padding: 1.35rem;
    gap: 1.15rem;
    background-color: var(--card-bg);
}

.profile-card.compact-member .profile-avatar-box {
    width: 75px;
    height: 75px;
    border-radius: var(--border-radius-sm);
}

.profile-card.compact-member .profile-name {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.profile-card.compact-member .profile-role {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
}

/* Subcommittee Grids */
.roster-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .roster-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .roster-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .profile-card.compact-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* =========================================
   REVAMPED LAYOUT & TEXTURE OVERRIDES
   ========================================= */

/* 1. Global Texture and Glassmorphism for Cards */
.info-card, .profile-card, .timeline-event-card, .initiative-card, .contact-form-card, .schedule-table-card {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .info-card, 
[data-theme="dark"] .profile-card, 
[data-theme="dark"] .timeline-event-card, 
[data-theme="dark"] .initiative-card, 
[data-theme="dark"] .contact-form-card, 
[data-theme="dark"] .schedule-table-card {
    background-color: rgba(17, 23, 35, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 2. Fluid Flexbox Grids for Team Section (Centers odd numbers perfectly) */
.roster-grid-standard,
.roster-grid-large,
.roster-grid-compact {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.roster-grid-compact > * {
    flex: 1 1 300px;
    max-width: 350px;
}

.roster-grid-standard > * {
    flex: 1 1 320px;
    max-width: 400px;
}

/* Override fixed width for TIER 3 items */
.featured-execom {
    flex: 1 1 250px;
    max-width: 300px;
}
