:root {
    /* Colors */
    --color-bg: #050505;
    --color-bg-alt: #111111;
    --color-text: #f0f0f0;
    --color-text-muted: #888888;
    --color-primary: #ff6600; /* Deep Orange */
    --color-primary-glow: rgba(255, 102, 0, 0.4);
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 2.5rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

ul { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

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

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

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }

/* Header */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.05em;
    position: relative;
    z-index: 101; /* Ensure logo stays on top of mobile menu */
}

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

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover { color: #fff; }

.lang-switch a {
    font-weight: 700;
    text-transform: uppercase;
    margin-left: var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.lang-switch a.active { color: #fff; }

.lang-switch {
    position: relative;
    z-index: 101; /* Ensure lang switch stays on top or accessible */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* Abstract Glowing Orb Background */
.hero::after {
    content: "";
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(0,0,0,0) 70%);
    opacity: 0.4;
    filter: blur(60px);
    z-index: -1;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    100% { transform: scale(1.1) translate(-20px, 20px); opacity: 0.2; }
}

.hero-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-visuals {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 400px;
    display: none; /* Hidden by default on mobile, shown on desktop via media query */
}

@media (min-width: 900px) {
    .hero-visuals {
        display: flex;
    }
}

.floating-img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 300px;
    position: absolute;
    transition: transform 0.3s ease;
}

.img-1 {
    z-index: 2;
    top: 20px;
    left: 20px;
    animation: float 6s ease-in-out infinite;
}

.img-2 {
    z-index: 1;
    top: 80px;
    right: 20px;
    opacity: 0.8;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.certification-badge {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.certification-badge:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.hero-bullets {
    margin: var(--spacing-md) 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.hero-bullet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Services (Glassmorphism Cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.service-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(var(--glass-blur));
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border-radius: 16px;
    color: var(--color-primary);
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

/* How We Work (Sticky Steps) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.step {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(var(--glass-blur));
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: var(--color-primary);
}

.blog-card-content {
    padding: 2rem;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.blog-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.blog-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--color-primary);
    gap: 0.75rem; /* Slight slide effect */
    transition: gap 0.3s ease;
}

/* Article Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 3rem;
    color: #fff;
}

.article-content ul, .article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
    color: var(--color-text-muted);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-meta {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #050505; /* Solid bg */
        padding: 2rem;
        transition: right 0.3s ease;
        align-items: center;
        gap: 2rem;
        border-top: 1px solid var(--color-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .hero { min-height: 70vh; }
    h1 { font-size: 2.5rem; }
    
    .hero-bullets {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-bullet {
        width: 100%;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}
