/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4e72b1c0;
    --secondary-blue: #004499;
    --dark-blue: #003366;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --text-light: #6c757d;
    --accent-color: #00bcd4;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004499 50%, #003366 100%);
    --gradient-accent: linear-gradient(135deg, #00bcd4 0%, #0066cc 100%);
    --gradient-hero: linear-gradient(135deg, #0066cc 0%, #004499 25%, #003366 50%, #00bcd4 100%);
    --site-max-width: 1200px;
    --site-max-width-xl: 1320px;
    --site-max-width-2xl: 1500px;
    --site-min-width: 320px;
    --container-padding-min: 16px;
    --container-padding: clamp(16px, 2.5vw, 32px);
}

html { min-width: var(--site-min-width); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    min-width: var(--site-min-width);
}

/* Apply font fallback class to body */
body.font-fallback {
    font-family: 'Inter-Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    min-width: var(--site-min-width);
}

/* Responsive Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--dark-gray);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    color: var(--dark-gray);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--dark-gray);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
}

/* Responsive Buttons */
.btn {
    display: inline-block;
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 32px);
    border: none;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    touch-action: manipulation; /* Improve touch responsiveness */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::after {
    width: 100%;
}

.btn-secondary:hover {
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.nav-container {
    max-width: min(var(--site-max-width-xl), 100%);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    min-width: var(--site-min-width);
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-logo h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: -2px;
    letter-spacing: 0.5px;
}

.nav-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown-toggle:hover i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid rgba(0, 102, 204, 0.1);
    overflow: hidden;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr; /* featured + 2 columns */
    gap: 24px;
    padding: 32px 40px;
    min-width: 800px;
}

/* Solutions dropdown - single row layout and left alignment */
.nav-item.dropdown:first-of-type .dropdown-menu {
    left: 0 !important;
    right: auto !important;
    transform: translateX(0) translateY(-10px);
    min-width: 1000px;
    max-width: 1200px;
}

.nav-item.dropdown:first-of-type .dropdown-menu::before {
    left: 20px !important;
    right: auto !important;
    transform: translateX(0);
}

.nav-item.dropdown:first-of-type:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}

.nav-item.dropdown:first-of-type .dropdown-content {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    min-width: 1000px;
    max-width: 1200px;
}

.dropdown-featured {
    padding: 0 24px 0 0;
    border-right: 1px solid rgba(0, 102, 204, 0.15);
}

.dropdown-featured h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.dropdown-featured p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.dropdown-featured .btn {
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.dropdown-section {
    padding: 0 16px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    pointer-events: none;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 90%;
    min-width: 320px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto;
    position: relative;
}

.modal-container.modal-large {
    max-width: 600px;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
    text-align: center;
}

.modal-header h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
}

.modal-body {
    padding: 24px 28px 28px;
    text-align: center;
}

/* Modal Form Styles */
.login-form, .signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-btn, .signup-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 0 auto;
    max-width: 300px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.social-login, .social-signup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.social-btn, .google-btn, .microsoft-btn {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
}

.login-divider, .signup-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.login-divider::before, .signup-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.login-divider span, .signup-divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-footer, .signup-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.login-footer p, .signup-footer p {
    color: var(--text-light);
    margin: 0;
}

.login-footer a, .signup-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover, .signup-footer a:hover {
    text-decoration: underline;
}

/* Additional Modal Form Enhancements */
.modal-body .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.modal-body .checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.modal-body .checkbox-container input[type="checkbox"] {
    display: none;
}

.modal-body .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.modal-body .checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.modal-body .checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
}

.modal-body .forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.modal-body .forgot-password:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.modal-body .terms-link, .modal-body .privacy-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.modal-body .terms-link:hover, .modal-body .privacy-link:hover {
    text-decoration: underline;
}


/* Responsive adjustments for mega menu */
@media (max-width: 1199px) {
    .dropdown-content {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 20px;
        padding: 28px 32px;
        min-width: 700px;
    }
    /* Solutions dropdown - maintain single row */
    .nav-item.dropdown:first-of-type .dropdown-content {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        min-width: 900px;
        max-width: 1100px;
        padding: 28px 32px;
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .dropdown-menu { 
        min-width: 90vw; 
        max-width: 95vw;
        left: 50%;
        transform: translateX(-50%);
    }
    /* Solutions dropdown - keep left aligned on tablets */
    .nav-item.dropdown:first-of-type .dropdown-menu {
        left: 0 !important;
        right: auto !important;
        transform: translateX(0);
    }
    .nav-item.dropdown:first-of-type .dropdown-menu::before {
        left: 20px !important;
        right: auto !important;
        transform: translateX(0);
    }
    .dropdown-content { 
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 24px 20px;
    }
    .dropdown-featured {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: 1px solid rgba(0, 102, 204, 0.15);
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    .dropdown-section {
        padding: 12px;
    }
    
    .modal-container {
        width: 95%;
        margin: 20px;
        max-width: 450px;
    }
    
    .login-form, .signup-form {
        max-width: 100%;
    }
    
    .social-login, .social-signup {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 95vw;
        max-width: 98vw;
        left: 50%;
        transform: translateX(-50%);
    }
    .dropdown-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
    }
    .dropdown-section {
        padding: 16px;
        margin-bottom: 8px;
    }
    .dropdown-featured {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .modal-container {
        width: 95%;
        margin: 10px;
        max-width: 400px;
    }
    
    .modal-header {
        padding: 20px 20px 16px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .login-btn, .signup-btn {
        max-width: 100%;
    }
    
    .social-btn, .google-btn, .microsoft-btn {
        max-width: 100%;
    }
}

.dropdown-section h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
    position: relative;
}

.dropdown-section h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-accent);
}

/* Enhanced dropdown styling */
.dropdown-menu {
    border: 1px solid rgba(0, 102, 204, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
}

/* Rural Development Programs Special Styling */
.nav-item .nav-link:contains("Rural Development Programs") + .dropdown-menu {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 50%, #f0f8f0 100%);
    border: 2px solid rgba(34, 139, 34, 0.2);
    box-shadow: 0 20px 60px rgba(34, 139, 34, 0.15);
}

/* Rural Development dropdown content styling */
.dropdown-menu:has(.dropdown-content:contains("Rural Development Programs")) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 50%, #f0f8f0 100%);
    border: 2px solid rgba(34, 139, 34, 0.2);
    box-shadow: 0 20px 60px rgba(34, 139, 34, 0.15);
}

/* Rural Development featured section */
.dropdown-featured:has(h3:contains("Rural Development Programs")) {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 1px solid rgba(34, 139, 34, 0.2);
}

