/* Emphasized Learn More button style */
.btn-learn-more {
    color: #fff !important;
    border: 2px solid #fff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.18);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn-learn-more:hover, .btn-learn-more:focus {
    background: #fff !important;
    color: #5a60e6 !important;
    border-color: #5a60e6 !important;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.25);
}

/* Base Styles & Reset */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Main CSS for ExitTrack System */

.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background-color: #5a60e6 !important;
    opacity: 1 !important;
    transition: background 0.3s, box-shadow 0.3s;
}

/* removed stray closing brace */
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
}
.hero-section {
    background: #fff !important;
    color: #222 !important;
    padding: 140px 0 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #5a60e6 !important;
    animation: fadeInUp 1s ease;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: #764ba2 !important;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.feature-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    font-size: 35px;
    color: white;
}
.feature-icon.teacher {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.feature-icon.student {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.feature-icon.guard {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}
.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}
.feature-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}
.btn-custom {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.btn-primary-custom {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white;
}
.btn-outline-custom {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline-custom:hover {
    background: white;
    color: #667eea;
    border-color: white;
}
.stats-section {
    padding: 80px 0;
    background: #f8f9fa;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}
.how-it-works {
    padding: 80px 0;
}
.step-item {
    text-align: center;
    position: relative;
}
.step-number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.step-number i {
    font-size: 2.2rem;
    color: #fff;
    display: block;
    line-height: 1;
    vertical-align: -.125em;
} /* FIX: properly close .step-number i rule */

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}
.step-desc {
    color: #666;
    line-height: 1.6;
}
.login-section {
    padding: 100px 0;
    background: var(--primary-gradient);
    color: white;
}
.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    color: #333;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
}
.footer h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}
.footer a:hover {
    color: white;
    text-decoration: underline;
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.demo-credentials {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
}
.demo-credentials p {
    margin-bottom: 5px;
    color: #666;
}
.demo-credentials strong {
    color: #667eea;
}
/* ===================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   =================================== */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 80px 0 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        max-width: 90%;
        margin-top: 2rem;
    }
    
    /* Buttons */
    .btn-custom {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Features Section */
    #features {
        padding: 3rem 0;
    }
    
    #features .display-5 {
        font-size: 1.75rem;
    }
    
    #features .lead {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 30px 20px;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .feature-desc {
        font-size: 0.9rem;
    }
    
    .feature-card ul {
        font-size: 0.85rem;
    }
    
    /* Statistics Section */
    .stats-section {
        padding: 3rem 0;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* How It Works Section */
    .how-it-works {
        padding: 3rem 0;
    }
    
    .how-it-works .display-5 {
        font-size: 1.75rem;
    }
    
    .how-it-works .lead {
        font-size: 1rem;
    }
    
    .step-item {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .step-number i {
        font-size: 1.8rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-desc {
        font-size: 0.9rem;
    }
    
    /* Login Section */
    .login-section {
        padding: 3rem 0;
    }
    
    .login-card {
        padding: 25px;
    }
    
    .login-card h3 {
        font-size: 1.5rem;
    }
    
    .login-card .feature-list {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 15px;
        text-align: center;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        margin-top: 1rem;
    }
    
    .footer-contact {
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.85rem;
        margin-top: 30px;
        padding-top: 15px;
    }
    
    .copyright-features {
        font-size: 0.75rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 100px 0 80px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-image {
        max-width: 85%;
        margin-top: 2rem;
    }
    
    .btn-custom {
        padding: 11px 25px;
        font-size: 0.88rem;
    }
    
    /* Features */
    .feature-card {
        padding: 35px 25px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 32px;
    }
    
    /* Statistics */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* Login Section */
    .login-card {
        padding: 30px;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: 1.6rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 120px 0 90px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image {
        max-width: 80%;
        margin-top: 1rem;
    }
    
    /* Features */
    .feature-card {
        padding: 35px 28px;
    }
    
    .feature-icon {
        width: 75px;
        height: 75px;
        line-height: 75px;
        font-size: 33px;
    }
    
    .feature-title {
        font-size: 1.4rem;
    }
    
    /* Statistics */
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    /* How It Works */
    .how-it-works {
        padding: 60px 0;
    }
    
    .step-number {
        width: 65px;
        height: 65px;
    }
    
    .step-number i {
        font-size: 2rem;
    }
    
    /* Login Section */
    .login-section {
        padding: 80px 0;
    }
    
    .login-card {
        padding: 35px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 18px;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-image {
        max-width: 85%;
    }
    
    .feature-card {
        padding: 38px 28px;
    }
    
    .stat-number {
        font-size: 2.3rem;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-image {
        max-width: 80%;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Landscape Orientation Specific */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .stats-section,
    .how-it-works,
    .login-section {
        padding: 40px 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-custom {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .nav-link {
        padding: 12px 15px;
    }
    
    .feature-card:hover {
        transform: none; /* Disable hover transform on touch devices */
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: cover;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn-custom {
        display: none;
    }
    
    .hero-section,
    #features,
    #stats,
    #how-it-works {
        page-break-inside: avoid;
    }
}