/* ═══════════════════════════════════════════════════════════
   KATERINA-INSPIRED MINIMALIST DESIGN
   Clean, modern portfolio aesthetic with generous whitespace
   ═══════════════════════════════════════════════════════════ */

:root {
    --color-bg: #f5f5f5;
    --color-text: #000000;
    --color-text-light: #666666;
    --color-border: #d5d5d5;
    --color-accent: #000000;
    --font-mono: 'PT Mono', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --spacing-unit: 1rem;
    --max-width: 1400px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(5% - 1px),
            rgba(0, 0, 0, 0.1) calc(5% - 1px),
            rgba(0, 0, 0, 0.1) 5%,
            transparent 5%,
            transparent calc(5% + 10px),
            rgba(0, 0, 0, 0.1) calc(5% + 10px),
            rgba(0, 0, 0, 0.1) calc(5% + 11px),
            transparent calc(5% + 11px),
            transparent 10%
        );
    pointer-events: none;
    z-index: -1;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
    font-family: var(--font-mono);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--color-text-light);
}

.large-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 2rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem calc(5% + 11px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 40px;
    height: auto;
    fill: var(--color-text);
    transition: var(--transition);
}

.logo-link:hover .logo-svg {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-left: auto;
}

.nav-links a:hover {
    opacity: 0.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.social-links a:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        gap: 2rem;
        padding: 1rem calc(5% + 11px);
    }

    .nav-links {
        display: flex;
        gap: 1.5rem;
        font-size: 0.75rem;
        margin-left: auto;
        padding-right: 0.5rem;
    }

    .logo-svg {
        width: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════
   SECTION LAYOUT
   ═══════════════════════════════════════════════════════════ */
section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) calc(5% + 11px);
    position: relative;
    z-index: 10;
    overflow-x: hidden;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.section-title {
    margin-bottom: 4rem;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 0 calc(5% + 11px);
    margin-top: 70px;
    z-index: 10;
    border-bottom: 1px solid var(--color-border);
}

.hero-content {
    max-width: var(--max-width);
    width: 100%;
    margin-right: auto;
}

.hero-text {
    position: relative;
    z-index: 15;
}

.hero-text h1 {
    font-family: var(--font-sans);
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    max-width: calc(100% - 650px);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@media (max-width: 1600px) {
    .hero-text h1 {
        max-width: 600px;
    }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--color-text-light);
    margin-top: 1rem;
    margin-left: 0.75rem;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    overflow: hidden;
    opacity: 0;
    z-index: 100;
    animation: fadeInScale 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(4px);
    }
}

@media (max-width: 1024px) {
    .hero-image {
        display: none;
    }

    .hero-text h1 {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem calc(5% + 11px);
    }

    .scroll-indicator {
        bottom: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   PHILOSOPHY SECTION
   ═══════════════════════════════════════════════════════════ */
.philosophy-section {
    background-color: var(--color-bg);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--color-border);
}

.philosophy-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-content {
    max-width: 900px;
}

.philosophy-content p {
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   WORK SECTION
   ═══════════════════════════════════════════════════════════ */
.work-section {
    background-color: var(--color-bg);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--color-border);
}

.work-section.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.work-grid {
    display: grid;
    gap: 5rem;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}


.work-item-reverse {
    grid-template-columns: 1fr 1fr;
}
.work-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.work-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background-color: var(--color-border);
}

.work-item:last-child {
    padding-bottom: 0;
}

.work-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
    z-index: 100;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
}

.work-item.in-focus .work-image img {
    filter: grayscale(0%);
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-info h3 {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.work-info p {
    font-size: clamp(1rem, 1.75vw, 1.125rem);
    line-height: 1.6;
}

.work-year {
    font-family: var(--font-mono);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--color-text-light);
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .work-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-item:not(:last-child)::after {
        width: 80%;
    }
}

/* ═══════════════════════════════════════════════════════════
   HOW I OPERATE SECTION
   ═══════════════════════════════════════════════════════════ */
.operate-section {
    background-color: var(--color-bg);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--color-border);
}

.operate-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.operate-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
    margin-bottom: 8rem;
}

.operate-content-main {
    max-width: 900px;
}

.operate-content-main p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--color-muted);
}

.operate-image {
    width: 100%;
}

.operate-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .operate-content-wrapper {
        grid-template-columns: 1fr;
    }

    .operate-image {
        display: none;
    }
}

.metrics-section {
    margin-top: -8rem;
}

.metrics-title {    
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px) rotateX(10deg);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.metric-number {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1;
    color: var(--color-text);
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.metric-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════ */
.contact-section {
    background-color: var(--color-bg);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--color-border);
}

.contact-section.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.contact-content h2 {
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    max-width: 600px;
    margin-bottom: 4rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 800px;
}

.contact-link-simple {
    font-family: var(--font-mono);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.contact-link-simple::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


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

.linkedin-logo {
    width: 40px;
    height: 40px;
    color: var(--color-text);
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.linkedin-logo:hover {
    
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.main-footer {
    background-color: var(--color-bg);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(5% - 1px),
            rgba(0, 0, 0, 0.1) calc(5% - 1px),
            rgba(0, 0, 0, 0.1) 5%,
            transparent 5%,
            transparent calc(5% + 10px),
            rgba(0, 0, 0, 0.1) calc(5% + 10px),
            rgba(0, 0, 0, 0.1) calc(5% + 11px),
            transparent calc(5% + 11px),
            transparent 10%
        );
    pointer-events: none;
    z-index: 1;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem calc(5% + 11px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.footer-left {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.footer-logo-svg {
    width: 50px;
    height: auto;
    fill: var(--color-text);
    opacity: 0.4;
    transition: var(--transition);
}

.footer-logo-svg:hover {
    opacity: 0.7;
}

.footer-year {
    color: var(--color-text-light);
}

.footer-right {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.footer-right a:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   SELECTION & SCROLL
   ═══════════════════════════════════════════════════════════ */
::selection {
    background-color: var(--color-text);
    color: var(--color-bg);
}

::-moz-selection {
    background-color: var(--color-text);
    color: var(--color-bg);
}

html {
    scroll-padding-top: 100px;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS & TRANSITIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Disable scroll animations for reduced motion */
    .philosophy-section,
    .work-section,
    .work-item,
    .operate-section,
    .metric-card,
    .contact-section {
        opacity: 1 !important;
        transform: none !important;
    }
}
