/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size - all other sizes will be relative to this */
}

/* Responsive font sizing based on viewport */
@media (max-width: 480px) {
    html { font-size: 14px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    html { font-size: 15px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    html { font-size: 16px; }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    html { font-size: 17px; }
}

@media (min-width: 1441px) {
    html { font-size: 18px; }
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1);
    
    /* Responsive spacing system using rem */
    --spacing-xs: 0.25rem;    /* 4px at base */
    --spacing-sm: 0.5rem;     /* 8px at base */
    --spacing-md: 1rem;       /* 16px at base */
    --spacing-lg: 1.5rem;     /* 24px at base */
    --spacing-xl: 2rem;       /* 32px at base */
    --spacing-2xl: 3rem;      /* 48px at base */
    --spacing-3xl: 4rem;      /* 64px at base */
    
    /* Responsive font sizes using clamp() for viewport scaling */
    --font-xs: clamp(0.7rem, 2.5vw, 0.75rem);       /* 11-12px responsive */
    --font-sm: clamp(0.8rem, 2.8vw, 0.875rem);      /* 13-14px responsive */
    --font-base: clamp(0.9rem, 3vw, 1rem);          /* 14-16px responsive */
    --font-lg: clamp(1rem, 3.5vw, 1.125rem);        /* 16-18px responsive */
    --font-xl: clamp(1.1rem, 4vw, 1.25rem);         /* 18-20px responsive */
    --font-2xl: clamp(1.3rem, 4.5vw, 1.5rem);       /* 21-24px responsive */
    --font-3xl: clamp(1.6rem, 5.5vw, 1.875rem);     /* 26-30px responsive */
    --font-4xl: clamp(2rem, 6.5vw, 2.25rem);        /* 32-36px responsive */
    --font-5xl: clamp(2.5rem, 8vw, 3rem);           /* 40-48px responsive */
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #374151;
    --border-color: #4b5563;
    --shadow: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
    font-size: var(--font-base);
}

.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.book-loader {
    text-align: center;
    color: white;
}

.book {
    position: relative;
    width: 80px;
    height: 100px;
    margin: 0 auto 20px;
    transform-style: preserve-3d;
    animation: bookRotate 3s infinite linear;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page1 {
    transform: rotateY(0deg) translateZ(2px);
    animation: pageFlip1 3s infinite;
}

.page2 {
    transform: rotateY(0deg) translateZ(1px);
    animation: pageFlip2 3s infinite;
}

.page3 {
    transform: rotateY(0deg) translateZ(0px);
    animation: pageFlip3 3s infinite;
}

@keyframes bookRotate {
    0%, 100% { transform: rotateY(-20deg) rotateX(10deg); }
    50% { transform: rotateY(20deg) rotateX(-10deg); }
}

@keyframes pageFlip1 {
    0%, 20% { transform: rotateY(0deg) translateZ(2px); }
    40%, 60% { transform: rotateY(-180deg) translateZ(2px); }
    80%, 100% { transform: rotateY(0deg) translateZ(2px); }
}

@keyframes pageFlip2 {
    20%, 40% { transform: rotateY(0deg) translateZ(1px); }
    60%, 80% { transform: rotateY(-180deg) translateZ(1px); }
    0%, 20%, 80%, 100% { transform: rotateY(0deg) translateZ(1px); }
}

@keyframes pageFlip3 {
    40%, 60% { transform: rotateY(0deg) translateZ(0px); }
    80%, 100% { transform: rotateY(-180deg) translateZ(0px); }
    0%, 40% { transform: rotateY(0deg) translateZ(0px); }
}

/* Login Page */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.login-container {
    background: var(--bg-card);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(99, 102, 241, 0.3);
    text-align: center;
    min-width: 320px;
    max-width: 380px;
    width: 90%;
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-container:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(99, 102, 241, 0.4);
}

.login-container h1 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.login-form input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 0.0938rem solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: scale(1.01);
    box-shadow: 0 0 0 0.1875rem rgba(99, 102, 241, 0.1);
}

.login-form button {
    width: 100%;
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-xs);
}

.login-form button:hover {
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.75rem rgba(99, 102, 241, 0.4);
}

.error-message {
    color: #ef4444;
    margin-top: var(--spacing-xs);
    font-size: var(--font-xs);
    font-weight: 500;
}

/* Navigation */
.navbar {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(0.625rem);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.375rem; /* 70px */
    position: relative;
}

