/* 
 * Blitz&Clean 24 - Professional Stylesheet
 * Final Version - Fixed Header & Footer Alignment
 */

/* === 1. CSS Reset & Variables === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors - PRESERVED */
    --primary-dark: #0f172a;
    --primary-medium: #1e3a8a;
    --primary-light: #3b82f6;
    --accent-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #f1f5f9;
    --border-color: #e2e8f0;

    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --radius: 8px;
    --radius-lg: 16px;
    
    /* Header Height Variable */
    --header-height: 75px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Selection Style */
::selection {
    background-color: var(--primary-light);
    color: var(--white);
}

/* === 2. General Layout === */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === 3. Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    padding: 16px 30px;
    font-size: 1rem;
}

/* === 4. Header & Navigation === */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.99);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    padding: 10px 18px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 30px;
}

.nav-links li a:hover {
    color: var(--primary-light);
    background-color: rgba(59, 130, 246, 0.05);
}

.nav-contact {
    margin-left: 20px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.contact-link {
    background-color: var(--primary-dark);
    color: var(--white) !important;
    border-radius: var(--radius);
    padding: 10px 20px !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-link::after {
    display: none !important;
}

.contact-link:hover {
    background-color: var(--primary-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-link i {
    color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* === 5. Hero Section === */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.88)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 20px 80px 20px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s backwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s backwards;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero .btn-secondary {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
}

.hero .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

/* Floating shapes decoration */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.hero-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.hero-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.hero-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(0, -40px) rotate(0deg); }
    75% { transform: translate(-20px, -20px) rotate(-5deg); }
}

/* === 6. Sections General === */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 20px auto 0;
}

/* Scroll Margin for Anchor Links */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* === 7. Services Section === */
.services {
    background-color: var(--off-white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-light);
    transition: var(--transition);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    opacity: 0;
    transform: scale(1.2);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    color: var(--white);
    transform: rotate(-5deg) scale(1.1);
}

.service-card:hover .service-icon::after {
    opacity: 0.3;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: scale(1.2) rotate(0deg); }
    to { transform: scale(1.2) rotate(360deg); }
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === 8. Why Us Section === */
.why-us {
    position: relative;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(6, 182, 212, 0.03));
    opacity: 0;
    transition: var(--transition);
}

.feature:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
    position: relative;
    z-index: 1;
}

.feature p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* === 9. CTA Section === */
.cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta .btn {
    position: relative;
    z-index: 1;
}

/* === 10. Footer === */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 70px 0 25px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-links a:hover::before {
    width: 8px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === 11. Internal Pages Styles === */
.page-hero {
    min-height: 55vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.88)), url('../img/page-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding-top: calc(var(--header-height) + 30px);
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

.page-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.page-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* About & Services Detail Grids */
.about-grid, .service-detail, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h2, .service-info h2, .contact-details h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.about-text h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 25px 0 15px;
}

.about-text p, .service-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.values-list, .service-features {
    margin: 20px 0;
}

.values-list li, .service-features li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
}

.values-list li::before, .service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.service-image img, .about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.service-image img:hover, .about-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* === 12. Contact Section === */
.contact-info-section {
    background-color: var(--off-white);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateX(10px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    color: var(--white);
}

.contact-text h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-text a {
    color: var(--text-light);
}

.contact-text a:hover {
    color: var(--primary-light);
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 45px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form-container h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Messages */
.form-success-message,
.form-error-message {
    padding: 20px 25px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.form-success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.form-success-message .success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.form-success-message h3 {
    font-size: 1.5rem;
    color: #16a34a;
    margin-bottom: 10px;
}

.form-success-message p {
    color: var(--text-light);
}

.form-error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.form-error-message i {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* === 13. FAQ Section === */
.faq {
    background-color: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 22px 25px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--off-white);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-light);
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--off-white);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px 25px;
    color: var(--text-light);
    line-height: 1.8;
}

/* === 14. Map Section === */
.map-section {
    background-color: var(--off-white);
}

.map-container {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--white);
}

.map-info i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.map-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.map-info p {
    opacity: 0.8;
    margin-bottom: 8px;
}

.map-info .btn {
    margin-top: 25px;
    background: var(--white);
    color: var(--primary-dark);
}

.map-info .btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* === 15. Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    background: var(--off-white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* === 16. Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll Reveal Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === 17. Responsive Design === */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .section-title h2 { font-size: 2.2rem; }
}

@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .about-grid, .service-detail, .contact-grid, .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-detail:nth-child(even) .service-info { order: 1; }
    .service-detail:nth-child(even) .service-image { order: 2; }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 { font-size: 2.5rem; }
    .section { padding: 80px 0; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 65px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transform: translateX(-100%);
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
        gap: 10px;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .nav-links li a {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    
    .nav-contact {
        border: none;
        margin-top: 20px;
        padding: 0;
    }
    
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .section-title h2 { font-size: 2rem; }
    .page-hero-content h1 { font-size: 2.3rem; }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .contact-form-container {
        padding: 30px 25px;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 60px;
    }
    
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { 
        flex-direction: column; 
        align-items: center;
    }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 1.8rem; }
    .section-title p { font-size: 1rem; }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item { padding: 25px 20px; }
    .stat-number { font-size: 2.5rem; }
    
    /* ===== Footer Enhanced for Mobile ===== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: left;
        padding: 0 10px;
    }
    
    /* العمود الأول - الشعار والمعلومات */
    .footer-column:first-child {
        text-align: center;
        padding-bottom: 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 5px;
    }
    
    .footer-column:first-child h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column:first-child p {
        text-align: center;
    }
    
    /* الروابط الاجتماعية في المنتصف */
    .social-links {
        justify-content: center;
    }
    
    /* أعمدة الروابط - محاذاة لليسار */
    .footer-column h3 {
        margin-bottom: 20px;
    }
    
    .footer-column h3::after {
        left: 0;
        transform: translateX(0);
    }
    
    .footer-links a:hover {
        padding-left: 8px;
    }
    
    /* تنسيق معلومات الاتصال */
    .contact-info li {
        justify-content: flex-start;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-item:hover {
        transform: translateY(-5px);
    }
    
    .page-hero { min-height: 45vh; }
    .page-hero-content h1 { font-size: 1.9rem; }
    .page-hero-content p { font-size: 1rem; }
    
    .about-text h2, .service-info h2, .contact-details h2 { font-size: 1.8rem; }
}

/* === 18. Print Styles === */
@media print {
    header, footer, .hamburger, .btn { display: none; }
    .hero, .page-hero { min-height: auto; padding: 40px 0; }
    body { color: #000; background: #fff; }
}
/* === Legal Pages Typography === */
.legal-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0;
}

.legal-text h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-top: 50px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-text h3 {
    font-size: 1.3rem;
    color: var(--primary-medium);
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-text ul, .legal-text ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.legal-text li {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.7;
    list-style-type: disc; /* إظهار النقاط للقوائم */
}

.legal-text a {
    color: var(--primary-light);
    text-decoration: underline;
}

.legal-text a:hover {
    color: var(--accent-color);
}