/* ============================================
   ARISIMALE E-SERVICE - MAIN STYLESHEET
   Modern, Minimalist, Black Theme with Blue Accents (Fey.com Inspired)
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    /* Background Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: rgba(17, 17, 17, 0.8);
    --bg-card-hover: rgba(25, 25, 25, 0.9);

    /* Primary Accent (Blue) */
    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;
    --accent-dark: #1d4ed8;

    /* Secondary Accent (Cyan) */
    --accent-cyan: #06b6d4;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #d4d4d8;
    --text-muted: #71717a;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(59, 130, 246, 0.3);

    /* Glow Effects */
    --glow-accent: 0 0 20px rgba(59, 130, 246, 0.6);
    --glow-accent-intense: 0 0 30px rgba(59, 130, 246, 0.8);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-heading: 'Outfit', 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', 'DM Sans', sans-serif;

    /* Fluid Typography */
    --fs-h1: clamp(2rem, 5vw, 3.5rem);
    --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
    --fs-h3: clamp(1.25rem, 3vw, 1.75rem);
    --fs-body: clamp(0.875rem, 2vw, 1rem);
    --fs-small: clamp(0.75rem, 1.5vw, 0.875rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius (Reduced for cleaner look) */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease-out;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ============================================
   LOADING BAR
   ============================================ */
.loading-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10000;
    background: transparent;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: var(--glow-accent);
    animation: loading 2.5s ease-out forwards;
}

@keyframes loading {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.loading-bar-container.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--fs-body);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-base);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--border-image);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.logo span {
    color: var(--accent-primary);
}

/* Desktop Navigation */
.nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-list {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-md);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.mobile-nav-link.active {
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

@media (min-width: 768px) {
    .nav {
        display: block;
    }

    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 70%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    animation: none;
    /* Removed heavy animation for minimalist feel */
    opacity: 0.4;
    background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--container-padding);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
    letter-spacing: -1.5px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: slideUp 1s ease forwards;
    animation-delay: 1s;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
    animation: slideUp 1s ease forwards;
    animation-delay: 1.5s;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards, bounce 2s ease-in-out infinite;
    animation-delay: 2s, 2s;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes bounce {

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

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

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: var(--fs-body);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-height: 44px;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   CARDS (Minimalist)
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--accent-primary);
}

.card-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* No gradient on icon for minimalist look */
.card:hover .card-icon {
    background: var(--accent-primary);
    color: white;
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--accent-primary);
    font-weight: 500;
    transition: gap var(--transition-fast);
}

.card-link:hover {
    gap: var(--space-sm);
    color: var(--accent-light);
}

.card-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

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

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-us {
    position: relative;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.why-us-grid {
    display: grid;
    gap: var(--space-2xl);
    align-items: center;
}

.why-us-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.why-us-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    opacity: 0.9;
}

.why-us-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.why-us-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.why-us-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.why-us-item h4 {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.why-us-item p {
    color: var(--text-secondary);
    font-size: var(--fs-small);
}

@media (min-width: 1024px) {
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--fs-small);
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-carousel {
    position: relative;
    overflow: hidden;
    padding: var(--space-sm) 0;
}

.projects-track {
    display: flex;
    gap: var(--space-lg);
    transition: transform 0.5s ease;
}

.project-card {
    flex: 0 0 100%;
    min-width: 0;
}

.project-card-inner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid var(--border-color);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    /* Solid dark overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    margin-bottom: var(--space-xs);
    color: white;
}

.project-category {
    color: var(--accent-primary);
    font-size: var(--fs-small);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.carousel-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.2);
}

@media (min-width: 768px) {
    .project-card {
        flex: 0 0 calc(50% - var(--space-md));
    }
}

@media (min-width: 1024px) {
    .project-card {
        flex: 0 0 calc(33.333% - var(--space-md));
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--accent-primary);
}

.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.testimonial-info p {
    color: var(--text-muted);
    font-size: var(--fs-small);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-top: var(--space-sm);
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-primary);
    /* Changed to blue */
    stroke: var(--accent-primary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.cta-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.cta-contact-item:hover {
    color: var(--accent-primary);
}

.cta-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #000000;
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-2xl);
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-about .logo {
    margin-bottom: var(--space-md);
}

.footer-about p {
    color: var(--text-secondary);
    font-size: var(--fs-small);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    transition: color var(--transition-fast);
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--fs-small);
    margin-bottom: var(--space-sm);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--fs-small);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: var(--fs-small);
    transition: color var(--transition-fast);
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* ============================================
   PAGE HERO (for inner pages)
   ============================================ */
.page-hero {
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05), transparent 70%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--fs-small);
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.service-card-detailed {
    display: flex;
    flex-direction: column;
}

.service-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: calc(var(--space-lg) * -1);
    margin-bottom: var(--space-md);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.service-card-detailed:hover .service-image img {
    transform: scale(1.05);
}

.service-features {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.service-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--fs-small);
    margin-bottom: var(--space-xs);
}

.service-feature svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
/* Projects toolbar: search + sort */
.projects-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.projects-search-wrap {
    flex: 1;
    min-width: 100px;
}