@media (max-width: 768px) {
    .nav-container {
        height: 3.75rem; /* 60px on mobile */
        padding: 0 var(--spacing-sm);
    }
}

.nav-logo h1 {
    color: var(--primary-color);
    font-size: var(--font-2xl);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-logo h1 {
        font-size: var(--font-xl);
    }
}

.nav-logo h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 1.25rem rgba(99, 102, 241, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 3.75rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 3.75rem);
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        padding-top: var(--spacing-2xl);
        gap: var(--spacing-xl);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-base);
    transition: all 0.3s ease;
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--spacing-sm);
    display: block;
}

@media (max-width: 768px) {
    .nav-menu a {
        font-size: var(--font-lg);
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.nav-menu a.active::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-xs);
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: auto;
    height: auto;
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 0.2rem;
    background: var(--text-primary);
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}

.mobile-menu-toggle:hover span {
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.35rem, 0.35rem);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-1.2rem);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.35rem, -0.35rem);
}

/* Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Login Toggle Button */
.login-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.5rem rgba(99, 102, 241, 0.3);
}

.login-toggle:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.9375rem rgba(99, 102, 241, 0.4);
}

.login-toggle.logged-in {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.theme-toggle button {
    background: var(--bg-secondary);
    border: 0.125rem solid var(--border-color);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    font-size: var(--font-base);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle button:hover {
    transform: rotate(180deg) scale(1.1);
}

/* Main Content */
.main-site {
    margin-top: var(--navbar-height);
}

.section {
    display: none;
    min-height: calc(100vh - var(--navbar-height));
    padding: var(--spacing-xl) var(--spacing-lg);
}

.section.active {
    display: block;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(99,102,241,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease, gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 10px;
    filter: blur(20px);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.05); }
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both, subtitleGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes subtitleGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(107, 114, 128, 0.3); }
    50% { text-shadow: 0 0 20px rgba(107, 114, 128, 0.5); }
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary, .btn-secondary {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--border-radius-large);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 0.25rem 0.9375rem rgba(99, 102, 241, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 0.125rem solid var(--primary-color);
    backdrop-filter: blur(10px);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::after {
    opacity: 0.1;
}

.btn-secondary:hover {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(99, 102, 241, 0.2);
}

/* Hero Animation */
.hero-animation {
    flex: 1;
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.floating-cube, .floating-sphere {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.3),
        0 0 50px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

.floating-cube {
    width: 100px;
    height: 100px;
    top: 100px;
    right: 100px;
    animation-delay: 0s;
    transform-style: preserve-3d;
}

.floating-cube::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 22px;
    z-index: -1;
    animation: rotate3d 10s linear infinite;
}

.floating-sphere {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 300px;
    right: 200px;
    animation-delay: 3s;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), var(--secondary-color));
}

.floating-sphere::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: sparkle 2s ease-in-out infinite;
}

/* Add more floating elements */
.hero-animation::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 50px;
    right: 300px;
    animation: float 8s ease-in-out infinite, morph 6s ease-in-out infinite;
    opacity: 0.8;
}

.hero-animation::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    border-radius: 50%;
    top: 200px;
    right: 50px;
    animation: float 5s ease-in-out infinite 1s, spin 4s linear infinite;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    33% { 
        transform: translateY(-20px) rotate(120deg) scale(1.1); 
    }
    66% { 
        transform: translateY(-10px) rotate(240deg) scale(0.9); 
    }
}

@keyframes rotate3d {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(90deg) rotateY(90deg); }
    50% { transform: rotateX(180deg) rotateY(180deg); }
    75% { transform: rotateX(270deg) rotateY(270deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add particle effects */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 15s linear infinite;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Glowing orbs */
.hero-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation: glow 8s ease-in-out infinite;
    z-index: 0;
}

.hero-glow:nth-child(2) {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.hero-glow:nth-child(3) {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    top: 30%;
    right: 40%;
    animation-delay: 4s;
    animation-duration: 10s;
}

@keyframes glow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.6;
    }
}

/* Text shimmer effect */
.hero-title.shimmer {
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--secondary-color) 25%,
        var(--accent-color) 50%,
        var(--secondary-color) 75%,
        var(--primary-color) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

/* Course Grid */
.courses-grid, .lab-grid, .code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    perspective: 1000px;
}

.course-card, .lab-card, .code-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    border: 1px solid var(--border-color);
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
}

/* Remove shadows from lab cards */
.lab-card {
    box-shadow: none;
}

