:root {
    /* KTM Model College Palette */
    --primary-dark: #0D47A1;
    --primary-light: #1E88E5;
    --accent-orange: #FF9800;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --background-light: #ffffff;
    --background-dark: #0d1117;

    /* Mapped Variables for Dark Mode (Default) */
    --primary: var(--primary-light);
    --primary-rgb: 30, 136, 229;
    --primary-color: #0D47A1;
    --secondary: var(--primary-dark);
    --accent: var(--accent-orange);
    --accent-color: #FF9800;
    --success: #2ea043;
    --danger: #da3633;
    --warning: #d29922;
    --info: #58a6ff;
    
    --background: var(--background-dark);
    --card-bg: #161b22;
    --text: var(--text-light);
    --text-muted: #8b949e;
    --border: #30363d;
    
    --bg-input: #0d1117;
    --border-input: #30363d;
    --bg-navbar: rgba(13, 17, 23, 0.85);
    --grid-color: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}[data-theme="light"] {
    /* Mapped Variables for Light Mode */
    --primary: var(--primary-dark);
    --primary-rgb: 13, 71, 161;
    --secondary: var(--primary-light);
    --accent: var(--accent-orange);

    --background: #f8f9fa;
    --card-bg: #ffffff;
    --text: var(--text-dark);
    --text-muted: #57606a;
    --border: #e1e4e8;

    --bg-input: #ffffff;
    --border-input: #d0d7de;
    --bg-navbar: rgba(255, 255, 255, 0.9);
    --grid-color: rgba(13, 71, 161, 0.08);

    /* Enhanced Shadows for Light Mode */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

[data-theme="light"] body {
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(13, 71, 161, 0.05) 0%, transparent 60%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: 'Inter', sans-serif;
    will-change: transform;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navbar */
.navbar {
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    height: 52px;
    background: rgba(13, 17, 23, 0.98);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .logo {
    font-size: 1.15rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

.navbar.scrolled .nav-links a {
    font-size: 0.85rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-login {
    background-color: var(--primary);
    color: white !important;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
}

.navbar.scrolled .btn-login {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-login:hover {
    background-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.25);
}

.btn-login::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
}

[data-theme="light"] .hamburger {
    color: #0a0a0a;
}

/* Theme Toggle in Navbar */
.nav-links .theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.navbar.scrolled .nav-links .theme-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.nav-links .theme-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #050b14;
    background-image: radial-gradient(circle at 15% 50%, rgba(30, 136, 229, 0.08) 0%, transparent 25%);
    position: relative;
    overflow: hidden;
}

/* RFID Signal Waves */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at center,
            transparent 0,
            transparent 30px,
            rgba(30, 136, 229, 0.05) 30px,
            rgba(30, 136, 229, 0.05) 31px);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulse-signals 4s infinite linear;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at center,
            transparent 0,
            transparent 60px,
            rgba(30, 136, 229, 0.03) 60px,
            rgba(30, 136, 229, 0.03) 61px);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse-signals {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-50%) scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.5;
    }
}

@keyframes pulse-signals-light {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-50%) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.8;
    }
}

/* Light Mode - Bold RFID Signal Waves */
[data-theme="light"] .hero::before {
    background:
        repeating-radial-gradient(circle at center,
            transparent 0,
            transparent 30px,
            rgba(13, 71, 161, 0.25) 30px,
            rgba(13, 71, 161, 0.25) 31px);
    animation: pulse-signals-light 4s infinite linear;
}

[data-theme="light"] .hero::after {
    background:
        repeating-radial-gradient(circle at center,
            transparent 0,
            transparent 60px,
            rgba(30, 136, 229, 0.18) 60px,
            rgba(30, 136, 229, 0.18) 61px);
}

/* Enhanced Hero Section for Light Mode */
[data-theme="light"] .hero {
    background-color: #f8f9fa;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        radial-gradient(circle at 15% 50%, rgba(13, 71, 161, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 85% 20%, rgba(30, 136, 229, 0.08) 0%, transparent 25%),
        linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #f0f4ff 100%);
    background-size: 40px 40px, 40px 40px, auto, auto, auto;
}

[data-theme="light"] .hero-badge {
    background: rgba(13, 71, 161, 0.1);
    border: 1px solid rgba(13, 71, 161, 0.3);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.15);
}

[data-theme="light"] .hero-badge i {
    color: var(--accent);
}

[data-theme="light"] .hero-badge span {
    color: var(--primary);
    font-weight: 700;
}

[data-theme="light"] .hero-content h1 {
    color: #0a0a0a !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

[data-theme="light"] .hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-content p {
    color: #424242;
    text-shadow: none;
    font-weight: 500;
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border: 2px solid transparent;
    box-shadow: 0 6px 24px rgba(13, 71, 161, 0.3);
}

[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(13, 71, 161, 0.4);
}

[data-theme="light"] .btn-secondary {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.15);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(13, 71, 161, 0.08);
    border-color: var(--secondary);
    color: var(--secondary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.25);
}

[data-theme="light"] .hero-stats .stat-item {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-stats .stat-item:hover {
    background: rgba(13, 71, 161, 0.05);
    border-color: rgba(13, 71, 161, 0.3);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.2);
}

[data-theme="light"] .stat-item i {
    color: var(--primary);
}

[data-theme="light"] .stat-item:hover i {
    color: var(--accent);
}

[data-theme="light"] .stat-item strong {
    color: #0a0a0a;
}

[data-theme="light"] .stat-item span {
    color: #666;
}

[data-theme="light"] .floating-card {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08) 0%, rgba(30, 136, 229, 0.05) 100%);
    border: 1px solid rgba(13, 71, 161, 0.2);
    box-shadow: 0 10px 40px rgba(13, 71, 161, 0.15);
}

[data-theme="light"] .floating-card:hover {
    box-shadow: 0 15px 50px rgba(13, 71, 161, 0.25);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(30, 136, 229, 0.15);
    border: 1px solid rgba(30, 136, 229, 0.3);
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInLeft 1s ease-out, badgeFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.2);
}

.hero-badge i {
    color: var(--accent-color);
    font-size: 16px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.hero-badge span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 28px;
    color: white;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 540px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInLeft 1s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-btns .btn {
    padding: 12px 32px;
    font-size: 1rem;
}


.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInLeft 1s ease-out 0.4s backwards;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn::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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #0D47A1;
    border: 2px solid white;
    box-shadow:
        0 4px 20px rgba(255, 255, 255, 0.3),
        0 0 0 0 rgba(255, 255, 255, 0.5);
    animation: buttonPulse 2s ease-in-out infinite;
    font-weight: 700;
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow:
            0 4px 20px rgba(255, 255, 255, 0.3),
            0 0 0 0 rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow:
            0 6px 30px rgba(255, 255, 255, 0.4),
            0 0 0 8px rgba(255, 255, 255, 0);
    }
}

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(30, 136, 229, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    background: rgba(30, 136, 229, 0.2);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(30, 136, 229, 0.4);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    animation: fadeInLeft 1s ease-out 0.6s backwards;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(30, 136, 229, 0.15);
    border-color: rgba(30, 136, 229, 0.3);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.2);
}

.stat-item i {
    font-size: 24px;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.stat-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-item strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.stat-item span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.tech-visual {
    position: relative;
    width: 380px;
    height: 240px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotateZ(0deg);
    }

    50% {
        transform: translateY(-15px) rotateZ(1deg);
    }
}

