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

:root {
    /* Light Mode Colors */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #f8fafc;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-secondary: linear-gradient(135deg, #f8fafc, #e2e8f0);
    --brand: #22c55e;
}

.dark {
    /* Dark Mode Colors */
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #1e293b;
    --accent-color: #22d3ee;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --background: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #60a5fa, #22d3ee);
    --gradient-secondary: linear-gradient(135deg, #1e293b, #334155);
    --brand: #34d399;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    transition: all 0.3s ease;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

/* Mobile device specific styles */
body.mobile-device {
    font-size: 14px;
}

body.mobile-device .container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
}

body.mobile-device .hero-content {
    width: 100%;
    padding: 0 10px;
}

/* Force mobile layout for GitHub Pages */
@media screen and (max-width: 768px) {
    html {
        width: 100% !important;
        height: 100% !important;
        overflow-x: hidden !important;
        font-size: 14px !important;
    }
    
    body {
        font-size: 14px !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .hero {
        min-height: 100vh !important;
        padding: 80px 0 60px !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        display: block !important;
        grid-template-columns: none !important;
        box-sizing: border-box !important;
    }
    
    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .hero-image {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .hero-graphic {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        max-height: 200px !important;
    }
    
    .services-grid,
    .consultation-grid {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .service-card,
    .consultation-item {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .about-content {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .contact-content {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .footer-content {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Force all elements to respect viewport width */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Specific fixes for common problematic elements */
    .navbar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 60px 0 !important;
    }
}

/* Accessibility and motion preferences */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; left: 20px; top: 20px; width: auto; height: auto; padding: 10px 14px; background: var(--primary-color); color: #fff; border-radius: 8px; z-index: 2000; }

:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

* {
    box-sizing: border-box;
}

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

/* Ensure all elements are responsive */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.dark .navbar {
    background: rgba(15, 23, 42, 0.95);
}

/* Scrolled state synced with theme */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.dark .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li { white-space: nowrap; }

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--brand));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--brand));
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--shadow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-secondary);
    overflow: hidden;
}

/* Animated grid background overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: grid-move 12s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 10%;
    right: 50%;
    animation-delay: 3s;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    animation: slideInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 3.2vw + 1rem, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.logo-title { 
    height: clamp(56px, 10vh, 84px); 
    vertical-align: middle; 
    margin-left: 12px; 
    margin-right: 8px; 
    object-fit: contain; 
    filter: drop-shadow(0 6px 15px rgba(0,0,0,0.25));
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 4px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.logo-title:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(59, 130, 246, 0.4));
    background: rgba(255,255,255,0.2);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: hue-shift 8s ease infinite;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--brand));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Small button for card actions */
.btn-sm {
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 10px;
    margin-top: 12px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInScale 1s ease-out 0.5s both;
}

.hero-graphic {
    width: clamp(220px, 38vw, 380px);
    height: clamp(220px, 38vw, 380px);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2.4s infinite, float 8s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
    position: relative;
    box-shadow: 
        inset 0 0 80px rgba(255,255,255,0.25),
        0 0 0 4px rgba(255,255,255,0.1),
        0 25px 60px rgba(0,0,0,0.15),
        0 0 100px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.hero-graphic::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
}

.hero-graphic i {
    font-size: clamp(5rem, 10vw, 10rem);
    color: white;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
    animation: iconGlow 3s ease-in-out infinite alternate;
}

.hero-graphic::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 70%, transparent 100%);
    filter: blur(20px);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse, shimmer 4s ease-in-out infinite;
}

.logo-badge { display: none; }
.logo-hero { display: none; }

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-description {
    font-size: clamp(0.95rem, 0.6vw + 0.7rem, 1.1rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--background);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-secondary);
}

.stat-card svg { width: 100%; height: 36px; margin-top: 8px; opacity: 0.8; }

/* Services Section */
.services {
    background: var(--background);
}

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

/* Prevent horizontal overflow on small screens */
.service-card, .consultation-item, .contact-item { max-width: 100%; }
section, .hero, .navbar, footer { width: 100%; overflow-x: hidden; }

