/* ========================================
   CODA Technology & Creativity - Style Sheet
   ======================================== */

/* ========== 1. CSS Custom Properties ========== */
:root {
    --primary-dark: #0a0e1a;
    --surface: #111827;
    --surface-light: #1a2332;
    --surface-lighter: #243044;
    --cyan: #00d4ff;
    --green: #4dff6a;
    --purple: #9b30ff;
    --blue: #3366ff;
    --pink: #ff6b9d;
    --orange: #ffa07a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient-1: linear-gradient(135deg, #00d4ff, #9b30ff);
    --gradient-2: linear-gradient(135deg, #4dff6a, #00d4ff);
    --gradient-3: linear-gradient(135deg, #9b30ff, #ff6b6b);
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-purple: 0 0 20px rgba(155, 48, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

/* ========== 2. Reset & Base ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ========== ANIMATED BACKGROUND CANVAS ========== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: block;
}

/* Subtle gradient overlay on top of canvas for readability */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0,212,255,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(155,48,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(77,255,106,0.04) 0%, transparent 60%);
    pointer-events: none;
}

body {
    background-color: #05070f;
    color: var(--text-primary);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[data-lang="ar"] body {
    font-family: var(--font-ar);
}

::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* ========== 3. Language Toggle CSS ========== */
html[data-lang="en"] .lang-ar {
    display: none !important;
}

html[data-lang="ar"] .lang-en {
    display: none !important;
}

/* ========== 4. Typography ========== */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* ========== 5. Glass & Utility Classes ========== */
.glass {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

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

section {
    padding: 100px 0;
}

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

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ========== 6. Navigation ========== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid transparent;
    transition:
        color 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

/* Animated shimmer sweep on hover */
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(0, 212, 255, 0.18) 50%,
        transparent 80%
    );
    transform: translateX(-100%);
    transition: transform 0.55s ease;
    border-radius: inherit;
}

/* Glowing bottom line */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.35s ease;
    opacity: 0;
}

.nav-link:hover {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow:
        0 0 18px rgba(0, 212, 255, 0.12),
        inset 0 0 12px rgba(0, 212, 255, 0.05);
    transform: translateY(-2px) scale(1.04);
}

.nav-link:hover::before {
    transform: translateX(100%);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* Active state — always highlighted */
.nav-link.active {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.15),
        inset 0 0 14px rgba(0, 212, 255, 0.06);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.lang-toggle {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--cyan);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-toggle:hover {
    background: rgba(0, 212, 255, 0.25);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-overlay {
    display: none;
}

/* ========== 7. Hero Section ========== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--cyan);
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    display: block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    text-decoration: none;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-3px);
}

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

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

/* ========== 8. About Section ========== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
}

.about-card .card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    transition: all var(--transition);
}

.about-card:nth-child(2) .card-icon {
    background: rgba(77, 255, 106, 0.1);
    color: var(--green);
}

.about-card:nth-child(3) .card-icon {
    background: rgba(155, 48, 255, 0.1);
    color: var(--purple);
}

.about-card:hover .card-icon {
    transform: scale(1.1);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== 9. Services Section ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--glow-cyan);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all var(--transition);
}

.service-card:nth-child(1) .service-icon {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan);
}

.service-card:nth-child(2) .service-icon {
    background: rgba(77, 255, 106, 0.15);
    color: var(--green);
}

.service-card:nth-child(3) .service-icon {
    background: rgba(155, 48, 255, 0.15);
    color: var(--purple);
}

.service-card:nth-child(4) .service-icon {
    background: rgba(255, 107, 157, 0.15);
    color: var(--pink);
}

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

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== 10. Portfolio Section ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.portfolio-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-bg {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.portfolio-info span {
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 500;
}

/* ========== 11. Stats Section ========== */
#stats {
    padding: 60px 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: var(--radius-xl);
}

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

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    color: var(--cyan);
    margin-bottom: 12px;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 8px;
    font-weight: 500;
}

/* ========== 12. Ratings Section ========== */
.ratings-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.rating-3d-card {
    position: relative;
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
    transition: all var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.rating-3d-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: var(--glow-cyan);
}

.rating-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.rating-score-wrapper {
    transform: translateZ(50px);
    z-index: 1;
}

.rating-number {
    font-size: clamp(5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.2));
}

.rating-stars {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.rating-meta {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rating-metric {
    padding: 24px 30px;
    transition: all var(--transition);
}

.rating-metric:hover {
    transform: translateX(10px);
    border-color: rgba(0, 212, 255, 0.2);
}

html[dir="rtl"] .rating-metric:hover {
    transform: translateX(-10px);
}

.metric-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.metric-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.metric-val {
    font-weight: 800;
    color: var(--cyan);
    font-size: 1.1rem;
}

.metric-bar-bg {
    width: 100%;
    height: 10px;
    background: var(--surface-light);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-bar-fill {
    height: 100%;
    border-radius: 50px;
    width: 0; /* Animated dynamically with JS */
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
    position: relative;
}

.fill-cyan {
    background: linear-gradient(90deg, #00d4ff, #3366ff);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.fill-purple {
    background: linear-gradient(90deg, #9b30ff, #ff6b9d);
    box-shadow: 0 0 10px rgba(155, 48, 255, 0.5);
}

.fill-green {
    background: linear-gradient(90deg, #4dff6a, #00d4ff);
    box-shadow: 0 0 10px rgba(77, 255, 106, 0.5);
}

.fill-pink {
    background: linear-gradient(90deg, #ff6b9d, #ffa07a);
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

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

.contact-form {
    padding: 40px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

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

.form-input:focus,
.form-textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

.contact-info-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
}

.contact-info-card .info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== 14. Footer ========== */
#footer {
    background: var(--surface);
    padding-top: 80px;
    border-top: 1px solid var(--glass-border);
}

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

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

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--cyan);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--cyan);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== 15. Animations & Keyframes ========== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        top: 6px;
    }
    100% {
        opacity: 0;
        top: 24px;
    }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(0, 212, 255, 0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal[data-delay="100"] {
    transition-delay: 100ms;
}

.reveal[data-delay="200"] {
    transition-delay: 200ms;
}

.reveal[data-delay="300"] {
    transition-delay: 300ms;
}

.reveal[data-delay="400"] {
    transition-delay: 400ms;
}

.reveal[data-delay="500"] {
    transition-delay: 500ms;
}

/* ========== 16. RTL Support ========== */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .contact-info-card {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-grid {
    direction: rtl;
}

html[dir="rtl"] .testimonial-text {
    padding-left: 0;
    padding-right: 20px;
}

html[dir="rtl"] .testimonial-text::before {
    left: auto;
    right: -5px;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .section-header {
    text-align: center;
}

html[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

html[dir="rtl"] .author-info {
    text-align: right;
}

html[dir="rtl"] .submit-btn {
    flex-direction: row-reverse;
}

html[dir="rtl"] .info-content {
    text-align: right;
}

html[dir="rtl"] .social-links {
    justify-content: flex-start;
}

/* ========== 17. Responsive Design ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        font-size: 1.3rem;
        color: var(--text-primary);
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .lang-toggle {
        position: absolute;
        top: 20px;
        right: 70px;
        z-index: 1001;
    }

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

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

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

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

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

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

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

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

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-title .highlight {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    section {
        padding: 70px 20px;
    }

    .portfolio-overlay {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stats-container {
        padding: 30px 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .service-card {
        padding: 28px;
    }

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

/* ========== 18. Contact Cards & Floating Widget Styling ========== */

/* Enhanced Contact Info Cards */
.contact-info-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card-whatsapp:hover {
    border-color: #25d366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}
.card-whatsapp .info-icon {
    background: rgba(37, 211, 102, 0.1) !important;
    color: #25d366 !important;
}
.info-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    color: #25d366;
    margin-bottom: 6px;
    font-weight: 700;
}

.card-phone:hover {
    border-color: var(--cyan);
    box-shadow: var(--glow-cyan);
}
.card-phone .info-icon {
    background: rgba(0, 212, 255, 0.1) !important;
    color: var(--cyan) !important;
}

.card-email-info:hover {
    border-color: var(--purple);
    box-shadow: var(--glow-purple);
}
.card-email-info .info-icon {
    background: rgba(155, 48, 255, 0.1) !important;
    color: var(--purple) !important;
}

.card-email-sales:hover {
    border-color: var(--pink);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}
.card-email-sales .info-icon {
    background: rgba(255, 107, 157, 0.1) !important;
    color: var(--pink) !important;
}

/* Floating Connect Hub */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

html[dir="rtl"] .floating-contact {
    right: auto;
    left: 30px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.floating-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-1);
    opacity: 0.6;
    z-index: -1;
    animation: floatPulse 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.floating-menu {
    position: absolute;
    bottom: 75px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.floating-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.floating-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-item.whatsapp {
    background: #25d366;
}
.floating-item.whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.floating-item.phone {
    background: var(--blue);
}
.floating-item.phone:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(51, 102, 255, 0.5);
}

.floating-item.email {
    background: var(--purple);
}
.floating-item.email:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(155, 48, 255, 0.5);
}

@keyframes floatPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Success Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-card {
    max-width: 450px;
    width: 90%;
    padding: 40px;
    text-align: center;
    transform: scale(0.7) translateY(50px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: var(--glow-cyan);
}

.modal-overlay.active .success-card {
    transform: scale(1) translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4dff6a, #00d4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 0 25px rgba(77, 255, 106, 0.4);
    animation: scaleUpCheck 0.6s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.success-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 1rem;
}

.modal-close-btn {
    padding: 12px 36px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

@keyframes scaleUpCheck {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}


/* ========== Premium Contact Layout ========== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: start;
}

/* ---- WhatsApp Hero Card ---- */
.contact-hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 420px;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(37, 211, 102, 0.3);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
    background: linear-gradient(160deg, rgba(37,211,102,0.12) 0%, rgba(10,14,26,0.9) 60%);
}

.contact-hero-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 60px rgba(37, 211, 102, 0.3);
}

/* Glowing radial background */
.chc-bg-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(37,211,102,0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.4s ease;
    animation: chcPulse 3s ease-in-out infinite;
}

@keyframes chcPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Decorative dot pattern */
.chc-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background-image: radial-gradient(circle, rgba(37,211,102,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}

.chc-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chc-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #25d366;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.4), inset 0 0 15px rgba(37,211,102,0.05);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 0.5rem;
}

.contact-hero-card:hover .chc-icon {
    transform: rotate(-10deg) scale(1.12);
}

.chc-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #25d366;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.25);
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
}

.chc-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.chc-number {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0;
}

.chc-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #25d366, #128c48);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.contact-hero-card:hover .chc-cta {
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
    transform: translateX(3px);
}

/* ---- Secondary 2x2 Grid ---- */
.contact-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.csec-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    overflow: hidden;
    min-height: 185px;
    justify-content: space-between;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
}

.csec-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.csec-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.csec-card:hover .csec-glow {
    opacity: 1;
}

.csec-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.csec-card:hover .csec-icon {
    transform: rotate(-8deg) scale(1.15);
}

.csec-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.csec-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.csec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

.csec-arrow {
    font-size: 0.85rem;
    opacity: 0.35;
    align-self: flex-end;
    transition: opacity 0.3s, transform 0.3s;
}

.csec-card:hover .csec-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* ---- Instagram ---- */
.csec-insta {
    border: 1px solid rgba(225, 48, 108, 0.25);
    background: linear-gradient(145deg, rgba(225,48,108,0.08) 0%, transparent 60%);
}
.csec-insta:hover { box-shadow: 0 12px 35px rgba(225, 48, 108, 0.2); }
.csec-insta .csec-glow { background: radial-gradient(ellipse at 30% 30%, rgba(225,48,108,0.15) 0%, transparent 70%); }
.csec-insta .csec-icon {
    background: linear-gradient(135deg, rgba(240,148,51,0.2), rgba(225,48,108,0.2));
    color: #e1306c;
    box-shadow: 0 0 18px rgba(225,48,108,0.25);
}
.csec-insta .csec-arrow { color: #e1306c; }

/* ---- Facebook ---- */
.csec-fb {
    border: 1px solid rgba(66, 103, 178, 0.3);
    background: linear-gradient(145deg, rgba(66,103,178,0.1) 0%, transparent 60%);
}
.csec-fb:hover { box-shadow: 0 12px 35px rgba(66, 103, 178, 0.22); }
.csec-fb .csec-glow { background: radial-gradient(ellipse at 30% 30%, rgba(66,103,178,0.18) 0%, transparent 70%); }
.csec-fb .csec-icon {
    background: rgba(66, 103, 178, 0.2);
    color: #6c9bff;
    box-shadow: 0 0 18px rgba(66,103,178,0.3);
}
.csec-fb .csec-arrow { color: #6c9bff; }

/* ---- Phone ---- */
.csec-phone {
    border: 1px solid rgba(0, 212, 255, 0.25);
    background: linear-gradient(145deg, rgba(0,212,255,0.08) 0%, transparent 60%);
}
.csec-phone:hover { box-shadow: 0 12px 35px rgba(0, 212, 255, 0.2); }
.csec-phone .csec-glow { background: radial-gradient(ellipse at 30% 30%, rgba(0,212,255,0.15) 0%, transparent 70%); }
.csec-phone .csec-icon {
    background: rgba(0, 212, 255, 0.12);
    color: var(--cyan);
    box-shadow: 0 0 18px rgba(0,212,255,0.25);
}
.csec-phone .csec-arrow { color: var(--cyan); }

/* ---- Email ---- */
.csec-email {
    border: 1px solid rgba(155, 48, 255, 0.25);
    background: linear-gradient(145deg, rgba(155,48,255,0.08) 0%, transparent 60%);
}
.csec-email:hover { box-shadow: 0 12px 35px rgba(155, 48, 255, 0.2); }
.csec-email .csec-glow { background: radial-gradient(ellipse at 30% 30%, rgba(155,48,255,0.15) 0%, transparent 70%); }
.csec-email .csec-icon {
    background: rgba(155, 48, 255, 0.12);
    color: var(--purple);
    box-shadow: 0 0 18px rgba(155,48,255,0.25);
}
.csec-email .csec-arrow { color: var(--purple); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-hero-card {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-secondary-grid {
        grid-template-columns: 1fr;
    }
    .csec-card {
        min-height: auto;
        flex-direction: row;
        align-items: center;
    }
    .csec-info { gap: 0.1rem; }
    .csec-arrow { align-self: center; margin-left: auto; }
}


