/* ========================================
   STARTUS SOLUTIONS - MAIN STYLESHEET
   ======================================== */

/* --- CSS VARIABLES --- */
:root {
    /* Primary Colors - Based on Logo */
    --primary-dark: #0a1628;
    --primary-medium: #1a2d4a;
    --primary-light: #2a4a6a;

    /* Accent Colors - Blue gradient from logo */
    --accent-blue: #1e88e5;
    --accent-light-blue: #42a5f5;
    --accent-cyan: #26c6da;
    --accent-gradient: linear-gradient(135deg, #1e3a5f 0%, #1e88e5 50%, #26c6da 100%);
    --accent-gradient-hover: linear-gradient(135deg, #26c6da 0%, #1e88e5 50%, #1e3a5f 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Cairo', 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 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-primary: 0 10px 40px rgba(30, 136, 229, 0.3);
    --shadow-glow: 0 0 40px rgba(30, 136, 229, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.3s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
}

/* RTL Support */
[dir="rtl"] {
    --font-primary: 'Cairo', 'Inter', sans-serif;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

[dir="rtl"] body {
    font-family: var(--font-arabic);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
}

/* --- PAGE LOADER --- */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--gray-700);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- CUSTOM CURSOR --- */
.cursor-follower,
.cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {

    .cursor-follower,
    .cursor-dot {
        opacity: 1;
    }
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    margin-left: 1rem;
    position: relative;
    z-index: 1001;
}

[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
    filter: brightness(0) invert(1);
}

.nav.scrolled .logo-img {
    height: 42px;
}

/* Modern Tab Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    /* Increased opacity */
    backdrop-filter: blur(15px);
    /* Increased blur */
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Increased border visibility */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Added shadow for separation */
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    /* Brighter text */
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: var(--white);
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

/* Remove underline effect for new pill style */
.nav-link::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-smooth);
}

/* Mobile Navigation - Scrollable Tabs */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap !important;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .nav-logo {
        width: auto;
        order: 1;
    }

    .lang-switcher {
        order: 2;
        margin-left: auto;
    }

    /* Hide Hamburger */
    .nav-toggle {
        display: none !important;
    }

    /* Transform Menu into Scrollable Tabs */
    .nav-menu {
        order: 3;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        position: static !important;
        height: auto !important;
        background: rgba(10, 22, 40, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: none;
        padding: 0.75rem 0.5rem !important;
        margin-top: 0.5rem;
        border-radius: 25px;
        overflow-x: auto;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50px;
        width: auto;
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
    }

    .nav-link.active {
        background: var(--accent-gradient);
        border: none;
        color: #fff;
    }

    /* RTL Support */
    [dir="rtl"] .nav-menu {
        right: auto;
        left: auto;
        flex-direction: row;
    }
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 136, 229, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 136, 229, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(30, 136, 229, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(38, 198, 218, 0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 136, 229, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray-600);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    background: rgba(30, 136, 229, 0.1);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo-container {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-logo {
    width: 80%;
    height: auto;
}

/* Logo with white background for better visibility */
.logo-white-bg {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-bounce);
}

.tech-item:hover {
    background: rgba(30, 136, 229, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--accent-light-blue);
}

.tech-item span {
    font-size: 0.75rem;
    color: var(--gray-400);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-logo-container {
        width: 200px;
        height: 200px;
    }
}

/* --- MARQUEE --- */
.marquee {
    padding: 1.5rem 0;
    background: var(--primary-medium);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 0 2rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

[dir="rtl"] .marquee-content {
    animation: marquee-rtl 30s linear infinite;
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- BUTTONS --- */
/* --- SECTIONS --- */
.section {
    padding: 6rem 0;
}

/* --- PAGE HEADER (for inner pages) --- */
.page-header {
    padding: 10rem 0 4rem;
    background: var(--primary-dark);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.page-header .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    mix-blend-mode: luminosity;
}

.page-header .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--primary-dark), transparent 50%, var(--primary-dark));
}

.page-header.about-bg .hero-bg {
    background-image: url('../images/about_bg.png');
}

.page-header.portfolio-bg {
    padding: 15rem 0 8rem;
    /* Increase height */
}

.page-header.portfolio-bg .hero-bg {
    background-image: url('../images/portfolio_bg.png');
    opacity: 1;
    /* Full opacity */
    mix-blend-mode: normal;
    /* Normal blend */
}

.page-header.portfolio-bg .hero-bg::after {
    /* Only gradient at bottom to blend with content */
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.3) 0%, rgba(10, 22, 40, 0.8) 80%, var(--primary-dark) 100%);
}

.page-header.services-bg .hero-bg {
    background-image: url('../images/services_bg.png');
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--primary-medium);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-400);
    line-height: 1.8;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(30, 136, 229, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-300);
    font-size: 0.9rem;
}