.course-card::before, .lab-card::before, .code-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.course-card::after, .lab-card::after, .code-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.course-card:hover::before, .lab-card:hover::before, .code-card:hover::before {
    left: 100%;
}

.course-card:hover::after, .lab-card:hover::after, .code-card:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.course-card:hover, .lab-card:hover, .code-card:hover {
    transform: translateY(-20px) rotateX(10deg) rotateY(5deg) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Remove hover shadows from lab cards */
.lab-card:hover {
    box-shadow: none;
    border-color: var(--border-color);
}

.course-card:active, .lab-card:active, .code-card:active {
    transform: translateY(-15px) rotateX(8deg) rotateY(3deg) scale(1.02);
    transition: all 0.2s ease;
}

.course-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.course-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.4s ease;
    z-index: 1;
    opacity: 0;
}

.course-card:hover .course-glow {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

/* Individual course card colors */
.course-card:nth-child(1) {
    --card-color: #ef4444;
}

.course-card:nth-child(2) {
    --card-color: #3b82f6;
}

.course-card:nth-child(3) {
    --card-color: #10b981;
}

.course-card:nth-child(4) {
    --card-color: #8b5cf6;
}

.course-card:nth-child(5) {
    --card-color: #f59e0b;
}

.course-card:nth-child(6) {
    --card-color: #06b6d4;
}

.course-card:nth-child(1):hover {
    box-shadow: 0 25px 50px rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.3);
}

.course-card:nth-child(2):hover {
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.course-card:nth-child(3):hover {
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.3);
}

.course-card:nth-child(4):hover {
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.course-card:nth-child(5):hover {
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.3);
}

.course-card:nth-child(6):hover {
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.3);
}

.course-icon, .lab-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.course-card:hover .course-icon, .lab-card:hover .lab-icon {
    transform: translateY(-10px) rotateY(15deg) scale(1.2);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.course-card h3, .lab-card h3, .code-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-card:hover h3, .lab-card:hover h3, .code-card:hover h3 {
    transform: translateZ(20px);
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.course-card p, .lab-card p, .code-card p {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.course-card:hover p, .lab-card:hover p, .code-card:hover p {
    transform: translateZ(15px);
    color: var(--text-primary);
}

.view-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

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

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info h3, .contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: var(--spacing-md);
    border: 0.125rem solid var(--border-color);
    border-radius: var(--border-radius-large);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--font-base);
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.contact-form button {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius-large);
    font-size: var(--font-base);
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.3125rem 0.9375rem rgba(99, 102, 241, 0.3);
}

/* About Section */
.about-content {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}

/* Contact Form Extras */
.form-success {
    display: none;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: #d4edda;
    border: 0.0625rem solid #c3e6cb;
    border-radius: var(--border-radius);
    color: #155724;
    text-align: center;
}

.contact-alternatives {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #fff3cd, #f8d7da);
    border-radius: var(--border-radius);
    text-align: center;
    border: 0.0625rem solid #ffeaa7;
}

.contact-alternatives-title {
    font-size: var(--font-sm);
    color: #721c24;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.contact-btn {
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--spacing-xs);
    font-size: var(--font-xs);
    border: none;
    cursor: pointer;
}

.contact-btn.gmail {
    background: #dd4b39;
    color: white;
}

.contact-btn.email {
    background: #0078d4;
    color: white;
}

.contact-btn.copy {
    background: #28a745;
    color: white;
}

.contact-email-display {
    font-size: var(--font-xs);
    color: #721c24;
    margin-top: var(--spacing-xs);
    font-weight: bold;
}

