/* ========================================
   Modern Dark Theme - CSS Variables & Reset
   ======================================== */
:root {
    /* Color Palette - Dark Mode Base */
    --bg-body: #0f172a;       /* Slate 900 */
    --bg-surface: #1e293b;    /* Slate 800 */
    --bg-surface-hover: #334155; /* Slate 700 */
    
    --text-main: #f8fafc;     /* Slate 50 */
    --text-muted: #94a3b8;    /* Slate 400 */
    --text-accent: #38bdf8;   /* Sky 400 */

    --primary: #6366f1;       /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --border-light: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Gradients */
    --gradient-text: linear-gradient(135deg, #818cf8 0%, #2dd4bf 100%);
    --gradient-surface: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.6) 100%);
    --gradient-glow: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.mt-large {
    margin-top: 6rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   Header & Nav
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 3.25rem;
    width: auto;
    border-radius: 50%;
}

.logo-img-container {
    background-color: #f8fafc;
    padding: 0.125rem 0.25rem;
    display: flex;
    border-radius: 25%;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 1.25rem;
    padding-right: 1rem;
    color: var(--text-main);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.lang-switch {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.lang-switch:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-nav {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Mobile Menu Toggle (CSS Only) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }
.burger-icon {
    width: 24px; height: 2px; background: var(--text-main);
    position: relative; transition: background 0.2s;
}
.burger-icon::before, .burger-icon::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 2px;
    background: var(--text-main); transition: transform 0.3s;
}
.burger-icon::before { top: -8px; }
.burger-icon::after { top: 8px; }

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Background Grid Effect */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    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: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    z-index: -1;
}

/* Glow Effect */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: #818cf8;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s var(--ease-out);
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s var(--ease-out) 0.1s backwards;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: slideUp 0.8s var(--ease-out) 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s var(--ease-out) 0.3s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

/* ========================================
   Services Grid
   ======================================== */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(320px - 48px), 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.card-icon img {
    width: 124px;
    height: 124px;
    object-fit: contain;
    display: block;
}

.card h3 {
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.card:hover .tag {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.2);
}

/* ========================================
   About Page Specifics
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(calc(320px - 48px), 1fr));
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-container {
    text-align: center;
    margin-top: 6rem;
    padding: 4rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.cta-description {
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0;
    margin-top: 4rem;
    background: var(--bg-body);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--primary);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 850px) {
    .nav-toggle-label { 
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        inset: 0;
        background: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s var(--ease-out);
        z-index: 1000;
        min-height: fit-content;
        box-sizing: border-box;
        padding: 3rem;
        top: 80px;
    }

    .nav-toggle:checked ~ .nav-menu {
        transform: translateX(0);
    }

    .nav-toggle:checked ~ .nav-toggle-label .burger-icon { background: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label .burger-icon::before { transform: rotate(45deg); top: 0; }
    .nav-toggle:checked ~ .nav-toggle-label .burger-icon::after { transform: rotate(-45deg); top: 0; }

    .about-grid { grid-template-columns: 1fr; }
    
    h1 { font-size: 2.5rem; }
}



