@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #7c3aed;
    --accent: #0891b2;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --light: #ffffff;
    --light-bg: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gray-lighter: #f1f5f9;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-1: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --gradient-3: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.35);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
}

[data-theme="dark"] {
    --dark: #f8fafc;
    --dark-lighter: #e2e8f0;
    --light: #0f172a;
    --light-bg: #1a202c;
    --gray: #cbd5e1;
    --gray-light: #2d3748;
    --gray-lighter: #2d3748;
}

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

::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-lighter);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 6px;
    border: 3px solid var(--gray-lighter);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    line-height: 1.7;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 18px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

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

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.01em;
    padding: 8px 0;
}

[data-theme="dark"] .nav-link {
    color: #ffffff;
}

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

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

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

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

.lang-switch {
    display: flex;
    background: var(--gray-lighter);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.lang-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
    font-weight: 600;
}

[data-theme="dark"] .lang-switch {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lang-btn {
    color: #94a3b8;
}

[data-theme="dark"] .lang-btn.active {
    background: #4a5568;
    color: #60a5fa;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.3);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

[data-theme="dark"] .theme-toggle {
    background: #4a5568;
    border-color: rgba(255, 255, 255, 0.1);
    color: #60a5fa;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.1);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
    position: relative;
    padding: 10px;
    margin: -10px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: #1e293b;
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mobile-toggle span {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(8, 145, 178, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    animation: float 30s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 48px;
    opacity: 0.9;
    color: #cbd5e1;
    letter-spacing: 0.01em;
    line-height: 1.7;
}

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

.btn {
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 17px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 14px 0 rgb(0 0 0 / 0.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgb(0 0 0 / 0.15);
    background: #f8fafc;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    fill: white;
    opacity: 0.7;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

[data-theme="dark"] .services {
    background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);
}

[data-theme="dark"] .services::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

[data-theme="dark"] .service-card {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px 0 rgb(0 0 0 / 0.3);
}

[data-theme="dark"] .service-card:hover {
    background: #374151;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px -4px rgb(0 0 0 / 0.4);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgb(0 0 0 / 0.08), 0 8px 16px -4px rgb(0 0 0 / 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 26px;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .service-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Tech Stack */
.tech-stack {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.tech-stack::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.tech-item {
    text-align: center;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

.tech-item h4 {
    color: white;
    margin: 0;
}

.tech-item span {
    display: block;
    font-size: 16px;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
}

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

.about-text h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 24px;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: float-card 12s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .floating-card {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .floating-card h4 {
    color: #60a5fa;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
    75% { transform: translateY(-8px) rotate(0.5deg); }
}

.floating-card:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, #1e40af 0%, #0f172a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-button {
    margin-top: 40px;
}

.btn-contact {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 18px 48px;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Footer */
footer {
    background: #0f172a;
    color: var(--gray-light);
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] footer {
    background: #0f172a;
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer-copyright {
    color: #94a3b8;
}

[data-theme="dark"] .footer-legal a {
    color: #94a3b8;
}

[data-theme="dark"] .footer-legal a:hover {
    color: #60a5fa;
}

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

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-copyright {
    color: var(--gray);
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-legal a {
    color: var(--gray);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Legal Sections */
.legal-section {
    padding: 80px 0;
    background: var(--light);
    display: none;
}

[data-theme="dark"] .legal-section {
    background: #1a202c;
}

.legal-section.active {
    display: block;
}

.legal-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.legal-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.legal-content {
    max-width: 700px;
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content strong {
    color: var(--dark);
}

/* Enhanced Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}