.hidden-input {
    display: none !important;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

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

.feature {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
    perspective: 1200px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 3% auto;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.05), 
        rgba(139, 92, 246, 0.05),
        rgba(6, 182, 212, 0.05));
    border-radius: 20px;
    z-index: -1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100px) rotateX(-15deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.close:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: rotateZ(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.close:active {
    transform: rotateZ(90deg) scale(0.95);
}

.modal-body {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: var(--font-sm);
        overflow-x: hidden;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
        height: calc(var(--navbar-height) - 0.625rem);
    }
    
    .nav-logo h1 {
        font-size: var(--font-lg);
    }
    
    .nav-controls {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        order: 1;
        flex-shrink: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: calc(var(--navbar-height) - 0.625rem);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height) + 0.625rem);
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: var(--spacing-xl);
        gap: var(--spacing-md);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(1.25rem);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 90%;
        text-align: center;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 12px;
        background: rgba(99, 102, 241, 0.05);
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
        display: block;
    }
    
    .nav-menu a:hover {
        background: rgba(99, 102, 241, 0.15);
        transform: scale(1.02);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .login-toggle {
        padding: 8px 12px !important;
        font-size: 11px !important;
        border-radius: 15px !important;
        min-width: 70px;
        white-space: nowrap;
    }
    
    .theme-toggle button {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        border-radius: 50% !important;
        min-width: 32px;
        flex-shrink: 0;
    }
    
    /* Main content adjustments */
    .main-site {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
        overflow-x: hidden;
    }
    
    /* Section adjustments for mobile */
    .section {
        padding: 20px 10px;
        min-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 30px 15px;
        min-height: calc(100vh - 60px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero::before {
        opacity: 0.1;
    }
    
    .hero-glow {
        width: 100px !important;
        height: 100px !important;
        opacity: 0.3;
    }
    
    .particles {
        display: none; /* Disable particles on mobile for performance */
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-title::after {
        display: none; /* Disable glow effect on mobile */
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Course and lab cards mobile */
    .course-grid, .lab-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .course-card, .lab-card {
        margin: 0 !important;
        padding: 20px !important;
    }
    
    /* Content containers */
    #theoryContent, #labContent, #mincodeContent {
        padding: 15px;
        overflow-y: auto;
        max-height: calc(100vh - 120px);
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile scrolling fix */
    html, body {
        overflow-x: hidden;
        position: relative;
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

.hero {
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

    .hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 140px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .courses-grid, .lab-grid, .code-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card, .lab-card, .code-card {
        padding: 20px;
        margin: 0 10px;
    }

    .floating-cube, .floating-sphere {
        display: none;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .login-container {
        min-width: 90%;
        margin: 0 20px;
        padding: 30px 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px 15px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-text h3 {
        font-size: 28px;
    }
    
    .about-text p {
        font-size: 16px;
    }
    
    /* Touch-friendly interactions */
    .course-card:active, .lab-card:active, .code-card:active {
        transform: scale(0.98);
    }
    
    .btn-primary:active, .btn-secondary:active {
        transform: scale(0.95);
    }
    
    /* Improve touch targets */
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-toggle button {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

/* Additional mobile fixes */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
        height: 55px;
    }
    
    .nav-logo h1 {
        font-size: 16px;
    }
    
    .main-site {
        margin-top: 55px;
    }
    
    .nav-menu {
        top: 55px;
        height: calc(100vh - 55px);
    }
    
    .login-toggle {
        padding: 6px 10px !important;
        font-size: 10px !important;
        min-width: 60px;
    }
    
    .theme-toggle button {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    
    .section {
        padding: 15px 8px;
        min-height: calc(100vh - 55px);
    }
    
    .hero {
        padding: 20px 10px;
        min-height: calc(100vh - 55px);
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    #theoryContent, #labContent, #mincodeContent {
        padding: 10px;
        max-height: calc(100vh - 100px);
    }
    
    .course-card, .lab-card {
        padding: 15px !important;
        margin: 10px 0 !important;
    }
    
    /* Mobile login page adjustments */
    .login-container {
        min-width: 280px;
        max-width: 320px;
        padding: 20px 25px;
        margin: 10px;
    }
    
    .login-container h1 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .login-form input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .login-form button {
        padding: 10px;
        font-size: 13px;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .login-toggle, .theme-toggle button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-primary, .btn-secondary {
        min-height: 48px;
        padding: 14px 24px;
    }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .courses-grid, .lab-grid, .code-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 72px;
    }
    
    .courses-grid, .lab-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .code-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Home Page Inline Sections */
.home-section-divider {
    margin: 80px 0;
    padding: 60px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.home-section-divider:nth-child(even) {
    background: var(--bg-primary);
}

/* 3D Container Effects */
.home-section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

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

.home-about-section,
.home-contact-section {
    max-width: 1200px;
    margin: 0 auto;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Enhanced Features Grid with 3D Effects */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    perspective: 1200px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* 3D Hover Effects for Features */
.feature:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin-bottom: 10px;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
}

.feature:hover .feature-icon {
    transform: translateZ(20px) rotateY(360deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.feature-content {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.feature:hover .feature-content {
    transform: translateZ(10px);
}

.feature-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature:hover .feature-content h4 {
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Enhanced Contact Section with 3D Effects */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    margin-top: 40px;
    perspective: 1200px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform-style: preserve-3d;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* 3D Contact Item Effects */
.contact-item:hover {
    transform: translateX(15px) translateY(-10px) rotateY(5deg) scale(1.05);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(8, 145, 178, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #0891b2);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
}

.contact-item:hover .contact-icon {
    transform: translateZ(15px) rotateZ(360deg);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
}

.contact-details {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-details {
    transform: translateZ(8px);
}

.contact-details strong {
    display: block;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-details strong {
    color: var(--accent-color);
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
}

/* Enhanced Contact Form with 3D Effects */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.contact-form:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 40px 80px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form:hover::before {
    opacity: 1;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    transform-style: preserve-3d;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 10px 20px rgba(99, 102, 241, 0.1);
    background: var(--bg-primary);
    transform: translateY(-2px) scale(1.02);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

/* Form Status Messages */
.form-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-status.show {
    opacity: 1;
    transform: translateY(0);
}

.form-status.success {
    background: linear-gradient(135deg, #10b981, #059669);
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-status.loading {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

[data-theme="dark"] .form-status.success {
    background-color: #064e3b;
    color: #a7f3d0;
    border-color: #065f46;
}

[data-theme="dark"] .form-status.error {
    background-color: #7f1d1d;
    color: #fecaca;
    border-color: #991b1b;
}

[data-theme="dark"] .form-status.loading {
    background-color: #1e3a8a;
    color: #93c5fd;
    border-color: #1e40af;
}

/* Responsive Design for Home Sections */
@media (max-width: 768px) {
    .home-section-divider {
        margin: 40px 0;
        padding: 40px 0;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
}

/* Animation enhancements for new sections */
.home-about-section,
.home-contact-section {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Advanced 3D Floating Effects */
.feature:nth-child(1) {
    animation: float1 6s ease-in-out infinite;
}

.feature:nth-child(2) {
    animation: float2 6s ease-in-out infinite 0.5s;
}

.feature:nth-child(3) {
    animation: float3 6s ease-in-out infinite 1s;
}

@keyframes float1 {
    0%, 100% { transform: perspective(1000px) translateY(0px) rotateX(0deg); }
    50% { transform: perspective(1000px) translateY(-10px) rotateX(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: perspective(1000px) translateY(0px) rotateY(0deg); }
    50% { transform: perspective(1000px) translateY(-15px) rotateY(1deg); }
}

@keyframes float3 {
    0%, 100% { transform: perspective(1000px) translateY(0px) rotateZ(0deg); }
    50% { transform: perspective(1000px) translateY(-8px) rotateZ(0.5deg); }
}

/* Contact items floating animation */
.contact-item:nth-child(1) {
    animation: contactFloat1 4s ease-in-out infinite;
}

.contact-item:nth-child(2) {
    animation: contactFloat2 4s ease-in-out infinite 0.7s;
}

.contact-item:nth-child(3) {
    animation: contactFloat3 4s ease-in-out infinite 1.4s;
}

@keyframes contactFloat1 {
    0%, 100% { transform: perspective(1000px) translateY(0px) translateX(0px); }
    50% { transform: perspective(1000px) translateY(-5px) translateX(2px); }
}

@keyframes contactFloat2 {
    0%, 100% { transform: perspective(1000px) translateY(0px) translateX(0px); }
    50% { transform: perspective(1000px) translateY(-8px) translateX(-2px); }
}

@keyframes contactFloat3 {
    0%, 100% { transform: perspective(1000px) translateY(0px) translateX(0px); }
    50% { transform: perspective(1000px) translateY(-6px) translateX(3px); }
}

/* Section title 3D effects */
.section-title.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.section-title.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 2px;
    left: 2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    transform: translateZ(-10px);
}

/* Advanced parallax scrolling effect */
.home-section-divider {
    transform-style: preserve-3d;
}

/* 3D Tilt effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .home-about-section {
        transition: transform 0.1s ease-out;
    }
    
    .home-contact-section {
        transition: transform 0.1s ease-out;
    }
}

/* Gradient text enhancement */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
}

/* Holographic effect for feature icons */
.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.6s ease;
}

.feature:hover .feature-icon::after {
    opacity: 1;
    transform: translateX(100%);
}

/* Contact form field focus 3D effect */
.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px) scale(1.02) perspective(1000px) rotateX(1deg);
}

/* Button press effect */
.contact-form button:active {
    transform: translateY(0px) scale(0.98);
    transition: all 0.1s ease;
}

/* Loading pulse effect for sections */
.home-section-divider {
    position: relative;
}

.home-section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse3D 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse3D {
    0%, 100% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    50% {
        width: 200px;
        height: 200px;
        opacity: 1;
    }
}

/* Entrance animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: perspective(1000px) translateY(50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) translateY(0px) rotateX(0deg);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    /* Reduce 3D effects on mobile for better performance */
    .feature:hover,
    .contact-item:hover,
    .contact-form:hover {
        transform: translateY(-5px) scale(1.02) !important;
    }
    
    .feature-icon:hover {
        transform: scale(1.1) !important;
    }
    
    .contact-icon:hover {
        transform: scale(1.1) !important;
    }
}

/* Modal Top Actions */
.modal-top-actions {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.view-all-pdfs-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transform-style: preserve-3d;
}

.view-all-pdfs-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.view-all-pdfs-btn .btn-icon {
    font-size: 20px;
}

/* Unit Header PDF Button */
.unit-pdf-btn, .exercise-pdf-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.unit-pdf-btn:hover, .exercise-pdf-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.unit-pdf-btn .btn-icon, .exercise-pdf-btn .btn-icon {
    font-size: 16px;
}

/* Updated Unit Header to accommodate new button */
.unit-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.unit-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

/* Exercise Header PDF Button */
.exercise-header {
    background: linear-gradient(135deg, var(--accent-color), #0891b2);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.exercise-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

/* Modal slide in animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: var(--font-xs);
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    .hero p {
        font-size: var(--font-sm);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 12rem;
        text-align: center;
    }
}

/* Tablet and small desktop responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    
    .container {
        max-width: 90%;
    }
    
    .hero-buttons {
        gap: var(--spacing-lg);
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 80rem;
    }
    
    .hero h1 {
        font-size: clamp(3rem, 5vw, 4rem);
    }
}

/* Document Viewer Modal Styles */
.document-modal {
    z-index: 10000;
}

.document-modal .modal-content {
    width: 95vw;
    height: 95vh;
    max-width: none;
    max-height: none;
    margin: 2.5vh auto;
    padding: 0;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.document-header {
    background: var(--bg-secondary);
    border-bottom: 0.0625rem solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 3.5rem;
}

.document-header h3 {
    color: var(--text-primary);
    font-size: var(--font-lg);
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.document-controls {
    display: flex;
    gap: var(--spacing-sm);
}

.control-btn {
    background: var(--bg-primary);
    border: 0.0625rem solid var(--border-color);
    border-radius: var(--border-radius);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: var(--font-base);
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow);
}

.control-btn.close-btn:hover {
    background: #ef4444;
}

.document-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.document-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.document-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.document-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid var(--border-color);
    border-top: 0.25rem solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.document-loader p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* Responsive adjustments for document viewer */
@media (max-width: 768px) {
    .document-modal .modal-content {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .document-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .document-header h3 {
        font-size: var(--font-base);
    }
    
    .control-btn {
        width: 2rem;
        height: 2rem;
        font-size: var(--font-sm);
    }
}

/* Unit Header Buttons */
.unit-header-buttons {
    display: flex;
    gap: var(--spacing-xs);
}

.unit-doc-btn, .unit-pdf-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-sm);
}

.unit-doc-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-0.125rem);
}

.unit-pdf-btn {
    background: var(--accent-color);
}

.unit-pdf-btn:hover {
    background: #0891b2;
    transform: translateY(-0.125rem);
}

/* Document Box Button */
.doc-box-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-sm);
    font-weight: 500;
}

.doc-box-btn:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(99, 102, 241, 0.4);
}

.doc-box-btn .btn-icon {
    font-size: var(--font-base);
}

/* Update unit actions layout */
.unit-actions-box {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .unit-actions-box {
        flex-direction: column;
    }
    
    .doc-box-btn, .pdf-box-btn {
        width: 100%;
        justify-content: center;
    }
}

/* PDF list item hover effect */
.pdf-list-item {
    transition: all 0.3s ease;
}

.pdf-list-item:hover {
    background: var(--bg-primary) !important;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

/* Remove status styles since we're removing them */
.unit-status, .exercise-status,
.status-indicator, .status-text,
.difficulty-badge {
    display: none !important;
}

/* Enhanced 3D Holographic Effects */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(99, 102, 241, 0.03) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(139, 92, 246, 0.03) 50%, transparent 51%);
    background-size: 40px 40px;
    animation: holographicGrid 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes holographicGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.05) 25%,
        transparent 50%
    );
    animation: holographicPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes holographicPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 0.1;
    }
}