/* Rural Development sections */
.dropdown-section:has(h4:contains("Rural Digital Employment Initiative")),
.dropdown-section:has(h4:contains("Rural Business Digitalization")) {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(34, 139, 34, 0.1);
}

.dropdown-section h4:contains("Rural Digital Employment Initiative"),
.dropdown-section h4:contains("Rural Business Digitalization") {
    color: #228b22;
    border-bottom: 2px solid #90ee90;
}

.dropdown-section h4:contains("Rural Digital Employment Initiative")::after,
.dropdown-section h4:contains("Rural Business Digitalization")::after {
    background: linear-gradient(90deg, #228b22, #32cd32);
}

/* Rural Development links hover effect */
.dropdown-link:contains("Overview"):hover,
.dropdown-link:contains("Learning Centers"):hover,
.dropdown-link:contains("Work From Village"):hover,
.dropdown-link:contains("Partners"):hover,
.dropdown-link:contains("Apply Now"):hover,
.dropdown-link:contains("Digital Solutions"):hover,
.dropdown-link:contains("Digital Marketing"):hover,
.dropdown-link:contains("Success Stories"):hover,
.dropdown-link:contains("Contact"):hover {
    color: #228b22;
    background: rgba(34, 139, 34, 0.05);
    border-radius: 4px;
    padding: 8px 12px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Rural Development arrow styling */
.dropdown-link:contains("Overview")::before,
.dropdown-link:contains("Learning Centers")::before,
.dropdown-link:contains("Work From Village")::before,
.dropdown-link:contains("Partners")::before,
.dropdown-link:contains("Apply Now")::before,
.dropdown-link:contains("Digital Solutions")::before,
.dropdown-link:contains("Digital Marketing")::before,
.dropdown-link:contains("Success Stories")::before,
.dropdown-link:contains("Contact")::before {
    color: #228b22;
}

/* Rural Development Mobile Menu Styling */
.mobile-dropdown:has(.mobile-dropdown-content:contains("Rural Development Programs")) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    border: 1px solid rgba(34, 139, 34, 0.2);
}

.mobile-dropdown-section h5:contains("Rural Digital Employment Initiative"),
.mobile-dropdown-section h5:contains("Rural Business Digitalization") {
    color: #228b22;
    border-bottom: 1px solid #90ee90;
    padding-bottom: 8px;
}

.mobile-dropdown-link:contains("Overview"):hover,
.mobile-dropdown-link:contains("Learning Centers"):hover,
.mobile-dropdown-link:contains("Work From Village"):hover,
.mobile-dropdown-link:contains("Partners"):hover,
.mobile-dropdown-link:contains("Apply Now"):hover,
.mobile-dropdown-link:contains("Digital Solutions"):hover,
.mobile-dropdown-link:contains("Digital Marketing"):hover,
.mobile-dropdown-link:contains("Success Stories"):hover,
.mobile-dropdown-link:contains("Contact"):hover {
    color: #228b22;
    background: rgba(34, 139, 34, 0.05);
    border-radius: 4px;
    padding: 6px 8px;
    margin: 2px 0;
}

.dropdown-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Improved dropdown section styling */
.dropdown-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.dropdown-section:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.dropdown-featured {
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f2ff 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.dropdown-link {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 0;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
}

.dropdown-link::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    opacity: 0;
    transition: var(--transition);
}

.dropdown-link:hover {
    color: var(--primary-blue);
    padding-left: 25px;
}

.dropdown-link:hover::before {
    opacity: 1;
}

/* Active/Current page state for dropdown links */
.dropdown-link.active,
.mobile-dropdown-link.active {
    color: var(--primary-blue);
    font-weight: 600;
    padding-left: 25px;
    background: rgba(78, 114, 177, 0.1);
    border-radius: 4px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dropdown-link.active::before,
.mobile-dropdown-link.active::before {
    opacity: 1;
    color: var(--primary-blue);
}

.dropdown-link.active:hover,
.mobile-dropdown-link.active:hover {
    background: rgba(78, 114, 177, 0.15);
}

/* CTA Buttons in Header */
.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-cta .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-cta .btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.nav-cta .btn-outline:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.nav-cta .btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.nav-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    right: auto;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary-blue);
}

.mobile-nav-link i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active {
    max-height: 500px;
}

.mobile-dropdown-content {
    padding: 10px 0 10px 20px;
}

.mobile-dropdown-section {
    margin-bottom: 20px;
}

.mobile-dropdown-section h5 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.mobile-dropdown-link {
    display: block;
    padding: 8px 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.mobile-dropdown-link:hover {
    color: var(--primary-blue);
}

.mobile-cta {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--light-gray);
    align-items: center;
    justify-content: center;
}

.mobile-cta .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Mobile Menu Responsive Adjustments */
@media (max-width: 767px) {
    .mobile-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .mobile-menu-content {
        padding: 15px;
    }
    
    .mobile-nav-link {
        padding: 12px 0;
        font-size: 1rem;
    }
    
    .mobile-dropdown-content {
        padding: 8px 0 8px 15px;
    }
    
    .mobile-dropdown-section {
        margin-bottom: 15px;
    }
    
    .mobile-dropdown-section h5 {
        font-size: 0.9rem;
    }
    
    .mobile-dropdown-link {
        padding: 6px 0;
        font-size: 0.85rem;
    }
    
    .mobile-cta {
        padding: 15px;
    }
}

@media (max-width: 575px) {
    .mobile-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .mobile-menu-content {
        padding: 10px;
    }
    
    .mobile-nav-link {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    .mobile-dropdown-content {
        padding: 5px 0 5px 10px;
    }
    
    .mobile-dropdown-section {
        margin-bottom: 12px;
    }
    
    .mobile-dropdown-section h5 {
        font-size: 0.85rem;
    }
    
    .mobile-dropdown-link {
        padding: 5px 0;
        font-size: 0.8rem;
    }
    
    .mobile-cta {
        padding: 10px;
    }
    
    .mobile-cta .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    z-index: 0; /* establish stacking context so negative z children stay within hero */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -2;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background: var(--gradient-hero); }
    50% { background: linear-gradient(135deg, #004499 0%, #0066cc 25%, #00bcd4 50%, #003366 100%); }
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

/* Hero slider */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 0.85;
}

.hero-slider-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255,255,255,0.8);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.15);
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.hero-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.25);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.2s ease;
    pointer-events: auto;
}

.hero-nav-btn:hover {
    background: rgba(0,0,0,0.4);
}

/* Floating particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Optional hero image layer */
.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: -1;
}

/* Hero image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
    z-index: -2;
}

/* Azure page hero background override */
.azure-hero .hero-image-layer {
    background-image: url('images/hero-teamwork.jpg');
    opacity: 0.45;
}

.azure-hero .hero-overlay {
    background: rgba(0, 0, 0, 0.45);
}

