* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #666666;
    --gray-light: #999999;
    --border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* Language Selector */
.lang-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    opacity: 0.98;
}

.lang-modal {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 0.5px solid var(--border);
    backdrop-filter: blur(20px);
}

.lang-title {
    font-size: 24px;
    font-weight: 200;
    margin-bottom: 50px;
    color: var(--white);
    letter-spacing: -0.5px;
}

.lang-options {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.lang-option {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
}

.lang-option:hover {
    transform: translateY(-5px);
}

.flag-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 0.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    font-size: 24px;
    font-weight: 300;
    color: var(--white);
}

.lang-option:hover .flag-circle {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.lang-name {
    display: block;
    font-size: 16px;
    color: var(--gray);
    font-weight: 300;
    transition: color 0.3s ease;
}

.lang-option:hover .lang-name {
    color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 0.5px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-primary:hover {
    background: var(--black);
    color: var(--white) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black) !important;
    border-color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0.5px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.98);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 0.5px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 0.5px solid var(--border);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gray-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 200;
    line-height: 1;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 18px;
    font-weight: 300;
    color: var(--gray-light);
    margin-bottom: 48px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 120px 0;
    border-bottom: 0.5px solid var(--border);
}

.section-header {
    margin-bottom: 64px;
    display: flex;
    align-items: baseline;
    gap: 24px;
}

.section-header.center {
    justify-content: center;
}

.section-number {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.section-title {
    font-size: 36px;
    font-weight: 200;
    letter-spacing: -0.02em;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.about-text p {
    font-size: 18px;
    color: var(--gray-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat-item {
    border-left: 0.5px solid var(--border);
    padding-left: 24px;
}

.stat-number {
    font-size: 32px;
    font-weight: 200;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stack */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 64px;
}

.stack-category {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: var(--white);
}

.tech-list {
    list-style: none;
}

.tech-list li {
    padding: 12px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 15px;
    color: var(--gray-light);
    transition: color 0.3s;
}

.tech-list li:hover {
    color: var(--white);
}


/* Terms */
.terms-list {
    display: grid;
    gap: 1px;
    background: var(--border);
}

.term-item {
    background: var(--black);
    padding: 32px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.term-number {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    padding-top: 4px;
}

.term-content h4 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
}

.term-content p {
    font-size: 14px;
    color: var(--gray-light);
}

/* Contact */
.contact {
    padding: 160px 0;
    border-bottom: 0.5px solid var(--border);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 20px;
    color: var(--gray-light);
    margin-bottom: 64px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: var(--white) !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 12px 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
}

.contact-link span {
    position: relative;
    z-index: 2;
}

.contact-link svg {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--white);
    transition: width 0.3s ease;
    z-index: 0;
}

.contact-link:hover {
    color: var(--black) !important;
    border-color: var(--white);
}

.contact-link:hover::before {
    width: 100%;
}

.contact-link:hover svg {
    transform: translate(2px, -2px);
}

/* Footer */
.footer {
    padding: 48px 0;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--gray);
    letter-spacing: 0.5px;
}

/* Additional improvements */
.hero-title {
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 60px;
    height: 0.5px;
    background: var(--white);
    opacity: 0.3;
}

.section-header {
    position: relative;
}

.section-header.center::after {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stack-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .term-item {
        flex-direction: column;
        gap: 16px;
    }
    
    .contact-links {
        flex-direction: column;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }
}