/* ========================================
   RancoSoft - Modern Professional Design
   ======================================== */

/* --- Reset & Variables --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --accent: #06b6d4;
    --accent2: #8b5cf6;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --light-2: #e2e8f0;
    --white: #ffffff;
    --success: #10b981;

    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --border-soft: rgba(0, 0, 0, 0.06);
    --text: #0f172a;
    --text-muted: #64748b;
    --text-muted-2: #94a3b8;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);

    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-2: linear-gradient(135deg, var(--primary), var(--accent2));
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', 'Cairo', sans-serif;
    color-scheme: light;
}

html[data-theme="dark"] {
    --primary-glow: rgba(59, 130, 246, 0.25);
    --success: #34d399;
    --bg: #0b1220;
    --surface: #152032;
    --surface-2: #0f1a2e;
    --border: #2a3a55;
    --border-soft: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-muted-2: #cbd5e1;
    --nav-bg: rgba(11, 18, 32, 0.85);
    --nav-bg-scrolled: rgba(11, 18, 32, 0.95);
    --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.55);
    color-scheme: dark;
}

.theme-transition,
.theme-transition * {
    transition: background-color 0.35s ease, color 0.35s ease,
                border-color 0.35s ease, box-shadow 0.35s ease !important;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] { direction: rtl; text-align: right; }
body[dir="rtl"] .hero-title { direction: rtl; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

html[data-theme="dark"] .navbar .logo-img {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55))
            drop-shadow(0 0 16px rgba(255, 255, 255, 0.28));
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.lang-select {
    position: relative;
}

.lang-select-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 56px;
    justify-content: center;
}

.lang-select-btn:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.lang-select-btn i {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-select.open .lang-select-btn i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 5px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 100;
}

.lang-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.lang-dropdown button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.lang-dropdown button i {
    font-size: 0.7rem;
    color: var(--primary);
}

.lang-dropdown button:hover {
    background: var(--surface-2);
    color: var(--text);
}

.lang-dropdown button.active {
    color: var(--primary);
    background: var(--primary-glow);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #0f172a;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.88));
    z-index: 3;
    pointer-events: none;
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 2;
}

.hero-glow::after {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -300px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06), transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeUp 0.6s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeUp 0.6s ease 0.1s both;
    color: var(--white);
}

.hero-title span {
    display: block;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-light);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.7;
    animation: fadeUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 60px;
    animation: fadeUp 0.6s ease 0.3s both;
    flex-wrap: wrap;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: fadeUp 0.6s ease 0.4s both;
}

.stat-item { text-align: center; }
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}
.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--gray-light);
    font-weight: 500;
    margin-top: 2px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.hero-scroll a:hover {
    border-color: var(--white);
    color: var(--white);
}

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

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

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

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

.about-content .section-badge { margin-bottom: 12px; }
.about-content .section-title { text-align: left; }

.about-text {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.feature-icon { color: var(--success); }

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-orbit {
    position: relative;
    width: 200px;
    height: 200px;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed var(--border);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-glow);
}

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

.about-card {
    position: absolute;
    padding: 14px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    animation: floatCard 4s ease-in-out infinite;
}

.about-card i {
    font-size: 1.2rem;
}

.about-card-1 { top: 40px; left: 20px; color: var(--primary); animation-delay: 0s; }
.about-card-2 { top: 50%; right: 10px; transform: translateY(-50%); color: var(--accent); animation-delay: 1.3s; }
.about-card-3 { bottom: 40px; left: 20px; color: var(--accent2); animation-delay: 2.6s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.about-card-2 { animation: floatCard2 4s ease-in-out infinite; animation-delay: 1.3s; }
@keyframes floatCard2 {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 8px)); }
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.02), var(--surface));
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--gradient);
    color: white;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: white;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    margin-bottom: 20px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-muted-2);
}

.service-list li i {
    font-size: 0.6rem;
    color: var(--primary);
}

/* --- Portfolio Section --- */
.portfolio { background: var(--surface-2); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.portfolio-preview {
    height: 180px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    backdrop-filter: blur(10px);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* --- CTA Section --- */
.cta {
    background: var(--dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../img/cta-bg.gif');
    background-size: cover;
    background-position: center;
}

.cta-bg-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.9));
    z-index: 3;
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--gray-light);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.cta .btn-primary {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface-2);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.contact-card h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-card a {
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.contact-card a:hover { color: var(--primary); }

.contact-card.clickable {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.contact-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    width: 100%;
}

.contact-card-inner:hover {
    color: var(--primary);
}

.contact-card-inner p {
    font-weight: 600;
    color: var(--text);
}

.btn-email {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-email:hover {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary);
}

.contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
}

/* --- Form --- */
.contact-form {
    background: var(--surface-2);
    padding: 32px;
    border-radius: var(--radius-lg);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--dark-3);
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand .logo-img {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55))
            drop-shadow(0 0 16px rgba(255, 255, 255, 0.28));
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    font-size: 0.85rem;
    color: var(--gray-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover { color: white; }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-credit {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--gray-light);
}

.footer-credit a {
    color: var(--gray-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credit a:hover {
    color: white;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-toggle { display: flex; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual { display: none; }

    .about-content .section-title { text-align: center; }
    .about-text { text-align: center; }
    .about-features { max-width: 300px; margin: 24px auto 0; }

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

    .hero-stats { gap: 16px; }
    .stat-number { font-size: 1.6rem; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .section { padding: 70px 0; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { justify-content: center; }
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .stat-divider { display: none; }
}
