@import 'pricing.css';

/* Global Variables */
:root {
    --primary-color: #0065fd;
    --secondary-color: #000000;
    --bg-dark: #ffffff;
    --bg-card: #f8f9fa;
    --bg-paper: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --gradient-primary: linear-gradient(135deg, #0065fd 0%, #003dbd 100%);
    --gradient-text: linear-gradient(90deg, #000000 0%, #0065fd 100%);
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --font-main: 'Outfit',
        sans-serif;
    --font-arabic: 'Noto Sans Arabic',
        sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu',
        serif;
    --transition-speed: 0.3s;
    --hero-bg: transparent;
    /* Clean white background for light mode */
    --toggle-bg: #000000;
    /* Dark button in Light mode */
    --toggle-text: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #0065fd;
    --secondary-color: #ffffff;
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-paper: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-text: linear-gradient(90deg, #ffffff 0%, #0065fd 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --hero-bg: radial-gradient(circle at 50% 50%, rgba(0, 101, 253, 0.15) 0%, rgba(5, 5, 5, 1) 70%);
    --toggle-bg: #ffffff;
    /* Light button in Dark mode */
    --toggle-text: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimization for rendering */
section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Apply Arabic/Urdu Font dynamically */
:root:lang(urdu) body {
    font-family: var(--font-urdu);
    line-height: 2.2;
    /* Better line-height for Nastaliq */
}

:root:lang(ar) body {
    font-family: var(--font-arabic);
}

.glass-card,
.btn,
.nav-link,
.industry-card,
.tech-badge,
.theme-toggle,
.lang-btn {
    transition: all 0.3s ease;
}

#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    /* More prominent visibility */
}

/* Theme Toggle */
/* Top Controls */
h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

.top-controls {
    position: fixed;
    top: 30px;
    right: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    gap: 1rem;
    align-items: center;
    direction: ltr;
    justify-content: flex-end;
    /* Always LTR layout for this bar */
}



/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-paper);
    padding: 0.3rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 101, 253, 0.2);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    /* Match height with theme toggle */
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-main), 'Noto Naskh Arabic', 'Noto Nastaliq Urdu', sans-serif;
}

.flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Theme Toggle */
.theme-toggle {
    /* Removed fixed positioning to sit in flex container */
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-bg);
    color: var(--toggle-text);
    padding: 0.7rem 1.2rem;
    /* Increased padding to match language bar height */

    width: auto;
    height: auto;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 101, 253, 0.15);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 101, 253, 0.4);
    opacity: 0.9;
}

.mobile-home-btn {
    display: none;
    /* Hidden on desktop */
    background: var(--bg-paper);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(0, 101, 253, 0.2);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
    transition: 0.3s;
}

.mobile-home-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 991px) {
    .mobile-home-btn {
        display: flex;
        /* Visible on mobile */
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: var(--glass-shadow);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 101, 253, 0.2);
    border-color: rgba(0, 101, 253, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-speed);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 101, 253, 0.4);
}

.btn-primary:hover {
    background: #0050ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 101, 253, 0.6);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Section 1: Cover / Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--hero-bg);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.logo-display {
    margin-bottom: 1rem;
}

