/* GLOBAL SHARED STYLES - Portfolio Design System */

/* CSS Variables for Design System */
:root {
    --black: #292b2d;
    --white: #f9f7f4;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
    font-family: var(--font-primary);
    line-height: 1.4;
    overflow-x: hidden;
    cursor: none;
}

/* NAVIGATION COMPONENT - Matches desktop-first-global.css */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    mix-blend-mode: difference;
    isolation: isolate;
}

.nav-brand {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 18px;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    color: #ffffff !important;
    text-transform: lowercase;
    position: relative;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

/* DROPDOWN NAVIGATION */
.nav-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.nav-dropdown .nav-link::after {
    content: '↓';
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
    vertical-align: baseline;
}

.nav-dropdown.open .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 480px;
    width: max-content;
    max-width: 600px;
    background: #ffffff;
    border: 3px solid var(--black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease;
    z-index: 2000;
    margin-top: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    mix-blend-mode: normal;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 24px 36px;
    color: #292b2d;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    text-transform: lowercase;
    border-bottom: 1px solid rgba(41, 43, 45, 0.1);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item .project-title {
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    display: block;
    color: #292b2d;
}

.dropdown-item .project-subtitle {
    font-size: 12px;
    color: #292b2d;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-item:hover {
    background: rgba(41, 43, 45, 0.05);
    color: #292b2d;
    transform: translateX(8px);
}

.dropdown-item:hover .project-subtitle {
    color: #292b2d;
    opacity: 0.9;
}

/* FOOTER COMPONENT */
.footer {
    background-image: url('../images/background-hero-home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--black);
    color: var(--white);
    padding: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    text-align: left;
}

.footer-text {
    font-size: 14px;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-right {
    text-align: right;
}

.footer-contact {
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact div:first-child {
    font-weight: 600;
    margin-bottom: 10px;
}

/* PAGE TRANSITION */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* SHARED ANIMATION CLASSES */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* HEADING DECONSTRUCTION EFFECTS */
.heading-deconstruct {
    position: relative;
    overflow: hidden;
}

.heading-deconstruct::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--white) 50%, 
        transparent 100%);
    z-index: 2;
    transition: left 0.6s ease;
}

.heading-deconstruct.reform::before {
    left: 100%;
}

.heading-deconstruct .letter {
    display: inline-block;
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    transition: all 0.3s ease;
    transition-delay: calc(var(--i) * 0.05s);
}

.heading-deconstruct.deconstructing .letter {
    opacity: 0;
    transform: translateY(10px) rotate(5deg);
}

.heading-deconstruct.reforming .letter {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    transition-delay: calc(var(--i) * 0.03s);
}

/* RESPONSIVE BREAKPOINTS - Matches desktop-first-global.css */
@media (max-width: 1200px) {
    .nav {
        padding: 0 48px;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
    .dropdown-menu {
        min-width: 400px;
    }
}

@media (max-width: 1024px) {
    .nav {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .nav {
        height: 60px;
        padding: 0 24px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}
