/* ===================================
   KILIAN GÖLSS PORTFOLIO - STYLES
   Swiss Design Aesthetic
   =================================== */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --swiss-red: #E60000;
    --swiss-black: #0A0A0A;
    --swiss-white: #FFFFFF;
}

/* ===================================
   GLOBAL & UTILITY STYLES
   =================================== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--swiss-black);
    background-color: var(--swiss-white);
    scroll-behavior: smooth;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
.title-swiss {
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* ===================================
   GRID SYSTEM
   =================================== */
.swiss-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .swiss-grid {
        gap: 2rem;
    }
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   WORK ITEM HOVER EFFECTS
   =================================== */
.work-item {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.work-item:hover {
    border-color: var(--swiss-red);
}

/* Active state for mobile touch */
.work-item:active {
    border-color: var(--swiss-red);
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.work-item img {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.work-item:hover img,
.work-item:active img {
    opacity: 0.7;
    transform: scale(1.03);
}

.work-item-overlay {
    opacity: 0;
    background-color: transparent;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-item-overlay,
.work-item:active .work-item-overlay {
    opacity: 1;
}

/* ===================================
   MOBILE NAVIGATION
   =================================== */
/* Hamburger menu animation */
#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu slide-in */
#mobile-menu.active {
    transform: translateX(0);
}

/* Mobile nav link animations */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

#mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for mobile links */
#mobile-menu.active .mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

#mobile-menu.active .mobile-nav-link:nth-child(2) {
    transition-delay: 0.15s;
}

#mobile-menu.active .mobile-nav-link:nth-child(3) {
    transition-delay: 0.2s;
}

#mobile-menu.active .mobile-nav-link:nth-child(4) {
    transition-delay: 0.25s;
}

#mobile-menu.active .mobile-nav-link:nth-child(5) {
    transition-delay: 0.3s;
}

/* Mobile touch feedback */
.mobile-nav-link:active {
    transform: scale(0.95);
}

/* ===================================
   BUTTON TOUCH IMPROVEMENTS
   =================================== */
button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Enhanced button states for mobile */
header a:active,
footer a:active {
    opacity: 0.7;
    transform: scale(0.98);
}

/* ===================================
   MOBILE-SPECIFIC IMPROVEMENTS
   =================================== */
@media (max-width: 768px) {
    /* Better touch targets on mobile */
    .work-item-overlay {
        opacity: 0.9;
        pointer-events: none;
    }
    
    .work-item:active .work-item-overlay {
        opacity: 1;
    }
    
    /* Ensure text is readable on mobile */
    .work-item h3 {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }
    
    /* Improve scroll performance */
    .work-item img {
        will-change: transform;
    }
}

/* Smooth scrolling with offset for fixed header */
html {
    scroll-padding-top: 80px;
}