.hero-logo {
    max-width: 80%;
    width: 400px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.bismillah {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-meta {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-meta span i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.download-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.btn-sm {
    position: relative;
    padding: 0.6rem 3rem;
    /* Adjust padding for border effect */
    font-size: 0.9rem;
    min-width: 140px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    /* Glass base */
    border: none;
    /* Remove default border to let animated one shine */
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
    color: var(--text-primary);
    transition: 0.3s;
}

.btn-sm::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2.5px;
    /* Border thickness */
    background: conic-gradient(from var(--angle), transparent 50%, var(--primary-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    /* Standard property */
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    animation: spin-border 3s linear infinite;
    pointer-events: none;
    opacity: 1;
}

/* Random delays for buttons */
.btn-sm:nth-child(1)::after {
    animation-delay: -0.5s;
}

.btn-sm:nth-child(2)::after {
    animation-delay: -2s;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 101, 253, 0.2);
    /* Ensure text color is white on hover in dark mode, but handle light mode below */
    color: #fff !important;
    background: rgba(0, 101, 253, 0.8);
    /* Stronger background for better contrast */
}

/* Light Mode Hover Fix */
[data-theme="light"] .btn-sm:hover {
    color: #fff !important;
    /* Keep white text */
    background: var(--primary-color);
    /* Solid primary color */
    box-shadow: 0 5px 15px rgba(0, 101, 253, 0.4);
}

.btn-sm:hover::after {
    /* Keep the transparent gap pattern to ensure motion is visible */
    background: conic-gradient(from var(--angle), transparent 50%, #fff, transparent);
    /* Standard conic-gradient without 0deg fallback in the value to match keyframes if needed, though var handles it */
    animation-duration: 1.5s;
    opacity: 1;
}


/* Section 2: About */
/* Platforms Marquee */
.platforms-marquee {
    width: 100%;
    overflow: hidden;
    background: var(--bg-paper);
    padding: 1.5rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    direction: ltr !important;
    /* Marquee always flows LTR for consistency */
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: marquee-scroll 25s linear infinite !important;
    direction: ltr !important;
    /* Force track internal direction */
}

.platform-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s;
    user-select: none;
}

.platform-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.platform-item:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}



@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% / 3));
    }
}

/* Gradient Masks for smooth edges */
.platforms-marquee::before,
.platforms-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.platforms-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.platforms-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

#about {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

.stats-row {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.values-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.value-tag {
    background: rgba(0, 101, 253, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-content {
        margin-bottom: 2rem;
    }

    .stats-row {
        justify-content: center;
    }

    .stat-item {
        text-align: center;
    }

    /* Restores Center Alignment on Mobile */
    /* Restores Center Alignment on Mobile */
    .about-content .section-header {
        text-align: center !important;
        align-items: center !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.mission-card,
.vision-card,
.values-card {
    background: var(--bg-paper);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.mission-card h4,
.vision-card h4,
.values-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Section 3: Services */
/* Holographic Service Cards */
/* Holographic Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
    /* For watermark clipping */
    background: rgba(255, 255, 255, 0.03);
    /* Lighter glass base */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Default fallback */
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    /* Uniform height */
    z-index: 1;
}

/* Rotating Border Animation */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2.5px;
    /* Border width */
    background: conic-gradient(from var(--angle), transparent 20%, var(--border-color), transparent 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 2;
    animation: spin-border 4s linear infinite;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes spin-border {
    to {
        --angle: 360deg;
    }
}

/* Randomize Animation Start Positions using negative delays */
.service-card:nth-child(1)::after {
    animation-delay: -0.2s;
}

.service-card:nth-child(2)::after {
    animation-delay: -1.5s;
}

.service-card:nth-child(3)::after {
    animation-delay: -3.1s;
}

.service-card:nth-child(4)::after {
    animation-delay: -0.8s;
}

.service-card:nth-child(5)::after {
    animation-delay: -2.6s;
}

.service-card:nth-child(6)::after {
    animation-delay: -1.2s;
}

/* Cycle Colors for Border and Accents */
.service-card:nth-child(3n+1) {
    --border-color: #0065fd;
}

/* Blue */
.service-card:nth-child(3n+2) {
    --border-color: #d800fd;
}

/* Purple */
.service-card:nth-child(3n+3) {
    --border-color: #00fd92;
}

/* Teal/Green */

/* Tech Stack Section */
#tech-stack {
    background: var(--bg-dark);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-category {
    background: var(--bg-paper);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tech-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(0, 101, 253, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.tech-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: 0.3s;
    border: 1px solid transparent;
}

.tech-badge i {
    color: var(--primary-color);
}

.tech-badge:hover {
    background: rgba(0, 101, 253, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 101, 253, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    /* Let animation take over */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover::after {
    opacity: 1;
    animation-duration: 2s;
    /* Speed up on hover */
}

.service-card:hover .service-icon {
    background: var(--border-color);
    color: #fff;
    box-shadow: 0 0 20px var(--border-color);
    border-color: var(--border-color);
}

/* Structural Watermark Numbering via CSS Counters */
#services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    counter-reset: service-counter;
}

.service-card::before {
    counter-increment: service-counter;
    content: "0" counter(service-counter);
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    font-family: 'Outfit', sans-serif;
    pointer-events: none;
    transition: 0.3s;
}

/* Inline Service Header */
.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 50px;
    /* Reducing size slightly for inline balance */
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 101, 253, 0.1), rgba(0, 101, 253, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0;
    /* Remove bottom margin */
    border: 1px solid rgba(0, 101, 253, 0.2);
    transition: 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 101, 253, 0.1);
    flex-shrink: 0;
    /* Prevent icon from squishing */
}

.text-sm {
    font-size: 0.85rem;
    display: block;
    margin-top: 2px;
}

.service-card h3 {
    font-size: 1.3rem;
    /* Slightly smaller to fit side-by-side */
    color: var(--text-primary);
    margin-bottom: 0;
    /* Remove bottom margin as it's flexed */
    font-weight: 600;
    line-height: 1.2;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 101, 253, 0.15),
        inset 0 0 20px rgba(0, 101, 253, 0.05);
    /* Internal glow */
}

.service-card:hover::before {
    color: rgba(0, 101, 253, 0.1);
    transform: scale(1.1);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
    box-shadow: 0 0 20px rgba(0, 101, 253, 0.4);
}

.industries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.industry-tag {
    background: rgba(0, 101, 253, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 101, 253, 0.2);
    transition: 0.3s;
}

.industry-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.industry-card {
    background: var(--bg-paper);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* very subtle default shadow */
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: default;
}

.industry-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: 0.3s;
}

.industry-card h5 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
    transition: 0.3s;
}

.industry-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 20px rgba(0, 101, 253, 0.15);
    /* primary color shadow glow */
    border-color: rgba(0, 101, 253, 0.3);
}

.industry-card:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0, 101, 253, 0.5);
}

