/* NOVA CORE - Danish Minimalist Design */

:root {
    /* NOVA CORE Original Colors */
    --primary-color: #e94dad;
    --accent-color: #f687b3;
    --background: #0a0a0a;
    --background-solid: #0a0a0a;
    --background-dark: #0a0a0a;
    --text-light: #f7fafc;
    --text-gray: rgba(210, 210, 210, 0.9);
    --text-muted: rgba(200, 200, 200, 0.7);
    --border-color: rgba(233, 77, 173, 0.1)
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Layout */
    --max-width: 1200px;
    --section-padding: 4rem 2rem;
    --nav-height: 80px;
    
    /* Transitions */
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text-light);
    line-height: 1.6;
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-light);
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-light);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: var(--font-weight-medium);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-gray);
}

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

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

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: var(--nav-height);
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-light);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    font-weight: var(--font-weight-normal);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-light);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
.main-container {
    padding-top: var(--nav-height);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--section-padding);
    background: var(--background);
}

.hero-content {
    max-width: 800px;
}

.hero-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-large {
    display: block;
    font-weight: var(--font-weight-light);
}

.hero-highlight {
    display: block;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
}

.hero-highlight-alt {
    display: block;
    color: var(--text-light);
    font-weight: var(--font-weight-bold);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto var(--space-xl) auto;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--text-muted);
}

/* Work Section */
.work-section {
    padding: var(--section-padding);
    background: var(--background);
}

.section-header {
    max-width: var(--max-width);
    margin: 0 auto var(--space-xxl) auto;
    text-align: center;
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.125rem;
}

.work-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.work-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.work-image {
    width: 100%;
    height: 100%;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: var(--space-lg);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-info h3 {
    color: white;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-medium);
}

.work-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.work-year {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    background: var(--background);
}

.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.stat-item {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-light);
    color: var(--text-light);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background: var(--background);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: var(--space-xxl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.contact-link {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--font-weight-light);
    color: var(--text-light);
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: var(--transition);
}

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

.contact-social {
    display: flex;
    gap: var(--space-lg);
}

.social-link {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-gray);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--text-light);
}

.social-link:hover::after {
    width: 100%;
    background: var(--text-light);
}

/* Footer */
.footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    background: var(--background);
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #001005;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

/* Loading screen background effect matching homelab */
.loading-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 102, 51, 0.25) 0%, rgba(0, 102, 51, 0.12) 12%, rgba(0, 102, 51, 0.03) 30%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(0, 89, 44, 0.2) 0%, rgba(0, 89, 44, 0.08) 15%, rgba(0, 89, 44, 0.03) 30%, transparent 55%),
        radial-gradient(circle at 35% 65%, rgba(0, 77, 38, 0.18) 0%, rgba(0, 77, 38, 0.07) 20%, rgba(0, 77, 38, 0.03) 40%, transparent 60%),
        radial-gradient(circle at 80% 40%, rgba(0, 64, 32, 0.15) 0%, rgba(0, 64, 32, 0.05) 15%, rgba(0, 64, 32, 0.02) 30%, transparent 50%);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: loadingPulse 3s infinite alternate;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    text-align: center;
    position: relative;
    z-index: 1;
}

.loading-text {
    font-size: 3rem;
    font-weight: 700;
    color: #00994d;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    display: block;
    text-shadow: 0 0 20px rgba(0, 153, 77, 0.6);
    animation: loadingGlow 2s ease-in-out infinite alternate;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 153, 77, 0.2);
    border-top: 3px solid #00994d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 153, 77, 0.3);
}

@keyframes loadingPulse {
    0% {
        opacity: 0.4;
        filter: blur(120px);
    }
    50% {
        opacity: 0.5;
        filter: blur(115px);
    }
    100% {
        opacity: 0.4;
        filter: blur(120px);
    }
}

@keyframes loadingGlow {
    0% {
        text-shadow: 0 0 20px rgba(0, 153, 77, 0.6);
        color: #00994d;
    }
    100% {
        text-shadow: 0 0 30px rgba(0, 153, 77, 0.8), 0 0 40px rgba(0, 153, 77, 0.4);
        color: #10b981;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--background);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-xl) var(--space-lg);
        gap: var(--space-lg);
        transform: translateX(-100%);
        transition: var(--transition);
        border-right: 1px solid var(--border-color);
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: var(--space-xxl) var(--space-lg);
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .contact-social {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
    }
    
    .work-item {
        aspect-ratio: 1/1;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
}