/* 
 * Deepak Vaid - Portfolio
 * Main Stylesheet
 */

/* ====== BASE STYLES ====== */
:root {
    /* Light Theme Colors */
    --primary-color-light: #1e293b;
    --secondary-color-light: #3b82f6;
    --accent-color-light: #6366f1;
    --bg-color-light: #ffffff;
    --text-color-light: #1e293b;
    --text-light-light: #64748b;
    --card-bg-light: #ffffff;
    --border-light: #e2e8f0;
    
    /* Dark Theme Colors */
    --primary-color-dark: #1a1f37;
    --secondary-color-dark: #4F7EFF;
    --accent-color-dark: #6366F1;
    --bg-color-dark: linear-gradient(135deg, #1a1f37 0%, #0f1629 30%, #0f1629 70%, #1a1f37 100%);
    --text-color-dark: #e2e8f0;
    --text-light-dark: #94a3b8;
    --card-bg-dark: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --border-dark: rgba(255, 255, 255, 0.1);
    
    /* Default to light theme */
    --primary-color: var(--primary-color-light);
    --secondary-color: var(--secondary-color-light);
    --accent-color: var(--accent-color-light);
    --bg-color: var(--bg-color-light);
    --text-color: var(--text-color-light);
    --text-light: var(--text-light-light);
    --card-bg: var(--card-bg-light);
    --border-color: var(--border-light);
    
    /* Shared colors */
    --light-color: #F8FAFC;
    --dark-color: #0f1629;
    --quantum-color-1: #8B5CF6;
    --quantum-color-2: #10B981;
    --quantum-color-3: #F59E0B;
    
    /* Fonts */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
    
    /* Spacing */
    --section-spacing: 40px;
    --element-spacing: 20px;
    --card-padding: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-color);
    min-height: 100vh;
    transition: all 0.3s ease;
}

body.dark-theme {
    background: var(--bg-color-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-spacing) 0;
}

.section-alt {
    background: linear-gradient(135deg, rgba(26, 31, 55, 0.8) 0%, rgba(15, 22, 41, 0.9) 100%);
}

.section-subtle {
    background: linear-gradient(135deg, rgba(26, 31, 55, 0.6) 0%, rgba(15, 22, 41, 0.7) 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
}

.hero-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.btn-alt:hover {
    background-color: var(--secondary-color);
    color: white;
}

.more-link {
    text-align: center;
    margin-top: 40px;
}

.tag {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Dark theme override */
body.dark-theme {
    --primary-color: var(--primary-color-dark);
    --secondary-color: var(--secondary-color-dark);
    --accent-color: var(--accent-color-dark);
    --bg-color: var(--bg-color-dark);
    --text-color: var(--text-color-dark);
    --text-light: var(--text-light-dark);
    --card-bg: var(--card-bg-dark);
    --border-color: var(--border-dark);
}

/* ====== THEME TOGGLE ====== */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* ====== HEADER & NAVIGATION ====== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 50%, #0a0f1c 100%);
    color: white;
    padding: 20px 0 80px;
    position: relative;
    overflow: hidden;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.logo img {
    height: 48px;
    width: 48px;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 4px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo img:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    text-align: center;
    min-height: 60vh;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.tagline {
    font-size: 1.4rem;
    color: var(--light-color);
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.social-links a {
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.physics-animation {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    perspective: 1000px;
    overflow: hidden;
}

.quantum-particle {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
    box-shadow: 0 0 20px currentColor;
    opacity: 0.8;
}

.quantum-particle:nth-child(1) {
    background-color: var(--quantum-color-1);
    top: 20%;
    left: 15%;
    animation-duration: 4s;
    animation-delay: 0s;
}

.quantum-particle:nth-child(2) {
    background-color: var(--quantum-color-2);
    top: 60%;
    right: 20%;
    animation-duration: 6s;
    animation-delay: 0.5s;
}

.quantum-particle:nth-child(3) {
    background-color: var(--quantum-color-3);
    bottom: 30%;
    left: 25%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.quantum-particle:nth-child(4) {
    background-color: var(--secondary-color);
    top: 40%;
    right: 35%;
    animation-duration: 7s;
    animation-delay: 1.5s;
}

.quantum-particle:nth-child(5) {
    background-color: var(--accent-color);
    bottom: 15%;
    right: 15%;
    animation-duration: 5.5s;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) scale(1.1) rotate(90deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-40px) scale(1.3) rotate(180deg);
        opacity: 1;
        box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    }
    75% {
        transform: translateY(-30px) scale(1.1) rotate(270deg);
        opacity: 0.9;
    }
}

/* ====== ABOUT SECTION ====== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.about-content {
    padding-right: 20px;
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.about-content p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-box {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

body.dark-theme .stat-box {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

body.dark-theme .stat-box:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* ====== RESEARCH SECTION ====== */
.research-areas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.research-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--quantum-color-1), var(--quantum-color-2), var(--quantum-color-3));
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.research-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: block;
    transition: all 0.3s ease;
}

.research-card:hover .research-icon {
    transform: scale(1.1);
    color: white;
}

.research-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.research-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
}

