/* Reset and Base Styles */
:root {
    --primary-dark: #1e3c72;
    --primary: #2a5298;
    --primary-grad: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent;
}

/* Modern Header Design */
.modern-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: inherit;
}

.logo-circle:hover {
    transform: scale(1.05);
}

.logo-circle.blue {
    background: linear-gradient(135deg, #f2f3f5 0%, #357ABD 100%);
    border: 3px solid rgba(255,255,255,0.3);
}

.logo-circle.yellow {
    background: linear-gradient(135deg, #f6f5f3 0%, #fbfaf7 100%);
    border: 3px solid rgba(255,255,255,0.3);
}

.Bagocity_logo, .Upaho_logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.Bagocity_logo:hover, .Upaho_logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
}

.login-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 9px 21px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.register-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 7px 19px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-btn:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.about-btn, .contact-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 7px 19px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-btn:hover, .contact-btn:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.logo-upaho .logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upaho-title {
    font-size: 14px;
    font-weight: 700;
}

.upaho-subtitle {
    font-size: 8px;
    font-weight: 500;
    opacity: 0.9;
}

/* Main Title */
.main-title {
    flex: 1;
    text-align: center;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-title h1 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin: 0;
    max-width: 100%;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    align-items: center;
    min-width: 300px;
    justify-content: flex-end;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive Header Design */
@media (max-width: 1200px) {
    .header-content {
        gap: 15px;
        padding: 0 15px;
    }
    
    .main-title h1 {
        font-size: 15px;
        letter-spacing: 0.3px;
    }
    
    .header-nav {
        gap: 15px;
        min-width: 250px;
    }
    
    .logo-section {
        gap: 15px;
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 15px;
    }
    
    .logo-section {
        order: 1;
        min-width: auto;
    }
    
    .main-title {
        order: 3;
        width: 100%;
        padding: 10px 0;
    }
    
    .main-title h1 {
        font-size: 14px;
    }
    
    .header-nav {
        order: 2;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .header-nav {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .main-title h1 {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .logo-section {
        gap: 10px;
    }
    
    .Bagocity_logo, .Upaho_logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 12px;
    }
}

/* Features Section */
.features-section {
    background: white;
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 60, 114, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 60, 114, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

/* Enhanced button hover effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* Main Content - Hero Section */
.main-content {
    margin-top: 0;
    min-height: 100vh;
    position: relative;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../assets/cityhall.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 0 40px;
    margin-top: 80px;
}

.hero-title {
    font-size: 33px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    animation: none;
    transform: none;
    filter: none;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-dot {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design for Hero Section */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 20px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 18px;
        letter-spacing: 1.5px;
        margin-bottom: 25px;
    }
    
    .hero-content {
        padding: 0 30px;
        margin-top: 60px;
    }
    
    .modern-header {
        padding: 20px 30px;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .login-btn, .register-btn, .about-btn, .contact-btn {
        padding: 7px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }
    
    .hero-content {
        padding: 0 20px;
        margin-top: 50px;
    }
    
    .modern-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        background: rgba(30, 60, 114, 0.2);
    }
    
    .header-logo {
        order: 1;
    }
    
    .header-actions {
        order: 2;
        gap: 10px;
    }
    
    .login-btn, .register-btn, .about-btn, .contact-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .Bagocity_logo, .Upaho_logo {
        width: 38px;
        height: 38px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for page */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeInUp 0.8s ease;
}

.building-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 100px);
    overflow: hidden;
}

.building-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('../images/bago-city-hall.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;

}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-grad);
    border-radius: 2px;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-grad);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 40px auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

/* Show password toggle */
/* deprecated .show-password checkbox removed */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

/* Input with eye icon */
.input-with-icon {
    position: relative;
}
.input-with-icon input[type="password"],
.input-with-icon input[type="text"] {
    padding-right: 42px;
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.toggle-password:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Hide the eye icon when password is visible, show eye-slash */
.toggle-password.is-visible .fa-eye {
    display: none;
}

.toggle-password.is-visible::after {
    content: "\f070"; /* fa-eye-slash */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Force-hide any leftover legacy checkbox-based show password labels */
label.show-password,
.show-password { display: none !important; }

/* Password strength indicator */
.password-strength-bar {
    height: 4px;
    width: 100%;
    background: #e9ecef;
    border-radius: 2px;
    margin: 5px 0;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak {
    background: #dc3545;
    width: 25%;
}

.password-strength-fair {
    background: #fd7e14;
    width: 50%;
}

.password-strength-good {
    background: #ffc107;
    width: 75%;
}

.password-strength-strong {
    background: #28a745;
    width: 100%;
}

.password-criteria {
    font-size: 11px;
    margin-top: 5px;
}

.password-criteria .criteria-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0;
}

.password-criteria .criteria-item.valid {
    color: #28a745;
}

.password-criteria .criteria-item.invalid {
    color: #dc3545;
}

.password-match-status {
    font-size: 12px;
    margin-top: 5px;
}

.password-match-status.match {
    color: #28a745;
}

.password-match-status.no-match {
    color: #dc3545;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Presence badges (for global/public use if needed) */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.status-badge.online {
    background: #d4edda;
    color: #155724;
}
.status-badge.offline {
    background: #f0f1f4;
    color: #6b7280;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Enhanced responsive utilities */
.text-center { text-align: center; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

/* Responsive Design */
@media (max-width: 1200px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-title {
        order: 3;
        width: 100%;
        text-align: center;
    }
    
    .main-title h1 {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .logo-section {
        gap: 20px;
        order: 1;
    }
    
    .header-nav {
        order: 2;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .main-header {
        padding: 12px 0;
    }
    
    .building-section {
        height: calc(100vh - 120px);
    }
    
    .features-section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
    
    .feature-icon {
        font-size: 42px;
        margin-bottom: 18px;
    }
    
    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
        position: sticky;
    }
    
    .header-content {
        padding: 0 15px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .logo-section {
        justify-content: center;
        gap: 15px;
        order: 1;
    }
    
    .main-title {
        order: 2;
        padding: 0 10px;
    }
    
    .main-title h1 {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .header-nav {
        order: 3;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .Bagocity_logo, .Upaho_logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .Bagocity_logo, .Upaho_logo {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 10px;
    }
    
    .upaho-title {
        font-size: 12px;
    }
    
    .building-section {
        height: calc(100vh - 140px);
    }
    
    .building-image {
        background-attachment: scroll;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 220px;
        max-width: 90vw;
    }
    
    .features-section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 35px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Modal responsiveness */
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        margin: 0 auto;
        padding: 20px;
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 8px 0;
    }
    
    .header-content {
        padding: 0 12px;
        gap: 10px;
    }
    
    .logo-section {
        gap: 12px;
    }
    
    .logo-circle {
        width: 45px;
        height: 45px;
    }
    
    .Bagocity_logo, .Upaho_logo {
        width: 28px;
        height: 28px;
    }
    
    .main-title h1 {
        font-size: 12px;
        padding: 0 5px;
    }
    
    .logo-text {
        font-size: 10px;
    }
    
    .upaho-title {
        font-size: 11px;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .building-section {
        height: calc(100vh - 120px);
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 200px;
    }
    
    .features-section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        font-size: 36px;
        margin-bottom: 14px;
    }
    
    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .close {
        font-size: 24px;
        right: 15px;
        top: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main-title h1 {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .logo-text {
        font-size: 9px;
    }
    
    .upaho-title {
        font-size: 10px;
    }
    
    .upaho-subtitle {
        font-size: 6px;
    }
    
    .nav-link {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        width: 180px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .feature-card {
        padding: 20px 12px;
    }
    
    .feature-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .feature-card h3 {
        font-size: 15px;
    }
    
    .feature-card p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .header-content {
        padding: 0 10px;
    }
    
    .main-title h1 {
        font-size: 10px;
    }
    
    .logo-circle {
        width: 40px;
        height: 40px;
    }
    
    .Bagocity_logo, .Upaho_logo {
        width: 24px;
        height: 24px;
    }
    
    .logo-text {
        font-size: 8px;
    }
    
    .upaho-title {
        font-size: 9px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 12px;
        width: 160px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .features-section {
        padding: 35px 0;
    }
    
    .feature-card {
        padding: 18px 10px;
    }
    
    .feature-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .feature-card h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .feature-card p {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .modal-content {
        padding: 12px;
    }
    
    .modal-content h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }
} 

/* Generic responsive helpers */
img { max-width: 100%; height: auto; }
.container, .modal-content, .applications-section, .application-form-container { width: 100%; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Hero Title Animation Keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0% { 
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4),
            0 4px 15px rgba(0, 0, 0, 0.6);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 25px rgba(255, 255, 255, 0.8),
            0 0 35px rgba(255, 255, 255, 0.6),
            0 6px 20px rgba(0, 0, 0, 0.8);
    }
}