/* ==============================================
   LK CONSULTANCY - OPTIMIZED RESPONSIVE CSS
   ============================================== */

/* ==============================================
   CSS RESET & BASE STYLES
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

body.index-page {
    background: inherit;
}

body.loading {
    overflow: hidden;
}

/* ==============================================
   VARIABLES & UTILITY CLASSES
   ============================================== */
:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --accent-cyan: #00d4ff;
    --accent-blue: #0099cc;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --shadow-light: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-heavy: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 15px;
    --max-width: 1200px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.visible { opacity: 1; transform: translateY(0); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ==============================================
   HEADER STYLES
   ============================================== */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.page-gallery .header,
.page-news .header,
.page-article .header,
.page-appointment .header {
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: var(--transition);
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hover effects */
.logo:hover .logo-container {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.logo:hover .logo-text {
    color: var(--accent-cyan);
}


.loader-logo-image,
.logo-image {
    animation: none; /* Remove any rotation */
}

/* .logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
} */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--accent-cyan);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.appointment-btn {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-appointment {
    display: none;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Add instant background - users see this immediately */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Smooth transition when image loads */
    transition: opacity 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(30, 60, 114, 0.85) 0%, 
        rgba(42, 82, 152, 0.75) 50%,
        rgba(0, 212, 255, 0.15) 100%
    );
    z-index: 2;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    overflow-wrap: break-word;
}

.hero-content .highlight {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-cyan);
    text-shadow: none;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    min-width: 150px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

.hero-visual {
    position: relative;
    z-index: 4;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(30, 60, 114, 0.1));
    border-radius: 20px;
    z-index: -1;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    color: var(--white);
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 212, 255, 0.2);
}

.stat-number {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: bold;
    background: linear-gradient(45deg, var(--accent-cyan), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-cyan);
    display: block;
    text-shadow: none;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: #ffffff !important; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important; 
    font-weight: 600 !important;
    opacity: 1 !important; 
}

.hero-card p {
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-top: 1rem;
}

/* ==============================================
   COMMON SECTION STYLES
   ============================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==============================================
   ABOUT SECTION
   ============================================== */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    padding-right: 1rem;
}

.about-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--accent-cyan);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(10px);
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.feature-item span {
    font-weight: 500;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.founder-section {
    position: relative;
}

.leo-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    max-width: 100%;
}

.leo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
}

.leo-image-container {
    position: relative;
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
}

.leo-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
}

.leo-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
    filter: contrast(1.1) brightness(1.05) saturate(1.1);
}

.leo-card:hover .leo-image-photo {
    transform: scale(1.05);
    filter: contrast(1.15) brightness(1.1) saturate(1.15);
}

.leo-image-frame {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue), var(--primary-blue)) border-box;
    animation: rotate 20s linear infinite;
}

.leo-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.leo-title {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-badges {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(30, 60, 114, 0.1));
    color: var(--primary-blue);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(30, 60, 114, 0.2));
}

.badge i {
    font-size: 0.7rem;
    color: var(--accent-cyan);
}

.leo-credentials {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: left;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border-left: 3px solid var(--accent-cyan);
}

.professional-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.stat {
    text-align: center;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(30, 60, 114, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.1);
}

.stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-cyan);
    display: block;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==============================================
   SERVICES SECTION
   ============================================== */
.services {
    padding: 5rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==============================================
   QUALITY FEATURES SECTION
   ============================================== */
.quality-features {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quality-item {
    text-align: center;
    padding: 2rem;
}

.quality-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.quality-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.quality-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ==============================================
   STATS SECTION
   ============================================== */
.stats {
    padding: 3rem 0;
    background: var(--accent-cyan);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stats-item {
    text-align: center;
    color: var(--white);
}

.stats-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    display: block;
}

.stats-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==============================================
   CLIENTS SECTION
   ============================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.client-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.client-card:hover::before {
    transform: scaleX(1);
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.client-logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: var(--shadow-light);
    padding: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.client-card:hover .client-logo {
    transform: scale(1.05);
}

.client-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.client-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
}

.client-card:hover h4 {
    color: var(--accent-cyan);
}

/* ==============================================
   CONTACT SECTION
   ============================================== */
.contact {
    padding: 5rem 0;
    background: var(--gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.emergency-contact {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.emergency-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    color: var(--accent-cyan);
    margin: 1rem 0;
}

/* ==============================================
   FOOTER STYLES
   ============================================== */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-cyan);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-cyan);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #666;
}

/* ==============================================
   PAGE LOADER STYLES
   ============================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

/* .loader-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 2rem;
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
} */

.loader-logo-container {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: pulse 2s infinite; /* Only pulse animation */
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    padding: 20px;
}

.loader-logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes logo white */
    /* Removed rotation animation - only pulse from container */
}

