/* ===========================================
   BSC-CO.com - Modern Vibrant Design
   Inspired by Contemporary Web Design
   Adobe Fonts: co-arabic, futura-100-arabic
   =========================================== */

/* Adobe Fonts loaded via <head> link tag */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors - Electric Violet/Blue */
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --secondary: #38bdf8;
    --secondary-dark: #0ea5e9;
    --secondary-light: #7dd3fc;

    /* Accent Colors - Neon Glows */
    --accent: #facc15;
    --accent-pink: #f472b6;
    --accent-green: #34d399;
    --accent-cyan: #22d3ee;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);

    /* Dark Theme Backgrounds */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(30, 41, 59, 0.7);

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);

    /* Text Colors - Dark Mode */
    --text-main: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: #818cf8;

    /* Typography */
    --font-heading: 'futura-pt', system-ui, sans-serif;
    --font-body: 'futura-pt', system-ui, sans-serif;
    --font-arabic: 'Tajawal', 'Cairo', sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --section-padding: 100px;
    --card-padding: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows - Glowy */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== UTILITIES ===== */
.text-sm {
    font-size: 0.9rem !important;
}

.fw-600 {
    font-weight: 600;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-5 {
    margin-bottom: 2rem;
    /* 32px */
}

.gap-3 {
    gap: 12px;
}

.flex-center-y {
    display: flex;
    align-items: center;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.7;
    background: var(--bg-dark);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    letter-spacing: -0.04em;
    font-weight: 900;
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    letter-spacing: -0.03em;
    font-weight: 800;
}

h3 {
    font-size: clamp(1.625rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.625rem;
    font-weight: 700;
}

p {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--text-body);
    line-height: 1.75;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

/* Language Visibility */
.ar {
    display: block;
}

.en {
    display: none;
}

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

html[lang="en"] .en {
    display: block !important;
}

span.ar {
    display: inline;
}

span.en {
    display: none;
}

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

html[lang="en"] span.en {
    display: inline !important;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    border: 1px solid var(--primary);
    backdrop-filter: blur(4px);
}

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

/* ===== CARDS (Glassmorphism) ===== */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Specific styling for text inside cards */
.card h3,
.card h4 {
    color: var(--text-main);
}

.card p {
    color: var(--text-body);
}

.card-glass {
    /* Inherit default card styles but maybe more intense properly */
    background: rgba(30, 41, 59, 0.6);
}

/* ===== GRIDS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    /* Dark background */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

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

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Allow body gradient to show */
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero h1 {
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-body);
}

/* ===== BACKGROUNDS ===== */
.bg-light {
    background: transparent;
    /* Remove light backgrounds for glass consistency */
}

.bg-gradient {
    background: var(--gradient-primary);
    color: white;
}

.bg-gradient h2,
.bg-gradient h3,
.bg-gradient h4,
.bg-gradient p {
    color: white;
}

.bg-pattern {
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

/* ===== ICON BACKGROUNDS ===== */
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.icon-primary {
    background: var(--gradient-primary);
    color: white;
}

.icon-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.icon-accent {
    background: var(--gradient-accent);
    color: white;
}

.icon-success {
    background: var(--gradient-success);
    color: white;
}

/* ===== FORMS ===== */
.form-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9375rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.2);
    /* Darker input bg */
    color: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    color: var(--text-muted);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --card-padding: 24px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--border-color);
    }

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

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

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

    h2 {
        font-size: 1.875rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* =========================================
   NEW SECTIONS & COMPONENTS (Migrated)
   ========================================= */

/* Hero with background image */
.hero {
    /* Use the dark gradient + image but make it consistent with glass theme */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%),
        url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?w=1920&q=80') center/cover;
    position: relative;
}

/* About section with image */
.about-image {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

/* Feature image sections */
.feature-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 60px;
    align-items: center;
}

.feature-image {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Service List Styling */
.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-body);
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 4px;
    color: var(--accent-green);
    font-size: 0.875rem;
}

html[lang="en"] .service-list li {
    padding-right: 0;
    padding-left: 25px;
}

html[lang="en"] .service-list li::before {
    right: auto;
    left: 0;
}

/* Contact Section Tweaks */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.icon-glass {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary);
    flex-shrink: 0;
}

.card.h-100 {
    height: 100%;
}

.mb-4 {
    margin-bottom: 1.5rem;
}



html[lang="en"] .service-list li::before {
    right: auto;
    left: 0;
}

/* Timeline Styling */
.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.marker-circle {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.marker-line {
    width: 4px;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    border-radius: 4px;
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
    border: 1px solid var(--glass-border);
}

.timeline-content h4 {
    color: var(--text-main);
}

.timeline-content p {
    color: var(--text-body);
}

/* Client List Styling */
.client-category {
    margin-bottom: 40px;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.client-tag {
    background: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-size: 0.9375rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.client-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Footer Styling Refinements */
.footer-logo {
    margin-bottom: 24px;
    display: inline-flex;
    color: white;
}

.footer-text {
    margin-top: 20px;
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 24px;
}

.social-icon {
    color: var(--primary-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: white;
    transform: translateY(-3px);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
}

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

@media (max-width: 768px) {
    .feature-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 15px;
    }

    .timeline-marker {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        min-width: auto;
    }

    .marker-line {
        display: none;
    }
}