.industry-card:hover h5 {
    color: var(--text-primary);
}

/* Mobile Responsive adjustment for grid */
@media (max-width: 600px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Force 3 columns on mobile */
        gap: 0.8rem;
        /* Reduce gap for 3 columns */
    }

    .industry-card {
        padding: 1rem 0.5rem;
        /* Smaller padding */
    }

    .industry-card i {
        font-size: 1.5rem;
        /* Smaller icon */
    }

    .industry-card h5 {
        font-size: 0.75rem;
        /* Smaller text */
    }
}

/* Section 4: Process */
#process {
    background: var(--bg-paper);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    transition: 0.3s;
}

.step:hover .step-number {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-color);
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step p {
    font-size: 0.9rem;
    padding: 0 1rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.tools-logos {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.7;
}

/* Section 5: Team & Contact */
#contact {
    background: radial-gradient(circle at 100% 0%, rgba(0, 101, 253, 0.1) 0%, var(--bg-dark) 50%);
}

.contact-layout {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 2rem;
}

.contact-info-card {
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.contact-item {
    display: inline-flex;
    align-items: flex-start;
    margin: 1rem;
    text-align: left;
}

/* Clean up contact items */
.contact-items-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 101, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-paper);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(128, 128, 128, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 1023px) {
    footer {
        padding-bottom: 100px;
        /* Extra space for mobile bottom nav */
    }
}

/* Utility Classes and Component Styles (Refactored Inline Styles) */
.text-primary {
    color: var(--primary-color);
}

.text-white {
    color: #fff;
}

