:root {
    --primary-cyan: #06b6d4;
    --primary-purple: #8b5cf6;
    --primary-pink: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    padding-top: 70px;
    color: white;
}

/* Navbar Styles */
.nav-glass {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-item {
    color: #e2e8f0;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    transition: width 0.3s ease;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: var(--primary-cyan);
}

/* Mobile Menu Styles */
#mobileMenuBtn {
    display: none;
}

#mobileNav {
    display: none;
}

@media (max-width: 767px) {
    #mobileMenuBtn {
        display: block;
    }
    
    #mainNav {
        display: none !important;
    }
    
    #mobileNav {
        display: none;
    }
    
    #mobileNav.block {
        display: block;
    }
}

/* Animated Background Elements */
.bird {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 50% 50% 50% 0;
    opacity: 0.3;
    animation: fly 15s infinite linear;
}

.bird-1 {
    top: 20%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.bird-2 {
    top: 40%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.bird-3 {
    top: 60%;
    animation-delay: -14s;
    animation-duration: 18s;
}

@keyframes fly {
    0% { left: -50px; transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(2deg); }
    100% { left: calc(100vw + 50px); transform: translateY(0) rotate(0deg); }
}

/* Waterfall Effect */
.waterfall {
    position: absolute;
    top: 0;
    right: 10%;
    width: 2px;
    height: 100%;
}

.drop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, transparent, var(--primary-cyan), transparent);
    animation: fall 3s infinite linear;
    opacity: 0.6;
}

.drop-1 {
    animation-delay: 0s;
}

.drop-2 {
    animation-delay: 0.6s;
}

.drop-3 {
    animation-delay: 1.2s;
}

.drop-4 {
    animation-delay: 1.8s;
}

.drop-5 {
    animation-delay: 2.4s;
}

@keyframes fall {
    0% { top: -20px; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 100vh; opacity: 0; }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-purple);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 8s infinite ease-in-out;
}

.particle-1 {
    left: 20%;
    top: 30%;
    animation-delay: 0s;
}

.particle-2 {
    left: 60%;
    top: 20%;
    animation-delay: 2s;
}

.particle-3 {
    left: 80%;
    top: 70%;
    animation-delay: 4s;
}

.particle-4 {
    left: 30%;
    top: 80%;
    animation-delay: 6s;
}

.particle-5 {
    left: 70%;
    top: 50%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}
select.form-select {
    /* Vendor prefixes first */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Standard property last */
    appearance: none;
    
    /* Other styles */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg...");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
/* Text Animation - Typewriter Effect */
.text-animation-container {
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.text-animation-text {
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    border-right: 4px solid var(--primary-cyan);
    padding-right: 8px;
    animation: blinkCursor 1s infinite;
    align-items: center;
}

@keyframes blinkCursor {
    0%, 100% { border-right-color: var(--primary-cyan); }
    50% { border-right-color: transparent; }
}

/* Face Scanner Styles */
.face-scanner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.face-scanner-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1/1;
    border: 2px solid var(--primary-cyan);
    border-radius: 20px;
    background: rgba(6, 182, 212, 0.05);
    overflow: hidden;
}

.scanner-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridPulse 2s infinite ease-in-out;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.face-outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 250px;
    border: 2px solid var(--primary-cyan);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.6;
    animation: faceGlow 3s infinite ease-in-out;
}

@keyframes faceGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.3); }
    50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.8); }
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    animation: scanVertical 3s infinite ease-in-out;
}

.scan-line-1 {
    animation-delay: 0s;
}

.scan-line-2 {
    animation-delay: 1.5s;
}

@keyframes scanVertical {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Hologram Effect */
.hologram-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 220px;
    opacity: 0;
    animation: hologramAppear 6s infinite;
}

.hologram-layer {
    position: absolute;
    inset: 0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 1px solid;
    opacity: 0.8;
}

