:root {
    --primary-color: #2d3436;
    --accent-color: #0984e3;
    --text-color: #2d3436;
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --skill-shadow: rgba(9, 132, 227, 0.1);
    --contact-icon: #2d3436;
}

[data-theme="dark"] {
    --primary-color: #2d3436;
    --accent-color: #00a8ff;
    --text-color: #ecf0f1;
    --bg-color: #1a1a1a;
    --card-bg: rgba(45, 52, 54, 0.8);
    --nav-bg: rgba(26, 26, 26, 0.95);
    --skill-shadow: rgba(0, 168, 255, 0.1);
    --contact-icon: #2d3436;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

nav {
    position: fixed;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    position: relative;
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(9, 132, 227, 0.1));
}

.logo-f, .logo-k {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 1.5s ease forwards;
}

.logo-k {
    animation-delay: 0.3s;
}

.logo-bar {
    transform: scaleX(0);
    transform-origin: left;
    animation: grow 0.5s ease forwards 1.2s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes grow {
    to {
        transform: scaleX(1);
    }
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover .logo-f,
.logo:hover .logo-k,
.logo:hover .logo-bar {
    animation: none;
    filter: drop-shadow(0 0 6px rgba(9, 132, 227, 0.8));
    transition: all 0.3s ease;
}

.logo-dot {
    opacity: 0;
    transform: scale(0);
    animation: logo-pop 0.5s ease forwards 1.5s;
    filter: drop-shadow(0 2px 4px rgba(9, 132, 227, 0.3));
}

.logo-underline {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: logo-draw 1s ease forwards 2s;
}

@keyframes logo-pop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.logo:hover .logo-dot {
    animation: logo-bounce 1.5s ease-in-out infinite;
}

.logo:hover .logo-underline {
    animation: logo-glow 1.5s ease-in-out infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

section {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#home {
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        var(--accent-color) 0%, 
        transparent 70%);
    opacity: 0.05;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.hero {
    padding-top: 150px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 2px 10px var(--skill-shadow);
    transition: color 0.3s ease;
}

.hero h2 {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.hero p {
    color: var(--text-color);
    opacity: 0.8;
    transition: color 0.3s ease;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(9, 132, 227, 0.1) 50%,
        transparent 100%
    );
    animation: cardShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardShine {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
    padding: 0 1rem;
}

.skill {
    position: relative;
    padding: 1.2rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-color), 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--skill-shadow);
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px) translateX(3px);
    background: var(--card-bg);
    border-color: var(--accent-color);
    box-shadow: -5px 5px 15px var(--skill-shadow);
}

.skill:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.skill:hover .skill-icon {
    transform: scale(1.2);
}

.contact-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--contact-icon);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--accent-color);
}

.contact-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--nav-bg);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.hero-illustration {
    margin-top: 2rem;
    width: 100%;
    max-width: 500px;
}

.dev-illustration {
    width: 100%;
    height: auto;
}

.section-illustration {
    width: 100%;
    max-width: 300px;
    margin-bottom: 2rem;
}

.floating {
    animation: float 8s ease-in-out infinite;
    transform-origin: center;
}

.floating:nth-child(odd) {
    animation-duration: 4s;
}

.floating:nth-child(even) {
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(0, -40px) rotate(-5deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(5deg);
    }
}

.skills-illustration, .contact-illustration {
    width: 100%;
    max-width: 400px;
    margin: 2rem 0;
}

.skills-svg, .contact-svg {
    width: 100%;
    height: auto;
}

.code-line {
    animation: codePulse 2s ease-in-out infinite;
}

.code-line:nth-child(2) {
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    animation-delay: 1s;
}

.code-line:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes codePulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.3;
    }
}

.envelope-flap {
    animation: flapWave 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes flapWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.background-illustrations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
    }

    .nav-links .lang-switch,
    .nav-links .theme-switch {
        margin: 0.5rem 0;
    }

    .nav-links > * {
        opacity: 0.9;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active > * {
        opacity: 1;
        transform: translateX(0);
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-item {
        width: 100%;
        justify-content: center;
    }
    
    .hero-illustration {
        max-width: 300px;
    }
    
    .section-illustration {
        max-width: 200px;
    }
    
    .skills-illustration, .contact-illustration {
        max-width: 300px;
    }
    
    .background-illustrations {
        display: none;
    }

    .theme-switch {
        margin: 1rem 0;
    }
}

.lang-switch, .theme-switch {
    width: 52px;
    height: 26px;
    border-radius: 13px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-switch {
    position: relative;
    width: 52px;
    height: 26px;
    border-radius: 13px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-switch::before {
    content: '';
    position: absolute;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(0);
}

.theme-switch svg {
    width: 12px;
    height: 12px;
    position: absolute;
    z-index: 1;
}

.theme-switch .sun-icon {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bg-color);
    opacity: 1;
}

.theme-switch .moon-icon {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0;
}

[data-theme="dark"] .theme-switch::before {
    transform: translateX(26px);
}

[data-theme="dark"] .theme-switch .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .theme-switch .moon-icon {
    opacity: 1;
}

.lang-switch:hover, .theme-switch:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: var(--bg-color);
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
        padding: 2rem;
    }

    .nav-links a {
        margin: 0.5rem 0;
        font-size: 1.2rem;
    }

    .lang-switch, .theme-switch {
        margin: 0.5rem 0;
    }

    .theme-switch {
        margin: 1rem 0;
        width: 52px;
        height: 26px;
    }

    .theme-switch::before {
        width: 20px;
        height: 20px;
    }

    .theme-switch .sun-icon {
        left: 4px;
    }

    .theme-switch .moon-icon {
        right: 4px;
    }

    [data-theme="dark"] .theme-switch::before {
        transform: translateX(26px);
    }
}

.tech-icons {
    transform: scale(0.6);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -15px) rotate(3deg);
    }
    50% {
        transform: translate(0, -30px) rotate(-3deg);
    }
    75% {
        transform: translate(-15px, -15px) rotate(3deg);
    }
}

h1, h2 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(0px, -2px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .hamburger.active span:last-child {
        transform: rotate(-45deg) translate(0px, 2px);
    }

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.theme-switch:hover::before {
    box-shadow: 0 0 10px var(--accent-color);
}

.theme-switch:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .theme-switch {
        margin: 1rem 0;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }
}

.lang-switch {
    width: 52px;
    height: 26px;
    border-radius: 13px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: all 0.3s ease;
    margin-left: 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-switch:hover {
    transform: translateY(-2px);
}

.theme-switch:hover {
    transform: translateY(-2px);
}

[data-theme="dark"] .lang-switch {
    color: var(--text-color);
}

.theme-switch:hover {
    background: var(--bg-color);
} 
