/* ============================================
   CONFIGURATION - CHANGE  WEBSITE NAME HERE
   ============================================ */
:root {
    --company-name: \"SmartKhidma\";
    
    /* Color Palette - Professional Blue & White */
    --primary-900: #0c1e3d;
    --primary-800: #102a52;
    --primary-700: #143a6e;
    --primary-600: #1a4d8f;
    --primary-500: #2563eb;
    --primary-400: #3b82f6;
    --primary-300: #60a5fa;
    --primary-200: #93c5fd;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;
    
    --accent-500: #0ea5e9;
    --accent-400: #38bdf8;
    
    --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;
    
    /* Typography */
    --font-latin: 'Plus Jakarta Sans', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1280px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-latin);
    background: var(--white);
    color: var(--gray-800);
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px;
}

[dir=\"rtl\"] body,
[dir=\"rtl\"] {
    font-family: var(--font-arabic);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   LANGUAGE SWITCHER - BOTTOM RIGHT
   ============================================ */
.lang-switcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1001;
    display: flex;
    gap: 4px;
    background: var(--white);
    padding: 5px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

[dir=\"rtl\"] .lang-switcher {
    right: auto;
    left: 30px;
}

.lang-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    background: transparent;
    color: var(--gray-500);
    font-family: inherit;
}

.lang-btn.active {
    background: var(--primary-600);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.lang-btn:hover:not(.active) {
    background: var(--gray-100);
    color: var(--primary-600);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-smooth);
    background: rgba(12, 30, 61, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 18px 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--white);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.navbar.scrolled .logo-text {
    color: var(--gray-900);
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
    padding: 10px 18px;
    border-radius: 8px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-links a {
    color: var(--gray-700);
}

.navbar.scrolled .nav-links a::before {
    background: var(--primary-600);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-cta {
    padding: 12px 28px !important;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%) !important;
    color: var(--white) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
    border: 2px solid transparent !important;
}

.nav-cta::before {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5) !important;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-400) 100%) !important;
}

.navbar.scrolled .nav-cta {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%) !important;
}

.navbar.scrolled .nav-cta {
    background: var(--primary-600);
    color: var(--white) !important;
}

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

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

.navbar.scrolled .mobile-toggle span {
    background: var(--gray-800);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-900);
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, 
        rgba(12, 30, 61, 0.95) 0%, 
        rgba(20, 58, 110, 0.85) 50%,
        rgba(37, 99, 235, 0.75) 100%); */
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 0%, transparent 50%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 100px 0;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    backdrop-filter: blur(12px);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: 0.3px;
}

.hero-badge svg {
    color: var(--accent-400);
    animation: sparkle 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: rotate(180deg) scale(1.1);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-700);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-image-container img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(12, 30, 61, 0.4) 100%);
}

.hero-stats {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.hero-stat {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid var(--gray-200);
}

.hero-stat:last-child {
    border-right: none;
}

[dir=\"rtl\"] .hero-stat {
    border-right: none;
    border-left: 1px solid var(--gray-200);
}

[dir=\"rtl\"] .hero-stat:last-child {
    border-left: none;
}

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-600);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 6s ease-in-out infinite;
}

.hero-float-card-1 {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}

.hero-float-card-2 {
    bottom: 80px;
    left: -40px;
    animation-delay: -3s;
}

[dir=\"rtl\"] .hero-float-card-1 {
    right: auto;
    left: -20px;
}

[dir=\"rtl\"] .hero-float-card-2 {
    left: auto;
    right: -40px;
}

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

.float-card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-600);
}

.float-card-text {
    font-size: 0.85rem;
}

.float-card-text strong {
    display: block;
    color: var(--gray-800);
    font-weight: 700;
}

.float-card-text span {
    color: var(--gray-500);
    font-size: 0.75rem;
}

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

/* ============================================
   CLIENTS/TRUST SECTION
   ============================================ */
.clients {
    padding: 60px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.clients-content {
    text-align: center;
}

.clients-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.client-logo {
    height: 32px;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
    background: var(--primary-50);
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid var(--primary-200);
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.75;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 2px solid var(--primary-100);
    position: relative;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.08);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-300);
}

.service-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: brightness(0.92);
}

.service-card:hover .service-image img {
    transform: scale(1.08);
    filter: brightness(1);
}