.hologram-layer-1 {
    border-color: var(--primary-cyan);
    animation: hologramFloat 2s infinite ease-in-out;
}

.hologram-layer-2 {
    border-color: var(--primary-purple);
    animation: hologramFloat 2s infinite ease-in-out reverse;
    animation-delay: 0.5s;
}

.hologram-layer-3 {
    border-color: var(--primary-pink);
    animation: hologramFloat 2s infinite ease-in-out;
    animation-delay: 1s;
}

@keyframes hologramAppear {
    0%, 70% { opacity: 0; }
    80%, 100% { opacity: 1; }
}

@keyframes hologramFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Scanner UI */
.scanner-ui {
    position: absolute;
    inset: 0;
}

.scanner-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-cyan);
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.scanner-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scanner-status {
    color: var(--primary-cyan);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    animation: statusBlink 1s infinite;
}

@keyframes statusBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.scanner-progress {
    width: 100px;
    height: 4px;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 2px;
    animation: progressLoad 3s infinite;
}

@keyframes progressLoad {
    0% { width: 0; }
    100% { width: 100%; }
}
/* 3D Card Effects */
.card-3d {
    perspective: 1000px;
    height: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-3d:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-back {
    transform: rotateY(180deg);
    background: rgba(139, 92, 246, 0.2);
}
/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Digital Clock */
.digital-clock-row {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f7;
    border: 3px solid #bbb;
    border-radius: 18px;
    max-width: 700px;
    margin: 20px auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    font-family: 'Orbitron', 'Segoe UI', monospace;
    gap: 20px;
    padding: 10px 20px;
}

.clock-day {
    font-size: 2.1rem;
    letter-spacing: 0.1em;
    color: #222;
    font-weight: 600;
    min-width: 140px;
    text-align: center;
}

.clock-ampm {
    font-size: 2.1rem;
    color: #444;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

.clock-time {
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: #111;
    font-weight: 700;
    margin-right: 0;
    line-height: 1;
}

.clock-seconds {
    font-size: 2rem;
    color: #111;
    font-weight: 700;
    margin-left: 2px;
    margin-bottom: 0px;
    line-height: 1;
}

.clock-datebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    border: 1.5px solid #bbb;
    min-width: 70px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.clock-month {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.clock-date {
    font-size: 1.7rem;
    color: #111;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: -2px;
}

/* Field & Course Section */
.placeholder-option {
    color: #fffdfd;
    font-style: italic;
    background-color: #333;
}

#scanner-wrapper {
    display: none;
}

video {
    width: 100%;
    height: auto;
    max-height: 300px;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #000;
    transform: scaleX(-1); /* Mirror effect */
}

#student-info {
    border: 4px solid #333;
    border-radius: 10px;
    width: 100%;
    height: auto;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #333;
}

#student-info p {
    margin-bottom: 10px;
}

#student-info strong {
    color: #111;
}

#mark-attendance {
    margin-top: 15px;
}

/* Service Cards */
.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-btn {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}



/* Footer Styles */
footer {
    background-color: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 40px 0 20px;
    position: relative;
    z-index: 10;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--primary-cyan);
}

/* Responsive Styles */
@media (max-width: 700px) {
    .digital-clock-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    
    .clock-day, .clock-ampm, .clock-time, .clock-seconds, .clock-datebox {
        font-size: 1.2rem;
    }
    
    .clock-datebox {
        min-width: 50px;
    }
    
    .face-scanner-container {
        height: auto;
        padding: 20px 0;
    }
    
    .face-scanner-frame {
        width: 300px;
        height: 300px;
    }
    
    #student-info {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .digital-clock-row {
        flex-direction: column;
        align-items: center;
    }
    
    .clock-day, .clock-ampm, .clock-time, .clock-seconds {
        text-align: center;
        width: 100%;
    }
    
    .face-scanner-frame {
        width: 250px;
        height: 250px;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

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

/* Button Styles */
.btn-primary {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.glow-button {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.glass-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}