:root {
    --primary-color: #000;
    --secondary-color: #333;
    --background-color: #fff;
    --accent-color: #666;
    --text-color: #333;
    --section-spacing: 100vh;
    --card-bg: rgba(0, 0, 0, 0.02);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #fff;
    --secondary-color: #ccc;
    --background-color: #1a1a1a;
    --accent-color: #999;
    --text-color: #ccc;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: var(--background-color);
}

.language-switch {
    font-size: 1rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switch a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.language-switch a.active {
    color: var(--primary-color);
}

.theme-switch {
    position: relative;
    margin-right: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--accent-color);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-bottom: 4rem;
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

main::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

.brand {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.intro-text {
    margin-top: 2rem;
}

.greeting {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.description {
    font-size: 1.25rem;
    color: var(--accent-color);
    max-width: 600px;
    letter-spacing: -0.01em;
}

section {
    min-height: var(--section-spacing);
    margin: 0;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.skills, .specialization {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.skills:hover, .specialization:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

ul {
    list-style: none;
}

.skills ul, .specialization ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.advantages ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
    margin-top: 6rem;
    position: relative;
}

.advantages li {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    padding: 2rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.advantages li:nth-child(odd) {
    margin-top: 0;
    text-align: left;
}

.advantages li:nth-child(even) {
    margin-top: 6rem;
    text-align: right;
}

.advantages li:hover {
    transform: scale(1.05);
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact p {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: var(--accent-color);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    text-align: center;
    background: var(--background-color);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem;
    }

    .language-switch {
        font-size: 0.9rem;
    }

    main {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .brand {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .tagline {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills, .specialization {
        padding: 1.5rem;
    }

    .advantages ul {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .advantages li {
        font-size: 1.5rem;
        padding: 1rem;
        text-align: center;
    }

    .advantages li:nth-child(even) {
        margin-top: 0;
    }

    .contact p {
        font-size: 1rem;
    }

    footer {
        padding: 0.5rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.experience ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.project-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--primary-color);
}

.legal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.legal-content {
    max-width: 600px;
    margin: 0 auto;
}

.legal-item {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 1rem;
}

.legal-item h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.legal-item p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.legal-item p:last-child {
    margin-bottom: 0;
}

.legal-item strong {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .legal-content {
        grid-template-columns: 1fr;
    }
    
    .advantages li {
        font-size: 2rem;
    }
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}