.loader-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    animation: fadeInOut 2s infinite;
    color: var(--white);
}

.loader-subtext {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    color: var(--white);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progressGlow 2s infinite;
}

body.loading .header,
body.loading .main-content {
    opacity: 0;
}

/* ==============================================
   PAGE-SPECIFIC STYLES
   ============================================== */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.page-gallery .page-header::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="gallery-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23gallery-dots)"/></svg>');
}

.page-news .page-header::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="news-dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23news-dots)"/></svg>');
}

.page-appointment .page-header::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==============================================
   GALLERY PAGE STYLES
   ============================================== */
.gallery-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--white);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--gray-medium);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: var(--white);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.gallery-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--gray-medium), var(--gray-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 60, 114, 0.8), rgba(0, 212, 255, 0.8));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-placeholder {
    font-size: 3rem;
    color: #ccc;
}

.gallery-content {
    padding: 1.5rem;
}

.gallery-category {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.gallery-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-image {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-info {
    padding: 1.5rem;
    background: var(--white);
}

.lightbox-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.lightbox-description {
    color: var(--text-light);
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--white);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

/* ==============================================
   NEWS PAGE STYLES
   ============================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, var(--gray-medium), var(--gray-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 60, 114, 0.1), rgba(0, 212, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-image::before {
    opacity: 1;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

.news-category {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.featured-article {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
}

.featured-image {
    height: 300px;
    background: linear-gradient(45deg, var(--gray-medium), var(--gray-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-medium);
    background: var(--white);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: var(--white);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-btn {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* ==============================================
   ARTICLE PAGE STYLES
   ============================================== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-button:hover {
    color: var(--primary-blue);
    transform: translateX(-5px);
}

.article-header {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.article-category {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.article-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--gray-medium), var(--gray-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.article-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.article-content blockquote {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(30, 60, 114, 0.1));
    border-left: 4px solid var(--accent-cyan);
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    font-style: italic;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.share-section {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
    text-align: center;
}

.share-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.email { background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue)); }

.related-section {
    margin-top: 4rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.related-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(45deg, var(--gray-medium), var(--gray-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
}

.related-content {
    padding: 1.5rem;
}

.related-title {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==============================================
   APPOINTMENT PAGE STYLES
   ============================================== */
.appointment-header {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.appointment-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.appointment-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.appointment-form {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.info-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.emergency-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.emergency-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.emergency-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    color: var(--accent-cyan);
    margin: 1rem 0;
}

/* ==============================================
   ANIMATION KEYFRAMES
   ============================================== */
@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 fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================== */

/* Extra Small Devices (320px and up) */
@media (min-width: 320px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 140px;
    }
}

/* Small Devices (480px and up) */
@media (min-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        min-width: 150px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
    }
    
    .appointment-btn {
        display: inline-block;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-visual {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .about-content {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-article {
        grid-template-columns: 1fr 1fr;
    }
    
    .article-meta {
        flex-direction: row;
    }
    
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Devices (1024px and up) */
@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quality-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quality-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Navigation Styles */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .appointment-btn {
        display: none;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(30, 60, 114, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-heavy);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-appointment {
        display: block;
        text-align: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .hero {
        padding-top: 100px;
        min-height: 100vh;
        align-items: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .client-card {
        min-height: 240px;
        padding: 1.5rem;
    }
    
    .client-logo-container {
        width: 80px;
        height: 80px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .professional-stats {
        grid-template-columns: 1fr;
    }
    
    .achievement-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .leo-image-container {
        width: 100px;
        height: 100px;
    }

    /* Logo Related */
    .logo {
        gap: 0.8rem;
    }
    
    .logo-container {
        width: 45px;
        height: 45px;
        padding: 7px;
    }
    
    .logo-image {
        width: 31px;
        height: 31px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Smaller loader on mobile */
    .loader-logo-container {
        width: 80px;
        height: 80px;
        padding: 15px;
    }
    
    .loader-logo-image {
        width: 50px;
        height: 50px;
    }
}

/* Very Small Devices (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero {
        padding-top: 90px;
    }
    
    .hero-container {
        padding: 2rem 1rem;
    }
    
    .hero-buttons a {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 260px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-stats {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .client-card {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .article-header {
        padding: 1.5rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .appointment-header {
        padding: 2rem 1rem;
    }
    
    .appointment-form {
        padding: 1.5rem;
    }
    
    .leo-image-container {
        width: 90px;
        height: 90px;
    }
    
    .achievement-badges {
        flex-direction: column;
        align-items: center;
    }

    /* Logo Related */
    .logo {
        gap: 0.6rem;
    }
    
    .logo-container {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    /* Smaller loader on mobile */
    .loader-logo-container {
        width: 80px;
        height: 80px;
        padding: 15px;
    }
    
    .loader-logo-image {
        width: 50px;
        height: 50px;
    }
}

/* Ultra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    .hero-container {
        padding: 1.5rem 0.8rem;
    }
    
    .hero-buttons a {
        max-width: 240px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .client-card {
        max-width: 260px;
        padding: 1.2rem;
        min-height: 220px;
    }
    
    .client-logo-container {
        width: 70px;
        height: 70px;
    }
    
    .leo-image-container {
        width: 80px;
        height: 80px;
    }
    
    .appointment-form {
        padding: 1.2rem;
    }
    
    .article-header {
        padding: 1.2rem;
    }
    
    .article-content {
        padding: 1.2rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
}

/* High DPI / Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .leo-image-photo {
        filter: contrast(1.05) brightness(1.02) saturate(1.05);
    }
    
    .client-logo,
    .gallery-image img,
    .news-image img,
    .article-image img {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility & Focus States */
*:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-content .highlight {
        color: var(--accent-cyan);
    }
    
    .service-card,
    .news-card,
    .gallery-item,
    .info-card,
    .client-card {
        border: 2px solid #333;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-card {
        animation: none;
    }
    
    .loader-logo,
    .loader-text,
    .loader-spinner,
    .loader-progress-bar {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .page-loader,
    .mobile-menu-btn,
    .appointment-btn,
    .share-section,
    .newsletter-section,
    .filter-tabs,
    .pagination,
    .load-more-section,
    .footer {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0 !important;
    }
    
    .page-header {
        margin-bottom: 2rem;
        padding: 2rem 0;
    }
    
    .article-content,
    .appointment-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: var(--white) !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Performance Optimizations */
.hero-background,
.hero-overlay,
.gallery-image,
.news-image,
.article-image {
    will-change: transform;
}

.service-card,
.news-card,
.gallery-item,
.client-card {
    will-change: transform, box-shadow;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .news-card:hover,
    .gallery-item:hover,
    .client-card:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .appointment-btn:hover {
        transform: none;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Can be expanded if dark mode is required */
}


/* ==============================================
   TEAM SECTION STYLES
   ============================================== */
.team {
    padding: 5rem 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.team-image-container {
    position: relative;
    margin: 0 auto 1.5rem;
    width: 150px;
    height: 150px;
}

.team-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
}

.team-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
    filter: contrast(1.1) brightness(1.05) saturate(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 60, 114, 0.9), rgba(0, 212, 255, 0.9));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 1rem;
}

.team-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.team-social-link:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: scale(1.1);
}

.team-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.team-title {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-specialties {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.specialty-badge {
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(30, 60, 114, 0.1));
    color: var(--primary-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: var(--transition);
}

.specialty-badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(30, 60, 114, 0.2));
}

.specialty-badge i {
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.team-bio {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border-left: 3px solid var(--accent-cyan);
}

.team-expertise,
.team-education {
    text-align: left;
    margin-bottom: 1rem;
}

.team-expertise h4,
.team-education h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-expertise ul {
    list-style: none;
    padding: 0;
}

.team-expertise li {
    padding: 0.3rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.team-expertise li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.team-education p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design for Team Section */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-image-container {
        width: 120px;
        height: 120px;
    }
    
    .team-specialties {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .team-card {
        padding: 1.2rem;
    }
    
    .team-image-container {
        width: 100px;
        height: 100px;
    }
    
    .team-social {
        gap: 0.5rem;
    }
    
    .team-social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

.image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.loader-logo-image {
    width: 120px;
    height: auto;
    position: relative;
    left: 2px; /* Adjust this value to nudge it left or right */
    top: 1px;  /* Adjust this value to nudge it up or down */
}

.logo-image {
    width: 60px; /* Made bigger - adjust as needed */
    height: auto;
    position: relative;
    left: 1px; /* Fine-tune positioning if needed */
    top: 0px;  /* Fine-tune positioning if needed */
}

/* Optional: Ensure the logo container can accommodate the larger image */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ==============================================
   END OF OPTIMIZED RESPONSIVE CSS
   ============================================== */