/* ========================================
   AL-SOURI TECHNOLOGIES™ - Main Stylesheet
   ======================================== */

/* ========================================
   CSS VARIABLES (Design Tokens)
   ======================================== */
:root {
    --primary: #0052CC;
    --primary-dark: #003D99;
    --primary-light: #E6F3FF;
    --secondary: #00D4AA;
    --secondary-dark: #00B894;
    --accent: #FF6B35;
    --accent-dark: #E55A2B;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --text-lighter: #9A9A9A;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-lighter: #F1F5F9;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #0052CC 0%, #00D4AA 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #0052CC 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========================================
   CREDIBILITY BAR (Trust Signals)
   ======================================== */
.credibility-bar {
    position: fixed;
    top: 80px; /* Below header */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a237e 0%, #0052CC 50%, #00D4AA 100%);
    z-index: 999;
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.credibility-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.credibility-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.badge-item i {
    font-size: 1.2rem;
}

.partner-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    /* Original colored logos look great on dark gradient */
}

.badge-stripe {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.badge-stripe:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.7);
}

.badge-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.badge-link:hover .badge-item {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

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

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 10rem 0 4rem; /* Extra padding for credibility bar */
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 82, 204, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 82, 204, 0.2);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary); /* Fallback color */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark mode support for hero title */
@media (prefers-color-scheme: dark) {
    .hero-title {
        /* Use solid color in dark mode for better visibility */
        color: #4A9EFF !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        background-clip: initial !important;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ========================================
   STATS SECTION (Trust Metrics)
   ======================================== */
.stats {
    padding: 4rem 0;
    background: var(--bg-white);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-link {
    text-decoration: none;
    color: inherit;
    display: contents; /* Makes the link transparent to the grid layout */
    transition: all 0.3s ease;
}

.stat-link:hover .stat-item {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

.stat-label {
    color: var(--text-medium);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-us {
    padding: 6rem 0;
    background: var(--bg-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    background: var(--bg-white);
}

.why-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.why-description {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 6rem 0;
    background: var(--bg-light);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.25rem 0;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i {
    color: var(--secondary);
    font-size: 0.875rem;
}

/* ========================================
   TECHNOLOGY SECTION
   ======================================== */
.technology {
    padding: 6rem 0;
    background: var(--bg-white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tech-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Technology Brand Colors */
.tech-icon .fa-aws {
    color: #FF9900;
}

.tech-icon .fa-microsoft {
    color: #0078D4;
}

.tech-icon .fa-google {
    color: #4285F4;
}

.tech-icon .fa-python {
    color: #3776AB;
}

.tech-icon .fa-js-square {
    color: #F7DF1E;
}

.tech-icon .fa-react {
    color: #61DAFB;
}

.tech-icon .fa-docker {
    color: #2496ED;
}

.tech-icon .fa-node-js {
    color: #339933;
}

.tech-icon .fa-git-alt {
    color: #F05032;
}

.tech-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 6rem 0;
    background: var(--bg-light);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-text {
    color: var(--text-medium);
    font-weight: 500;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

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

.footer-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section p,
.footer-section li {
    color: var(--text-lighter);
    line-height: 1.6;
}

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

.footer-section ul li {
    padding: 0.25rem 0;
}

.footer-section a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary);
}

.company-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-lighter);
}

.company-details p {
    margin: 0.3rem 0;
}

.company-details strong {
    color: var(--secondary);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-lighter);
}

.footer-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #4A9EFF;
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .credibility-bar {
        display: none; /* Hide credibility bar on mobile - too cramped */
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding: 8rem 0 3rem; /* Increased top padding to clear mobile header */
    }

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

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

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

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .contact-card {
        padding: 2rem;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

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