/* Azure page specific fixes */
.azure-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.azure-hero .container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    min-width: var(--site-min-width);
}

/* Azure contact section specific styling */
.azure-contact .contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.azure-contact .contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Azure page responsive fixes */
@media (max-width: 768px) {
    .azure-hero .hero-content {
        padding: 0 15px;
    }
    
    .azure-hero .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .azure-hero .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .azure-contact .contact-form {
        padding: 2rem;
        margin: 0 15px;
    }
}

@media (max-width: 575px) {
    .azure-hero .hero-title {
        font-size: 2rem;
    }
    
    .azure-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .azure-contact .contact-form {
        padding: 1.5rem;
        margin: 0 10px;
    }
}

/* Azure page services grid fixes */
.azure-solutions .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .azure-solutions .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Azure page about section fixes */
.azure-solutions .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .azure-solutions .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Azure page benefits grid fixes */
.azure-solutions .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .azure-solutions .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 575px) {
    .azure-solutions .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 50%; animation-delay: 1s; }
.particle:nth-child(6) { width: 7px; height: 7px; left: 60%; animation-delay: 3s; }
.particle:nth-child(7) { width: 3px; height: 3px; left: 70%; animation-delay: 5s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { width: 4px; height: 4px; left: 90%; animation-delay: 2.5s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-sizing: border-box;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: visible;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        white-space: normal;
        line-height: 1.2;
        padding: 0 15px;
    }
}

.highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 0 auto 2.5rem auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
    width: 100%;
    max-width: 700px;
    padding: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: center;
}

.about-text h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 0.25rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    margin: 0;
    font-size: 1rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.image-placeholder i {
    font-size: 6rem;
    color: var(--white);
}

/* Services Section */
.services {
    background-color: var(--white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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="%23f0f0f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

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

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    position: relative;
    transition: var(--transition);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover .service-icon::before {
    opacity: 0.3;
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--white);
    transition: var(--transition);
}

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

.service-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.service-card .btn {
    margin-top: 1.5rem;
}

/* Industries Section */
.industries {
    background-color: var(--light-gray);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.industry-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.industry-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.industry-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.industry-card p {
    font-size: 1rem;
    margin: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--white);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.benefit-card p {
    font-size: 1rem;
    margin: 0;
}

/* Case Studies Section */
.case-studies {
    background-color: var(--light-gray);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-study-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-image i {
    font-size: 4rem;
    color: var(--white);
}

.case-study-content {
    padding: 2rem;
}

.case-study-content h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.case-study-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.case-study-stats {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Blog Section */
.blog {
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image i {
    font-size: 4rem;
    color: var(--white);
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-date {
    color: var(--text-light);
}

.blog-category {
    color: var(--primary-blue);
    font-weight: 500;
}

.blog-content h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.blog-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--secondary-blue);
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Azure contact redesign removed info column; form is full width */

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 0.25rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.contact-item p {
    margin: 0;
    font-size: 1rem;
}

/* Contact Form Section - Redesigned */
.contact-form-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
    max-width: 100%;
}

.contact-form-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modern-contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--danger-color);
    margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    background-color: #fafbfc;
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23343a40' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-submit i {
    transition: var(--transition);
}

.btn-submit:hover i {
    transform: translateX(4px);
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-blue);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-color);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.info-card h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.info-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Department Contacts Section */
.department-contacts {
    padding: 5rem 0;
    background-color: var(--white);
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.department-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.department-card:hover::before {
    transform: scaleX(1);
}

.department-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

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

.department-icon i {
    font-size: 2rem;
    color: var(--white);
}

.department-card h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
    font-size: 1.4rem;
}

.department-card > p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.department-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.contact-link:hover {
    color: var(--primary-blue);
    background-color: var(--light-blue);
    transform: translateX(4px);
}

.contact-link i {
    font-size: 1.1rem;
    color: var(--primary-blue);
}

/* Emergency Contact Section */
.emergency-contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-top: 4px solid var(--warning-color);
    border-bottom: 4px solid var(--warning-color);
}

