/* BookSpacesUK - Custom Styles */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 16px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.25);
    --shadow-lg: 0 20px 40px -12px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    min-height: 100vh;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: subtleFloat 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(99, 102, 241, 0.02) 0%, transparent 70%);
    animation: slowRotate 40s linear infinite;
    pointer-events: none;
    z-index: -2;
}

/* Section backgrounds for elegance */
section:nth-child(even) {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

section:nth-child(odd) {
    background: rgba(15, 15, 35, 0.9);
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Buttons */
.btn {
    font-weight: 600;
    letter-spacing: -0.025em;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-color: var(--primary-color);
}

.btn-outline-light {
    color: var(--text-secondary);
    border: 2px solid rgba(226, 232, 240, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    backdrop-filter: blur(25px);
    background: rgba(15, 15, 35, 0.98) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    z-index: 1030;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.8s;
}

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

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.navbar-brand:hover {
    transform: scale(1.08) rotate(1deg);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

/* Mobile Navigation Styles */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e") !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1040;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-divider {
    border-color: rgba(99, 102, 241, 0.2);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    background-attachment: fixed;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.85), rgba(26, 26, 46, 0.95));
    animation: subtleFloat 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    animation: slowRotate 20s linear infinite;
}

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

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 0.5s both;
    background: rgba(22, 33, 62, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.8s ease;
}

.hero-stats:hover::before {
    left: 100%;
}

.hero-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
    border-color: rgba(99, 102, 241, 0.5);
}

.hero-stats h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats p {
    color: #000000;
}

/* Step Cards */
.step-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

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

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

.step-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    background: rgba(22, 33, 62, 0.95);
}

.step-card .text-primary {
    color: var(--primary-color) !important;
}

.step-card .text-muted {
    color: #000000 !important;
}

.step-card h4 {
    color: #000000 !important;
}

.step-card p {
    color: #000000 !important;
}

/* How It Works Section specific styling */
#how-it-works .lead {
    color: #000000 !important;
}

#how-it-works h2 {
    color: #000000 !important;
}

#how-it-works h4 {
    color: #000000 !important;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.step-icon {
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

/* Facility Cards */
.facility-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    text-align: center;
}

.facility-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    background: rgba(22, 33, 62, 0.9);
}

.facility-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.8);
    margin: 0 auto;
    display: block;
}

.facility-card:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.facility-card .card-body {
    background: rgba(22, 33, 62, 0.8);
    text-align: center;
}

.facility-card .text-muted {
    color: var(--text-muted) !important;
}

/* City Cards */
.city-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    color: var(--text-primary);
    text-align: center;
    position: relative;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

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

.city-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    background: rgba(22, 33, 62, 0.95);
}

.city-card .card-body {
    position: relative;
    z-index: 2;
}

.city-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.8);
    margin: 0 auto;
    display: block;
}

.city-card:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.city-card .card-body {
    background: rgba(22, 33, 62, 0.8);
    text-align: center;
}

.city-card .text-muted {
    color: #000000 !important;
}

.city-card h4 {
    color: #000000 !important;
    text-align: center;
}

.city-card p {
    color: #000000 !important;
    text-align: center;
}

/* City Coverage Section specific styling */
#cities h2, .city-coverage h2 {
    color: #000000 !important;
}

.city-coverage .lead {
    color: #000000 !important;
}

/* Target the City Coverage section by bg-light class */
.bg-light h2 {
    color: #000000 !important;
}

.bg-light .lead {
    color: #000000 !important;
}

.bg-light .text-muted {
    color: #000000 !important;
}

/* City page SEO section styling - section before footer */
section.bg-light h2,
section.bg-light h3,
section.bg-light h4,
section.bg-light p {
    color: #000000 !important;
}

section.bg-light .h3,
section.bg-light .h4 {
    color: #000000 !important;
}

/* Dark background sections - white text */
section.bg-primary h2,
section.bg-primary h3,
section.bg-primary h4,
section.bg-primary p,
section.bg-primary .card-title,
section.bg-primary .card-text {
    color: #ffffff !important;
}