/* ====== PUBLICATIONS SECTION ====== */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.publication {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.publication::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--quantum-color-1));
    opacity: 0.1;
    border-radius: 0 12px 0 50px;
}

.publication:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.publication h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--primary-color);
}

.publication-authors {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.publication-journal {
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 600;
    font-size: 1.1rem;
}

.publication-year {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ====== TEACHING SECTION ====== */
.teaching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.youtube-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.yt-stat {
    text-align: center;
    background: linear-gradient(135deg, #5b7de1, #d0caec);
    color: white;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yt-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.yt-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.yt-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lecture-list {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.lecture-list li {
    border-bottom: 1px solid var(--light-color);
}

.lecture-list li:last-child {
    border-bottom: none;
}

.lecture-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.lecture-list a:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.lecture-title {
    font-weight: 500;
}

.lecture-views {
    color: var(--text-light);
    font-size: 0.9rem;
}

.top-lectures h3 {
    margin-bottom: 20px;
}

/* ====== BLOG SECTION ====== */
.blog-subtitle {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: -30px;
    margin-bottom: 40px;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-post h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-excerpt {
    color: var(--text-color);
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* ====== CODE SECTION ====== */
.github-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.github-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.github-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.github-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.repo-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.repo-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.repo-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.repo-tags {
    margin-bottom: 20px;
}

.repo-link {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--light-color);
    padding-top: 15px;
}

.repo-link i {
    margin-right: 10px;
}

/* ====== CONTACT SECTION ====== */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.7;
    color: var(--text-color);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    color: var(--text-color);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-link:hover::before {
    transform: scaleY(1);
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

body.dark-theme .contact-link {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

body.dark-theme .contact-link:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    min-width: 24px;
    transition: all 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* ====== FOOTER ====== */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 50%, #0a0f1c 100%);
    color: white;
    padding: 40px 0;
}

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

.footer-logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-logo img {
    height: 36px;
    width: 36px;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 4px;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ====== RESPONSIVE STYLES ====== */
@media screen and (max-width: 1024px) {
    .hero {
        padding: 60px 0;
        min-height: 50vh;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-content {
        padding-right: 0;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
        margin: 0 auto;
    }

    .research-areas {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .nav {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 20px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .social-links {
        gap: 20px;
    }

    .social-links a {
        font-size: 1.5rem;
        padding: 12px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-box {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .research-card {
        padding: 30px 25px;
    }

    .research-icon {
        font-size: 3rem;
    }

    .contact-link {
        justify-content: center;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        font-size: 1.3rem;
        padding: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-box {
        padding: 20px 15px;
    }

    .research-card {
        padding: 25px 20px;
    }

    .research-icon {
        font-size: 2.5rem;
    }

    .contact-link {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

/* ====== COURSE DISTRIBUTION VISUALIZATION ====== */
.category-visualization {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.category-chart {
    display: flex;
    height: 300px;
    gap: 1.5rem;
    align-items: flex-end;
}

.chart-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(to top, var(--secondary-color), var(--accent-color));
    border-radius: 6px 6px 0 0;
    transition: height 1s ease, transform 0.3s ease;
    transform-origin: bottom;
}

.chart-item:hover .chart-bar {
    transform: scaleY(1.05);
}

.undergraduate .chart-bar {
    background: linear-gradient(to top, #3b82f6, #6366f1);
}

.foundation .chart-bar {
    background: linear-gradient(to top, #10b981, #14b8a6);
}

.advanced .chart-bar {
    background: linear-gradient(to top, #f59e0b, #f97316);
}

.specialized .chart-bar {
    background: linear-gradient(to top, #8b5cf6, #a855f7);
}

.chart-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

.category-description {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.category-highlights {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.category-highlights li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
}

.category-highlights li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .category-visualization {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .category-chart {
        height: 200px;
    }
}



/* ====== HERO STATISTICS DASHBOARD ====== */
.hero-stats-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--quantum-color-1), var(--quantum-color-2), var(--quantum-color-3));
}

.hero-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.hero-stat-card:hover .stat-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.stat-content .stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
    font-family: var(--heading-font);
}

.stat-content .stat-label {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-description {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    font-style: italic;
}

@media screen and (max-width: 1024px) {
    .hero-stats-dashboard {
        gap: 25px;
        margin-top: 40px;
    }
    
    .hero-stat-card {
        padding: 25px 20px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-content .stat-number {
        font-size: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-stats-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .hero-stat-card {
        padding: 25px;
    }
    
    .stat-icon {
        font-size: 2.8rem;
    }
    
    .stat-content .stat-number {
        font-size: 3.2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-content .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-content .stat-label {
        font-size: 1rem;
    }
    
    .stat-description {
        font-size: 0.85rem;
    }
}

/* ====== COURSE TABLE ====== */
.course-table-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

body.dark-theme .course-table-container {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.table-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.course-table th,
.course-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.course-table th {
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-table tr {
    transition: all 0.3s ease;
}

.course-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.course-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.course-code {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.course-level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-undergraduate {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(34, 197, 94);
}

.level-foundation {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(59, 130, 246);
}

.level-advanced {
    background: rgba(168, 85, 247, 0.2);
    color: rgb(168, 85, 247);
}

.level-specialized {
    background: rgba(245, 158, 11, 0.2);
    color: rgb(245, 158, 11);
}

.course-years {
    font-size: 0.9rem;
    color: var(--text-light);
}

.course-highlight {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: rgb(99, 102, 241);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

@media screen and (max-width: 768px) {
    .course-table-container {
        padding: 20px;
        overflow-x: auto;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: unset;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .course-table {
        min-width: 600px;
    }
    
    .course-table th,
    .course-table td {
        padding: 12px 16px;
    }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== PAGE NAVIGATION ====== */
.page-navigation {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    will-change: transform;
}

body.dark-theme .page-navigation {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-navigation h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
}

.nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.nav-list a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.nav-list a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-list a.active {
    background: var(--secondary-color);
    color: white;
}

@media screen and (max-width: 768px) {
    .page-navigation {
        position: relative;
        top: 0;
        margin: 20px 0;
        padding: 20px;
    }
    
    .nav-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .nav-list a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-list {
        grid-template-columns: 1fr;
    }
}

/* ====== TEACHING INNOVATIONS ====== */
.innovation-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.innovation-category {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.innovation-category h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.innovation-category h3 i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding: 1.5rem 0;
    border-left: 2px solid var(--secondary-color);
    margin-left: 1rem;
}

.timeline-year {
    position: absolute;
    left: -3.5rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    margin-left: 1.5rem;
    padding: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-content p {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.innovation-highlights {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.innovation-highlights li {
    position: relative;
    padding-left: 1.25rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.innovation-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .innovation-categories {
        grid-template-columns: 1fr;
    }

    .timeline-year {
        font-size: 0.8rem;
        left: -3rem;
        padding: 0.2rem 0.5rem;
    }

    .timeline-content {
        margin-left: 1rem;
    }

    .innovation-category {
        padding: 1rem;
    }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.8s ease-out forwards;
}

.section:nth-child(2) {
    animation-delay: 0.2s;
}

.section:nth-child(3) {
    animation-delay: 0.4s;
}

.section:nth-child(4) {
    animation-delay: 0.6s;
}

.section:nth-child(5) {
    animation-delay: 0.8s;
}

.section:nth-child(6) {
    animation-delay: 1s;
}

.section:nth-child(7) {
    animation-delay: 1.2s;
}
