/* ===== CSS Variables ===== */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent-primary: #ffffff;
    --accent-secondary: #cccccc;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #ffffff;
    --card-text: #000000;
    --navbar-bg: rgba(0, 0, 0, 0.9);
    --modal-overlay: rgba(0, 0, 0, 0.9);
    --input-bg: #1a1a1a;
    --input-border: #333333;
    --star-color: rgba(255, 255, 255, 0.8);
    --line-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #eeeeee;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent-primary: #000000;
    --accent-secondary: #333333;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: #000000;
    --card-text: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --modal-overlay: rgba(255, 255, 255, 0.95);
    --input-bg: #f0f0f0;
    --input-border: #dddddd;
    --star-color: rgba(0, 0, 0, 0.6);
    --line-color: rgba(0, 0, 0, 0.1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Animated Background ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#canvas-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: var(--star-color);
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.loader-logo span {
    display: inline-block;
    opacity: 0;
    animation: letterReveal 0.5s ease forwards;
}

.logo-i { animation-delay: 0.1s; }
.logo-t { animation-delay: 0.2s; }
.logo-i2 { animation-delay: 0.3s; }
.logo-o { animation-delay: 0.4s; }
.logo-n { animation-delay: 0.5s; }
.logo-dev { animation-delay: 0.6s; color: var(--text-secondary); }

@keyframes letterReveal {
    0% { opacity: 0; transform: translateY(30px) rotateX(90deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

.loader-bar {
    width: 300px;
    height: 2px;
    background: var(--border-color);
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 2px;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--text-primary);
    animation: loadProgress 1s ease forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loader-percentage {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 2px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

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

.nav-logo .logo-accent {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-logo:hover .logo-accent {
    color: #8b5cf6;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 10px;
    }
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-dropdown-btn:hover {
    border-color: var(--text-primary);
    background: var(--border-color);
}

.lang-dropdown-btn svg {
    stroke: var(--text-primary);
}

.lang-current {
    font-weight: 600;
    letter-spacing: 1px;
}

.lang-arrow {
    transition: transform 0.3s ease;
}

.lang-dropdown.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.lang-dropdown.active .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--accent);
    color: #000;
}

.lang-flag {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .lang-dropdown,
    .theme-toggle {
        display: none;
    }
}

/* Mobile Menu Footer - Language & Theme */
.mobile-menu-footer {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 250px;
}

.mobile-lang-switcher {
    display: flex;
    gap: 8px;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-lang-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.mobile-lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.mobile-lang-btn .lang-flag {
    font-size: 0.9rem;
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-theme-toggle:hover {
    background: var(--border-color);
}

.mobile-theme-toggle svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-primary);
}

[data-theme="dark"] .mobile-theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .mobile-theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .mobile-theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .mobile-theme-toggle .moon-icon {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-footer {
        display: flex;
    }
    
    /* Hide Get Quote button when mobile menu is open */
    body.no-scroll .btn-quote {
        opacity: 0;
        pointer-events: none;
    }
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--border-color);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-primary);
    transition: all 0.3s ease;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 16px 40px;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline-light:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-dark {
    background: var(--card-text);
    color: var(--card-bg);
    border-radius: 50px;
}

.btn-dark:hover {
    transform: scale(1.05);
}

.btn-full {
    width: 100%;
}

/* Quick Quote Button in Navbar */
.btn-quote {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quote svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.btn-quote:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

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

@media (max-width: 768px) {
    .btn-quote {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
    
    .btn-quote span {
        display: none;
    }
    
    .btn-quote svg {
        width: 16px;
        height: 16px;
    }
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.5s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff4444;
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== Forms ===== */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 15px;
    font-size: 0.75rem;
    background: var(--bg-secondary);
    padding: 0 5px;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-group select {
    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='%23888888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

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

/* ===== Floating Call Button ===== */
.floating-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-call svg {
    width: 24px;
    height: 24px;
    stroke: var(--bg-primary);
}

.floating-call:hover {
    transform: scale(1.1);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-globe {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: visible;
}

.hero-globe canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Unicorn Hero Image */
.hero-unicorn {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    perspective: 1000px;
}

.unicorn-image {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: grayscale(100%) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    transform: rotateY(-5deg) rotateX(5deg);
    position: relative;
    z-index: 10;
}

.hero-unicorn:hover .unicorn-image {
    filter: grayscale(0%) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.2));
    transform: rotateY(5deg) rotateX(-5deg) scale(1.05);
}

/* Glow effect behind unicorn */
.unicorn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 30%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero-unicorn:hover .unicorn-glow {
    opacity: 1;
}

[data-theme="light"] .unicorn-glow {
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 0.08) 0%, 
        rgba(0, 0, 0, 0.04) 30%, 
        transparent 70%);
}

/* Floating animation for unicorn */
@keyframes unicornFloat {
    0%, 100% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(0px);
    }
    50% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(-15px);
    }
}

.unicorn-image {
    animation: unicornFloat 4s ease-in-out infinite;
}

.hero-unicorn:hover .unicorn-image {
    animation: none;
}

.hero-image {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.hero-image:hover img {
    filter: grayscale(0%);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

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

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 30px;
}

.title-line {
    display: block;
}

.title-outline {
    -webkit-text-stroke: 2px var(--text-primary);
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    min-height: 1.6em;
    line-height: 1.6;
}

/* ===== Tech Marquee ===== */
.tech-marquee-section {
    padding: 60px 0;
    overflow: hidden;
}

.marquee-container {
    overflow: hidden;
    margin-bottom: 20px;
}

.marquee-container.reverse .marquee-track {
    animation-direction: reverse;
}

.marquee-track {
    display: flex;
    animation: marquee 40s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 60px;
    padding-right: 60px;
}

.marquee-content span {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s ease;
    letter-spacing: 2px;
}

.marquee-content span:hover {
    color: var(--text-primary);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Portfolio Coming Soon ===== */
.portfolio {
    padding: 120px 0;
}

.section-title-large {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.coming-soon-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.coming-soon-content {
    text-align: left;
}

.glitch-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    margin-bottom: 30px;
}

.glitch-text span {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch-text::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    color: #ff0000;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0% { clip-path: inset(20% 0 30% 0); transform: translate(-3px, 3px); }
    100% { clip-path: inset(50% 0 20% 0); transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -3px); }
    100% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 3px); }
}

.coming-soon-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.coming-soon-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.orbit {
    position: absolute;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    animation: orbitRotate 20s linear infinite;
}

.orbit::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation-duration: 15s;
}