.text-uppercase {
    text-transform: uppercase;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.font-medium {
    font-weight: 500;
}

.float-end {
    float: right;
}

.m-0 {
    margin: 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mr-1 {
    margin-right: 5px;
}

.mr-2 {
    margin-right: 8px;
}

.mr-3 {
    margin-right: 10px;
}

.text-center {
    text-align: center;
}

.list-unstyled {
    list-style: none;
}

.section-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-highlight {
    color: #fff;
    font-weight: 500;
}

.card-desc {
    margin: 0;
    font-size: 0.95rem;
}

.values-list {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.section-header {
    text-align: center;
}

.section-header.text-left {
    text-align: left !important;
    align-items: flex-start;
}

.industries-wrapper {
    margin-top: 4rem;
    text-align: center;
}

.industries-title {
    margin-bottom: 2rem;
}

.card-title-border {
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.list-item-spaced {
    margin-bottom: 10px;
}

.tools-icons {
    font-size: 2rem;
    margin-top: 1rem;
}

.results-title {
    font-size: 1.2rem;
    color: #fff;
}

.results-list {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 1.5rem 0;
        /* Reduced section padding for mobile */
    }

    h1 {
        font-size: 2rem;
        /* Slightly smaller h1 */
    }

    .top-controls {
        position: fixed;
        /* Changed from absolute to fixed */
        width: 100%;
        justify-content: center;
        top: 20px;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0 1rem;
        gap: 0.5rem;
        pointer-events: none;
        /* Allow clicking through the container area */
    }

    .customizer-preview .top-controls {
        pointer-events: auto;
    }

    .top-controls>* {
        pointer-events: auto;
        /* Re-enable clicks on buttons */
    }

    .lang-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .theme-toggle {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }


    .flag-img {
        width: 14px;
        height: 10px;
    }

    .about-grid,
    .contact-layout,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
    }

    .hero-content {
        padding-top: 50px;
        /* Greatly reduced top padding */
        padding-bottom: 2rem;
    }

    #hero {
        height: auto;
        min-height: auto;
        /* Remove minimum height constraint */
        padding-bottom: 2rem;
        /* Add padding to the section itself */
        display: flex;
        align-items: center;
    }

    .bismillah {
        font-size: 1.2rem;
        /* Smaller font size for mobile */
        margin-bottom: 0.8rem;
        /* Reduced margin bottom */
        margin-top: 1rem;
        /* Added small top margin */
    }

    .hero-actions {
        width: 100%;
        padding: 0 1rem;
    }

}

/* Mobile App-Style Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0;
    /* No radius */
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1023px) {
    .mobile-bottom-nav {
        display: block;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    position: relative;
}

.nav-group {
    display: flex;
    gap: 5px;
    /* Decreased gap between items */
    flex: 1;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    /* Decreased space between icon and text */
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

/* Global WhatsApp Pulse Animation */
@keyframes whatsapp-pulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Desktop WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Animated Rings for Desktop */
.whatsapp-float::before,
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid #25d366;
    border-radius: 50%;
    animation: whatsapp-pulse 2s linear infinite;
    opacity: 0;
    z-index: -1;
}

.whatsapp-float::after {
    animation-delay: 1s;
}

/* Visibility Control */
@media (max-width: 1023px) {
    .whatsapp-float {
        display: none !important;
    }
}

/* Center Action Orb (Mobile) */
.nav-action-orb {
    width: 65px;
    height: 65px;
    background: #25d366;
    /* WhatsApp Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    position: relative;
    top: -25px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid var(--bg-dark);
}

/* Animated Rings for Mobile Orb */
.nav-action-orb::before,
.nav-action-orb::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 3px solid #25d366;
    border-radius: 50%;
    animation: whatsapp-pulse 2s linear infinite;
    opacity: 0;
    z-index: -1;
}

.nav-action-orb::after {
    animation-delay: 1s;
}

.nav-action-orb:active {
    transform: scale(0.9);
}

@media (max-width: 900px) {
    .download-buttons {
        width: 100%;
        gap: 0.8rem;
    }

    .download-buttons .btn {
        flex: 1;
        justify-content: center;
        padding: 0.8rem 0.5rem;
    }
}

/* Desktop Side Capsule Menu */
.side-nav {
    display: none;
    /* Hidden by default */
}

@media (min-width: 1024px) {
    .side-nav {
        display: block;
        /* Shown only on larger screens */
        position: fixed;
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1.5rem 0.5rem;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    }

    .side-nav.switching {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }

    [dir="rtl"] .side-nav.switching {
        transform: translateY(-50%) translateX(20px);
    }

    [dir="rtl"] .side-nav {
        left: auto;
        right: 20px;
    }
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-nav li {
    position: relative;
}

.side-nav .nav-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    /* Increased from 40px */
    height: 50px;
    /* Increased from 40px */
    justify-content: center;
    position: relative;
    font-size: 1.5rem;
    /* Increased from 1.2rem */
}

.side-nav .nav-link:hover,
.side-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 101, 253, 0.1);
    box-shadow: 0 0 15px rgba(0, 101, 253, 0.2);
}

