@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-color: #0A0A0A;
    --card-bg: #161616;
    --accent-color: #C5A059;
    --accent-hover: #D4AF37;
    --text-primary: #F5F5F5;
    --text-secondary: #999999;
    --glass-bg: rgba(22, 22, 22, 0.7);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.5)), url('office_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.05); /* Skala upp något för att dölja vita kanter som uppstår av oskärpan */
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
.serif {
    font-family: 'Playfair Display', serif;
}

/* Typography Helpers */
.text-gold {
    color: var(--accent-color);
}

.text-muted {
    color: var(--text-secondary);
}

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

section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: transparent;
    /* Reveal body background */
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.tagline {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-top: 2px;
    font-weight: 300;
}

.footer-logo-container {
    align-items: center;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: transparent;
    /* Background now handled by body */
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(5px);
}

.btn:hover {
    background: var(--accent-color);
    color: #000;
}

/* Services Grid */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title .divider {
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(22, 22, 22, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-card.expanded {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

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

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

.service-info {
    padding: 2rem;
    text-align: center;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.service-card.expanded .service-details {
    max-height: 350px;
    opacity: 1;
    margin-top: 1rem;
}

.expand-btn {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
}

.service-card:hover .expand-btn {
    color: var(--accent-hover);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* About Section */
.about {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(5px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-profile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.profile-title {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.profile-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.role-badge {
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.35);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.profile-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

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

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

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    aspect-ratio: 4/5;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Quotes Section */
.quotes {
    text-align: center;
    background: var(--bg-color);
    padding: 150px 0;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.quote-author {
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.contact-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Navigation & Responsive */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 0.7rem;
    }

    section {
        padding: 60px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 2rem;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin-bottom: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-profile {
        align-items: center;
    }

    .profile-roles {
        justify-content: center;
    }

    .profile-contact {
        align-items: center;
    }
    
    .about-image {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .btn {
        padding: 1.2rem 2.5rem;
        /* Larger touch target */
        width: 100%;
        max-width: 300px;
    }
}