.orbit-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation-duration: 10s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    animation-duration: 7s;
}

.core {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: corePulse 2s ease-in-out infinite;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--text-primary); }
    50% { box-shadow: 0 0 30px 10px var(--border-color); }
}

/* ===== Process Section ===== */
.process {
    padding: 120px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-bottom: 80px;
}

.process-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    border-top: 1px solid var(--border-color);
}

.process-step.reverse {
    direction: rtl;
}

.process-step.reverse > * {
    direction: ltr;
}

.process-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    position: relative;
}

.process-content h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.process-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 400px;
}

.process-visual {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    min-height: 600px;
    padding: 40px 20px;
    perspective: 1000px;
    z-index: 10;
}

.process-visual canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Process Images with 3D Effect */
.process-image {
    max-width: 60%;
    max-height: 470px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    transform: rotateY(-5deg) rotateX(3deg);
    position: relative;
    z-index: 10;
    animation: processFloat 5s ease-in-out infinite;
}

.process-step:nth-child(odd) .process-image {
    transform: rotateY(-5deg) rotateX(3deg);
}

.process-step:nth-child(even) .process-image {
    transform: rotateY(5deg) rotateX(3deg);
}

.process-step:hover .process-image {
    filter: grayscale(0%) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.15));
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    animation: none;
}

