/* CSS Variables based on exact prompt specifications */
:root {
    /* Paleta v jemných pastelových tónoch, prechodný pocit */
    --honey-bronze: #F6BD60;
    --linen: #F7EDE2;
    --cotton-rose: #F5CAC3;
    --muted-teal: #84A59D;
    --light-coral: #F28482;

    /* Typografia */
    --font-handwriting: 'Caveat', cursive;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Negative Space and Asymmetry Scale */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;

    /* Vizuálna plynulosť */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Entrance Animations */
@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawLine {
    0% {
        stroke-dasharray: 0, 1000;
    }

    100% {
        stroke-dasharray: 1000, 1000;
    }
}

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

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

body {
    background-color: var(--linen);
    color: #2D2D2D;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    /* Fixes horizontal scrollbar / white bar on mobile */
    min-height: 100vh;
}

/* Subtle texture matching paper/fabric feeling */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    /* Very subtle noise/texture generated via SVG / CSS magic */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.8;
}

.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem var(--spacing-lg);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    /* Liquid glass standard - totally transparent at top */
    background: transparent;
    transition: all 0.4s ease;
    animation: slideDownFade 1s var(--transition-smooth) forwards;
}

/* Scrolled state for liquid glass */
.site-nav.scrolled {
    background: rgba(11, 12, 16, 0.85);
    /* Dark solidish glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem var(--spacing-lg);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--linen);
    /* Svetlá farba pre dokonalý kontrast na tmavej pätičke */
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--cotton-rose);
    transition: var(--transition-smooth);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Darker overlay on top of BG image */
    background-color: #0b0c10;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero-bg.png');
    /* To be mapped */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    /* Soften the background */
    z-index: 0;
}

/* Canvas for floating light nodes */
#flowCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-handwritten {
    font-family: var(--font-handwriting);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--linen);
    /* Changed to light linen from teal for contrast */
    margin-bottom: -0.5rem;
    transform: rotate(-3deg);
    display: inline-block;

    opacity: 0;
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    /* Removed text shadow as requested for a cleaner look */

    opacity: 0;
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

.typewriter-cursor {
    color: var(--honey-bronze);
    opacity: 0;
    animation: blink 1s step-end infinite;
    animation-delay: 1.6s;
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.highlight-text {
    color: var(--light-coral);
    position: relative;
    display: inline-block;
}

.hand-underline {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 30px;
    overflow: visible;
}

/* Hide mobile break logic */
.mobile-break {
    display: none;
}

/* Sections General Rules */
.section {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 10;
}

/* organic shape divider CSS */
.hero-shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(180% + 1.3px);
    height: 140px;
    transform: translateX(-30%);
}

.hero-shape-divider .shape-fill {
    fill: var(--linen);
}

.section-divider-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.section-divider-top svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 80px;
}

.section-divider-top .shape-fill {
    fill: var(--linen);
}

.section-divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(140% + 1.3px);
    height: 90px;
    transform: rotateY(180deg) translateX(10%);
}

.section-divider-bottom .shape-fill {
    fill: var(--linen);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 2.5rem;
    color: #2D2D2D;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.accent-line {
    height: 2px;
    width: ৬০px;
    margin-bottom: var(--spacing-md);
}

.accent-line.accent-rose {
    background-color: var(--cotton-rose);
}

.accent-line.accent-coral {
    background-color: var(--light-coral);
}

.accent-line.accent-teal {
    background-color: var(--muted-teal);
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section Refinement */
.about-section .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
}

.about-section .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-section .accent-line {
    margin: var(--spacing-md) auto;
}

.about-section .text-block {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #444;
    line-height: 1.8;
}

/* Projects Cards */
.projects-section {
    background-color: #FFFFFF;
    padding-top: calc(var(--spacing-xl) + 4rem);
    padding-bottom: calc(var(--spacing-xl) + 6rem);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.project-card {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    /* Soft shadow instead of border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.7);
}

.card-strip {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}

.strip-teal {
    background-color: var(--muted-teal);
}

.strip-bronze {
    background-color: var(--honey-bronze);
}

.card-body {
    padding: var(--spacing-md);
    padding-left: calc(var(--spacing-md) + 10px);
}

.project-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #2b2b2b;
}

.project-desc {
    font-size: 0.95rem;
    color: #666;
    font-weight: 300;
}

/* Skills Grid Revamp */
.skills-section .section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.skill-item {
    background: #FFFFFF;
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    transition: var(--transition-smooth);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--linen);
}

.skill-icon img {
    width: 30px;
    height: 30px;
    opacity: 0.8;
}

/* Custom coloring for icons */
.wrap-teal {
    background-color: rgba(132, 165, 157, 0.15);
}

.wrap-bronze {
    background-color: rgba(246, 189, 96, 0.15);
}

.wrap-rose {
    background-color: rgba(242, 132, 130, 0.15);
}

.skill-item h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.3rem;
    color: #2D2D2D;
    margin-top: 0.5rem;
}

.skill-tags {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Footer */
.site-footer {
    padding: var(--spacing-lg) 0;
    background-color: transparent;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(132, 165, 157, 0.3);
    /* Muted Teal low opacity */
    transition: var(--transition-smooth);
}

.social-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    border-color: var(--muted-teal);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(132, 165, 157, 0.2);
}

.social-icon:hover img {
    opacity: 1;
}

.footer-claim {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--muted-teal);
    text-transform: uppercase;
}

/* Mobile Slide-In Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 2000;
    width: 40px;
    height: 40px;
    padding: 5px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--linen);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: #2D2D2D;
    /* Tmavé X na svetlom pozadí */
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: #2D2D2D;
    /* Tmavé X na svetlom pozadí */
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(247, 237, 226, 0.98);
    /* var(--linen) but slightly transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: var(--spacing-lg);
    width: 40px;
    height: 40px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
}

.close-menu span {
    width: 100%;
    height: 3px;
    background-color: #2D2D2D;
    transition: var(--transition-smooth);
    border-radius: 2px;
    position: absolute;
}

.close-menu span:nth-child(1) {
    transform: rotate(45deg);
}

.close-menu span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: #2D2D2D;
    text-decoration: none;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.open .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.open .mobile-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.open .mobile-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.4s;
}

.mobile-menu.open .mobile-socials {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Rules */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    .hamburger {
        display: flex;
    }

    .desktop-links {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .mobile-break {
        display: block;
    }
}

.split-layout .text-block {
    padding-right: 0;
}