/* PUP Unisan OJT Monitoring System Custom Styles */

/* Base responsive styles */
.hero-stats {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-stats .stat-item {
    text-align: center;
    min-width: 80px;
}

.hero-stats .stat-number {
    line-height: 1.1;
    margin-bottom: 0.25rem;
    font-size: 2.5rem;
}

.hero-stats .stat-label {
    line-height: 1.2;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-stats .col-4 {
    flex: 1 1 auto;
    width: auto;
    padding: 0.5rem;
    max-width: 120px;
}

:root {
    --pup-maroon: #800000;
    --pup-maroon-light: #a0522d;
    --pup-maroon-dark: #5c0000;
    --pup-gold: #FFD700;
    --pup-gold-dark: #b8860b;
    --pup-dark: #1a1a1a;
    --pup-light: #f8f9fa;
    --pup-gray: #6c757d;
    --pup-success: #28a745;
    --pup-info: #17a2b8;
    --pup-warning: #ffc107;
    --pup-danger: #dc3545;
    --gradient-primary: linear-gradient(135deg, var(--pup-maroon) 0%, var(--pup-maroon-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--pup-maroon-dark) 0%, var(--pup-maroon) 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #c27272 0%, #a0522d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: var(--pup-gold);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Face Scan Animation */
.face-scan-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.face-scan-gif {
    width: 350px;
    height: 350px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    opacity: 0.9;
    filter: brightness(1.1) contrast(1.1);
}

@keyframes scanMove {
    0%, 100% { top: 30%; opacity: 0; }
    50% { top: 70%; opacity: 1; }
}

.scan-corners {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 280px;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--pup-gold);
}

.corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.status-indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.status-dot.active {
    background: var(--pup-gold);
    box-shadow: 0 0 10px var(--pup-gold);
}

/* Access Portal Section */
.access-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.access-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-title {
    color: var(--pup-maroon);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--pup-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Role Cards */
.role-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    height: 100%;
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.role-card-header {
    background: linear-gradient(135deg, var(--pup-maroon) 0%, var(--pup-maroon-light) 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.role-card-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 10px solid var(--pup-maroon-light);
}

.role-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.role-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.role-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
}

.role-card-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.role-features {
    margin: 20px 0;
    flex: 1;
}

.feature-item {
    padding: 8px 0;
    color: var(--pup-gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.feature-item i {
    color: var(--pup-maroon);
    margin-right: 10px;
    width: 16px;
}

/* Button Styles */
.btn-admin {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
    color: white;
}

.btn-supervisor {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-supervisor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-instructor {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-instructor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.3);
    color: white;
}

.btn-intern {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-intern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn-outline-intern {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-outline-intern:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* Admin card specific styling */
.admin-card .role-card-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.admin-card .role-card-header::after {
    border-top-color: #c82333;
}

.admin-card .feature-item i {
    color: #dc3545;
}

/* Supervisor card specific styling */
.supervisor-card .role-card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.supervisor-card .role-card-header::after {
    border-top-color: #20c997;
}

.supervisor-card .feature-item i {
    color: #28a745;
}

/* Instructor card specific styling */
.instructor-card .role-card-header {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.instructor-card .role-card-header::after {
    border-top-color: #e83e8c;
}

.instructor-card .feature-item i {
    color: #6f42c1;
}

/* Intern card specific styling */
.intern-card .role-card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.intern-card .role-card-header::after {
    border-top-color: #0056b3;
}

.intern-card .feature-item i {
    color: #007bff;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, var(--pup-maroon) 0%, var(--pup-maroon-dark) 100%);
    padding: 80px 0;
    color: white;
}

.features-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--pup-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--pup-maroon);
}

.feature-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer Improvements */
.footer-section {
    background: var(--pup-dark);
    padding: 60px 0 30px;
    color: white;
}

.footer-section h5 {
    color: var(--pup-gold);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a:hover {
    color: var(--pup-gold);
    transform: translateX(5px);
}

.footer-contact li {
    transition: all 0.3s ease;
}

.footer-contact li:hover {
    transform: translateX(5px);
}

.access-portal {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    color: var(--pup-maroon);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--pup-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.landing-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.landing-card-header {
    background-color: var(--pup-maroon);
    color: white;
    padding: 15px;
    text-align: center;
}

.landing-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.landing-card-body {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.landing-card-icon {
    font-size: 3rem;
    color: var(--pup-maroon);
    margin-bottom: 20px;
}

.landing-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--pup-dark);
}

.landing-card-text {
    color: var(--pup-gray);
    margin-bottom: 15px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.card-features .badge {
    background-color: var(--pup-maroon-light);
    color: var(--pup-maroon);
    font-weight: 500;
    padding: 6px 12px;
    margin: 2px;
}

.landing-info-card {
    margin-bottom: 30px;
}

.landing-info-card .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.landing-info-card .card-title {
    color: var(--pup-maroon);
    font-weight: 600;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.feature-list li i {
    color: var(--pup-maroon);
    position: absolute;
    left: 0;
    top: 3px;
}

.landing-footer {
    background-color: var(--pup-dark);
    color: white;
    padding: 30px 0 20px;
    margin-top: auto;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section, .footer-section p, .footer-section a, .footer-section li, .footer-section span {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
}

.footer-section .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-section h5 {
    color: white !important;
}

.footer-section {
    font-size: 0.9rem; /* Set a base font size for the entire footer */
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--pup-gold);
    margin-right: 12px;
    margin-top: 4px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact .text-muted {
    color: rgba(255, 255, 255, 0.8) !important; /* Override Bootstrap's default color */
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Login Styles */
.login-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 100px;
    height: auto;
}

.login-title {
    text-align: center;
    color: var(--pup-maroon);
    font-weight: 700;
    margin-bottom: 30px;
}

.login-form .form-group label {
    font-weight: 600;
    color: var(--pup-dark);
}

.login-form .form-control {
    border-radius: 5px;
    padding: 12px 15px;
    height: auto;
    border: 1px solid #ddd;
}

.login-form .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25);
    border-color: var(--pup-maroon);
}

/* Button Styles */
.btn-pup {
    background-color: var(--pup-maroon);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-pup:hover, .btn-pup:focus {
    background-color: #600000;
    color: white;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.btn-pup-gold {
    background-color: var(--pup-gold);
    color: var(--pup-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-pup-gold:hover, .btn-pup-gold:focus {
    background-color: #e6c200;
    color: var(--pup-dark);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-outline-pup {
    background-color: transparent;
    color: var(--pup-maroon);
    border: 2px solid var(--pup-maroon);
    padding: 9px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-pup:hover, .btn-outline-pup:focus {
    background-color: var(--pup-maroon);
    color: white;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.2);
}

/* Tab Styles */
.nav-tabs .nav-link {
    color: var(--pup-gray);
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 10px 15px;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: var(--pup-maroon);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}
/* Face Recognition Styles */
.webcam-container {
    margin: 0 auto;
    max-width: 320px;
    border: 3px solid var(--pup-maroon);
    border-radius: 5px;
    overflow: hidden;
}

/* Dashboard Styles */
.dashboard-header {
    background-color: var(--pup-maroon);
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}

.dashboard-title {
    font-weight: 700;
    margin-bottom: 0;
}

.dashboard-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.dashboard-card-header {
    background-color: var(--pup-maroon);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.dashboard-card-body {
    padding: 20px;
}

/* Registration Form Styles */
.register-form .form-group label {
    font-weight: 600;
    color: var(--pup-dark);
}

.register-form .form-control {
    border-radius: 5px;
    padding: 10px 15px;
    height: auto;
    border: 1px solid #ddd;
}

.register-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.register-step {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin: 0 5px;
    position: relative;
}

.register-step.active {
    background-color: var(--pup-maroon);
    color: white;
}

.register-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 20px;
    height: 2px;
    background-color: #ddd;
}

/* Universal Mobile Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 5px 0;
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .hero-content {
        padding: 0 15px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    /* Reorder elements on mobile - face scan above everything */
    .row.align-items-center {
        display: flex;
        flex-direction: column;
    }
    
    .col-lg-6:first-child {
        order: 2;
        width: 100%;
    }
    
    .col-lg-6:last-child {
        order: 1;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        padding: 0;
        line-height: 1.3;
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        margin-bottom: 0.3rem;
        display: block;
        text-align: center;
    }
    
    .hero-stats {
        margin-bottom: 0.8rem;
        padding: 0;
    }
    
    .hero-stats .row {
        justify-content: center;
        margin: 0;
        gap: 0.5rem;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 0.3rem;
        padding: 0.2rem;
        flex: 0 1 auto;
    }
    
    .stat-number {
        font-size: 1rem !important;
        line-height: 1.1;
    }
    
    .stat-label {
        font-size: 0.65rem;
        margin-top: 0.1rem;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 220px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .hero-visual {
        margin-top: 0;
        margin-bottom: 1.5rem;
        text-align: center;
        padding: 0;
    }
    
    .face-scan-container {
        width: 200px;
        height: 200px;
        margin: 1rem auto;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .row.align-items-center {
        align-items: flex-start !important;
        min-height: auto;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }
    
    /* Force single column layout on mobile */
    .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .role-card-header {
        padding: 25px 20px;
    }
    
    .role-card-body {
        padding: 25px 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .access-section {
        padding: 40px 0;
    }
    
    .features-section {
        padding: 50px 0;
    }
    
    .footer-section {
        padding: 40px 0 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 15px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        padding: 0 5px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .hero-stats {
        margin-bottom: 1.2rem;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 0.6rem;
        padding: 0 5px;
    }
    
    .stat-number {
        font-size: 1.1rem !important;
        line-height: 1.1;
    }
    
    .stat-label {
        font-size: 0.7rem;
        margin-top: 0.1rem;
    }
    
    .hero-actions {
        gap: 0.6rem;
    }
    
    .hero-actions .btn {
        max-width: 260px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .role-card {
        margin-bottom: 25px;
    }
    
    .face-scan-container {
        width: 240px;
        height: 240px;
        margin: 0 auto;
        padding: 1.2rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .face-outline {
        width: 130px;
        height: 160px;
    }
    
    .scan-corners {
        width: 160px;
        height: 200px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .access-section {
        padding: 30px 0;
    }
    
    .features-section {
        padding: 40px 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-stats .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-stats .stat-item {
        display: inline-block;
        margin: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-actions .btn {
        max-width: 240px;
        font-size: 0.85rem;
    }
    
    .face-scan-container {
        width: 220px;
        height: 220px;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Face Scan Container Styles */
.face-scan-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.scan-frame {
    position: relative;
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .scan-frame {
        height: 120px;
    }
}

/* Additional responsive fixes for all screen sizes */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.8rem !important;
    }
    
    .face-scan-container {
        width: 160px !important;
        height: 160px !important;
    }
    
    .scan-frame {
        height: 100px !important;
    }
}

/* Desktop view on mobile fix */
@media (min-width: 769px) {
    .hero-visual {
        margin-top: 2rem;
    }
    
    .face-scan-container {
        width: 300px;
        height: 300px;
        margin: 1rem auto;
    }
    
    .scan-frame {
        height: 200px;
    }
}

.face-scan-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0.9;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--pup-gold);
    z-index: 2;
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 5px;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 5px;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 5px;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 5px;
}

.scan-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .scan-status {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    animation: pulse 2s infinite;
}

.status-indicator.active {
    background: #28a745;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

html, body {
    height: 100%;
    min-height: 100%;
}

#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

#main-content {
    flex: 1 1 auto;
    min-height: 100vh;
    background: #f8f9fa;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
}

/* ========================================
   RESPONSIVE DESIGN MEDIA QUERIES
======================================== */

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-stats .stat-number {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2.8rem;
    }
    
    .role-card {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.9rem;
    }
    
    .hero-actions .btn {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .face-scan-container {
        margin-top: 2rem;
    }
    
    .role-card {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 10px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .face-scan-container {
        width: 200px;
        height: 200px;
        margin: 0.3rem auto 0;
    }
    
    .hero-actions {
        margin-bottom: 0.4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-bottom: 1.5rem;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .hero-stats .col-4 {
        flex: 1;
        max-width: none;
        padding: 0.25rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }
    
    .face-scan-container {
        margin-top: 2rem;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .scan-frame {
        width: 250px;
        height: 250px;
    }
    
    .role-card {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 1.5rem 0;
        text-align: center;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        flex-direction: row;
        justify-content: space-around;
        padding: 0 0.5rem;
    }
    
    .hero-stats .col-4 {
        flex: 1;
        max-width: none;
        padding: 0.25rem;
        min-width: 70px;
    }
    
    .hero-stats .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.1rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.7rem;
        line-height: 1.1;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        margin: 0;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .face-scan-container {
        margin-top: 1.5rem;
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .scan-frame {
        width: 200px;
        height: 200px;
    }
    
    .face-scan-gif {
        width: 180px;
        height: 180px;
    }
    
    .scan-status {
        font-size: 0.8rem;
        margin-top: 0.75rem;
    }
    
    .access-section {
        padding: 2rem 0;
    }
    
    .role-card {
        margin-bottom: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Fix role cards on mobile */
    .role-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .role-card-header h3 {
        font-size: 1.25rem;
    }
    
    .role-card-body p {
        font-size: 0.85rem;
    }
    
    .btn-role {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Ultra Small Devices (Very small phones, less than 360px) */
@media (max-width: 359.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.4rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.65rem;
    }
    
    .scan-frame {
        width: 180px;
        height: 180px;
    }
    
    .face-scan-gif {
        width: 160px;
        height: 160px;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 0.5rem 0;
        align-items: center;
    }
    
    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-stats {
        margin-bottom: 0.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1rem;
    }
    
    .face-scan-container {
        width: 120px;
        height: 120px;
        margin: 0.1rem auto 0;
        padding: 0.4rem;
    }
    
    .hero-actions {
        margin-bottom: 0.2rem;
    }
    
    .hero-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        max-width: 180px;
    }
    
    .scan-frame {
        height: 80px;
    }
}
