:root {
    scroll-behavior: smooth;
    --bg-color: #F5F5F7;
    --text-color: #1D1D1F;
    --accent-color: #0071E3;
    --accent-hover: #0077ED;
    --card-bg: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.1);
    --globe-1: #0071E3;
    --globe-2: #34C759;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-color: #F5F5F7;
        --accent-color: #2997FF;
        --accent-hover: #47A7FF;
        --card-bg: rgba(28, 28, 30, 0.7);
        --nav-bg: rgba(0, 0, 0, 0.8);
        --border-color: rgba(255, 255, 255, 0.1);
        --globe-1: #2997FF;
        --globe-2: #30D158;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Animation */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0;
    /* Fade in via JS */
    transition: opacity 1.5s ease;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-color), #8E8E93);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(120, 120, 120, 0.2);
    padding: 3px;
    border-radius: 16px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--bg-color);
    opacity: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-color), #8E8E93);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: rgba(120, 120, 120, 0.15);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: rgba(120, 120, 120, 0.25);
}

/* Services */
.services-section {
    padding: 100px 0;
    perspective: 1000px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    /* Fast transform for mousemove */
    transform-style: preserve-3d;
    will-change: transform;
}

.bento-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transform: translateZ(20px);
    /* Pop out effect */
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateZ(10px);
}

.bento-card p {
    opacity: 0.7;
    line-height: 1.5;
    transform: translateZ(5px);
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Animations */
/* Animations handled by GSAP now */

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .nav-links {
        display: none;
    }
}/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.modal h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

#form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
}

.success-message {
    color: var(--globe-2);
}

.error-message {
    color: #FF3B30;
}/* Modal Header & Logo */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-logo {
    width: 40px;
    height: 40px;
}

/* Adjust title margin */
.modal h2 {
    margin-top: 0;
}