section.bg-dark h2,
section.bg-dark h3,
section.bg-dark h4,
section.bg-dark p,
section.bg-dark .card-title,
section.bg-dark .card-text {
    color: #ffffff !important;
}

/* City page card content - light backgrounds */
section.bg-light .card-title,
section.bg-light .card-text {
    color: #000000 !important;
}

/* City page card content - dark backgrounds (primary cards) */
.card.bg-primary .card-title,
.card.bg-primary .card-text {
    color: #ffffff !important;
}

/* General Card Styling */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.card-body {
    background: var(--bg-card);
    text-align: center;
    position: relative;
    z-index: 2;
}

.card img {
    margin: 0 auto;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Accordion Styling */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-card);
    color: #000000 !important;
    border: none;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.1);
    color: #000000 !important;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.accordion-body {
    background: var(--bg-card);
    color: #000000 !important;
}

/* FAQ Section specific styling */
#faq .accordion-button {
    color: #000000 !important;
}

#faq .accordion-body {
    color: #000000 !important;
}

#faq h2 {
    color: #000000 !important;
}

#faq .lead {
    color: #000000 !important;
}

/* Footer Styling */
footer {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

footer h5, footer h6 {
    color: var(--text-primary);
}

footer .list-unstyled a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

footer .list-unstyled a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

/* Lead text styling */
.lead {
    color: var(--text-secondary) !important;
}

/* Section specific overrides for better readability */
section h2, section h3, section h4, section h5, section h6 {
    color: var(--text-primary) !important;
}

section .lead {
    color: var(--text-secondary) !important;
}

/* Override dark theme for light sections - ensure black text on light backgrounds */
section.bg-light,
section[style*="background-color: white"],
section[style*="background-color: #fff"] {
    color: #000000 !important;
}

section.bg-light h1,
section.bg-light h2,
section.bg-light h3,
section.bg-light h4,
section.bg-light h5,
section.bg-light h6,
section.bg-light .lead {
    color: #000000 !important;
}

/* Ensure white text on dark backgrounds */
section.bg-primary,
section.bg-dark,
section[style*="background-color: #"]:not([style*="background-color: white"]):not([style*="background-color: #fff"]) {
    color: #ffffff !important;
}

section.bg-primary h1,
section.bg-primary h2,
section.bg-primary h3,
section.bg-primary h4,
section.bg-primary h5,
section.bg-primary h6,
section.bg-primary .lead,
section.bg-dark h1,
section.bg-dark h2,
section.bg-dark h3,
section.bg-dark h4,
section.bg-dark h5,
section.bg-dark h6,
section.bg-dark .lead {
    color: #ffffff !important;
}

/* Cards */
.card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Accordion */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    background: #f8f9fa;
    border: none;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.7);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white !important;
}

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

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

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

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInFromRight 0.8s ease-out;
}

.animate-float {
    animation: floatUp 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Stagger animation delays for cards */
.city-card:nth-child(1) { animation-delay: 0.1s; }
.city-card:nth-child(2) { animation-delay: 0.2s; }
.city-card:nth-child(3) { animation-delay: 0.3s; }
.city-card:nth-child(4) { animation-delay: 0.4s; }
.city-card:nth-child(5) { animation-delay: 0.5s; }
.city-card:nth-child(6) { animation-delay: 0.6s; }

.step-card:nth-child(1) { animation-delay: 0.2s; }
.step-card:nth-child(2) { animation-delay: 0.4s; }
.step-card:nth-child(3) { animation-delay: 0.6s; }

/* Parallax scrolling effects */
.parallax-element {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

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

/* Enhanced focus states for accessibility */
.btn:focus,
.card:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Particle effects for ultra-sleek feel */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s linear infinite;
}

.particle:nth-child(2n) {
    background: rgba(139, 92, 246, 0.25);
    animation-duration: 18s;
    animation-delay: -2s;
}

.particle:nth-child(3n) {
    background: rgba(245, 158, 11, 0.2);
    animation-duration: 12s;
    animation-delay: -4s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10px) translateX(100px);
        opacity: 0;
    }
}