.floating-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.15) 0%, rgba(30, 136, 229, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    position: relative;
    padding: 0;
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(30, 136, 229, 0.1);
    transform: rotateY(-12deg) rotateX(8deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.floating-card:hover::before {
    transform: translateX(100%);
}

.floating-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow:
        0 40px 80px -15px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(30, 136, 229, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 40px rgba(30, 136, 229, 0.2);
    border-color: rgba(30, 136, 229, 0.5);
}

/* Card Background Pattern */
.card-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(30, 136, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 152, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: patternShift 10s ease-in-out infinite;
}

@keyframes patternShift {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 12px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-card:hover .card-logo {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.6);
}

.card-institution {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    margin-left: 16px;
}

.institution-name {
    font-size: 15px;
    font-weight: 800;
    color: white;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.institution-subtitle {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* Card Chip */
.card-chip {
    width: 48px;
    height: 38px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-shadow:
        0 4px 8px rgba(217, 119, 6, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: chipGlow 2s ease-in-out infinite;
}

.floating-card:hover .card-chip {
    transform: scale(1.05);
    box-shadow:
        0 6px 16px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes chipGlow {

    0%,
    100% {
        box-shadow:
            0 4px 8px rgba(217, 119, 6, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow:
            0 4px 12px rgba(217, 119, 6, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 20px rgba(251, 191, 36, 0.3);
    }
}

.chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    padding: 8px;
    width: 100%;
    height: 100%;
}

.chip-cell {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 1px;
}

/* Card Main Section */
.card-main {
    display: flex;
    gap: 20px;
    padding: 16px 24px;
}

.card-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.card-photo {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-card:hover .card-photo {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(30, 136, 229, 0.3);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.photo-initials {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.photo-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Card Info Section */
.card-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.student-name {
    font-size: 18px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.floating-card:hover .student-name {
    color: var(--primary-light);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(30, 136, 229, 0.5);
}

.student-title {
    font-size: 9px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.floating-card:hover .info-item {
    opacity: 1;
    transform: translateX(3px);
}

.info-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.floating-card:hover .info-label {
    color: rgba(30, 136, 229, 0.8);
}

.info-value {
    font-size: 13px;
    color: white;
    font-weight: 600;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.barcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.barcode {
    display: flex;
    gap: 2px;
    height: 28px;
    align-items: flex-end;
    transition: all 0.3s ease;
}

.floating-card:hover .barcode {
    transform: scale(1.05);
}

.barcode .bar {
    width: 2.5px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 1px;
    animation: barcodeScan 3s ease-in-out infinite;
}

.barcode .bar:nth-child(1) {
    animation-delay: 0s;
}

.barcode .bar:nth-child(2) {
    animation-delay: 0.1s;
}

.barcode .bar:nth-child(3) {
    animation-delay: 0.2s;
}

.barcode .bar:nth-child(4) {
    animation-delay: 0.3s;
}

.barcode .bar:nth-child(5) {
    animation-delay: 0.4s;
}

.barcode .bar:nth-child(6) {
    animation-delay: 0.5s;
}

.barcode .bar:nth-child(7) {
    animation-delay: 0.6s;
}

.barcode .bar:nth-child(8) {
    animation-delay: 0.7s;
}

.barcode .bar:nth-child(9) {
    animation-delay: 0.8s;
}

.barcode .bar:nth-child(10) {
    animation-delay: 0.9s;
}

.barcode .bar:nth-child(11) {
    animation-delay: 1s;
}

.barcode .bar:nth-child(12) {
    animation-delay: 1.1s;
}

@keyframes barcodeScan {

    0%,
    100% {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    }

    50% {
        background: linear-gradient(to top, rgba(30, 136, 229, 0.9) 0%, rgba(30, 136, 229, 0.7) 100%);
        box-shadow: 0 0 8px rgba(30, 136, 229, 0.6);
    }
}

.card-number {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.rfid-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(30, 136, 229, 0.2);
    border: 1px solid rgba(30, 136, 229, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: indicatorPulse 2s ease-in-out infinite;
}

.floating-card:hover .rfid-indicator {
    background: rgba(30, 136, 229, 0.3);
    border-color: rgba(30, 136, 229, 0.5);
    box-shadow: 0 0 20px rgba(30, 136, 229, 0.4);
}

@keyframes indicatorPulse {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(30, 136, 229, 0.4);
    }

    50% {
        box-shadow: 0 0 15px rgba(30, 136, 229, 0.3);
    }
}

.rfid-indicator i {
    font-size: 10px;
    color: var(--primary-light);
}

.rfid-indicator span {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Remove old styles */
.card-content,
.card-details,
.student-info,
.card-lines {
    display: none;
}

.rfid-waves {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    transition: all 0.3s ease;
}

.floating-card:hover .rfid-waves {
    transform: scale(1.2);
}

.rfid-waves span {
    border: 2px solid transparent;
    border-top-color: var(--primary-light);
    border-right-color: var(--primary-light);
    border-radius: 50%;
    animation: pulse-wave 2.5s ease-out infinite;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(30, 136, 229, 0.5));
}

.rfid-waves span:nth-child(1) {
    width: 12px;
    height: 12px;
    animation-delay: 0s;
}

.rfid-waves span:nth-child(2) {
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-right: -6px;
    animation-delay: 0.4s;
}

.rfid-waves span:nth-child(3) {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    margin-right: -12px;
    animation-delay: 0.8s;
}

@keyframes pulse-wave {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    30% {
        opacity: 0.8;
    }

    60% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.scanner-glow {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%) rotateX(60deg);
    width: 300px;
    height: 100px;
    background: radial-gradient(ellipse at center, var(--primary-color) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0.4;
    border-radius: 50%;
    animation: scan-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scan-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-50%) rotateX(60deg) scale(0.9);
    }

    50% {
        opacity: 0.6;
        transform: translateX(-50%) rotateX(60deg) scale(1.1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* About Section */
.about {
    padding: 120px 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: left;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-text {
    text-align: left;
    max-width: 100%;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(5px);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 16px;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateX(10px);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover .stat-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    border-color: transparent;
}

.stat-icon i {
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.stat-card:hover .stat-icon i {
    color: white;
}

.stat-info h3 {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.7;
}

/* Features Section */
.features {
    padding: 120px 0;
    background-color: var(--bg-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--primary-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .card-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .card-icon i {
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 700;
}

.feature-card ul li {
    margin-bottom: 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    transition: transform 0.2s;
}

.feature-card ul li:hover {
    transform: translateX(5px);
    color: var(--white);
}

.feature-card ul li i {
    color: var(--success);
    font-size: 0.9rem;
    background: rgba(52, 211, 153, 0.1);
    padding: 5px;
    border-radius: 50%;
}

/* Team Section */
.team {
    padding: 120px 0;
    text-align: center;
    background: transparent;
    border-top: 1px solid var(--border);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.team-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 40px 30px;
    width: 320px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    will-change: transform;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(30, 136, 229, 0.35);
}

.team-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    padding: 5px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.team-card:hover .member-avatar {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.member-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.member-info h3 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.member-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-info .role {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 15px;
    background: rgba(30, 136, 229, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-icons a:hover {
    color: var(--white);
}

.event-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    display: inline-block;
}

/* Footer styles moved to bottom of file */

.social-links a {
    color: var(--text-light);
    margin-left: 25px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

/* Attendance Simulation */
.simulation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    perspective: 1000px;
    transform: scale(1.8);
}

.simulation-container {
    transform: scale(1);
    height: 300px;
}

.rfid-reader-box {
    width: 200px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(50deg) rotateZ(-20deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Shadow under the reader */
.rfid-reader-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    transform: translateZ(-20px);
    filter: blur(20px);
    border-radius: 10px;
}

.reader-face {
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    backface-visibility: hidden;
}

.reader-top {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    position: relative;
}

/* Status Light Bar */
.reader-top::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.reader-bottom {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(-20px) rotateX(180deg);
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.reader-front {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(-90deg) translateZ(60px);
    background: linear-gradient(to bottom, #222, #111);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Front detail */
.reader-front::after {
    content: '';
    width: 80%;
    height: 2px;
    background: #333;
    box-shadow: 0 1px 0 #000;
}

.reader-back {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(60px);
    background: #111;
}

.reader-left {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(-90deg) translateZ(100px);
    background: linear-gradient(to right, #222, #111);
}

.reader-right {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(100px);
    background: linear-gradient(to left, #222, #111);
}

.reader-screen {
    width: 85%;
    height: 65%;
    background: #050505;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Scanline effect */
.reader-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.brand-text {
    color: #555;
    font-size: 0.65rem;
    margin-top: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reader-signal {
    color: #333;
    font-size: 1.8rem;
    transition: all 0.3s;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.success-tick {
    position: absolute;
    width: 45px;
    height: 45px;
    color: var(--success);
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 0 10px var(--success));
    z-index: 10;
}

.sim-card {
    width: 160px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    position: absolute;
    top: 0;
    transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 2;
    opacity: 0;
    overflow: hidden;
    border: 1px solid #ccc;
}

.card-header-strip {
    height: 25px;
    background: var(--primary-color);
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.card-header-strip::after {
    content: 'UNIVERSITY';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sim-chip {
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #d97706 100%);
    border-radius: 3px;
    position: absolute;
    top: 35px;
    left: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sim-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%);
    border-radius: 3px;
}

.sim-photo {
    width: 35px;
    height: 40px;
    background: #ddd;
    position: absolute;
    right: 15px;
    top: 35px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-photo i {
    font-size: 18px;
    color: #aaa;
}

.sim-details {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 60%;
}

.sim-line {
    height: 4px;
    background: #ddd;
    margin-bottom: 4px;
    border-radius: 2px;
}

.sim-line.title {
    width: 40%;
    background: var(--primary-color);
    opacity: 0.5;
}

.sim-line.name {
    width: 80%;
    height: 6px;
    background: #333;
}

.sim-line.id {
    width: 60%;
}

.plus-one-particle {
    position: absolute;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-light {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.simulation-container.active .status-light {
    animation: status-blink 3s infinite;
}

/* Animation Classes */
.simulation-container.active .sim-card {
    animation: card-tap 3s infinite;
}

.simulation-container.active .rfid-reader-box {
    animation: reader-recoil 3s infinite;
}

.simulation-container.active .success-tick {
    animation: tick-pop 3s infinite;
}

.simulation-container.active .reader-signal {
    animation: signal-flash 3s infinite;
}

.simulation-container.active .plus-one-particle {
    animation: particle-float 3s infinite;
}

@keyframes reader-recoil {

    0%,
    40% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(-5px);
    }

    50% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(2px);
    }

    55% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    100% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }
}

@keyframes status-blink {

    0%,
    30% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    35% {
        background: #ef4444;
        /* Red - Reading */
        box-shadow: 0 0 10px #ef4444;
    }

    45% {
        background: #10b981;
        /* Green - Success */
        box-shadow: 0 0 15px #10b981;
    }

    80% {
        background: #10b981;
        box-shadow: 0 0 10px #10b981;
    }

    90%,
    100% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

@keyframes card-tap {
    0% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }

    15% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px) translateY(0);
    }

    35% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    40% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(30px) scale(0.98);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    60% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    }

    100% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }
}

@keyframes card-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

@keyframes tick-pop {

    0%,
    35% {
        opacity: 0;
        transform: scale(0.5);
    }

    40% {
        opacity: 1;
        transform: scale(1.3);
        filter: drop-shadow(0 0 15px var(--success));
    }

    45% {
        transform: scale(1);
    }

    80% {
        opacity: 1;
    }

    90%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes signal-flash {

    0%,
    35% {
        opacity: 1;
        color: #333;
        text-shadow: none;
    }

    36% {
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary);
    }

    40% {
        color: var(--success);
        text-shadow: 0 0 15px var(--success);
        transform: scale(1.1);
    }

    45% {
        transform: scale(1);
    }

    80% {
        color: var(--success);
        text-shadow: 0 0 10px var(--success);
    }

    90%,
    100% {
        color: #333;
        text-shadow: none;
    }
}

@keyframes particle-float {

    0%,
    40% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }

    45% {
        opacity: 1;
        transform: translate(-50%, -50px) scale(1.2);
        text-shadow: 0 0 15px var(--success);
    }

    80% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image i {
        font-size: 10rem;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .simulation-container {
        transform: scale(1);
        height: 350px;
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="light"] .theme-btn {
    border: 1px solid rgba(13, 71, 161, 0.2);
    color: #3c4858;
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}

/* Enhanced Feature Cards for Light Mode */
[data-theme="light"] .features {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
}

[data-theme="light"] .feature-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .feature-card::before {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(13, 71, 161, 0.08), transparent 40%);
}

[data-theme="light"] .feature-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

[data-theme="light"] .card-icon {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.2);
}

[data-theme="light"] .feature-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 24px rgba(13, 71, 161, 0.35);
}

[data-theme="light"] .card-icon i {
    color: var(--primary);
}

[data-theme="light"] .feature-card:hover .card-icon i {
    color: white;
}

[data-theme="light"] .feature-card h3 {
    color: #0a0a0a;
    font-weight: 800;
}

[data-theme="light"] .feature-card ul li {
    color: #424242;
    font-weight: 500;
}

[data-theme="light"] .feature-card ul li:hover {
    color: var(--primary);
}

[data-theme="light"] .feature-card ul li i {
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
}

/* Team Section */
.team {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.team-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 40px 30px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    text-align: center;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    padding: 5px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.team-card:hover .member-avatar {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.member-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.member-info h3 {
    color: #0a0a0a;
    font-weight: 800;
}

.member-info p {
    color: #424242;
}

.member-info .role {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.25);
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-icons a:hover {
    color: var(--white);
}

.event-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    display: inline-block;
}

/* Footer styles moved to bottom of file */

.social-links a {
    color: var(--text-light);
    margin-left: 25px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

/* Attendance Simulation */
.simulation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    perspective: 1000px;
    transform: scale(1.8);
}

.simulation-container {
    transform: scale(1);
    height: 300px;
}

.rfid-reader-box {
    width: 200px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(50deg) rotateZ(-20deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Shadow under the reader */
.rfid-reader-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    transform: translateZ(-20px);
    filter: blur(20px);
    border-radius: 10px;
}

.reader-face {
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    backface-visibility: hidden;
}

.reader-top {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    position: relative;
}

/* Status Light Bar */
.reader-top::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.reader-bottom {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(-20px) rotateX(180deg);
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.reader-front {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(-90deg) translateZ(60px);
    background: linear-gradient(to bottom, #222, #111);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Front detail */
.reader-front::after {
    content: '';
    width: 80%;
    height: 2px;
    background: #333;
    box-shadow: 0 1px 0 #000;
}

.reader-back {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(60px);
    background: #111;
}

.reader-left {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(-90deg) translateZ(100px);
    background: linear-gradient(to right, #222, #111);
}

.reader-right {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(100px);
    background: linear-gradient(to left, #222, #111);
}

.reader-screen {
    width: 85%;
    height: 65%;
    background: #050505;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Scanline effect */
.reader-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.brand-text {
    color: #555;
    font-size: 0.65rem;
    margin-top: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reader-signal {
    color: #333;
    font-size: 1.8rem;
    transition: all 0.3s;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.success-tick {
    position: absolute;
    width: 45px;
    height: 45px;
    color: var(--success);
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 0 10px var(--success));
    z-index: 10;
}

.sim-card {
    width: 160px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    position: absolute;
    top: 0;
    transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 2;
    opacity: 0;
    overflow: hidden;
    border: 1px solid #ccc;
}

.card-header-strip {
    height: 25px;
    background: var(--primary-color);
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.card-header-strip::after {
    content: 'UNIVERSITY';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sim-chip {
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #d97706 100%);
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow:
        0 3px 8px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sim-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%);
    border-radius: 4px;
}

.sim-photo {
    width: 35px;
    height: 40px;
    background: #ddd;
    position: absolute;
    right: 15px;
    top: 35px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-photo i {
    font-size: 18px;
    color: #aaa;
}

.sim-details {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 60%;
}

.sim-line {
    height: 4px;
    background: #ddd;
    margin-bottom: 4px;
    border-radius: 2px;
}

.sim-line.title {
    width: 40%;
    background: var(--primary-color);
    opacity: 0.5;
}

.sim-line.name {
    width: 80%;
    height: 6px;
    background: #333;
}

.sim-line.id {
    width: 60%;
}

.plus-one-particle {
    position: absolute;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-light {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.simulation-container.active .status-light {
    animation: status-blink 3s infinite;
}

/* Animation Classes */
.simulation-container.active .sim-card {
    animation: card-tap 3s infinite;
}

.simulation-container.active .rfid-reader-box {
    animation: reader-recoil 3s infinite;
}

.simulation-container.active .success-tick {
    animation: tick-pop 3s infinite;
}

.simulation-container.active .reader-signal {
    animation: signal-flash 3s infinite;
}

.simulation-container.active .plus-one-particle {
    animation: particle-float 3s infinite;
}

@keyframes reader-recoil {

    0%,
    40% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(-5px);
    }

    50% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(2px);
    }

    55% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    100% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }
}

@keyframes status-blink {

    0%,
    30% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    35% {
        background: #ef4444;
        /* Red - Reading */
        box-shadow: 0 0 10px #ef4444;
    }

    45% {
        background: #10b981;
        /* Green - Success */
        box-shadow: 0 0 15px #10b981;
    }

    80% {
        background: #10b981;
        box-shadow: 0 0 10px #10b981;
    }

    90%,
    100% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

@keyframes card-tap {
    0% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }

    15% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px) translateY(0);
    }

    35% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    40% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(30px) scale(0.98);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    60% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    }

    100% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }
}

@keyframes card-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

@keyframes tick-pop {

    0%,
    35% {
        opacity: 0;
        transform: scale(0.5);
    }

    40% {
        opacity: 1;
        transform: scale(1.3);
        filter: drop-shadow(0 0 15px var(--success));
    }

    45% {
        transform: scale(1);
    }

    80% {
        opacity: 1;
    }

    90%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes signal-flash {

    0%,
    35% {
        opacity: 1;
        color: #333;
        text-shadow: none;
    }

    36% {
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary);
    }

    40% {
        color: var(--success);
        text-shadow: 0 0 15px var(--success);
        transform: scale(1.1);
    }

    45% {
        transform: scale(1);
    }

    80% {
        color: var(--success);
        text-shadow: 0 0 10px var(--success);
    }

    90%,
    100% {
        color: #333;
        text-shadow: none;
    }
}

@keyframes particle-float {

    0%,
    40% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }

    45% {
        opacity: 1;
        transform: translate(-50%, -50px) scale(1.2);
        text-shadow: 0 0 15px var(--success);
    }

    80% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image i {
        font-size: 10rem;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .simulation-container {
        transform: scale(1);
        height: 350px;
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="light"] .theme-btn {
    border: 1px solid rgba(13, 71, 161, 0.2);
    color: #3c4858;
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}

/* Enhanced Feature Cards for Light Mode */
[data-theme="light"] .features {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
}

[data-theme="light"] .feature-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .feature-card::before {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(13, 71, 161, 0.08), transparent 40%);
}

[data-theme="light"] .feature-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

[data-theme="light"] .card-icon {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.2);
}

[data-theme="light"] .feature-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 24px rgba(13, 71, 161, 0.35);
}

[data-theme="light"] .card-icon i {
    color: var(--primary);
}

[data-theme="light"] .feature-card:hover .card-icon i {
    color: white;
}

[data-theme="light"] .feature-card h3 {
    color: #0a0a0a;
    font-weight: 800;
}

[data-theme="light"] .feature-card ul li {
    color: #424242;
    font-weight: 500;
}

[data-theme="light"] .feature-card ul li:hover {
    color: var(--primary);
}

[data-theme="light"] .feature-card ul li i {
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
}

/* Team Section */
.team {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.team-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 40px 30px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    text-align: center;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    padding: 5px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.team-card:hover .member-avatar {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.member-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.member-info h3 {
    color: #0a0a0a;
    font-weight: 800;
}

.member-info p {
    color: #424242;
}

.member-info .role {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.25);
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-icons a:hover {
    color: var(--white);
}

.event-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    display: inline-block;
}

/* Footer styles moved to bottom of file */

.social-links a {
    color: var(--text-light);
    margin-left: 25px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

/* Attendance Simulation */
.simulation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    perspective: 1000px;
    transform: scale(1.8);
}

.simulation-container {
    transform: scale(1);
    height: 300px;
}

.rfid-reader-box {
    width: 200px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(50deg) rotateZ(-20deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Shadow under the reader */
.rfid-reader-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    transform: translateZ(-20px);
    filter: blur(20px);
    border-radius: 10px;
}

.reader-face {
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    backface-visibility: hidden;
}

.reader-top {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    position: relative;
}

/* Status Light Bar */
.reader-top::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.reader-bottom {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(-20px) rotateX(180deg);
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.reader-front {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(-90deg) translateZ(60px);
    background: linear-gradient(to bottom, #222, #111);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Front detail */
.reader-front::after {
    content: '';
    width: 80%;
    height: 2px;
    background: #333;
    box-shadow: 0 1px 0 #000;
}

.reader-back {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(60px);
    background: #111;
}

.reader-left {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(-90deg) translateZ(100px);
    background: linear-gradient(to right, #222, #111);
}

.reader-right {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(100px);
    background: linear-gradient(to left, #222, #111);
}

.reader-screen {
    width: 85%;
    height: 65%;
    background: #050505;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Scanline effect */
.reader-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.brand-text {
    color: #555;
    font-size: 0.65rem;
    margin-top: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reader-signal {
    color: #333;
    font-size: 1.8rem;
    transition: all 0.3s;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.success-tick {
    position: absolute;
    width: 45px;
    height: 45px;
    color: var(--success);
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 0 10px var(--success));
    z-index: 10;
}

.sim-card {
    width: 160px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    position: absolute;
    top: 0;
    transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 2;
    opacity: 0;
    overflow: hidden;
    border: 1px solid #ccc;
}

.card-header-strip {
    height: 25px;
    background: var(--primary-color);
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.card-header-strip::after {
    content: 'UNIVERSITY';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sim-chip {
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #d97706 100%);
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow:
        0 3px 8px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sim-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%);
    border-radius: 4px;
}

.sim-photo {
    width: 35px;
    height: 40px;
    background: #ddd;
    position: absolute;
    right: 15px;
    top: 35px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-photo i {
    font-size: 18px;
    color: #aaa;
}

.sim-details {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 60%;
}

.sim-line {
    height: 4px;
    background: #ddd;
    margin-bottom: 4px;
    border-radius: 2px;
}

.sim-line.title {
    width: 40%;
    background: var(--primary-color);
    opacity: 0.5;
}

.sim-line.name {
    width: 80%;
    height: 6px;
    background: #333;
}

.sim-line.id {
    width: 60%;
}

.plus-one-particle {
    position: absolute;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-light {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.simulation-container.active .status-light {
    animation: status-blink 3s infinite;
}

/* Animation Classes */
.simulation-container.active .sim-card {
    animation: card-tap 3s infinite;
}

.simulation-container.active .rfid-reader-box {
    animation: reader-recoil 3s infinite;
}

.simulation-container.active .success-tick {
    animation: tick-pop 3s infinite;
}

.simulation-container.active .reader-signal {
    animation: signal-flash 3s infinite;
}

.simulation-container.active .plus-one-particle {
    animation: particle-float 3s infinite;
}

@keyframes reader-recoil {

    0%,
    40% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(-5px);
    }

    50% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(2px);
    }

    55% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    100% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }
}

@keyframes status-blink {

    0%,
    30% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    35% {
        background: #ef4444;
        /* Red - Reading */
        box-shadow: 0 0 10px #ef4444;
    }

    45% {
        background: #10b981;
        /* Green - Success */
        box-shadow: 0 0 15px #10b981;
    }

    80% {
        background: #10b981;
        box-shadow: 0 0 10px #10b981;
    }

    90%,
    100% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

@keyframes card-tap {
    0% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }

    15% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px) translateY(0);
    }

    35% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    40% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(30px) scale(0.98);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    60% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    }

    100% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }
}

@keyframes card-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

@keyframes tick-pop {

    0%,
    35% {
        opacity: 0;
        transform: scale(0.5);
    }

    40% {
        opacity: 1;
        transform: scale(1.3);
        filter: drop-shadow(0 0 15px var(--success));
    }

    45% {
        transform: scale(1);
    }

    80% {
        opacity: 1;
    }

    90%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes signal-flash {

    0%,
    35% {
        opacity: 1;
        color: #333;
        text-shadow: none;
    }

    36% {
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary);
    }

    40% {
        color: var(--success);
        text-shadow: 0 0 15px var(--success);
        transform: scale(1.1);
    }

    45% {
        transform: scale(1);
    }

    80% {
        color: var(--success);
        text-shadow: 0 0 10px var(--success);
    }

    90%,
    100% {
        color: #333;
        text-shadow: none;
    }
}

@keyframes particle-float {

    0%,
    40% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }

    45% {
        opacity: 1;
        transform: translate(-50%, -50px) scale(1.2);
        text-shadow: 0 0 15px var(--success);
    }

    80% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image i {
        font-size: 10rem;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .simulation-container {
        transform: scale(1);
        height: 350px;
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="light"] .theme-btn {
    border: 1px solid rgba(13, 71, 161, 0.2);
    color: #3c4858;
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}

/* Enhanced Feature Cards for Light Mode */
[data-theme="light"] .features {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
}

[data-theme="light"] .feature-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .feature-card::before {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(13, 71, 161, 0.08), transparent 40%);
}

[data-theme="light"] .feature-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

[data-theme="light"] .card-icon {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.2);
}

[data-theme="light"] .feature-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 24px rgba(13, 71, 161, 0.35);
}

[data-theme="light"] .card-icon i {
    color: var(--primary);
}

[data-theme="light"] .feature-card:hover .card-icon i {
    color: white;
}

[data-theme="light"] .feature-card h3 {
    color: #0a0a0a;
    font-weight: 800;
}

[data-theme="light"] .feature-card ul li {
    color: #424242;
    font-weight: 500;
}

[data-theme="light"] .feature-card ul li:hover {
    color: var(--primary);
}

[data-theme="light"] .feature-card ul li i {
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
}

/* Team Section */
.team {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.team-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 40px 30px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    text-align: center;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    padding: 5px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.team-card:hover .member-avatar {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.member-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.member-info h3 {
    color: #0a0a0a;
    font-weight: 800;
}

.member-info p {
    color: #424242;
}

.member-info .role {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.25);
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-icons a:hover {
    color: var(--white);
}

.event-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    display: inline-block;
}

/* Footer styles moved to bottom of file */

.social-links a {
    color: var(--text-light);
    margin-left: 25px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

/* Attendance Simulation */
.simulation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    perspective: 1000px;
    transform: scale(1.8);
}

.simulation-container {
    transform: scale(1);
    height: 300px;
}

.rfid-reader-box {
    width: 200px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(50deg) rotateZ(-20deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Shadow under the reader */
.rfid-reader-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    transform: translateZ(-20px);
    filter: blur(20px);
    border-radius: 10px;
}

.reader-face {
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    backface-visibility: hidden;
}

.reader-top {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    position: relative;
}

/* Status Light Bar */
.reader-top::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.reader-bottom {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(-20px) rotateX(180deg);
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.reader-front {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(-90deg) translateZ(60px);
    background: linear-gradient(to bottom, #222, #111);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Front detail */
.reader-front::after {
    content: '';
    width: 80%;
    height: 2px;
    background: #333;
    box-shadow: 0 1px 0 #000;
}

.reader-back {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(60px);
    background: #111;
}

.reader-left {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(-90deg) translateZ(100px);
    background: linear-gradient(to right, #222, #111);
}

.reader-right {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(100px);
    background: linear-gradient(to left, #222, #111);
}

.reader-screen {
    width: 85%;
    height: 65%;
    background: #050505;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Scanline effect */
.reader-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.brand-text {
    color: #555;
    font-size: 0.65rem;
    margin-top: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reader-signal {
    color: #333;
    font-size: 1.8rem;
    transition: all 0.3s;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.success-tick {
    position: absolute;
    width: 45px;
    height: 45px;
    color: var(--success);
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 0 10px var(--success));
    z-index: 10;
}

.sim-card {
    width: 160px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    position: absolute;
    top: 0;
    transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 2;
    opacity: 0;
    overflow: hidden;
    border: 1px solid #ccc;
}

.card-header-strip {
    height: 25px;
    background: var(--primary-color);
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.card-header-strip::after {
    content: 'UNIVERSITY';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sim-chip {
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #d97706 100%);
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow:
        0 3px 8px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sim-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%);
    border-radius: 4px;
}

.sim-photo {
    width: 35px;
    height: 40px;
    background: #ddd;
    position: absolute;
    right: 15px;
    top: 35px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-photo i {
    font-size: 18px;
    color: #aaa;
}

.sim-details {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 60%;
}

.sim-line {
    height: 4px;
    background: #ddd;
    margin-bottom: 4px;
    border-radius: 2px;
}

.sim-line.title {
    width: 40%;
    background: var(--primary-color);
    opacity: 0.5;
}

.sim-line.name {
    width: 80%;
    height: 6px;
    background: #333;
}

.sim-line.id {
    width: 60%;
}

.plus-one-particle {
    position: absolute;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-light {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.simulation-container.active .status-light {
    animation: status-blink 3s infinite;
}

/* Animation Classes */
.simulation-container.active .sim-card {
    animation: card-tap 3s infinite;
}

.simulation-container.active .rfid-reader-box {
    animation: reader-recoil 3s infinite;
}

.simulation-container.active .success-tick {
    animation: tick-pop 3s infinite;
}

.simulation-container.active .reader-signal {
    animation: signal-flash 3s infinite;
}

.simulation-container.active .plus-one-particle {
    animation: particle-float 3s infinite;
}

@keyframes reader-recoil {

    0%,
    40% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(-5px);
    }

    50% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(2px);
    }

    55% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    100% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }
}

@keyframes status-blink {

    0%,
    30% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    35% {
        background: #ef4444;
        /* Red - Reading */
        box-shadow: 0 0 10px #ef4444;
    }

    45% {
        background: #10b981;
        /* Green - Success */
        box-shadow: 0 0 15px #10b981;
    }

    80% {
        background: #10b981;
        box-shadow: 0 0 10px #10b981;
    }

    90%,
    100% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

@keyframes card-tap {
    0% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }

    15% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px) translateY(0);
    }

    35% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    40% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(30px) scale(0.98);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    60% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    }

    100% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }
}

@keyframes card-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

@keyframes tick-pop {

    0%,
    35% {
        opacity: 0;
        transform: scale(0.5);
    }

    40% {
        opacity: 1;
        transform: scale(1.3);
        filter: drop-shadow(0 0 15px var(--success));
    }

    45% {
        transform: scale(1);
    }

    80% {
        opacity: 1;
    }

    90%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes signal-flash {

    0%,
    35% {
        opacity: 1;
        color: #333;
        text-shadow: none;
    }

    36% {
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary);
    }

    40% {
        color: var(--success);
        text-shadow: 0 0 15px var(--success);
        transform: scale(1.1);
    }

    45% {
        transform: scale(1);
    }

    80% {
        color: var(--success);
        text-shadow: 0 0 10px var(--success);
    }

    90%,
    100% {
        color: #333;
        text-shadow: none;
    }
}

@keyframes particle-float {

    0%,
    40% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }

    45% {
        opacity: 1;
        transform: translate(-50%, -50px) scale(1.2);
        text-shadow: 0 0 15px var(--success);
    }

    80% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image i {
        font-size: 10rem;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .simulation-container {
        transform: scale(1);
        height: 350px;
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="light"] .theme-btn {
    border: 1px solid rgba(13, 71, 161, 0.2);
    color: #3c4858;
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}

/* Enhanced Feature Cards for Light Mode */
[data-theme="light"] .features {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
}

[data-theme="light"] .feature-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .feature-card::before {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(13, 71, 161, 0.08), transparent 40%);
}

[data-theme="light"] .feature-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

[data-theme="light"] .card-icon {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.2);
}

[data-theme="light"] .feature-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 24px rgba(13, 71, 161, 0.35);
}

[data-theme="light"] .card-icon i {
    color: var(--primary);
}

[data-theme="light"] .feature-card:hover .card-icon i {
    color: white;
}

[data-theme="light"] .feature-card h3 {
    color: #0a0a0a;
    font-weight: 800;
}

[data-theme="light"] .feature-card ul li {
    color: #424242;
    font-weight: 500;
}

[data-theme="light"] .feature-card ul li:hover {
    color: var(--primary);
}

[data-theme="light"] .feature-card ul li i {
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
}

/* Team Section */
.team {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.team-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 40px 30px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    text-align: center;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    padding: 5px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.team-card:hover .member-avatar {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.member-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.member-info h3 {
    color: #0a0a0a;
    font-weight: 800;
}

.member-info p {
    color: #424242;
}

.member-info .role {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.25);
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-icons a:hover {
    color: var(--white);
}

.event-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    display: inline-block;
}

/* Footer styles moved to bottom of file */

.social-links a {
    color: var(--text-light);
    margin-left: 25px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

/* Attendance Simulation */
.simulation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    perspective: 1000px;
    transform: scale(1.8);
}

.simulation-container {
    transform: scale(1);
    height: 300px;
}

.rfid-reader-box {
    width: 200px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(50deg) rotateZ(-20deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Shadow under the reader */
.rfid-reader-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    transform: translateZ(-20px);
    filter: blur(20px);
    border-radius: 10px;
}

.reader-face {
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    backface-visibility: hidden;
}

.reader-top {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    position: relative;
}

/* Status Light Bar */
.reader-top::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.reader-bottom {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(-20px) rotateX(180deg);
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.reader-front {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(-90deg) translateZ(60px);
    background: linear-gradient(to bottom, #222, #111);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Front detail */
.reader-front::after {
    content: '';
    width: 80%;
    height: 2px;
    background: #333;
    box-shadow: 0 1px 0 #000;
}

.reader-back {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(60px);
    background: #111;
}

.reader-left {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(-90deg) translateZ(100px);
    background: linear-gradient(to right, #222, #111);
}

.reader-right {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(100px);
    background: linear-gradient(to left, #222, #111);
}

.reader-screen {
    width: 85%;
    height: 65%;
    background: #050505;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Scanline effect */
.reader-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.brand-text {
    color: #555;
    font-size: 0.65rem;
    margin-top: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reader-signal {
    color: #333;
    font-size: 1.8rem;
    transition: all 0.3s;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.success-tick {
    position: absolute;
    width: 45px;
    height: 45px;
    color: var(--success);
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 0 10px var(--success));
    z-index: 10;
}

.sim-card {
    width: 160px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    position: absolute;
    top: 0;
    transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 2;
    opacity: 0;
    overflow: hidden;
    border: 1px solid #ccc;
}

.card-header-strip {
    height: 25px;
    background: var(--primary-color);
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.card-header-strip::after {
    content: 'UNIVERSITY';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sim-chip {
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #d97706 100%);
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow:
        0 3px 8px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sim-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%);
    border-radius: 4px;
}

.sim-photo {
    width: 35px;
    height: 40px;
    background: #ddd;
    position: absolute;
    right: 15px;
    top: 35px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-photo i {
    font-size: 18px;
    color: #aaa;
}

.sim-details {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 60%;
}

.sim-line {
    height: 4px;
    background: #ddd;
    margin-bottom: 4px;
    border-radius: 2px;
}

.sim-line.title {
    width: 40%;
    background: var(--primary-color);
    opacity: 0.5;
}

.sim-line.name {
    width: 80%;
    height: 6px;
    background: #333;
}

.sim-line.id {
    width: 60%;
}

.plus-one-particle {
    position: absolute;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-light {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.simulation-container.active .status-light {
    animation: status-blink 3s infinite;
}

/* Animation Classes */
.simulation-container.active .sim-card {
    animation: card-tap 3s infinite;
}

.simulation-container.active .rfid-reader-box {
    animation: reader-recoil 3s infinite;
}

.simulation-container.active .success-tick {
    animation: tick-pop 3s infinite;
}

.simulation-container.active .reader-signal {
    animation: signal-flash 3s infinite;
}

.simulation-container.active .plus-one-particle {
    animation: particle-float 3s infinite;
}

@keyframes reader-recoil {

    0%,
    40% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(-5px);
    }

    50% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(2px);
    }

    55% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    100% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }
}

@keyframes status-blink {

    0%,
    30% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    35% {
        background: #ef4444;
        /* Red - Reading */
        box-shadow: 0 0 10px #ef4444;
    }

    45% {
        background: #10b981;
        /* Green - Success */
        box-shadow: 0 0 15px #10b981;
    }

    80% {
        background: #10b981;
        box-shadow: 0 0 10px #10b981;
    }

    90%,
    100% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

@keyframes card-tap {
    0% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }

    15% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px) translateY(0);
    }

    35% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    40% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(30px) scale(0.98);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    60% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    }

    100% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }
}

@keyframes card-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

@keyframes tick-pop {

    0%,
    35% {
        opacity: 0;
        transform: scale(0.5);
    }

    40% {
        opacity: 1;
        transform: scale(1.3);
        filter: drop-shadow(0 0 15px var(--success));
    }

    45% {
        transform: scale(1);
    }

    80% {
        opacity: 1;
    }

    90%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes signal-flash {

    0%,
    35% {
        opacity: 1;
        color: #333;
        text-shadow: none;
    }

    36% {
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary);
    }

    40% {
        color: var(--success);
        text-shadow: 0 0 15px var(--success);
        transform: scale(1.1);
    }

    45% {
        transform: scale(1);
    }

    80% {
        color: var(--success);
        text-shadow: 0 0 10px var(--success);
    }

    90%,
    100% {
        color: #333;
        text-shadow: none;
    }
}

@keyframes particle-float {

    0%,
    40% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }

    45% {
        opacity: 1;
        transform: translate(-50%, -50px) scale(1.2);
        text-shadow: 0 0 15px var(--success);
    }

    80% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image i {
        font-size: 10rem;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .simulation-container {
        transform: scale(1);
        height: 350px;
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="light"] .theme-btn {
    border: 1px solid rgba(13, 71, 161, 0.2);
    color: #3c4858;
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}

/* Enhanced Feature Cards for Light Mode */
[data-theme="light"] .features {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
}

[data-theme="light"] .feature-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .feature-card::before {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(13, 71, 161, 0.08), transparent 40%);
}

[data-theme="light"] .feature-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

[data-theme="light"] .card-icon {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.2);
}

[data-theme="light"] .feature-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 24px rgba(13, 71, 161, 0.35);
}

[data-theme="light"] .card-icon i {
    color: var(--primary);
}

[data-theme="light"] .feature-card:hover .card-icon i {
    color: white;
}

[data-theme="light"] .feature-card h3 {
    color: #0a0a0a;
    font-weight: 800;
}

[data-theme="light"] .feature-card ul li {
    color: #424242;
    font-weight: 500;
}

[data-theme="light"] .feature-card ul li:hover {
    color: var(--primary);
}

[data-theme="light"] .feature-card ul li i {
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
}

/* Team Section */
.team {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.team-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 40px 30px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    text-align: center;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    padding: 5px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.team-card:hover .member-avatar {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.member-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.member-info h3 {
    color: #0a0a0a;
    font-weight: 800;
}

.member-info p {
    color: #424242;
}

.member-info .role {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.25);
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-icons a:hover {
    color: var(--white);
}

.event-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    display: inline-block;
}

/* Footer styles moved to bottom of file */

.social-links a {
    color: var(--text-light);
    margin-left: 25px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

/* Attendance Simulation */
.simulation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    perspective: 1000px;
    transform: scale(1.8);
}

.simulation-container {
    transform: scale(1);
    height: 300px;
}

.rfid-reader-box {
    width: 200px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(50deg) rotateZ(-20deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Shadow under the reader */
.rfid-reader-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    transform: translateZ(-20px);
    filter: blur(20px);
    border-radius: 10px;
}

.reader-face {
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    backface-visibility: hidden;
}

.reader-top {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    position: relative;
}

/* Status Light Bar */
.reader-top::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.reader-bottom {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(-20px) rotateX(180deg);
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.reader-front {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(-90deg) translateZ(60px);
    background: linear-gradient(to bottom, #222, #111);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Front detail */
.reader-front::after {
    content: '';
    width: 80%;
    height: 2px;
    background: #333;
    box-shadow: 0 1px 0 #000;
}

.reader-back {
    width: 200px;
    height: 40px;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(60px);
    background: #111;
}

.reader-left {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(-90deg) translateZ(100px);
    background: linear-gradient(to right, #222, #111);
}

.reader-right {
    width: 40px;
    height: 120px;
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(100px);
    background: linear-gradient(to left, #222, #111);
}

.reader-screen {
    width: 85%;
    height: 65%;
    background: #050505;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Scanline effect */
.reader-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.brand-text {
    color: #555;
    font-size: 0.65rem;
    margin-top: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reader-signal {
    color: #333;
    font-size: 1.8rem;
    transition: all 0.3s;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.success-tick {
    position: absolute;
    width: 45px;
    height: 45px;
    color: var(--success);
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 0 10px var(--success));
    z-index: 10;
}

.sim-card {
    width: 160px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    position: absolute;
    top: 0;
    transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 2;
    opacity: 0;
    overflow: hidden;
    border: 1px solid #ccc;
}

.card-header-strip {
    height: 25px;
    background: var(--primary-color);
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.card-header-strip::after {
    content: 'UNIVERSITY';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sim-chip {
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #d97706 100%);
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow:
        0 3px 8px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sim-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.3) 55%, transparent 55%);
    border-radius: 4px;
}

.sim-photo {
    width: 35px;
    height: 40px;
    background: #ddd;
    position: absolute;
    right: 15px;
    top: 35px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-photo i {
    font-size: 18px;
    color: #aaa;
}

.sim-details {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 60%;
}

.sim-line {
    height: 4px;
    background: #ddd;
    margin-bottom: 4px;
    border-radius: 2px;
}

.sim-line.title {
    width: 40%;
    background: var(--primary-color);
    opacity: 0.5;
}

.sim-line.name {
    width: 80%;
    height: 6px;
    background: #333;
}

.sim-line.id {
    width: 60%;
}

.plus-one-particle {
    position: absolute;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-light {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.simulation-container.active .status-light {
    animation: status-blink 3s infinite;
}

/* Animation Classes */
.simulation-container.active .sim-card {
    animation: card-tap 3s infinite;
}

.simulation-container.active .rfid-reader-box {
    animation: reader-recoil 3s infinite;
}

.simulation-container.active .success-tick {
    animation: tick-pop 3s infinite;
}

.simulation-container.active .reader-signal {
    animation: signal-flash 3s infinite;
}

.simulation-container.active .plus-one-particle {
    animation: particle-float 3s infinite;
}

@keyframes reader-recoil {

    0%,
    40% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(-5px);
    }

    50% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(2px);
    }

    55% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }

    100% {
        transform: rotateX(50deg) rotateZ(-20deg);
    }
}

@keyframes status-blink {

    0%,
    30% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    35% {
        background: #ef4444;
        /* Red - Reading */
        box-shadow: 0 0 10px #ef4444;
    }

    45% {
        background: #10b981;
        /* Green - Success */
        box-shadow: 0 0 15px #10b981;
    }

    80% {
        background: #10b981;
        box-shadow: 0 0 10px #10b981;
    }

    90%,
    100% {
        background: #333;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

@keyframes card-tap {
    0% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }

    15% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px) translateY(0);
    }

    35% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    40% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(30px) scale(0.98);
    }

    45% {
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(40px);
    }

    60% {
        opacity: 1;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(150px);
    }

    100% {
        opacity: 0;
        transform: rotateX(50deg) rotateZ(-20deg) translateZ(250px) translateY(-100px);
    }
}

@keyframes card-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

@keyframes tick-pop {

    0%,
    35% {
        opacity: 0;
        transform: scale(0.5);
    }

    40% {
        opacity: 1;
        transform: scale(1.3);
        filter: drop-shadow(0 0 15px var(--success));
    }

    45% {
        transform: scale(1);
    }

    80% {
        opacity: 1;
    }

    90%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes signal-flash {

    0%,
    35% {
        opacity: 1;
        color: #333;
        text-shadow: none;
    }

    36% {
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary);
    }

    40% {
        color: var(--success);
        text-shadow: 0 0 15px var(--success);
        transform: scale(1.1);
    }

    45% {
        transform: scale(1);
    }

    80% {
        color: var(--success);
        text-shadow: 0 0 10px var(--success);
    }

    90%,
    100% {
        color: #333;
        text-shadow: none;
    }
}

@keyframes particle-float {

    0%,
    40% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }

    45% {
        opacity: 1;
        transform: translate(-50%, -50px) scale(1.2);
        text-shadow: 0 0 15px var(--success);
    }

    80% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1);
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image i {
        font-size: 10rem;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .simulation-container {
        transform: scale(1);
        height: 350px;
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="light"] .theme-btn {
    border: 1px solid rgba(13, 71, 161, 0.2);
    color: #3c4858;
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}

/* Enhanced Feature Cards for Light Mode */
[data-theme="light"] .features {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f5f7fa 100%);
}

[data-theme="light"] .feature-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .feature-card::before {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(13, 71, 161, 0.08), transparent 40%);
}

[data-theme="light"] .feature-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

[data-theme="light"] .card-icon {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.2);
}

[data-theme="light"] .feature-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 24px rgba(13, 71, 161, 0.35);
}

[data-theme="light"] .card-icon i {
    color: var(--primary);
}

[data-theme="light"] .feature-card:hover .card-icon i {
    color: white;
}

[data-theme="light"] .feature-card h3 {
    color: #0a0a0a;
    font-weight: 800;
}

[data-theme="light"] .feature-card ul li {
    color: #424242;
    font-weight: 500;
}

[data-theme="light"] .feature-card ul li:hover {
    color: var(--primary);
}

[data-theme="light"] .feature-card ul li i {
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
}

/* Team Section */
.team {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.team-card {
    background: white;
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 40px 30px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    text-align: center;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.team-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    padding: 5px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.team-card:hover .member-avatar {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.member-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.member-info h3 {
    color: #0a0a0a;
    font-weight: 800;
}

.member-info p {
    color: #424242;
}

.member-info .role {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05));
    border: 1px solid rgba(13, 71, 161, 0.25);
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-icons a:hover {
    color: var(--white);
}

.event-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    display: inline-block;
}

/* ========================================
   NEW SECTIONS STYLES
   ======================================== */

/* Section Tags */
.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 16px auto 0;
    line-height: 1.6;
}

/* Platform Overview Section */
.platform-overview {
    padding: 100px 0;
    background: var(--background);
    position: relative;
}

.platform-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* 3D RFID Scanner Showcase */
.rfid-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 350px;
    margin: 60px auto;
    perspective: 1200px;
}

.rfid-scanner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotateX(25deg) rotateZ(-3deg);
    transform-style: preserve-3d;
    animation: scannerFloat 4s ease-in-out infinite;
}

@keyframes scannerFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateX(25deg) rotateZ(-3deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotateX(25deg) rotateZ(-3deg) translateY(-15px);
    }
}

.scanner-base {
    width: 320px;
    height: 120px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0d0d0d 100%);
    border-radius: 16px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
}

.scanner-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-radius: 16px 16px 0 0;
}

.scanner-base::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    right: 20px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
    transform: translateZ(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.scanner-screen {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    height: 70px;
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        inset 0 4px 12px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(0, 0, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.8);
}

.scanner-icon {
    font-size: 40px;
    color: #4ade80;
    animation: iconPulseGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.8));
    z-index: 2;
}

@keyframes iconPulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
        filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.6));
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(74, 222, 128, 1));
    }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    box-shadow: 0 0 15px var(--primary-light);
    animation: scanAnimation 2s ease-in-out infinite;
}

@keyframes scanAnimation {
    0% {
        top: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.scanner-label {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.floating-id-card {
    position: absolute;
    top: 10%;
    right: 8%;
    transform-style: preserve-3d;
    animation: cardFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0) rotateZ(8deg) rotateY(12deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-35px) rotateZ(5deg) rotateY(18deg) rotateX(8deg);
    }
}

.mini-card {
    width: 120px;
    height: 75px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 14px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    transform-style: preserve-3d;
}

.mini-chip {
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow:
        0 3px 8px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mini-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mini-lines span {
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mini-lines span:first-child {
    width: 75%;
}

.mini-lines span:last-child {
    width: 55%;
}

.scan-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: waveExpand 3s ease-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 1s;
}

.wave:nth-child(3) {
    animation-delay: 2s;
}

@keyframes waveExpand {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.platform-card {
    background: var(--card-bg);
    padding: 40px 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.platform-card:hover::before {
    transform: scaleX(1);
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.25);
    transition: all 0.3s ease;
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(-5deg);
}

.platform-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.platform-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Workflow Section */
.workflow-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--background) 100%);
    position: relative;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #FF6B00);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    z-index: 2;
}

.step-content {
    background: var(--card-bg);
    padding: 40px 24px;
    border-radius: 16px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.step-content:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.15);
    transform: translateY(-5px);
}

.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(30, 136, 229, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.step-content:hover .step-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.workflow-arrow {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(0);
    }

    50% {
        opacity: 0.7;
        transform: translateX(5px);
    }
}

/* Benefits Section */
.benefits-section {
    padding: 120px 0;
    background: var(--background);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1E88E5, #42A5F5, #FF9800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(30, 136, 229, 0.4);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-gradient {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.benefit-card:hover .benefit-gradient {
    opacity: 0.5;
}

.benefit-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #1E88E5 0%, #42A5F5 50%, #64B5F6 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(30, 136, 229, 0.2);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(30, 136, 229, 0.35);
}

.benefit-icon i {
    font-size: 32px;
    color: white;
}

.benefit-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.25;
    min-height: 50px;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 28px;
    flex-grow: 1;
    min-height: 80px;
}

.benefit-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
}

.benefit-features li:hover {
    color: var(--text);
    transform: translateX(8px);
    border-left-color: #1E88E5;
}

.benefit-features li i {
    color: #1E88E5;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.benefit-features li:hover i {
    color: #FF9800;
    transform: scale(1.3);
}

.infographic-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    margin: 60px auto 0;
}

/* Connector Lines */
.connector-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connector {
    stroke: rgba(30, 136, 229, 0.3);
    stroke-width: 2;
    stroke-dasharray: 8, 5;
    opacity: 0.6;
}

/* Central Hub */
.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 6px solid transparent;
    background-image:
        linear-gradient(white, white),
        conic-gradient(from 0deg, #0D47A1 0deg 60deg, #1565C0 60deg 120deg, #1E88E5 120deg 180deg, #42A5F5 180deg 240deg, #64B5F6 240deg 300deg, #90CAF9 300deg 360deg);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    z-index: 10;
}

.hub-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1E88E5, #0D47A1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.hub-icon i {
    font-size: 1.8rem;
    color: white;
}

.central-hub h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
}

.central-hub p {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Infographic Cards */
.infographic-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    z-index: 5;
}

.infographic-card:hover {
    transform: scale(1.05);
    z-index: 15;
}

.card-icon-wrapper {
    min-width: 100px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: all 0.3s ease;
}

.infographic-card:hover .card-icon-wrapper {
    transform: scale(1.05);
}

.card-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 1.5rem;
}

.card-content {
    padding: 18px 25px;
    max-width: 240px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.infographic-card:hover .card-content {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.card-label {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    background: linear-gradient(135deg, #1E88E5, #0D47A1);
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    margin-top: 8px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.card-content p {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Info Branches */
.info-branches {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(30, 136, 229, 0.15);
}

.branch-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.08), rgba(13, 71, 161, 0.05));
    border-radius: 15px;
    border-left: 2.5px solid #1E88E5;
    transition: all 0.3s ease;
}

.branch-item:hover {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.15), rgba(13, 71, 161, 0.1));
    transform: translateX(5px);
}

.branch-icon {
    font-size: 0.9rem;
    min-width: 18px;
    text-align: center;
}

.branch-text {
    font-size: 0.68rem;
    font-weight: 600;
    color: #1E88E5;
    letter-spacing: 0.2px;
}

/* Left Side Cards */
.card-1 {
    top: 10%;
    left: 0;
}

.card-1 .card-icon-wrapper {
    background: linear-gradient(135deg, #0D47A1, #0A3A7F);
}

.card-1 .card-icon i {
    color: #0D47A1;
}

.card-2 {
    top: 40%;
    left: 0;
}

.card-2 .card-icon-wrapper {
    background: linear-gradient(135deg, #1565C0, #0D4C92);
}

.card-2 .card-icon i {
    color: #1565C0;
}

.card-3 {
    top: 70%;
    left: 0;
}

.card-3 .card-icon-wrapper {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
}

.card-3 .card-icon i {
    color: #1E88E5;
}

/* Right Side Cards */
.card-4 {
    top: 10%;
    right: 0;
    flex-direction: row-reverse;
}

.card-4 .card-icon-wrapper {
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
}

.card-4 .card-icon i {
    color: #42A5F5;
}

.card-5 {
    top: 40%;
    right: 0;
    flex-direction: row-reverse;
}

.card-5 .card-icon-wrapper {
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
}

.card-5 .card-icon i {
    color: #64B5F6;
}

.card-6 {
    top: 70%;
    right: 0;
    flex-direction: row-reverse;
}

.card-6 .card-icon-wrapper {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.card-6 .card-icon i {
    color: #FF9800;
}

/* Technology Stack Section */
.tech-stack-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--background) 100%);
    position: relative;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.tech-category {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-category:hover::before {
    transform: scaleX(1);
}

.tech-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.tech-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tech-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(30, 136, 229, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tech-category:hover .tech-icon {
    background: var(--primary);
    color: white;
    transform: rotate(5deg) scale(1.05);
}

.tech-header-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

.tech-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

.tech-items {
    display: grid;
    gap: 10px;
}

.tech-item {
    background: rgba(30, 136, 229, 0.05);
    color: var(--text);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(30, 136, 229, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item:hover {
    transform: translateX(8px);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.25);
}

.tech-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(30, 136, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tech-item:hover .tech-item-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.tech-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.tech-item-content strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s ease;
}

.tech-item:hover .tech-item-content strong {
    color: white;
}

.tech-item-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.tech-item:hover .tech-item-content span {
    color: rgba(255, 255, 255, 0.8);
}

/* Specific color schemes for different tech items */
.tech-item[data-tech="html"]:hover::before {
    background: linear-gradient(135deg, #E34F26, #F06529);
}

.tech-item[data-tech="css"]:hover::before {
    background: linear-gradient(135deg, #1572B6, #33A9DC);
}

.tech-item[data-tech="js"]:hover::before {
    background: linear-gradient(135deg, #F7DF1E, #F0DB4F);
}

.tech-item[data-tech="js"]:hover .tech-item-content strong,
.tech-item[data-tech="js"]:hover .tech-item-content span {
    color: #000;
}

.tech-item[data-tech="php"]:hover::before {
    background: linear-gradient(135deg, #777BB4, #8892BF);
}

.tech-item[data-tech="mysql"]:hover::before {
    background: linear-gradient(135deg, #00758F, #00A4C4);
}

.tech-item[data-tech="esp8266"]:hover::before {
    background: linear-gradient(135deg, #00979D, #00BDC5);
}

.tech-item[data-tech="rfid"]:hover::before {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
}

.tech-item[data-tech="chartjs"]:hover::before {
    background: linear-gradient(135deg, #FF6384, #36A2EB);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tech-category {
        padding: 24px;
    }
    
    .tech-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .tech-header-content h3 {
        font-size: 1.25rem;
    }
}

/* Footer styles moved to bottom of file */

.social-links a {
    color: var(--text-light);
    margin-left: 25px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

/* Attendance Simulation */
.simulation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    perspective: 1000px;
    transform: scale(1.8);
}

.simulation-container {
    transform: scale(1);
    height: 300px;
}

.rfid-reader-box {
    width: 200px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(50deg) rotateZ(-20deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Shadow under the reader */
.rfid-reader-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    transform: translateZ(-20px);
    filter: blur(20px);
    border-radius: 10px;
}

.reader-face {
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    backface-visibility: hidden;
}

.reader-top {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    position: relative;
}

/* Status Light Bar */
.reader-top::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.reader-bottom {
    width: 200px;
    height: 120px;
    transform: translate(-50%, -50%) translateZ(-20px) rotateX(180deg);
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.reader-front {
    width: 200px;
    height: 40px;
}

/* FORCE OVERRIDES FOR LIGHT MODE FEATURE CARDS */
[data-theme="light"] .features {
    background: transparent !important;
}

[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 71, 161, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .feature-card:hover {
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.15) !important;
    transform: translateY(-5px);
}

[data-theme="light"] .feature-card h3 {
    color: #0a0a0a !important;
}

[data-theme="light"] .feature-card p,
[data-theme="light"] .feature-card li {
    color: #424242 !important;
}

[data-theme="light"] .card-icon {
    background: rgba(13, 71, 161, 0.1) !important;
}

[data-theme="light"] .card-icon i {
    color: var(--primary) !important;
}

/* Light Mode for Benefit Cards */
[data-theme="light"] .benefit-card {
    background: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 71, 161, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .benefit-card:hover {
    background: white;
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.12);
    border-color: rgba(30, 136, 229, 0.4);
}

[data-theme="light"] .benefit-card h3 {
    color: #0a0a0a;
}

[data-theme="light"] .benefit-card p,
[data-theme="light"] .benefit-features li {
    color: #424242;
}

[data-theme="light"] .benefit-icon {
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.25);
}

[data-theme="light"] .benefit-card:hover .benefit-icon {
    box-shadow: 0 12px 32px rgba(255, 152, 0, 0.35);
}

[data-theme="light"] .benefit-features li:hover {
    color: #0a0a0a;
}

/* Light Mode About/Project Overview Section */
[data-theme="light"] .about {
    background: transparent;
    border-bottom-color: var(--border);
}

[data-theme="light"] .section-header h2 {
    color: #0a0a0a;
}

[data-theme="light"] .underline {
    background-color: var(--primary);
}

[data-theme="light"] .about-text {
    background: rgba(13, 71, 161, 0.04);
    color: #424242;
    border-left-color: var(--primary);
}

[data-theme="light"] .stat-card {
    background: white;
    border-color: rgba(13, 71, 161, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .stat-card:hover {
    background: rgba(30, 136, 229, 0.04);
    border-color: rgba(30, 136, 229, 0.3);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.1);
}

[data-theme="light"] .stat-card::before {
    background: var(--primary);
}

[data-theme="light"] .stat-icon {
    background: rgba(13, 71, 161, 0.08);
    border-color: rgba(13, 71, 161, 0.15);
}

[data-theme="light"] .stat-card:hover .stat-icon {
    background: var(--primary);
    color: white;
}

[data-theme="light"] .stat-icon i {
    color: var(--primary);
}

[data-theme="light"] .stat-card:hover .stat-icon i {
    color: white;
}

[data-theme="light"] .stat-info h3 {
    color: #0a0a0a;
}

[data-theme="light"] .stat-info p {
    color: #6c757d;
}

/* Footer Styles */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    color: var(--text);
}

.footer-main {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.footer-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-logo {
    color: var(--text);
}

.footer-logo span {
    color: var(--primary);
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact span {
    line-height: 1.6;
}

.footer-contact a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.footer-bottom-links span {
    color: var(--border);
}

.footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(30, 136, 229, 0.3);
    border-radius: 50px;
    margin: 0 auto;
    width: fit-content;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.footer-badge i {
    color: var(--accent);
    font-size: 1rem;
}

[data-theme="light"] .footer-badge {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(255, 152, 0, 0.08));
    border-color: rgba(13, 71, 161, 0.25);
}

/* Light Mode Footer */
[data-theme="light"] .footer {
    background: var(--card-bg);
    border-top-color: var(--border);
}

[data-theme="light"] .footer-bottom {
    border-top-color: var(--border);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Team Section Theme Overrides */
.team {
    background: transparent !important;
}

.team-card {
    background: var(--card-bg) !important;
    border-color: var(--border) !important;
}

.member-avatar {
    background: var(--card-bg) !important;
    border-color: var(--border) !important;
}

.member-info h3 {
    color: var(--text) !important;
}

.member-info p {
    color: var(--text-muted) !important;
}

.member-info .role {
    color: var(--primary) !important;
    background: rgba(30, 136, 229, 0.1) !important;
    border-color: rgba(30, 136, 229, 0.2) !important;
}

.social-icons a {
    background: rgba(30, 136, 229, 0.1) !important;
    color: var(--text-muted) !important;
    border-color: var(--border) !important;
}

.social-icons a:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Light Mode Team Section */
[data-theme="light"] .team {
    background: transparent !important;
}

[data-theme="light"] .team-card {
    background: white !important;
    border-color: rgba(13, 71, 161, 0.12) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .team-card:hover {
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15) !important;
}

[data-theme="light"] .member-avatar {
    background: #f8f9fa !important;
    border-color: rgba(13, 71, 161, 0.2) !important;
}

[data-theme="light"] .member-info h3 {
    color: #0a0a0a !important;
}

[data-theme="light"] .member-info p {
    color: #424242 !important;
}

[data-theme="light"] .member-info .role {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(30, 136, 229, 0.05)) !important;
    border-color: rgba(13, 71, 161, 0.25) !important;
}

[data-theme="light"] .social-icons a {
    background: rgba(13, 71, 161, 0.08) !important;
    color: var(--primary) !important;
}

/* ============================================
   ADVANCED ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* Ripple Effect for Cards */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Float Animation for Tech Visual */
@keyframes float-enhanced {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) rotateZ(1deg) scale(1.02);
    }
    50% {
        transform: translateY(-15px) rotateZ(-1deg) scale(1.01);
    }
    75% {
        transform: translateY(-25px) rotateZ(0.5deg) scale(1.02);
    }
}

.tech-visual {
    animation: float-enhanced 6s ease-in-out infinite !important;
}

/* Advanced Shimmer Effect for Floating Card */
.floating-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 60%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    animation: shimmer-sweep 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer-sweep {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Enhanced Card Photo with Glow */
.card-photo {
    animation: photo-pulse 3s ease-in-out infinite;
}

@keyframes photo-pulse {
    0%, 100% {
        box-shadow: 
            0 8px 16px rgba(0, 0, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 16px rgba(0, 0, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.2),
            0 0 30px rgba(30, 136, 229, 0.4);
    }
}

/* Benefit Icon Advanced Animations */
.benefit-icon {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
}



@keyframes glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Benefit Card Enhanced Transitions */
.benefit-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}



/* Scroll Fade In Animation */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smart Navbar Animations */
.navbar {
    transition: transform 0.3s ease-in-out;
}

.navbar.scroll-down {
    transform: translateY(-100%);
}

.navbar.scroll-up {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Enhanced RFID Indicator Animation */
.rfid-indicator {
    animation: rfid-pulse 2s ease-in-out infinite;
}

@keyframes rfid-pulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(34, 197, 94, 0.3),
            inset 0 0 5px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(34, 197, 94, 0.8),
            inset 0 0 10px rgba(34, 197, 94, 0.5),
            0 0 40px rgba(34, 197, 94, 0.4);
    }
}

/* Card Chip Enhanced Glow */
.card-chip {
    animation: chip-glow-enhanced 3s ease-in-out infinite !important;
}

@keyframes chip-glow-enhanced {
    0%, 100% {
        box-shadow:
            0 4px 8px rgba(217, 119, 6, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    33% {
        box-shadow:
            0 4px 12px rgba(217, 119, 6, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 20px rgba(251, 191, 36, 0.4);
    }
    66% {
        box-shadow:
            0 6px 16px rgba(217, 119, 6, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 30px rgba(251, 191, 36, 0.5),
            0 0 40px rgba(251, 191, 36, 0.2);
    }
}

/* Student Name Glitch Effect on Hover */
.student-name {
    position: relative;
}

.floating-card:hover .student-name::before,
.floating-card:hover .student-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-card:hover .student-name::before {
    left: 2px;
    text-shadow: -2px 0 #42A5F5;
    animation: glitch-1 0.3s ease-in-out infinite;
}

.floating-card:hover .student-name::after {
    left: -2px;
    text-shadow: 2px 0 #FF9800;
    animation: glitch-2 0.3s ease-in-out infinite;
}

@keyframes glitch-1 {
    0%, 100% {
        clip-path: inset(40% 0 61% 0);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        clip-path: inset(28% 0 71% 0);
    }
    20% {
        clip-path: inset(61% 0 14% 0);
    }
    40% {
        clip-path: inset(6% 0 81% 0);
    }
    60% {
        clip-path: inset(70% 0 27% 0);
    }
    80% {
        clip-path: inset(2% 0 98% 0);
    }
}

/* Barcode Scan Animation */
.barcode {
    position: relative;
    overflow: hidden;
}

.barcode::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.3), transparent);
    animation: scan-effect 3s ease-in-out infinite;
}

@keyframes scan-effect {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

/* Floating Card 3D Transform Enhancement */
.floating-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Team Card Hover Enhancement */
.team-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover {
    transform: translateY(-10px) scale(1.03) rotateZ(1deg);
}

/* Feature Card 3D Tilt */
.feature-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
}