.projects-search {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--fs-small);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.85rem center;
    transition: border-color var(--transition-fast);
}

.projects-search:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.projects-sort-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.projects-sort-label {
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.projects-sort {
    padding: 0.6rem 2rem 0.6rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--fs-small);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: border-color var(--transition-fast);
}

.projects-sort:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    /* Reduced radius */
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--fs-small);
    transition: all var(--transition-fast);
    min-height: 44px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.projects-grid {
    display: grid;
    gap: var(--space-lg);
}

.project-card-grid {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
}

.project-card-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.project-card-grid:hover img {
    transform: scale(1.1);
}

.project-card-grid .project-overlay {
    opacity: 0;
    background: rgba(0, 0, 0, 0.85);
}

.project-card-grid:hover .project-overlay {
    opacity: 1;
}

.project-card-grid .project-tech,
.project-card-grid .project-category {
    display: none;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.project-tech span {
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--accent-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Project detail modal (public) - same experience on root and /website/ */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--space-lg);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.project-modal-overlay::-webkit-scrollbar {
    display: none;
}
.project-modal-overlay.is-open {
    display: flex;
}
.project-modal-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: var(--space-xl);
    max-width: 900px;
    width: 100%;
    max-height: 70vh;
    margin: 0 auto;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}
.project-modal-box::-webkit-scrollbar {
    display: none;
}
.project-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}
.project-modal-close:hover {
    color: var(--text-primary);
}
.project-modal-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}
.project-modal-category {
    color: var(--accent-primary);
    font-size: var(--fs-small);
    margin-bottom: var(--space-md);
}
.project-modal-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    white-space: pre-wrap;
}
.project-modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.project-modal-images img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.project-modal-images img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Image lightbox (full view) */
.project-image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-lg);
    cursor: pointer;
}
.project-image-lightbox.is-open {
    display: flex;
}
.project-image-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    pointer-events: none;
}
.project-modal-commands {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-x: auto;
}
.project-modal-commands pre {
    margin: 0;
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.mission-vision {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.mission-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.mission-card h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

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

@media (min-width: 768px) {
    .mission-vision {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(var(--space-xl) * -1 - 5px);
    /* Adjusted for size */
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.timeline-date {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: var(--fs-small);
    margin-bottom: var(--space-xs);
    display: block;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.timeline-text {
    color: var(--text-secondary);
}

/* Values */
.values-grid {
    display: grid;
    gap: var(--space-lg);
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.value-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.value-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.value-card h3 {
    font-family: var(--font-heading);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    font-size: var(--fs-small);
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.partner-logo {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: all var(--transition-fast);
}

.partner-logo:hover {
    border-color: var(--accent-primary);
}

.partner-logo img {
    max-height: 40px;
    filter: grayscale(100%) brightness(1.2);
    transition: filter var(--transition-fast);
}

.partner-logo:hover img {
    filter: grayscale(0%) brightness(1.2);
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ============================================
   TEAM PAGE
   ============================================ */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-card);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.team-role {
    color: var(--accent-primary);
    font-size: var(--fs-small);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.team-bio {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    margin-bottom: var(--space-md);
}

.team-social {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.team-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.team-social svg {
    width: 16px;
    height: 16px;
}

/* Join Team CTA */
.join-team {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    margin-top: var(--space-2xl);
}

.join-team h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    margin-bottom: var(--space-sm);
}

.join-team p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Team grid */
.team-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    gap: var(--space-2xl);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--accent-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    min-height: 44px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

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

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
}

.form-error {
    color: #ef4444;
    font-size: var(--fs-small);
    margin-top: var(--space-xs);
    display: none;
}

.form-error.show {
    display: block;
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: #10b981;
    text-align: center;
    margin-bottom: var(--space-md);
    display: none;
}

.form-success.show {
    display: block;
}

.btn-submit {
    width: 100%;
    position: relative;
}

.btn-submit.loading {
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.contact-info-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.contact-info-text h4 {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.contact-info-text p,
.contact-info-text a {
    color: var(--text-secondary);
    font-size: var(--fs-small);
}

.contact-info-text a:hover {
    color: var(--accent-primary);
}

/* Map */
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(100%) contrast(85%);
    /* Inverted specifically for dark mode black */
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.scroll-animate.fade-in {
    opacity: 0;
}

.scroll-animate.slide-up {
    transform: translateY(40px);
}

.scroll-animate.slide-left {
    transform: translateX(-40px);
}

.scroll-animate.slide-right {
    transform: translateX(40px);
}

.scroll-animate.scale-up {
    transform: scale(0.95);
}

.scroll-animate.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delay for children */
.stagger-children>*:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.3s;
}

.stagger-children>*:nth-child(5) {
    transition-delay: 0.4s;
}

.stagger-children>*:nth-child(6) {
    transition-delay: 0.5s;
}

.stagger-children>*:nth-child(7) {
    transition-delay: 0.6s;
}

.stagger-children>*:nth-child(8) {
    transition-delay: 0.7s;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

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

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

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .header,
    .loading-bar-container,
    .scroll-indicator,
    .hamburger,
    .mobile-menu {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}