.service-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--brand));
    opacity: 0.08;
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-15px) rotate3d(1, 1, 0, 4deg);
    box-shadow: 0 25px 50px var(--shadow);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--brand));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

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

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: right;
}

.service-features li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-right: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Consultation Section */
.consultation {
    background: var(--surface);
}

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

.consultation-item {
    background: var(--background);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.consultation-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--accent-color);
}

.consultation-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--brand));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.consultation-item:hover .consultation-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.consultation-icon i {
    font-size: 1.8rem;
    color: white;
}

.consultation-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.consultation-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.map-container { margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px var(--shadow); }
.map-container iframe { height: clamp(220px, 35vh, 380px); }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px var(--shadow);
}

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

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group select {
    cursor: pointer;
}

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

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.dark .footer {
    background: #0b1222;
    color: #e2e8f0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.logo { 
    width: 56px; 
    height: 56px; 
    object-fit: contain; 
    filter: drop-shadow(0 6px 15px rgba(0,0,0,0.25));
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 3px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
}

.logo:hover {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 8px 20px rgba(59, 130, 246, 0.4));
    background: rgba(255,255,255,0.2);
}
.logo-hero { width: 65%; height: 65%; object-fit: contain; filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25)); }

.footer-logo i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section ul li i {
    margin-left: 10px;
    color: var(--primary-color);
}

.social-links {
    margin-top: 20px;
}

.social-links h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Back to top button */
.back-to-top { position: fixed; right: 20px; bottom: 20px; display: none; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); box-shadow: 0 10px 20px var(--shadow); cursor: pointer; z-index: 1200; }
.back-to-top:hover { transform: translateY(-3px); }

/* Rich content helpers */
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.service-hero {
    padding: 120px 0 40px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.tag { background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); padding: 6px 10px; border-radius: 999px; font-size: 0.9rem; }

.breadcrumb { text-align: center; font-size: 0.95rem; margin-top: 8px; }
.breadcrumb a { color: var(--primary-color); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.faq { margin-top: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-primary); }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

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

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

@keyframes iconGlow {
    0% { 
        filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 12px 30px rgba(59, 130, 246, 0.4));
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes hue-shift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes grid-move {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 40px 40px, 40px 40px; }
}

/* Mobile First Approach */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 15px;
        width: 100%;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 10px;
    }
    
    .services-grid,
    .consultation-grid {
        width: 100%;
    }
    
    .service-card,
    .consultation-item {
        width: 100%;
        margin: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3rem);
    }
    
    .hero-graphic {
        width: clamp(200px, 30vw, 300px);
        height: clamp(200px, 30vw, 300px);
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Force mobile layout */
    html {
        font-size: 14px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo span {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 15px;
    }
    
    .hero-title { 
        font-size: clamp(1.8rem, 4.5vw + 0.6rem, 2.5rem);
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-graphic { 
        width: 200px; 
        height: 200px; 
    }
    
    .hero-graphic i {
        font-size: clamp(3rem, 8vw, 6rem);
    }
    
    section { 
        padding: 60px 0; 
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .services-grid,
    .consultation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .consultation-item {
        padding: 25px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Force mobile layout for small screens */
    html {
        font-size: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .nav-container {
        padding: 0 10px;
        width: 100%;
    }
    
    .hero-content {
        padding: 0 10px;
        gap: 25px;
    }
    
    .hero-title { 
        font-size: clamp(1.6rem, 5vw + 0.4rem, 2rem);
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .hero-graphic { 
        width: 150px; 
        height: 150px; 
    }
    
    .hero-graphic i {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    section { 
        padding: 50px 0; 
    }
    
    .map-container iframe { 
        height: 200px; 
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .service-card,
    .consultation-item {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-card h4 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 20px 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
    }
    
    .social-icons a i {
        font-size: 1rem;
    }
    
    .logo-title {
        height: clamp(40px, 8vh, 60px);
        margin-left: 8px;
        margin-right: 6px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1440px) {
    .container { max-width: 1320px; }
    .about-stats { gap: 28px; }
    .services-grid { gap: 36px; }
}