/* Floating animation for process images */
@keyframes processFloat {
    0%, 100% {
        transform: rotateY(-5deg) rotateX(3deg) translateY(0px);
    }
    50% {
        transform: rotateY(-5deg) rotateX(3deg) translateY(-10px);
    }
}

.process-step:nth-child(even) .process-image {
    animation: processFloatReverse 5s ease-in-out infinite;
}

@keyframes processFloatReverse {
    0%, 100% {
        transform: rotateY(5deg) rotateX(3deg) translateY(0px);
    }
    50% {
        transform: rotateY(5deg) rotateX(3deg) translateY(-10px);
    }
}

/* Glow effect behind process images */
.process-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 40%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.process-step:hover .process-glow {
    opacity: 1;
}

[data-theme="light"] .process-glow {
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 0.06) 0%, 
        rgba(0, 0, 0, 0.02) 40%, 
        transparent 70%);
}

.process-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.process-step:hover .process-visual img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ===== Services Section ===== */
.services {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    color: var(--card-text);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    align-self: flex-start;
}

[data-theme="light"] .service-tag {
    background: rgba(255, 255, 255, 0.2);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-card .btn-dark {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 14px 30px;
    font-size: 0.75rem;
}

[data-theme="light"] .service-card .btn-dark {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ===== Partner Section ===== */
.partner-section {
    padding: 80px 0;
}

.partner-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.partner-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.partner-text p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== About Section ===== */
.about {
    padding: 120px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-title-large {
    text-align: left;
    margin-bottom: 30px;
}

.about-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 50px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 900;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    border-radius: 20px;
    overflow: hidden;
}

.about-visual img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-visual:hover img {
    filter: grayscale(0%);
}

/* ===== Contact Section ===== */
.contact {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.contact .section-title-large {
    margin-bottom: 60px;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

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

.footer-logo .logo-accent {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-logo:hover .logo-accent {
    color: #8b5cf6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    stroke: var(--text-secondary);
}

.social-links a:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.social-links a:hover svg {
    fill: var(--bg-primary);
    stroke: var(--bg-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

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

/* Studio085 Logo */
.studio085-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.studio085-link:hover {
    opacity: 1;
}

.studio085-text {
    color: var(--text-primary);
}

.studio085-accent {
    color: #f5a623;
}

/* Light theme - invert colors */
[data-theme="light"] .studio085-text {
    color: #000000;
}

[data-theme="light"] .studio085-accent {
    color: #000000;
}

.footer-email {
    margin-top: 10px;
}

.footer-email a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 30px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
}

.toast-message {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.toast-close {
    font-size: 1.5rem;
    color: var(--text-muted);
    padding: 4px;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-globe {
        height: 400px;
        order: -1;
    }
    
    .hero-unicorn {
        height: 400px;
        order: -1;
    }
    
    .hero-image {
        height: 400px;
        order: -1;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .coming-soon-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .coming-soon-visual {
        order: -1;
        margin-bottom: 40px;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .process-step.reverse {
        direction: ltr;
    }
    
    .process-content {
        padding: 60px 40px;
    }
    
    .process-visual {
        height: auto;
        min-height: 350px;
        overflow: visible;
    }
    
    .process-image {
        max-width: 85%;
        max-height: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-text .section-title-large {
        text-align: center;
    }
    
    .about-description {
        text-align: center;
    }
    
    .about-visual {
        order: -1;
    }
    
    .partner-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 18px;
        transition: right 0.5s ease;
        padding: 60px 20px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title-large {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-globe {
        height: 300px;
    }
    
    .hero-unicorn {
        height: 300px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .modal {
        padding: 30px 20px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .process-content {
        padding: 40px 20px;
    }
    
    .process-visual {
        min-height: 280px;
        padding: 20px 10px;
    }
    
    .process-image {
        max-width: 90%;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 0.75rem;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Selection ===== */
::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}
