@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&display=swap');

:root {
    --primary: #0a0e1a;
    --secondary: #151d2d;
    --accent: #d4a574;
    --accent-dark: #b88a5c;
    --text-primary: #ffffff;
    --text-secondary: #c0b0a0;
    --gold: #e8d4a0;
    --success: #a8d4b0;
    --border: #2a3344;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

main {
    position: relative;
    z-index: 1;
}

/* TYPOGRAFI  */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 1px;
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }

p {
    font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/*  HEADER  */
.header {
    position: relative;
    top: 0;
    z-index: 100;
    background: rgba(15, 20, 25, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(10px, 2vw, 20px) clamp(15px, 4vw, 40px);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 2.2rem;
    white-space: nowrap;
    font-weight: 300;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--gold);
}

.logo:hover {
    transform: scale(1.05);
}

/*  NAVBAR  */
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transition: width 0.3s ease;
}

.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; }

/*  HAMBURGER  */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* THEME TOGGLE */
#theme-toggle {
    width: 52px;
    height: 30px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    padding: 0;
    margin-left: 20px;
    flex-shrink: 0;
}

.theme-knob {
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #0a0a0a;
    line-height: 1;
}

/*  FOOTER  */
.footer {
    background: rgba(15, 20, 25, 0.9);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    position: relative;
    z-index: 100;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-bottom {
    text-align: center;
    padding: 30px 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-sign {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 8px;
}

.footer-linkedin {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/*  KNAPPAR  */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn:hover, .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.093);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-large {
    padding: 1em 2.5em;
    font-size: 1rem;
    letter-spacing: 1.5px;
}

/*  CONTAINERS */
.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/*  DIVIDERS */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent); }

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 20px 0;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 25px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/*  RESPONSIVE  */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 50px 0; }

    .header-container { padding: 15px 20px; }
    .logo { font-size: 1.4rem; }

    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 55px;
        right: 0;
        left: 0;
        background: var(--secondary);
        border: 1px solid var(--border);
        border-radius: 8px;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        z-index: 100;
    }

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

    .nav-links li a {
        display: block;
        padding: 14px 24px;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child a { border-bottom: none; }

    .footer { margin-top: 50px; padding-top: 40px; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.1rem; }
    #theme-toggle { font-size: 0.65rem; }
    .theme-knob { width: 24px; height: 24px; }
}

@media (max-width: 360px) {
    .logo { font-size: 0.95rem; }
    #theme-toggle { font-size: 0.6rem; }
    .theme-knob { width: 20px; height: 20px; }
}