/* ================================
   VARIABLES & THEME
================================ */
:root {
    --primary: #0369a1;
    --primary-dark: #075985;
    --primary-light: #38bdf8;
    --accent: #f59e0b;
    --whatsapp: #25D366;
    --whatsapp-dark: #1da851;

    --bg: #f0f9ff;
    --bg-surface: #ffffff;
    --bg-alt: #e0f2fe;
    --text: #0c1a2e;
    --text-muted: #5a7a99;
    --border: #bae6fd;
    --shadow-sm: 0 2px 8px rgba(3,105,161,0.08);
    --shadow-md: 0 8px 32px rgba(3,105,161,0.14);
    --shadow-lg: 0 20px 60px rgba(3,105,161,0.18);
    --radius: 14px;
    --radius-lg: 22px;
    --transition: 0.3s ease;
}

[data-theme="dark"] {
    --bg: #060f1f;
    --bg-surface: #0f2035;
    --bg-alt: #081628;
    --text: #e2f0ff;
    --text-muted: #7da8cc;
    --border: #1e3d5c;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

/* ================================
   RESET & BASE
================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    width: 100%; 
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5.5rem 0; }
.bg-alt { background-color: var(--bg-alt); }

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

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to left, var(--primary), var(--accent));
    border-radius: 100px;
}

.section-header p { color: var(--text-muted); font-size: 1.1rem; margin-top: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ================================
   BUTTONS
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Tajawal', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(3,105,161,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(3,105,161,0.45); color: #fff; }

.btn-whatsapp {
    background: linear-gradient(135deg, #43e97b, var(--whatsapp));
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,0.5); color: #fff; }

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

.btn-block { width: 100%; }
.btn-call-header { background: var(--primary); color: white !important; padding: 0.5rem 1.2rem; border-radius: 100px; font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.btn-call-header:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ================================
   HEADER
================================ */
.header {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(3,105,161,0.12);
    padding: 0.5rem 0;
}

[data-theme="dark"] .header.scrolled {
    background: rgba(6,15,31,0.92);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

.logo-icon-wrap {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(3,105,161,0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(3,105,161,0.1);
    color: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle, .menu-toggle {
    width: 42px; height: 42px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text);
    transition: all var(--transition);
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--primary); color: var(--primary); }
.menu-toggle { display: none; }

/* ================================
   HERO
================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #001f3f 0%, #0369a1 50%, #0ea5e9 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="30" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="20" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: 400px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    min-height: 1.3em;
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink { 50% { opacity: 0; } }

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    width: fit-content;
    flex-wrap: wrap;
}

.stat-item { text-align: center; padding: 0 1.5rem; }
.stat-item .stat-num { font-size: 2.2rem; font-weight: 900; color: var(--accent); }
.stat-item span { font-size: 1.2rem; color: rgba(255,255,255,0.7); }
.stat-item p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.2); }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    margin: 0 auto;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ================================
   SERVICES
================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary));
    transition: height 0.4s ease;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.service-card:hover::before { height: 100%; }
.service-card.highlight { border-color: var(--primary); background: linear-gradient(135deg, var(--bg-surface), rgba(3,105,161,0.04)); }

.service-badge-urgent {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.service-icon-wrap {
    width: 65px; height: 65px;
    background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(3,105,161,0.12));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    transform: rotate(-5deg) scale(1.05);
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--text); }
.service-card p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.7; }

.service-list { display: flex; flex-direction: column; gap: 0.5rem; }
.service-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); font-size: 0.9rem; }
.service-list li i { color: var(--whatsapp); font-size: 0.75rem; }

/* ================================
   PORTFOLIO
================================ */
.portfolio-filters {
    display: flex; justify-content: center; gap: 0.75rem;
    margin-bottom: 3rem; flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
    border-radius: 100px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(3,105,161,0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

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

.portfolio-img {
    height: 230px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    position: relative;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-img { transform: scale(1.05); }
.portfolio-item:hover .portfolio-img::after { opacity: 1; }

.portfolio-content { padding: 1.25rem 1.5rem; }

.portfolio-tag {
    display: inline-block;
    background: rgba(3,105,161,0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.portfolio-content h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.portfolio-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }

.portfolio-view {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(5px);
    transition: all var(--transition);
}

.portfolio-item:hover .portfolio-view { opacity: 1; transform: translateY(0); }

/* ================================
   FEATURES
================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feature-icon {
    width: 75px; height: 75px;
    background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(3,105,161,0.12));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 1.25rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    transform: scale(1.1);
}

.feature-card h4 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); line-height: 1.7; }

/* ================================
   TEAM
================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.75rem;
}

.team-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

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

.team-img {
    height: 280px;
    background-size: cover;
    background-position: center top;
    transition: transform 0.5s ease;
}

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

.team-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 280px;
    background: linear-gradient(to bottom, transparent, rgba(3,105,161,0.8));
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 2rem;
    color: white;
}

.team-card:hover .team-overlay { opacity: 1; }

.team-info {
    padding: 1.25rem;
    border-top: 3px solid var(--primary);
}

.team-info h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-info p { color: var(--primary); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.team-info span { color: var(--text-muted); font-size: 0.85rem; }

/* ================================
   PROCESS
================================ */
.process-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
}

.process-step {
    text-align: center;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.step-number {
    width: 55px; height: 55px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 14px rgba(3,105,161,0.4);
}

.step-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.process-step h4 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(to left, var(--primary-light), var(--primary));
    margin-top: 4.5rem;
    position: relative;
    flex-shrink: 0;
}

.process-connector::after {
    content: '❯';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.9rem;
}

/* ================================
   TESTIMONIALS
================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.testimonial-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.07;
    font-family: Georgia, serif;
    line-height: 1;
}

.stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: 2px; }

.quote {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }

.author-avatar {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-author .author { font-weight: 800; color: var(--primary); margin-bottom: 0.1rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.85rem; }

/* ================================
   CONTACT
================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.contact-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-item a, .contact-item p { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.contact-item a:hover { color: var(--primary); }

.footer-phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}
.footer-phone:hover { color: var(--primary-dark); }

.contact-form {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3,105,161,0.1);
}

/* ================================
   FOOTER
================================ */
.footer {
    background: linear-gradient(135deg, #001f3f, #0369a1);
    color: rgba(255,255,255,0.85);
    padding: 5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo { color: white; margin-bottom: 1rem; }
.footer-brand .logo-icon-wrap { background: rgba(255,255,255,0.2); }
.footer-brand p { color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition);
}
.footer-social a:hover { background: white; color: var(--primary); transform: translateY(-3px); }

.footer-links h4, .footer-services h4, .footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-links ul, .footer-services ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a, .footer-services a { color: rgba(255,255,255,0.7); transition: color var(--transition); font-size: 0.95rem; }
.footer-links a:hover, .footer-services a:hover { color: var(--accent); }

.footer-contact p { color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.6rem; }
.footer-contact p i { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ================================
   FLOATING BUTTONS
================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2.5rem;
    left: 2rem;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #43e97b, var(--whatsapp));
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover { transform: scale(1.12) rotate(10deg); color: white; }

.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.4);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.scroll-top-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2rem;
    width: 50px; height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(3,105,161,0.4);
    z-index: 999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--primary-dark); transform: translateY(-4px); }

/* ================================
   MODAL
================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    padding: 2rem;
    overflow-y: auto;
}

.modal.show { display: flex; align-items: center; justify-content: center; }

.modal-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    z-index: 2001;
}
.modal-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.modal-inner {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 90%;
    max-width: 850px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: zoomIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes zoomIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#modal-main-img { width: 100%; height: 100%; object-fit: cover; min-height: 350px; }

.modal-details { padding: 2rem; display: flex; flex-direction: column; }
.modal-details h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary); }
.modal-details p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; flex: 1; }

.modal-thumbnails { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.modal-thumb {
    width: 70px; height: 55px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all var(--transition);
}
.modal-thumb:hover, .modal-thumb.active { opacity: 1; border-color: var(--primary); }

/* ================================
   SCROLL ANIMATIONS
================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for grid items */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.3s; }

.portfolio-grid .portfolio-item:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .portfolio-item:nth-child(3) { transition-delay: 0.2s; }
.portfolio-grid .portfolio-item:nth-child(4) { transition-delay: 0.15s; }
.portfolio-grid .portfolio-item:nth-child(5) { transition-delay: 0.25s; }

.team-grid .team-card:nth-child(2) { transition-delay: 0.1s; }
.team-grid .team-card:nth-child(3) { transition-delay: 0.2s; }
.team-grid .team-card:nth-child(4) { transition-delay: 0.1s; }
.team-grid .team-card:nth-child(5) { transition-delay: 0.2s; }
.team-grid .team-card:nth-child(6) { transition-delay: 0.3s; }

/* ================================
   RESPONSIVE — MOBILE FIRST
================================ */

/* Large tablets and small desktops */
@media (max-width: 1100px) {
    .process-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .process-connector { display: none; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets */
@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .modal-inner { grid-template-columns: 1fr; }
    #modal-main-img { min-height: 250px; max-height: 300px; width: 100%; }

    .hero-stats {
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
    }

    .stat-item { flex: 1 1 40%; }
    .stat-divider { display: none; }
}

/* Mobile phones (landscape & large phones) */
@media (max-width: 768px) {
    /* ---- Navigation ---- */
    .menu-toggle { display: flex; }
    .btn-call-header { display: none; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -110%;       /* fully offscreen */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
        z-index: 999;
        gap: 0.25rem;
        overflow-y: auto;
    }

    .nav-links.open { right: 0; }

    /* Dim overlay when menu is open */
    .nav-links.open::before {
        content: '';
        position: fixed;
        inset: 0;
        left: -100vw;
        background: rgba(0,0,0,0.4);
        z-index: -1;
    }

    .nav-links a {
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 10px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:last-child { border-bottom: none; }

    /* ---- Layout ---- */
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.6rem; }

    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; gap: 1rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    /* ---- Hero ---- */
    .hero-content { padding-top: 7rem; padding-bottom: 5rem; }
    .hero-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
    .hero-subtitle { font-size: 1rem; }

    .hero-stats {
        width: 100%;
        padding: 1rem;
        justify-content: space-around;
        gap: 0;
    }

    .stat-item { padding: 0.5rem 0.75rem; flex: 1 1 40%; }
    .stat-item .stat-num { font-size: 1.5rem; }
    .stat-item p { font-size: 0.8rem; }
    .stat-divider { display: none; }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    /* ---- Contact form ---- */
    .contact-form { padding: 1.5rem; }

    /* ---- Modal ---- */
    .modal-inner {
        grid-template-columns: 1fr;
        max-width: 95vw;
    }
    #modal-main-img { max-height: 250px; }
    .modal-details { padding: 1.25rem; }
    .modal-close { top: 0.75rem; right: 0.75rem; }

    /* ---- Floating buttons ---- */
    .whatsapp-float { bottom: 1.5rem; left: 1.25rem; width: 54px; height: 54px; font-size: 1.5rem; }
    .scroll-top-btn { bottom: 1.5rem; right: 1.25rem; }
}

/* Small phones */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    .logo span { font-size: 1.1rem; }
    .logo-icon-wrap { width: 36px; height: 36px; font-size: 0.95rem; }

    .section-badge { font-size: 0.78rem; padding: 0.3rem 0.9rem; }

    .hero-content { padding-top: 6rem; }

    /* Stack hero stats into 2x2 grid on very small screens */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .stat-item {
        background: rgba(255,255,255,0.1);
        border-radius: 12px;
        padding: 0.75rem;
        flex: unset;
    }

    .portfolio-grid { grid-template-columns: 1fr; }

    .portfolio-img { height: 200px; }

    .footer-phone { font-size: 1.1rem; }

    .service-card { padding: 1.5rem 1.25rem; }
    .feature-card { padding: 1.5rem; }
    .testimonial-card { padding: 1.5rem; }

    /* Ensure form inputs are large enough for touch */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;  /* prevents iOS zoom on focus */
        padding: 0.9rem 1rem;
    }

    /* Prevent overflow in footer */
    .footer-bottom p { font-size: 0.78rem; word-break: break-word; }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero-title { font-size: 1.4rem; }
    .hero-buttons .btn { font-size: 0.9rem; padding: 0.8rem 1rem; }
    .stat-item .stat-num { font-size: 1.3rem; }
}