/* Ultra-sleek scroll indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(99, 102, 241, 0.1);
    z-index: 9999;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Advanced glassmorphism effects */
.glass-effect {
    background: rgba(22, 33, 62, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Magnetic hover effect for buttons */
.btn-magnetic {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-magnetic:hover::before {
    opacity: 0.3;
}

.btn-magnetic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* Neon glow effects for special elements */
.neon-glow {
    text-shadow: 
        0 0 5px rgba(99, 102, 241, 0.5),
        0 0 10px rgba(99, 102, 241, 0.3),
        0 0 15px rgba(99, 102, 241, 0.2);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 5px rgba(99, 102, 241, 0.5),
            0 0 10px rgba(99, 102, 241, 0.3),
            0 0 15px rgba(99, 102, 241, 0.2);
    }
    to {
        text-shadow: 
            0 0 10px rgba(99, 102, 241, 0.8),
            0 0 20px rgba(99, 102, 241, 0.5),
            0 0 30px rgba(99, 102, 241, 0.3);
    }
}

/* Mobile-First Base Styles */
/* Start with mobile styles as the base */

/* Typography - Mobile First */
.display-4 {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.display-5 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.display-6 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.lead {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Buttons - Mobile First */
.btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
}

/* Hero Section - Mobile First */
.hero-section {
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-attachment: scroll;
    text-align: center;
}

.hero-stats {
    margin-top: 2rem;
    padding: 1.5rem;
}

.hero-stats .col-4 h3 {
    font-size: 1.5rem;
}

.hero-stats .col-4 p {
    font-size: 0.8rem;
}

/* Spacing - Mobile First */
.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-5 {
    margin-bottom: 2.5rem !important;
}

/* Cards - Mobile First */
.step-card, .facility-card, .city-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Navigation - Mobile First */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
}

.nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}

/* FAQ Section - Mobile First */
.accordion-button {
    font-size: 0.9rem;
    padding: 1rem;
}

.accordion-body {
    font-size: 0.85rem;
    padding: 1rem;
}

/* Footer - Mobile First */
footer {
    text-align: center;
}

footer .col-md-2, footer .col-md-3, footer .col-md-4 {
    margin-bottom: 2rem;
}

footer h5, footer h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .btn {
        width: auto;
        margin-bottom: 0;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    .hero-section {
        text-align: left;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    footer {
        text-align: left;
    }
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
    .display-4 {
        font-size: 3rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    .hero-section {
        min-height: 100vh;
        padding-top: 4rem;
        padding-bottom: 4rem;
        background-attachment: fixed;
    }
    
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .hero-stats {
        margin-top: 0;
    }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    .display-4 {
        font-size: 3.5rem;
    }
    
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.rounded-4 {
    border-radius: 1rem !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Performance Optimizations */
.img-fluid {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Touch Device Optimizations */
.touch-device .btn:hover,
.touch-device .card:hover,
.touch-device .facility-card:hover,
.touch-device .city-card:hover,
.touch-device .step-card:hover {
    transform: none;
    box-shadow: none;
}

.touch-device .touch-active {
    transform: scale(0.98);
    opacity: 0.8;
    transition: all 0.15s ease-out;
}

/* Mobile Viewport Height Fix */
.hero-section {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* Better Mobile Scrolling */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Improved Mobile Typography */
@media (max-width: 480px) {
    .display-4 {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .display-5 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.8rem 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .hero-stats .col-4 h3 {
        font-size: 1.25rem;
    }
    
    .hero-stats .col-4 p {
        font-size: 0.75rem;
    }
}

/* Optimized Images for Mobile */
@media (max-width: 768px) {
    .city-card img,
    .facility-card img {
        height: 150px;
    }
}

/* Performance Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

.btn, .card, .nav-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

/* Print Styles */
@media print {
    .navbar, .btn, .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none !important;
    }
}
