/* === VON-HOLTEN DESIGN SYSTEM === */
:root {
    /* Målrettede farver ud fra Von-Holten våbenskjold */
    --primary: #005696; /* Azure Blue */
    --primary-light: #187bcd;
    --secondary: #E5B13A; /* Gold */
    --secondary-light: #f5c75e;
    --bg-light: #F8F8F8; /* Neutral White */
    --bg-alt: #EFEFEF; /* Slightly darker white */
    --text-dark: #1A1A1A; /* Detail Black */
    --text-light: #F8F8F8;
    --dark: #121212; 
    --dark-alt: #1A1A1A;
    --accent-red: #D0312D; /* Detail Red */
    
    /* Terminal Colors */
    --term-bg: #0C0C0C;
    --term-green: #4af626;
    --term-yellow: #f1fa8c;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #4a4a4a;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* Utils */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.bg-dark { background-color: var(--dark); color: var(--text-light); }
.bg-dark p { color: #cccccc; }
.bg-dark-secondary { background-color: var(--dark-alt); color: var(--text-light); }
.bg-dark-secondary p { color: #aaaaaa; }
.bg-alt { background-color: var(--bg-alt); }
.text-light { color: var(--text-light); }
.text-secondary { color: var(--secondary); }

.accent-line {
    height: 4px;
    width: 60px;
    background-color: var(--secondary);
    margin-bottom: 2rem;
}
.accent-line.centered {
    margin: 0 auto 2rem auto;
}

/* Buttons */
.btn-primary, .btn-outline, .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    border: 2px solid var(--primary);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    margin-left: 1rem;
}
.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 248, 248, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-links .btn {
    border: 2px solid var(--primary);
    padding: 0.5rem 1.5rem;
    color: var(--primary);
}

.nav-links .btn:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-right: 2rem;
}

h1.glitch-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 0.5rem;
    position: relative;
}

.highlight {
    color: var(--primary);
    position: relative;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary);
    z-index: -1;
    opacity: 0.6;
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #666;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: -20px 20px 0px var(--secondary);
}

.image-wrapper img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition);
}

.image-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #888;
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: #888;
    border-radius: 2px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* About Section */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.crest-image {
    max-width: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* Tech Section & Terminal */
.tech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.tag {
    background: rgba(229, 177, 58, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.tag:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-2px);
}

.terminal-wrapper {
    background-color: var(--term-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    font-family: var(--font-code);
    font-size: 0.95rem;
    border: 1px solid #333;
}

.terminal-header {
    background-color: #222;
    padding: 0.8rem;
    display: flex;
    align-items: center;
}

.circles {
    display: flex;
    gap: 6px;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.circle.red { background-color: #ff5f56; }
.circle.yellow { background-color: #ffbd2e; }
.circle.green { background-color: #27c93f; }

.terminal-title {
    color: #888;
    margin-left: 1rem;
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 250px;
    color: #e0e0e0;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--term-green);
    margin-right: 0.5rem;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #fff;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cmd-output {
    color: var(--secondary-light);
    margin-bottom: 1rem;
    white-space: pre-line;
}

/* Smart Home Section */
.smarthome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dashboard-preview {
    position: relative;
}

.dashboard-ui {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,86,150,0.2);
}

.dashboard-ui img {
    width: 100%;
    height: auto;
    display: block;
}

.dashboard-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    border-top: 1px solid rgba(0,86,150,0.5);
}

.hud-item {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hud-item i {
    color: var(--primary-light);
}

/* Passion Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 1rem;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

.card-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}

.music-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
    color: var(--text-light);
}

.music-content p {
    color: #e0e0e0;
}

.music-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.music-coming-soon {
    margin-top: 2rem;
    background: rgba(229, 177, 58, 0.2);
    color: var(--secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-info {
    max-width: 500px;
}

.email-link {
    font-size: 1.2rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.email-link:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInAnim 1s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeInAnim {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Observables */
.observe-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.observe-slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.observe-slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.observe-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Responsive */
@media (max-width: 968px) {
    .section-grid, .tech-container, .smarthome-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-content p {
        margin: 0 auto 2rem auto;
    }
    
    .about-image {
        grid-row: 2;
    }
    
    .terminal-wrapper {
        margin-top: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .email-link {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 2rem 2rem;
        background: rgba(248, 248, 248, 0.98);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .nav-links.open {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
}