.emergency-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.emergency-icon {
    width: 100px;
    height: 100px;
    background: var(--warning-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.emergency-icon i {
    font-size: 2.5rem;
    color: var(--white);
    animation: pulse 2s infinite;
}

.emergency-text h2 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.emergency-text > p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.emergency-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emergency-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.emergency-link:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.emergency-link i {
    font-size: 1.5rem;
    color: var(--warning-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
}

.emergency-link div {
    display: flex;
    flex-direction: column;
}

.emergency-link strong {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.emergency-link span {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Social Media Section */
.social-media-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.social-media-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: block;
}

.social-media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: var(--transition);
}

.social-media-card.linkedin::before {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-media-card.twitter::before {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-media-card.facebook::before {
    background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.social-media-card.youtube::before {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-media-card:hover::before {
    opacity: 0.1;
}

.social-media-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.social-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.social-media-card.linkedin .social-icon {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-media-card.twitter .social-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-media-card.facebook .social-icon {
    background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.social-media-card.youtube .social-icon {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-icon i {
    font-size: 2rem;
    color: var(--white);
}

.social-media-card:hover .social-icon {
    transform: scale(1.15) rotate(5deg);
}

.social-media-card h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
    position: relative;
    z-index: 1;
}

.social-media-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.social-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.social-media-card:hover .social-cta {
    transform: translateX(4px);
}

.social-cta i {
    transition: var(--transition);
}

.social-media-card:hover .social-cta i {
    transform: translateX(4px);
}

/* FAQ Section (Accordion / Dropdown) */
.faq-section {
    padding: 5rem 0;
    background-color: var(--white);
}

/* Single FAQ dropdown (all Q&As in one menu) */
.faq-single-dropdown {
    max-width: 800px;
    width: 100%;
    margin: 3rem auto 0;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 2px solid #e9ecef;
    overflow: hidden;
    transition: var(--transition);
}

.faq-single-dropdown.is-open {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.faq-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    transition: var(--transition);
}

.faq-dropdown-trigger:hover {
    background: var(--light-gray);
}

.faq-single-dropdown.is-open .faq-dropdown-trigger {
    background: var(--light-blue);
}

.faq-dropdown-label {
    flex: 1;
}

.faq-single-dropdown .faq-chevron {
    font-size: 1rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-single-dropdown.is-open .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.faq-dropdown-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.faq-single-dropdown.is-open .faq-dropdown-content {
    max-height: 2000px;
}

.faq-list {
    border-top: 1px solid #e9ecef;
    padding: 0.5rem 0;
}

.faq-block {
    border-bottom: 1px solid #e9ecef;
}

.faq-block:last-child {
    border-bottom: none;
}

/* Question row: click to show only this answer */
.faq-question-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    transition: var(--transition);
}

.faq-question-trigger:hover {
    background: var(--light-gray);
}

.faq-block.is-open .faq-question-trigger {
    background: var(--light-blue);
    color: var(--secondary-blue);
}

.faq-question-trigger > i:first-child {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.faq-question-trigger > span {
    flex: 1;
}

.faq-item-chevron {
    font-size: 0.8rem;
    color: var(--text-light);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-block.is-open .faq-item-chevron {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

/* Answer: hidden until this question is selected */
.faq-answer-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.faq-block.is-open .faq-answer-wrap {
    max-height: 400px;
}

.faq-answer {
    margin: 0;
    padding: 0 1.5rem 1.25rem 1.5rem;
    padding-left: calc(1.5rem + 1.25em + 0.75rem);
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 767px) {
    .faq-dropdown-trigger {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .faq-question-trigger {
        padding: 0.9rem 1.25rem;
        font-size: 0.98rem;
    }

    .faq-answer {
        padding-left: 1.25rem;
    }
}

/* ========== Get in Touch page: Mobile, Tablet, Desktop, Large screen ========== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .contact-form-section {
        padding: 4rem 0;
    }
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-info-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .contact-form-content {
        padding: 2.5rem;
    }
    .department-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .department-contacts,
    .social-media-section,
    .faq-section {
        padding: 4rem 0;
    }
    .social-media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .emergency-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    .emergency-contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .emergency-link {
        min-width: 260px;
    }
    .hero-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .contact-form-section {
        padding: 3rem 0;
    }
    .contact-form-content {
        padding: 2rem 1.5rem;
    }
    .contact-info-sidebar {
        grid-template-columns: 1fr;
    }
    .department-contacts,
    .social-media-section,
    .faq-section {
        padding: 3rem 0;
    }
    .section-header h2 {
        font-size: clamp(1.5rem, 4.5vw, 1.9rem);
    }
    .faq-single-dropdown {
        margin-top: 2rem;
    }
    .btn-submit {
        min-height: 48px;
    }
    .faq-question-trigger {
        min-height: 48px;
    }
}

/* Small mobile (480px - 575px) */
@media (max-width: 575px) and (min-width: 481px) {
    .contact-form-section {
        padding: 2.5rem 0;
    }
    .contact-form-content {
        padding: 1.75rem 1.25rem;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px;
        padding: 0.9rem 1rem;
    }
    .department-contacts,
    .social-media-section,
    .faq-section {
        padding: 2.5rem 0;
    }
    .department-grid {
        gap: 1.25rem;
    }
    .department-card {
        padding: 1.75rem;
    }
    .social-media-grid {
        grid-template-columns: 1fr;
    }
    .emergency-icon {
        width: 70px;
        height: 70px;
    }
    .emergency-icon i {
        font-size: 1.75rem;
    }
    .faq-single-dropdown {
        margin-top: 1.5rem;
    }
    .faq-dropdown-trigger {
        min-height: 48px;
        padding: 0.9rem 1.25rem;
    }
    .faq-question-trigger {
        min-height: 48px;
        padding: 0.85rem 1.25rem;
    }
}

/* Extra small mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
    .contact-form-section {
        padding: 2rem 0;
    }
    .contact-form-content {
        padding: 1.5rem 1rem;
    }
    .form-row {
        gap: 1rem;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px;
        padding: 0.85rem 1rem;
        font-size: 16px; /* prevents zoom on iOS */
    }
    .btn-submit {
        min-height: 48px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    .contact-info-sidebar {
        gap: 1rem;
    }
    .info-card {
        padding: 1.25rem;
    }
    .info-icon {
        width: 44px;
        height: 44px;
    }
    .department-contacts,
    .social-media-section,
    .faq-section {
        padding: 2rem 0;
    }
    .department-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    .department-card {
        padding: 1.5rem;
    }
    .department-icon {
        width: 64px;
        height: 64px;
    }
    .department-icon i {
        font-size: 1.5rem;
    }
    .contact-link {
        min-height: 44px;
        justify-content: center;
    }
    .emergency-contact {
        padding: 2.5rem 0;
    }
    .emergency-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .emergency-icon {
        width: 64px;
        height: 64px;
    }
    .emergency-icon i {
        font-size: 1.5rem;
    }
    .emergency-link {
        min-height: 48px;
        padding: 0.9rem 1rem;
    }
    .social-media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    .social-media-card {
        padding: 1.75rem;
    }
    .social-icon {
        width: 56px;
        height: 56px;
    }
    .social-icon i {
        font-size: 1.5rem;
    }
    .faq-single-dropdown {
        margin-top: 1.5rem;
        border-radius: var(--border-radius);
    }
    .faq-dropdown-trigger {
        min-height: 48px;
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    .faq-dropdown-label {
        line-height: 1.4;
    }
    .faq-list {
        padding: 0.5rem 1rem 1rem;
    }
    .faq-question-trigger {
        min-height: 48px;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    .faq-question-trigger > span {
        line-height: 1.35;
    }
    .faq-answer {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.95rem;
    }
    .section-header {
        margin-bottom: 1.5rem;
    }
    .section-header h2 {
        font-size: clamp(1.35rem, 5vw, 1.6rem);
    }
    .section-header p {
        font-size: 0.9rem;
    }
}

/* Minimum width (320px) - prevent overflow */
@media (max-width: 360px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .contact-form-content {
        padding: 1.25rem 0.75rem;
    }
    .faq-dropdown-trigger,
    .faq-question-trigger {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .faq-answer {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .faq-list {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Large desktop (1200px+) - Get in Touch sections */
@media (min-width: 1200px) {
    .contact-form-section {
        padding: 5rem 0;
    }
    .contact-form-wrapper {
        gap: 4rem;
    }
    .department-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .social-media-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Extra large (1400px+) */
@media (min-width: 1400px) {
    .contact-form-section,
    .department-contacts,
    .social-media-section,
    .faq-section {
        padding: 6rem 0;
    }
    .contact-info-sidebar {
        top: 120px;
    }
}

/* FAQ grid (for pages that still use .faq-grid, e.g. support.html) */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-blue);
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-color);
}

.faq-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.faq-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer .container {
    max-width: 100%;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    padding: 5rem 4rem;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.footer-sections-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-section {
    text-align: left;
}

.footer-section h4,
.footer-section h5 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: left;
}

.footer-section h4:after,
.footer-section h5:after {
    display: none;
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    transition: transform 0.3s ease;
}

.mobile-dropdown .footer-section h4:after,
.mobile-dropdown .footer-section h5:after {
    display: inline-block;
}

.footer-section.expanded h4:after,
.footer-section.expanded h5:after {
    transform: rotate(180deg);
}

.footer-section p {
    color: #adb5bd;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.4;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.footer-section li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.7rem;
    line-height: 1.4;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.8rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}


.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1rem;
    text-align: center;
    color: #adb5bd;
    font-size: 0.7rem;
}

/* Mobile-First Responsive Design */

/* Ultra Large Screens (1600px and up) */
@media (min-width: 1600px) {
    .container {
        max-width: var(--site-max-width-2xl);
    }
    
    .nav-container {
        max-width: min(var(--site-max-width-2xl), 100%);
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .container { max-width: var(--site-max-width-xl); }
    .nav-container { max-width: min(var(--site-max-width-2xl), 100%); }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium-Large Screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .nav-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .nav-link {
        padding: 30px 15px;
        font-size: 0.85rem;
    }
    
    .dropdown-menu {
        min-width: 600px;
    }
    
    .nav-cta {
        gap: 8px;
    }
    
    .nav-cta .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Tablets (1024px to 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .nav-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .nav-link {
        padding: 30px 15px;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        min-width: 700px;
    }
    
    .nav-cta {
        gap: 10px;
    }
    
    .nav-cta .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        height: 70px;
        padding: 0 20px;
    }
    
    .nav-logo h2 {
        font-size: 1.8rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    .hero {
        min-height: 85vh;
        padding: 90px 0 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .hero-content .container {
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        width: 100%;
        margin: 0 auto 1.5rem auto;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2.5rem;
    }
    
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .nav-container {
        height: 65px;
        padding: 0 20px;
    }
    
    .nav-logo h2 {
        font-size: 1.7rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    /* Force mobile header layout */
    .nav-menu { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    
    .hamburger {
        padding: 10px;
    }
    
    .bar {
        width: 24px;
        height: 3px;
    }
    
    .hero {
        min-height: 75vh;
        padding: 85px 0 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .hero-content .container {
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 6.5vw, 2.4rem);
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        width: 100%;
        margin: 0 auto 1.5rem auto;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
        min-width: 140px;
        max-width: 200px;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.1rem;
    }
    
    .section-header p {
        font-size: 1.05rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .service-card {
        padding: 2.2rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .industry-card {
        padding: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.8rem;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    
    .contact-form {
        padding: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        height: 65px;
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
    }
    
    /* Force mobile header layout */
    .nav-menu { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    
    .hamburger {
        padding: 8px;
    }
    
    .bar {
        width: 22px;
        height: 3px;
    }
    
    .hero {
        min-height: 70vh;
        padding: 80px 0 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 15px;
        text-align: center;
    }
    
    .hero-content .container {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .hero-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
        line-height: 1.2;
        white-space: nowrap;
        text-align: center;
        width: 100%;
        margin: 0 auto 1.5rem auto;
        padding: 0 15px;
        overflow: visible;
        box-sizing: border-box;
    }
    
    @media (max-width: 500px) {
        .hero-title {
            font-size: clamp(1.2rem, 6.5vw, 1.8rem);
            white-space: normal;
            line-height: 1.3;
            padding: 0 12px;
        }
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1rem);
        margin: 0 auto 2rem auto;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-buttons {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        min-height: 48px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.5rem; }
    p  { font-size: 1rem; line-height: 1.6; }
    
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-features { grid-template-columns: 1fr; gap: 1.5rem; }
    .feature { flex-direction: column; text-align: center; gap: 0.8rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-card { padding: 2rem; }
    .service-icon { width: 75px; height: 75px; }
    .service-icon i { font-size: 2rem; }
    .industries-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .industry-card { padding: 1.8rem; }
    .benefits-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .benefit-card { padding: 1.8rem; }
    .benefit-icon { width: 65px; height: 65px; }
    .benefit-icon i { font-size: 1.8rem; }
    .industry-card i { font-size: 2.5rem; }
    .feature i { font-size: 1.6rem; }
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form { padding: 2rem; }
    .form-group input, .form-group textarea { padding: 1rem; font-size: 1rem; min-height: 48px; }
    .contact-item { flex-direction: column; text-align: center; gap: 0.8rem; }
    .contact-item i { font-size: 1.8rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .social-links { justify-content: center; gap: 1.2rem; }
    .social-links a { width: 45px; height: 45px; }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        height: 65px;
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
    }
    
    .hamburger {
        padding: 8px;
    }
    
    .bar {
        width: 22px;
        height: 3px;
    }
    
    .hero {
        min-height: 70vh;
        padding: 80px 0 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 15px;
        text-align: center;
    }
    
    .hero-content .container {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        line-height: 1.2;
        text-align: center;
        width: 100%;
        margin: 0 auto 1.5rem auto;
        padding: 0;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1rem);
        margin: 0 auto 2rem auto;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-buttons {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        min-height: 48px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .feature i {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        width: 75px;
        height: 75px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .industry-card {
        padding: 1.8rem;
    }
    
    .industry-card i {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.8rem;
    }
    
    .benefit-icon {
        width: 65px;
        height: 65px;
    }
    
    .benefit-icon i {
        font-size: 1.8rem;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-study-stats {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contact-item i {
        font-size: 1.8rem;
    }
    
    /* Contact Form Section Responsive */
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info-sidebar {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .department-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .emergency-contact-info {
        width: 100%;
    }
    
    .social-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    
    .social-links {
        justify-content: center;
        gap: 1.2rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 12px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
    }
    
    .hamburger {
        padding: 6px;
    }
    
    .bar {
        width: 20px;
        height: 2px;
    }
    
    .hero {
        min-height: 65vh;
        padding: 75px 0 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 12px;
        text-align: center;
    }
    
    .hero-content .container {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 6vw, 1.7rem);
        line-height: 1.3;
        text-align: center;
        width: 100%;
        margin: 0 auto 1.5rem auto;
        padding: 0 10px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        margin: 0 auto 1.8rem auto;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
    }
    
    .hero-buttons {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        max-width: 260px;
        min-height: 44px;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .service-card,
    .industry-card,
    .benefit-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form-content {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-section {
        padding: 3rem 0;
    }
    
    .department-contacts,
    .social-media-section,
    .faq-section {
        padding: 3rem 0;
    }
    
    .department-grid,
    .social-media-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-icon {
        width: 80px;
        height: 80px;
    }
    
    .emergency-icon i {
        font-size: 2rem;
    }
    
    .info-card,
    .department-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
    }
    
    .service-icon i {
        font-size: 1.7rem;
    }
    
    .benefit-icon {
        width: 55px;
        height: 55px;
    }
    
    .benefit-icon i {
        font-size: 1.5rem;
    }
    
    .industry-card i {
        font-size: 2.2rem;
    }
    
    .feature i {
        font-size: 1.6rem;
    }
    
    .contact-item i {
        font-size: 1.6rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
}


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

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}


/* Enhanced card animations */
.service-card,
.industry-card,
.benefit-card,
.case-study-card,
.blog-card {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:nth-child(odd) {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:nth-child(even) {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card {
    animation: rotateIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shimmer effect for loading states */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Hover animations */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hover-scale {
    transition: var(--transition);
}

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

.hover-rotate {
    transition: var(--transition);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Responsive Images and Icons */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.service-icon,
.benefit-icon,
.industry-card i {
    transition: var(--transition);
}

/* Device-specific styles */
.mobile-device .modal-overlay {
    padding: 5px;
}

.mobile-device .modal-container {
    width: 98%;
    max-width: 100%;
    margin: 5px auto;
    border-radius: 12px;
}

.mobile-device .modal-header {
    padding: 16px 20px 12px;
}

.mobile-device .modal-body {
    padding: 16px 20px 20px;
}

.ios-device input,
.ios-device textarea,
.ios-device select {
    font-size: 16px !important; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    border-radius: 8px;
}

.android-device .modal-container {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.touch-device .btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

.touch-device .modal-close {
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
}

/* Mobile modal specific styles */
.mobile-modal .modal-container {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    transform: none;
}

/* Ensure consistent modal positioning across all pages */
.modal-overlay {
    box-sizing: border-box;
}

.modal-overlay .modal-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Force consistent modal behavior regardless of page content */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modal-overlay.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Universal modal positioning - works on all pages and devices */
@media screen {
    .modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 10000 !important;
    }
    
    .modal-overlay.active .modal-container {
        position: relative !important;
        margin: auto !important;
        max-width: 500px !important;
        width: 90% !important;
        max-height: calc(100vh - 40px) !important;
        overflow-y: auto !important;
    }
    
    /* Mobile-specific overrides */
    @media (max-width: 991px) {
        .modal-overlay.active .modal-container {
            width: 95% !important;
            max-height: calc(100vh - 20px) !important;
        }
    }
    
    @media (max-width: 575px) {
        .modal-overlay.active .modal-container {
            width: 98% !important;
            max-height: calc(100vh - 10px) !important;
        }
    }
}

.mobile-modal .form-group input,
.mobile-modal .form-group textarea {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-modal .form-group input:focus,
.mobile-modal .form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 114, 177, 0.1);
}

/* Fix for password toggle button on mobile */
.mobile-modal .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-modal .password-toggle:hover {
    color: var(--primary-blue);
    background: rgba(78, 114, 177, 0.1);
}

/* Form icon positioning for mobile */
.mobile-modal .form-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    z-index: 2;
}

.mobile-modal .form-group {
    position: relative;
}

.mobile-modal .form-group input {
    padding-left: 45px;
}

.mobile-modal .form-group input[type="password"] {
    padding-right: 50px;
}

/* Enhanced Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .industry-card:hover,
    .benefit-card:hover,
    .case-study-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .nav-link:hover {
        color: var(--primary-blue);
    }
    
    /* Enhanced touch targets for mobile */
    .btn {
        min-height: 48px;
        min-width: 48px;
        padding: 14px 20px;
    }
    
    .nav-link {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    .mobile-nav-link {
        min-height: 48px;
        padding: 16px 0;
    }
    
    .mobile-dropdown-link {
        min-height: 44px;
        padding: 12px 0;
    }
    
    .hamburger {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
    }
    
    .social-links a {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Improved touch feedback */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .service-card:active,
    .industry-card:active,
    .benefit-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .benefit-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Cross-browser compatibility */
@supports not (backdrop-filter: blur(20px)) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .service-card {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Performance optimizations */
.service-card,
.industry-card,
.benefit-card,
.case-study-card,
.blog-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Device-specific optimizations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: linear-gradient(135deg, #0066cc 0%, #004499 25%, #003366 50%, #00bcd4 100%);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
        padding: 16px 32px;
    }
    
    .service-card:hover, .industry-card:hover, .benefit-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4A90E2;
        --secondary-color: #7B68EE;
        --accent-color: #00D4AA;
        --text-color: #E8E8E8;
        --bg-color: #1A1A1A;
        --card-bg: #2A2A2A;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(20px);
    }
    
    .service-card, .industry-card, .benefit-card, .case-study-card, .blog-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
    }
}

/* Print optimizations */
@media print {
    .navbar, .footer, .btn, .mobile-menu-toggle {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
        min-height: auto !important;
        padding: 20px 0 !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline !important;
        color: #000 !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Improved scrolling performance */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Enhanced focus indicators */
.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
textarea:focus-visible,
.mobile-nav-link:focus-visible,
.mobile-dropdown-link:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Improved button states */
.btn:focus:not(:focus-visible) {
    outline: none;
}

/* Better form styling */
.form-group input,
.form-group textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--border-radius);
}

/* Enhanced mobile menu animations */
@media (max-width: 991px) {
    .mobile-menu {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .particle {
        animation: none !important;
    }
    
    .hero-background {
        animation: none !important;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus,
.mobile-nav-link:focus,
.mobile-dropdown-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Authentication Pages Styles */

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.auth-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-logo i {
    font-size: 2.5rem;
    color: var(--white);
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(78, 114, 177, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-blue);
    background: rgba(78, 114, 177, 0.1);
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
}

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.terms-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.auth-btn i {
    transition: var(--transition);
}

.auth-btn:hover i {
    transform: translateX(4px);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.btn-social:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-microsoft:hover {
    border-color: #00a4ef;
    color: #00a4ef;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    color: var(--text-light);
    margin: 0;
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-info {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    color: var(--white);
    height: fit-content;
}

.info-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--white);
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-feature i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.info-feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.info-feature p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.pricing-preview {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.pricing-preview h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.plan-item:last-child {
    border-bottom: none;
}

.plan-name {
    font-weight: 500;
    color: var(--white);
}

.plan-price {
    font-weight: 600;
    color: var(--accent-color);
}

/* Mobile Authentication Styles */
@media (max-width: 991px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-info {
        padding: 2rem;
        order: -1;
    }
    
    .info-content h2 {
        font-size: 1.8rem;
    }
    
    .info-features {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .pricing-preview {
        padding: 1.5rem;
    }
    
    /* Mobile-specific modal improvements */
    .modal-overlay {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }
    
    .modal-container {
        width: 95%;
        max-width: 100%;
        margin: 0 auto;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: scale(1) translateY(0);
        position: relative;
    }
    
    .modal-overlay.active .modal-container {
        transform: scale(1) translateY(0);
    }
    
    /* Touch-friendly buttons */
    .modal-close {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
        font-size: 1.1rem;
        top: 15px;
        right: 15px;
    }
    
    /* Better form spacing on mobile */
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-body {
        padding: 15px 20px 25px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary-blue);
        outline: none;
        box-shadow: 0 0 0 3px rgba(78, 114, 177, 0.1);
    }
    
    /* Touch-friendly social buttons */
    .social-btn, .google-btn, .microsoft-btn {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 0.95rem;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .login-btn, .signup-btn {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Form row adjustments for mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Modal header adjustments */
    .modal-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .modal-header p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 575px) {
    .auth-section {
        padding: 1rem 0;
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .auth-info {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .social-login {
        gap: 0.75rem;
    }
    
    .btn-social {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    /* Enhanced mobile modal styles */
    .modal-overlay {
        padding: 5px;
        align-items: center;
        justify-content: center;
    }
    
    .modal-container {
        width: 98%;
        max-width: 100%;
        margin: 0 auto;
        max-height: calc(100vh - 10px);
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 15px 15px 10px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }
    
    .modal-header p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .modal-body {
        padding: 10px 15px 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px;
        padding: 10px 14px;
        border-radius: 6px;
    }
    
    .login-btn, .signup-btn {
        min-height: 44px;
        padding: 12px 18px;
        font-size: 0.95rem;
        margin-top: 0.75rem;
    }
    
    .social-btn, .google-btn, .microsoft-btn {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .login-divider, .signup-divider {
        margin: 1rem 0;
    }
    
    .login-divider span, .signup-divider span {
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }
    
    .login-footer, .signup-footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .login-footer p, .signup-footer p {
        font-size: 0.85rem;
    }
    
    /* Mobile background content styles */
    .modal-overlay + main {
        padding: 1rem !important;
    }
    
    .modal-overlay + main h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .modal-overlay + main p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .modal-overlay + main .container > div {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .modal-overlay + main .btn {
        width: 100% !important;
        max-width: 280px !important;
        min-height: 48px !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 1rem 0;
    }
}

/* Related Slides (global component) */
.related-slides {
    background: var(--light-gray);
}

.related-slides .slides-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.related-slides .slides-header h2 {
    margin: 0;
}

.related-slides .slides-cta {
    display: flex;
    gap: 0.5rem;
}

.slides-rail {
    position: relative;
}

.slides-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.5rem;
}

.slides-container::-webkit-scrollbar {
    height: 10px;
}

.slides-container::-webkit-scrollbar-thumb {
    background: #d8e6f8;
    border-radius: 10px;
}

.slide-card {
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid rgba(0, 102, 204, 0.08);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 90px;
}

.slide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.slide-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #fff;
    flex: 0 0 48px;
}

.slide-title {
    color: var(--dark-gray);
    font-weight: 600;
}

.slide-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.slides-nav {
    display: flex;
    gap: 0.75rem;
}

.slides-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5eefb;
    background: #fff;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.slides-btn:hover {
    background: var(--light-blue);
}

@media (max-width: 767px) {
    .slides-container {
        grid-auto-columns: minmax(220px, 85%);
        gap: 0.75rem;
    }
}

/* Cloud Technology Navigation */
.cloud-tech {
    background: var(--white);
    padding: 3rem 0;
}

.tech-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.tech-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,102,204,0.08), rgba(0,188,212,0.08));
    margin-bottom: 1.25rem;
}

.tech-tab {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0,102,204,0.25);
    background: #fff;
    color: var(--dark-gray);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tech-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15);
}

.tech-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.tech-panels {
    background: linear-gradient(180deg, #fafcff, #ffffff);
    border: 1px solid rgba(0, 102, 204, 0.08);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.tech-panel { 
    display: block;
}

.tech-panel[hidden] {
    display: none;
}

.tech-panel h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.tech-panel ul {
    margin: 0 0 1rem 1rem;
}

.tech-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Panel image */
.tech-panel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
}

/* Enhanced mobile responsiveness for cloud tech section */
@media (max-width: 767px) {
    .cloud-tech {
        padding: 2rem 0;
    }
    
    .tech-actions {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .tech-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 575px) {
    .cloud-tech {
        padding: 1.5rem 0;
    }
    
    .tech-actions {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .tech-actions .btn {
        max-width: 260px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .tech-tabs {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .tech-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* (removed) Microsoft Cloud Hub */

.footer-bottom {
    padding-top: 2rem;
    border-top: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-bottom-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.footer-social-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.social-icons-bottom {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.social-icons-bottom a {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons-bottom a:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.social-icons-bottom a i {
    font-size: 1.1rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.footer-legal-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.7rem;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--white);
}

.footer-legal-links .separator {
    color: #6c757d;
    font-size: 0.7rem;
}

.footer-copyright {
    text-align: left;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: #adb5bd;
    font-size: 0.7rem;
    line-height: 1.5;
    margin: 0;
}

/* About Us Section */
.about-us {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    margin-bottom: 2rem;
}

.testimonial-quote i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1rem;
}

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.cta-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-feature i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Footer Content Responsive Styles */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
        margin: 0;
        gap: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .footer-sections-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 0 2rem 0;
        gap: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        text-align: left;
    }
    
    .footer-section:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section h4 {
        padding: 1.25rem 0;
        text-align: left;
        border: none;
        background: transparent;
        position: relative;
        width: 100%;
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: var(--transition);
        cursor: pointer;
        color: var(--white);
    }
    
    .footer-section h4:after {
        display: inline-block !important;
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 0;
        font-size: 0.875rem;
        transition: transform 0.3s ease;
        color: var(--white);
    }
    
    .footer-section.expanded h4:after {
        transform: rotate(180deg);
    }
    
    .footer-section h4:hover {
        color: var(--white);
    }
    
    .footer-section ul:not(.social-links),
    .footer-section p {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        padding: 0;
    }
    
    .footer-section.expanded ul,
    .footer-section.expanded p {
        max-height: 500px;
        overflow: visible;
        padding: 0.75rem 0 1.25rem 0;
        text-align: left;
    }
    
    .footer-section ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 1.5rem;
        padding: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 0.625rem;
        transition: var(--transition);
        list-style: none;
    }
    
    .footer-section ul li a {
        color: #adb5bd;
        text-decoration: none;
        font-size: 0.7rem;
        display: block;
        transition: var(--transition);
    }
    
    .footer-section ul li a:hover {
        color: var(--white);
        padding-left: 0;
    }
    
    .footer-bottom {
        width: 100%;
        margin: 0;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        align-items: flex-start;
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 1.5rem;
        width: 100%;
        gap: 2rem;
    }
    
    .footer-social-bottom {
        justify-content: flex-start;
    }
    
    .social-icons-bottom {
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .social-icons-bottom a {
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--white);
        transition: var(--transition);
    }
    
    .social-icons-bottom a:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
        opacity: 0.7;
    }
    
    .social-icons-bottom a i {
        font-size: 1.1rem;
    }
    
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0;
        align-items: flex-start;
    }
    
    .footer-legal-links a {
        color: #adb5bd;
        font-size: 0.7rem;
        text-align: left;
    }
    
    .footer-legal-links .separator {
        color: #adb5bd;
        margin: 0 0.5rem;
        font-size: 0.7rem;
    }
    
    .footer-copyright {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        width: 100%;
    }
    
    .footer-copyright p {
        color: #adb5bd;
        font-size: 0.65rem;
        line-height: 1.6;
        margin: 0.5rem 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
        margin: 0;
        gap: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .footer-sections-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 0 2rem 0;
        gap: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        text-align: left;
    }
    
    .footer-section:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section h4 {
        padding: 1.25rem 0;
        text-align: left;
        border: none;
        background: transparent;
        position: relative;
        width: 100%;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: var(--transition);
        cursor: pointer;
        color: var(--white);
    }
    
    .footer-section h4:after {
        display: inline-block !important;
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 0;
        font-size: 0.7rem;
        transition: transform 0.3s ease;
        color: var(--white);
    }
    
    .footer-section.expanded h4:after {
        transform: rotate(180deg);
    }
    
    .footer-section h4:hover {
        color: var(--white);
    }
    
    .footer-section ul:not(.social-links),
    .footer-section p {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        padding: 0;
    }
    
    .footer-section.expanded ul,
    .footer-section.expanded p {
        max-height: 500px;
        overflow: visible;
        padding: 0.75rem 0 1.25rem 0;
        text-align: left;
    }
    
    .footer-section ul li {
        margin-bottom: 0.625rem;
        transition: var(--transition);
        list-style: none;
    }
    
    .footer-section ul li a {
        color: #adb5bd;
        text-decoration: none;
        font-size: 0.7rem;
        display: block;
        transition: var(--transition);
    }
    
    .footer-section ul li a:hover {
        color: var(--white);
        padding-left: 0;
    }
    
    .footer-bottom {
        width: 100%;
        margin: 0;
        padding-top: 2rem;
        border-top: none;
        align-items: flex-start;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .footer-social-bottom {
        width: 100%;
        justify-content: flex-start;
    }
    
    .social-icons-bottom {
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .social-icons-bottom a {
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--white);
        transition: var(--transition);
    }
    
    .social-icons-bottom a:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
        opacity: 0.7;
    }
    
    .social-icons-bottom a i {
        font-size: 1.1rem;
    }
    
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        align-items: flex-start;
    }
    
    .footer-legal-links a {
        color: #adb5bd;
        font-size: 0.7rem;
        text-align: left;
    }
    
    .footer-legal-links .separator {
        color: #adb5bd;
        margin: 0 0.5rem;
        font-size: 0.7rem;
    }
    
    .footer-copyright {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        width: 100%;
    }
    
    .footer-copyright p {
        color: #adb5bd;
        font-size: 0.65rem;
        line-height: 1.6;
        margin: 0.5rem 0;
        text-align: left;
    }
    
    /* About Us Responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials Responsive */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-cta {
        flex-direction: column;
        align-items: center;
    }
    
    /* CTA Responsive */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Form Row Responsive */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Footer Bottom Responsive Styles */
@media (max-width: 767px) {
    .footer-bottom {
        border-top: none;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: left;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .footer-social-bottom {
        justify-content: flex-start;
        width: 100%;
    }
    
    .footer-legal-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .footer-legal-links .separator {
        display: inline;
    }
    
    .social-icons-bottom {
        justify-content: flex-start;
    }
    
    .social-icons-bottom a {
        width: 32px;
        height: 32px;
    }
    
    .social-icons-bottom a i {
        font-size: 0.85rem;
    }
    
    .footer-copyright {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .footer-bottom {
        padding: 1rem 0;
        border-top: none;
    }
    
    .footer-bottom-content {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .social-icons-bottom {
        gap: 0.5rem;
    }
    
    .social-icons-bottom a {
        width: 28px;
        height: 28px;
    }
    
    .social-icons-bottom a i {
        font-size: 0.75rem;
    }
    
    .footer-social-bottom {
        justify-content: flex-start;
    }
    
    .social-icons-bottom {
        justify-content: flex-start;
    }
    
    .footer-legal-links {
        gap: 0.5rem;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .footer-legal-links a {
        font-size: 0.65rem;
        text-align: left;
    }
    
    .footer-copyright {
        text-align: left;
        padding-top: 0.75rem;
    }
    
    .footer-copyright p {
        font-size: 0.6rem;
    }
}

/* Desktop View - Move social media icons to right side */
@media (min-width: 768px) {
    .footer-bottom-content {
        justify-content: space-between;
    }
    
    .footer-social-bottom {
        order: 2;
        margin-left: auto;
    }
    
    .footer-legal-links {
        order: 1;
    }
}

/* Rural Development Programs Modal */
.rural-dev-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.rural-dev-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--light-blue);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: var(--transition);
}

.rural-dev-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 24px 28px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
}

.modal-icon {
    margin-right: 16px;
    font-size: 20px;
    color: var(--accent-color);
}

.modal-header h2 {
    margin: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    flex: 1;
    line-height: 1.3;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.modal-close:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.modal-body {
    padding: 28px;
}

.modal-body p {
    margin: 0 0 16px 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
}

.modal-subtitle {
    margin: 0 0 24px 0 !important;
    font-size: clamp(0.9rem, 1.8vw, 1rem) !important;
    color: var(--text-light) !important;
}

.programs-section {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    justify-content: center;
}

.program-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.program-icon {
    margin-bottom: 12px;
    font-size: 32px;
    color: var(--primary-blue);
    transition: var(--transition);
}

.program-name {
    margin: 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 140px;
    justify-content: center;
}

.primary-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-blue);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-blue);
}

.secondary-btn {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.secondary-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modal-footer {
    padding: 16px 28px 20px;
    border-top: 1px solid var(--light-blue);
    background: var(--light-gray);
    text-align: center;
}

.modal-footer p {
    margin: 0;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--text-light);
    font-style: italic;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 24px 16px;
    }
    
    .modal-header h2 {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .programs-section {
        flex-direction: column;
        gap: 16px;
    }
    
    .program-icon {
        font-size: 28px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-btn {
        min-width: auto;
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 16px 20px 12px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .program-icon {
        font-size: 24px;
    }
    
    .program-name {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }
}

/* Animation keyframes */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
}

.rural-dev-modal.fade-in .modal-content {
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rural-dev-modal.fade-out .modal-content {
    animation: modalFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus trap for accessibility */
.rural-dev-modal:focus-within {
    outline: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}