/* Slide-out Text */
.nav-text {
    position: absolute;
    left: 100%;
    margin-left: 20px;
    /* Increased gap */
    background: var(--bg-paper);
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    /* Larger padding */
    border-radius: 10px;
    font-size: 1.1rem;
    /* Larger text */
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .nav-text {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 20px;
    transform: translateX(10px);
}

/* Arrow for the tooltip */
.nav-text::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bg-paper);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[dir="rtl"] .nav-text::before {
    left: auto;
    right: -5px;
    border-left: none;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav .nav-link:hover .nav-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Enterprise Contact Section (Ultra Streamlined) */
.enterprise-contact-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 101, 253, 0.05);
    border: 1px solid rgba(0, 101, 253, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #10b981;
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Ultra-Streamlined Enterprise Contact row */
.contact-ultra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
    direction: ltr !important;
    text-align: left;
    font-family: var(--font-main) !important;
}

.ultra-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.ultra-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

[dir="rtl"] .ultra-icon {
    margin-right: 0;
    margin-left: 1.5rem;
}

.ultra-text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

.ultra-text strong {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Hover Effects */
.ultra-item:hover {
    transform: translateY(-5px);
}

.ultra-item:hover .ultra-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 101, 253, 0.4);
}

/* Vertical Divider */
.ultra-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0 2rem;
}

/* Social Sub-Footer */
.ultra-footer {
    display: flex;
    justify-content: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.social-links-minimal {
    display: flex;
    gap: 20px;
}

.social-minimal-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(0, 101, 253, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-minimal-icon:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 101, 253, 0.2);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .contact-ultra-row {
        flex-direction: column;
        gap: 3rem;
        margin: 2rem auto;
    }

    .ultra-divider {
        display: none;
    }
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 10px;
    border-radius: 999px;
    margin-right: 12px;
}

.brand-logo {
    height: 26px;
    width: auto;
    display: block;
}

.brand-text {
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary, #fff);
}

@media (max-width: 768px) {
    .brand-mini {
        display: none;
    }
}


.brand-mini {
    position: relative;
    order: 1;
}

.brand-pos-left {
    margin-right: auto;
    margin-left: 60px;
    /* Offset to clear side nav area */
}

.brand-pos-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.brand-pos-right {
    margin-left: auto;
    order: 3;
}

.lang-switcher {
    order: 4;
}

.theme-toggle {
    order: 5;
}


.tech-desc {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 1rem;
}
.blog-post-horizontal{display:flex !important;gap:24px;align-items:flex-start;}
.blog-post-horizontal .post-thumbnail{flex:0 0 260px;max-width:260px;}
.blog-post-horizontal .post-content{flex:1;min-width:0;}
.blog-post-horizontal .post-thumbnail{flex:0 0 260px;max-width:260px;}
.blog-post-horizontal .post-thumbnail img{width:100%;height:auto;display:block;border-radius:12px;}
.blog-post-horizontal .post-content{flex:1;}
@media (max-width: 768px){.blog-post-horizontal{flex-direction:column;}.blog-post-horizontal .post-thumbnail{max-width:100%;flex:1;}}