.service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 30, 61, 0.4) 100%);
}

/* Enhanced service images for all cards */
.service-image {
    height: 260px !important;
}

.service-image-overlay {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(12, 30, 61, 0.35) 100%);
}

.service-icon {
    position: absolute;
    bottom: -25px;
    left: 24px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--white);
    z-index: 10;
}

[dir=\"rtl\"] .service-icon {
    left: auto;
    right: 24px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--white);
}

.service-content {
    padding: 32px 28px 28px;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--primary-700);
    letter-spacing: -0.4px;
}

.service-card p {
    color: var(--gray-700);
    font-size: 1.02rem;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Service Highlights */
.service-highlights {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-200);
}

.service-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

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

.service-types {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-types li {
    color: var(--gray-700);
    font-size: 0.95rem;
    padding: 8px 0;
    margin: 0;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.service-types li:nth-child(2) {
    font-weight: 600;
    color: var(--primary-700);
    background: linear-gradient(90deg, var(--primary-50) 0%, transparent 100%);
    padding-left: 12px;
    border-radius: 8px;
}

/* Service Comparison Section */
.service-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.comparison-item {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.comparison-item.highlight-item {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-400) 5%, var(--primary-50) 100%);
    border: 2px solid var(--primary-300);
    position: relative;
}

.comparison-item.highlight-item::before {
    content: '👑';
    position: absolute;
    top: -12px;
    right: 12px;
    font-size: 24px;
}

.comparison-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--primary-700);
}

.comparison-item p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
    color: var(--gray-700);
}

.price-range {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* Popular Stack Section */
.popular-stack {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px dashed var(--gray-300);
}

.popular-stack strong {
    display: block;
    margin-bottom: 12px;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-700) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for service comparison */
@media (max-width: 768px) {
    .service-comparison {
        grid-template-columns: 1fr;
    }

    .comparison-item.highlight-item::before {
        top: -10px;
        right: 10px;
        font-size: 20px;
    }
}

/* Service cards - all equally valorized */

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

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

.about-images {
    position: relative;
}

.about-image-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.about-image-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--white);
}

[dir=\"rtl\"] .about-image-secondary {
    right: auto;
    left: -40px;
}

.about-image-secondary img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    top: 30px;
    left: -30px;
    background: var(--white);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

[dir=\"rtl\"] .about-experience {
    left: auto;
    right: -30px;
}

.about-experience-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-600);
    line-height: 1;
}

.about-experience-text {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-content > p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-600);
}

.about-feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.about-feature-text p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

 
/* ============================================
   PORTFOLIO SECTION - ENHANCED
   ============================================ */