.service-features i {
    color: var(--success);
    font-size: 0.8rem;
}

/* --- PRODUCTS GRID --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.product-image {
    height: 200px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image i {
    font-size: 4rem;
    color: var(--white);
    opacity: 0.9;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.btn-product {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-product:hover {
    background: var(--accent-blue);
    color: var(--white);
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 136, 229, 0.1);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
}

.about-feature i {
    color: var(--success);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-400);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- PORTFOLIO --- */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gray-600);
    color: var(--gray-400);
    border-radius: var(--radius-xl);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.portfolio-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.portfolio-header {
    padding: 1.5rem;
    background: var(--accent-gradient);
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-description {
    color: var(--gray-400);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--accent-light-blue);
}

/* --- ARTICLES --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.article-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.article-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image i {
    font-size: 3rem;
    color: var(--accent-cyan);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.article-category {
    background: rgba(30, 136, 229, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--accent-light-blue);
}

.article-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
}

.article-link:hover {
    color: var(--accent-light-blue);
}

/* --- REQUEST FORM --- */
.request-container {
    max-width: 800px;
    margin: 0 auto;
}

.request-form {
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(30, 136, 229, 0.05);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

[dir="rtl"] .form-group label {
    left: auto;
    right: 1rem;
}

.form-group textarea~label {
    top: 1rem;
    transform: none;
}

.form-group select~label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: var(--primary-dark);
    padding: 0 0.25rem;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: var(--primary-dark);
    padding: 0 0.25rem;
}

[dir="rtl"] .form-group input:focus~label,
[dir="rtl"] .form-group input:not(:placeholder-shown)~label,
[dir="rtl"] .form-group textarea:focus~label,
[dir="rtl"] .form-group textarea:not(:placeholder-shown)~label,
[dir="rtl"] .form-group select~label {
    left: auto;
    right: 0.75rem;
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
    font-size: 1.1rem;
}

/* --- CONTACT SECTION --- */
.contact-section {
    background: var(--primary-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--gray-400);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.contact-link:hover {
    background: rgba(30, 136, 229, 0.1);
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

[dir="rtl"] .contact-link:hover {
    transform: translateX(-5px);
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.contact-link.whatsapp i {
    color: #25d366;
}

.contact-link-text span {
    display: block;
    font-weight: 600;
}

.contact-link-text small {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.social-links-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-form .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

/* --- NEWSLETTER --- */
.newsletter-section {
    padding: 4rem 0;
    background: var(--accent-gradient);
    text-align: center;
}

.newsletter-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.newsletter-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    color: var(--white);
    font-size: 1rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
}

.newsletter-form .btn-primary {
    background: var(--primary-dark);
}

.newsletter-form .btn-primary:hover {
    background: var(--primary-medium);
}

/* --- FOOTER --- */
.footer {
    background: var(--primary-medium);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-400);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 576px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--accent-cyan);
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-contact-list i {
    color: var(--accent-cyan);
    width: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--gray-500);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    color: var(--accent-cyan);
}

/* --- FLOATING CONTACT --- */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    /* Stack upwards */
    gap: 0.8rem;
    align-items: center;
}

[dir="rtl"] .floating-contact {
    right: auto;
    left: 2rem;
}

.floating-btn {
    width: 55px;
    height: 55px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    /* Flex to center content */
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-bounce);
    position: relative;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(38, 198, 218, 0.4);
}

.floating-btn.whatsapp {
    background: #25D366 !important;
}

.floating-btn.whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.floating-btn.facebook {
    background: #1877F2 !important;
}

.floating-btn.facebook:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.floating-btn.instagram {
    background: #E1306C !important;
    /* Instagram Gradient fallback */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

.floating-btn.instagram:hover {
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.floating-text {
    position: absolute;
    right: 70px;
    background: var(--white);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-smooth);
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floating-text::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--white);
}

.floating-btn:hover .floating-text {
    opacity: 1;
    transform: translateX(0);
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

[dir="rtl"] .back-to-top {
    left: auto;
    right: 2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

/* --- ANIMATIONS --- */
.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);
}

/* --- NOTIFICATION --- */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

[dir="rtl"] .notification {
    right: auto;
    left: 2rem;
    transform: translateX(-100%);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: var(--success);
    color: var(--white);
}

.notification-error {
    background: var(--error);
    color: var(--white);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .section-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .section {
        padding: 4rem 0;
    }

    .services-grid,
    .products-grid,
    .portfolio-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .request-form {
        padding: 1.5rem;
    }

    .lang-switcher {
        top: 1rem;
        right: 1rem;
    }

    .floating-contact {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}