/* ========== VARIABLES ========== */
:root {
    /* Text width variables */
    --text-width: 900px;
    --text-max-width: 900px;
    --image-width: 580px;
    --container-max-width: 1400px;

    /* Spacing variables */
    --section-spacing: 40px;
    --element-spacing: 30px;
    --small-spacing: 15px;
    --image-text-gap: 50px;

    /* Layout variables */
    --page-padding: 5%;
    /* Changed from 2% to 5% to match Magazin.css */

    /* Colors */
    --accent-color: #00bfff;
    --bg-dark: rgba(0, 0, 0, 0.7);
    --hover-bg: rgba(255, 255, 255, 0.1);
}

/* ========== BASE STYLES ========== */
body {
    background-color: black;
    margin: 0;
    padding: 0 0 100px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* ========== NAVIGATION ========== */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    color: black;
    padding: var(--small-spacing) var(--element-spacing);
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-logo);
    font-weight: var(--font-weight-bold);
    color: black;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    display: inline-block;
}

.logo:hover {
    color: #00bfff;
    transform: scale(1.05);
}

/* Underline animation for logo */
.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: var(--element-spacing);
}

.nav-link {
    text-decoration: none;
    transition: color 0.3s;
}

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

.nav-link.active {
    color: var(--accent-color);
    cursor: default;
    pointer-events: none;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--accent-color);
}

/* ========== HERO SECTION ========== */
.hero {
    margin-top: var(--section-spacing);
    margin-bottom: var(--section-spacing);
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    width: 100%;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: var(--container-max-width);
    margin: 0;
    /* Changed from margin: 0 auto - removes centering */
}

.hero .text-content {
    flex: 0 0 var(--text-width);
    max-width: var(--text-width);
}

/* Profile image container */
.profile-image-container {
    flex: 0 0 auto;
    max-width: var(--image-width);
    margin-left: var(--image-text-gap);
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.profile-image {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

/* ========== MAIN CONTENT SECTIONS ========== */
.section {
    margin-bottom: var(--section-spacing);
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    width: 100%;
    box-sizing: border-box;
}

.section h2 {
    padding-bottom: var(--small-spacing);
    margin-bottom: var(--element-spacing);
    max-width: var(--text-width);
}

.section p,
.section ul {
    margin-bottom: var(--element-spacing);
    max-width: var(--text-width);
    width: 100%;
}

.section ul {
    padding-left: 20px;
    margin-bottom: var(--element-spacing);
}

.section li {
    margin-bottom: var(--small-spacing);
}

/* ========== LAYOUT COMPONENTS ========== */
/* Standard text with image layout */
.text-with-image {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: var(--section-spacing);
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: 0;
    /* Changed from auto - removes centering */
    margin-right: auto;
}

.text-content {
    flex: 0 0 var(--text-width);
    max-width: var(--text-width);
}

/* Side image container */
.side-image {
    flex: 0 0 auto;
    max-width: var(--image-width);
    margin-left: var(--image-text-gap);
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Side image styling */
.side-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

/* ========== IMAGE CONTAINERS ========== */
.video-container {
    width: 100%;
    margin: 0 0 var(--element-spacing) 0;
    padding: 0;
    display: block;
    overflow: hidden;
    max-height: 450px;
}

.featured-image {
    width: 100%;
    height: 450px;
    display: block;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 0;
}

/* Image caption styling */
.image-caption {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: var(--small-spacing) 0 0;
}

/* Side image caption */
.side-image .image-caption {
    width: 100%;
    text-align: center;
    margin: var(--small-spacing) 0 0;
}

/* Contact links section */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: var(--element-spacing);
    max-width: var(--text-width);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--hover-bg);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* ========== SOCIAL LINKS ========== */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 60px auto 20px;
    padding: 15px 0 0;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-intro {
    color: white;
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    text-align: center;
    margin: 0 0 15px 0;
    opacity: 0.9;
    font-weight: 300;
}

.social-links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.social-link {
    color: white;
    text-decoration: none;
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-social-link);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    color: #00bfff;
}

.social-link i {
    width: 20px;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
    padding-bottom: 0;
}

body {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ========== TRANSITIONS & ANIMATIONS ========== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

.fade-in-animation {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.no-animation {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1200px) {
    :root {
        --text-width: 700px;
        --section-spacing: 60px;
    }

    .hero,
    .section {
        padding-left: 40px;
    }
}

@media (max-width: 900px) {
    :root {
        --text-width: 100%;
        --section-spacing: 50px;
        --element-spacing: 25px;
        --page-padding: 30px;
    }

    .hero,
    .section {
        padding-left: var(--page-padding);
        padding-right: var(--page-padding);
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 40px;
        --element-spacing: 20px;
        --small-spacing: 10px;
    }

    /* Layout adjustments */
    .hero-content,
    .text-with-image {
        flex-direction: column;
    }

    .profile-image-container,
    .side-image {
        margin-top: var(--element-spacing);
        margin-left: 0;
        max-width: 100%;
    }

    .profile-image,
    .profile-image-container .image-caption {
        max-width: 100%;
        width: 100%;
    }

    /* Contact links adjustments */
    .contact-links {
        flex-direction: column;
        gap: var(--small-spacing);
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }

    /* Social links mobile */
    .social-links {
        position: static;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        padding: var(--small-spacing) 0;
        background-color: transparent;
        margin-top: var(--element-spacing);
    }

    /* Spacing adjustments for mobile */
    .hero {
        margin-top: var(--element-spacing);
        margin-bottom: var(--section-spacing);
    }
}