.portfolio {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

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

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    height: 380px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

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

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
rgba(12, 30, 61, 0) 0%, 
rgba(12, 30, 61, 0.4) 40%,
rgba(12, 30, 61, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(180deg, 
rgba(12, 30, 61, 0.2) 0%, 
rgba(12, 30, 61, 0.6) 40%,
rgba(12, 30, 61, 0.98) 100%);
}

.portfolio-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portfolio-desc {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    max-height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.portfolio-link {
    display: none !important;
}

.portfolio-cta {
    text-align: center;
    margin-top: 60px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: var(--primary-600);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline svg {
    transition: var(--transition-fast);
}

.btn-outline:hover svg {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .portfolio-grid {
grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-item:nth-child(1),
    .portfolio-item:nth-child(5) {
grid-column: span 1;
    }
    
    .portfolio-item {
height: 280px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
grid-template-columns: 1fr;
gap: 20px;
    }
    
    .portfolio-item {
height: 300px;
    }
    
    .portfolio-desc {
opacity: 1;
transform: translateY(0);
    }
    
    .portfolio-link {
display: none !important;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--primary-900);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.2) 0%, transparent 50%);
}

.testimonials .section-label {
    color: var(--primary-300);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-subtitle {
    color: var(--gray-400);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
    stroke: #fbbf24;
}

.testimonial-text {
    color: var(--gray-300);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-info h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
}

.testimonial-info span {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-info > p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-method-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-600);
}

.contact-method-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.contact-method-text p {
    color: var(--gray-700);
    font-size: 1rem;
}

.contact-method-text a {
    transition: var(--transition-fast);
}

.contact-method-text a:hover {
    color: var(--accent-500) !important;
    transform: scale(1.02);
    display: inline-block;
}

.contact-form-wrapper {
    background: var(--gray-50);
    border-radius: 24px;
    padding: 48px;
    border: 1px solid var(--gray-200);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

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

.btn-submit {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 80px 0 30px;
}

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

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

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--primary-600);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    stroke: var(--white);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 30px;
    }

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

    .portfolio-item {
        height: 280px;
    }

    .portfolio-item:nth-child(1) {
        grid-column: span 2;
        height: 320px;
    }

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

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

@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-float-card {
        display: none;
    }

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

    .about-images {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    /* Mobile menu overlay - covers entire screen */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(12, 30, 61, 0.98) 0%, rgba(16, 42, 82, 0.98) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        padding: 0;
        margin: 0;
        list-style: none;
        overflow: hidden;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
        z-index: -1;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        width: 90%;
        max-width: 400px;
        margin: 0;
        padding: 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInMenu 0.4s ease forwards;
    }

    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }

    @keyframes slideInMenu {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        color: var(--white) !important;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 16px 24px;
        border-radius: 12px;
        transition: all 0.3s ease;
        width: 100%;
        text-align: center;
        display: block;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.02);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .nav-links .nav-cta {
        background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-500) 100%);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 20px rgba(14, 165, 233, 0.5);
        margin-top: 8px;
    }

    .nav-links .nav-cta:hover,
    .nav-links .nav-cta:active {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(14, 165, 233, 0.7);
    }

    .mobile-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }

    .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);
    }

    /* Keep language switcher on left side for mobile */
    .lang-switcher {
        bottom: 20px;
        left: 20px;
        right: auto;
        padding: 4px;
        gap: 3px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    [dir=\"rtl\"] .lang-switcher {
        left: 20px;
        right: auto;
    }

    .lang-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        bottom: -20px;
        padding: 16px 20px;
    }

    .hero-stat {
        padding: 0 15px;
    }

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

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

    .portfolio-item {
        height: 280px;
    }

    .portfolio-item:nth-child(1) {
        grid-column: span 1;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about-experience {
        left: 10px;
        top: 10px;
        padding: 16px 20px;
    }

    [dir=\"rtl\"] .about-experience {
        right: 10px;
        left: auto;
    }

    .about-image-secondary {
        width: 180px;
        right: -10px;
        bottom: -20px;
    }

    [dir=\"rtl\"] .about-image-secondary {
        left: -10px;
        right: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        margin-top: 30px;
        justify-content: center;
    }

    .about-image-secondary {
        display: none;
    }

    .clients-logos {
        gap: 30px;
    }

    /* Adjust positioning for small screens to prevent overlap */
    .lang-switcher {
        bottom: 15px;
        left: 15px;
        padding: 3px;
        flex-direction: column;
        gap: 4px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Contact Form Modal */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.contact-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

[dir="rtl"] .contact-modal-content {
    direction: rtl;
}

.contact-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.contact-modal-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.contact-modal-icon.success::before {
    content: "✓";
}

.contact-modal-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.contact-modal-icon.error::before {
    content: "✕";
}

.contact-modal-content h3 {
    margin: 0 0 15px;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
}

.contact-modal-content p {
    margin: 0 0 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.modal-close-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

@media (max-width: 480px) {
    .contact-modal-content {
        padding: 30px 20px;
    }

    .contact-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .contact-modal-content h3 {
        font-size: 20px;
    }

    .contact-modal-content p {
        font-size: 14px;
    }
}

/* Newsletter Form */
.footer-newsletter {
    grid-column: span 2;
}

.newsletter-form {
    margin-top: 10px;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.newsletter-input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-400);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit svg {
    width: 20px;
    height: 20px;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .footer-newsletter {
        grid-column: span 1;
    }
}

/* Portfolio Metrics */
.portfolio-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-metrics .metric {
    text-align: center;
}

.portfolio-metrics .metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-400);
    margin-bottom: 5px;
}

.portfolio-metrics .metric-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .portfolio-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .portfolio-metrics .metric-value {
        font-size: 1.2rem;
    }

    .portfolio-metrics .metric-label {
        font-size: 0.65rem;
    }
}
