@font-face {
    font-family: 'Calibri';
    src: url('/font/calibri-bold.ttf') format('truetype'),
        url('/font/calibri-bold.woff2') format('woff2'),
        url('/font/calibri-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Calibri';
    src: url('/font/calibri-regular.ttf') format('truetype'),
        url('/font/calibri-regular.woff2') format('woff2'),
        url('/font/calibri-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('/font/Jost-VariableFont_wght.woff2') format('woff2'),
        url('/font/Jost-VariableFont_wght.woff') format('woff'),
        url('/font/Jost-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* CSS Custom Properties / Variables */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #2d2d2d;
    --color-accent: #c9a227;
    --color-accent-light: #d4b84a;
    --color-text-dark: #1a1a1a;
    --color-text-light: #f5f5f5;
    --color-bg-overlay: rgba(255, 255, 255, 0.92);
    --color-bg-dark: #1a1a1a;
    --font-heading: 'Jost', 'Calibri', sans-serif;
    --font-body: 'Calibri', 'Segoe UI', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* Reset CSS */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

ul,
ol {
    list-style-type: none;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Global Styles */
body {
    font-family: var(--font-body);
    line-height: 1.7;
    letter-spacing: 0.5px;
    font-size: clamp(16px, 2.5vw, 20px);
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Fade-in Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.15s;
}

.fade-in-delay-2 {
    animation-delay: 0.3s;
}

.fade-in-delay-3 {
    animation-delay: 0.45s;
}

.wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        'header'
        'main'
        'footer';
    min-height: 100vh;
    margin: 0 auto;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('/images/enbar900px.webp') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (background-attachment: fixed) {
    .wrapper {
        background-attachment: fixed;
    }
}

h1 {
    font-family: var(--font-heading);
    text-align: center;
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

h4 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
}

/* -- Header -- */
header {
    grid-area: header;
    position: sticky;
    display: flex;
    justify-content: center;
    top: 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 1000;
    transition: var(--transition-smooth);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--spacing-md);
}

nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
}

nav ul.show {
    display: flex;
}

nav ul li {
    width: 100%;
}

nav ul li a {
    display: block;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

nav ul li a:hover,
nav ul li a:focus,
nav ul li a:active {
    background: linear-gradient(135deg, rgba(90, 130, 220, 0.25), rgba(130, 90, 200, 0.25));
    color: #b8c6ff;
}

nav ul li a:hover::before,
nav ul li a:focus::before,
nav ul li a:active::before {
    width: 80%;
    background: linear-gradient(90deg, #b8c6ff, #d0b8ff);
}

nav ul li a.active {
    color: #b8c6ff;
    border-bottom-color: #b8c6ff;
    background: linear-gradient(135deg, rgba(90, 130, 220, 0.18), rgba(130, 90, 200, 0.18));
}

nav ul li a.touch-active {
    background: linear-gradient(135deg, rgba(90, 130, 220, 0.25), rgba(130, 90, 200, 0.25));
    color: #b8c6ff;
}

nav ul li a.touch-active::before {
    width: 80%;
    background: linear-gradient(90deg, #b8c6ff, #d0b8ff);
}

.logo {
    width: 70px;
    height: 70px;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.08) rotate(5deg);
    filter: brightness(1.1);
}

.nav-spacer {
    display: none;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

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

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

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

/* -- Main -- */
main {
    grid-area: main;
    padding: var(--spacing-sm);
}

/* Popup - Age Verification */
.popup {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.97);
    z-index: 10000;
    padding: var(--spacing-sm);
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.popup-content {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: var(--spacing-md);
    text-align: center;
    border-radius: var(--border-radius);
    max-width: 450px;
    width: calc(100% - 2rem);
    box-shadow: var(--shadow-strong);
    animation: slideUp 0.6s ease-out 0.2s both;
}

.popup img {
    max-width: 150px;
    margin: 0 auto var(--spacing-sm);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    display: block;
}

.popup h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
}

.popup p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
    color: #444;
    line-height: 1.5;
}

.popup p:last-of-type {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
    color: var(--color-text-dark);
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.popup button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.popup button#continueButton {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    background-size: 200% 200%;
    color: var(--color-text-dark);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
    animation: gradientShift 3s ease infinite;
}

.popup button#continueButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
    animation-play-state: paused;
}

.popup button#underAgeButton {
    background-color: #e8e8e8;
    color: #666;
}

.popup button#underAgeButton:hover {
    background-color: #ddd;
}

/* Underage Modal */
.underage-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.97);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-sm);
}

.underage-modal-content {
    position: relative;
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    width: calc(100% - 2rem);
    box-shadow: var(--shadow-strong);
    animation: slideUp 0.4s ease-out;
}

.underage-modal-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
    font-family: var(--font-heading);
}

.underage-modal-content p {
    margin-bottom: var(--spacing-md);
    color: #666;
    line-height: 1.6;
}

.underage-modal-btn {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.underage-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.banner {
    background-color: var(--color-bg-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    box-shadow: var(--shadow-medium);
}

.box {
    max-width: 1200px;
    background-color: var(--color-bg-overlay);
    box-shadow: var(--shadow-medium);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.box:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-3px);
}

.about-section,
.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-md) auto;
    text-align: center;
}

.about-section p,
.product-section p {
    padding: var(--spacing-sm);
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
}

.timeline > div {
    max-width: 600px;
}

.timeline h4 {
    text-align: center;
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-top: var(--spacing-sm);
    position: relative;
}

.timeline h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    margin: 8px auto;
}

.timeline p {
    text-align: center;
    padding: var(--spacing-xs) 0;
}

.timeline img {
    max-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
}

.about-section video {
    display: block;
    margin: var(--spacing-md) auto;
    max-width: 100%;
    width: 100%;
    border-radius: var(--border-radius);
}

/*-- Presentation --*/
.presentation {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.presentation p {
    padding: var(--spacing-sm);
}

.person {
    width: 100%;
    max-width: 500px;
    margin: var(--spacing-md) auto;
    padding: var(--spacing-sm);
}

.person img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    margin: 0 auto;
}

.person img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.person h2,
.person h3 {
    margin-top: var(--spacing-sm);
}

.person p {
    padding: var(--spacing-sm) 0;
}

/* -- Produkter -- */
.product-section {
    text-align: center;
    margin: var(--spacing-md) auto;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-section-img {
    max-width: 100%;
    max-height: 400px;
    margin: var(--spacing-md) auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    display: block;
}

.product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.product-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-container img {
    max-height: 300px;
    width: auto;
    padding: var(--spacing-sm);
    transition: var(--transition-smooth);
}

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

.product-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
}

.product-text p {
    max-width: 500px;
    line-height: 1.6;
}

.product-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    background-size: 200% 200%;
    color: var(--color-text-light);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin-top: var(--spacing-xs);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.product-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: none;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
}

.product-img {
    filter: blur(5px);
    transition: var(--transition-smooth);
}

/* Featured Product Image - Premium styling */
.product-image-wrapper {
    position: relative;
    padding: var(--spacing-md);
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.product-img-featured {
    max-height: 350px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: var(--transition-smooth);
    margin: 0 auto;
}

.product-img-featured:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
}

.product-head {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Awards Section */
.awards-section {
    background: linear-gradient(145deg, #f8f6f0, #fff9e6);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.awards-section h3 {
    color: var(--color-accent);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.awards-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.award-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.award-medal {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    box-shadow: var(--shadow-soft);
    animation: pulse 2s ease-in-out infinite;
    overflow: hidden;
    padding: 0;
}

.award-medal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-soft);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
    }
}

.award-medal.silver,
.award-medal.bronze {
    background: transparent;
}

.award-item h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
}

.award-item p {
    font-size: 0.9rem;
    color: #666;
    padding: var(--spacing-xs) 0;
}

.award-item .award-quote {
    font-style: italic;
    font-size: 0.85rem;
    color: #555;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    text-align: left;
}

/* Awards Showcase Image - Banner Style */
.awards-showcase {
    margin-top: var(--spacing-lg);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.awards-image {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    object-position: center top;
    display: block;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.awards-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-strong);
}

/*-- Kontakt --*/
.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    text-align: center;
    gap: var(--spacing-md);
}

.contact.box {
    margin-bottom: var(--spacing-md);
}

.contact > img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    margin: 0 auto;
}

.contact-info {
    padding: var(--spacing-sm);
}

.contact-info h2 {
    margin-bottom: var(--spacing-sm);
}

.contact-info h3 {
    margin-top: var(--spacing-md);
}

.contact-info a {
    color: var(--color-accent);
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

/* Instagram Feed Section */
.instagram-feed {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(145deg, #fafafa, #f0f0f0);
    border-radius: var(--border-radius);
}

.instagram-feed h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.instagram-feed h3 img {
    width: 30px;
    height: 30px;
}

.instagram-embed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.instagram-embed p {
    font-size: 0.9rem;
    color: #666;
}

.instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    background-size: 200% 200%;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    animation: gradientShift 4s ease infinite;
}

.instagram-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
    animation-play-state: paused;
}

.instagram-follow-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Facebook Feed Section */
.facebook-feed {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(145deg, #f0f4f8, #e8ecf0);
    border-radius: var(--border-radius);
}

.facebook-feed h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.facebook-feed h3 img {
    width: 30px;
    height: 30px;
}

.facebook-embed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.facebook-embed p {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.facebook-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, #1877f2, #0c63d4);
    background-size: 200% 200%;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    animation: gradientShift 3s ease infinite;
}

.facebook-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    background: #166fe5;
    animation-play-state: paused;
}

.facebook-follow-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

#contact-video {
    display: none;
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-text-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Footer */
footer {
    grid-area: footer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: var(--spacing-md);
}

footer .logo {
    width: 80px;
    height: 80px;
    opacity: 0.9;
    margin: 0 auto;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}



/* =================================
   MEDIA QUERIES - Mobile First
   ================================= */

/* Very small devices (max 360px) - Samsung S10 and smaller */
@media (max-width: 360px) {
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    header {
        padding: 0.25rem 0.5rem;
    }

    nav {
        gap: 0.5rem;
    }

    .logo {
        width: 55px;
        height: 55px;
    }

    .hamburger-menu {
        width: 26px;
        height: 22px;
    }

    h1 {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
        word-break: break-word;
        padding: 0 0.5rem;
    }

    h2 {
        font-size: 1.1rem;
        word-break: break-word;
    }

    h3 {
        font-size: 1rem;
    }

    main {
        padding: 0;
        margin: 0;
    }

    .box {
        padding: 0.75rem;
        border-radius: 8px;
        margin: 0;
    }

    .about-section,
    .product-section,
    .contact {
        padding: 0.5rem;
        margin: 0;
    }

    .popup-content {
        padding: 0.75rem;
        width: calc(100% - 1rem);
    }

    .popup img {
        max-width: 90px;
    }

    .popup h2 {
        font-size: 0.95rem;
    }

    .popup p {
        font-size: 0.8rem;
    }

    .popup button {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .product-container,
    .awards-section,
    .instagram-feed,
    .facebook-feed {
        padding: 0.5rem;
    }

    .award-medal {
        width: 50px;
        height: 50px;
    }

    .contact-info a {
        word-break: break-all;
        font-size: 0.85rem;
    }

    footer {
        padding: 0.75rem;
    }

    footer .logo {
        width: 60px;
        height: 60px;
    }
}

/* Ultra small devices (max 320px) - Galaxy Fold, old iPhones */
@media (max-width: 320px) {
    .logo {
        width: 50px;
        height: 50px;
    }

    .hamburger-menu {
        width: 25px;
        height: 20px;
    }

    h1 {
        font-size: 1.2rem;
        letter-spacing: 0;
    }

    .box {
        padding: 0.5rem;
    }

    .popup img {
        max-width: 80px;
    }

    footer .logo {
        width: 55px;
        height: 55px;
    }
}

/* Extra small devices (361px to 430px) */
@media (min-width: 361px) and (max-width: 430px) {
    header {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
        word-break: break-word;
    }

    h2 {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }

    main {
        padding: 0.25rem;
    }

    .box {
        padding: var(--spacing-sm);
        margin: 0.25rem;
    }

    .about-section,
    .product-section,
    .contact {
        padding: var(--spacing-sm);
    }

    .popup-content {
        padding: var(--spacing-sm);
    }

    .popup img {
        max-width: 120px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .popup-content {
        padding: var(--spacing-lg);
    }

    .popup img {
        max-width: 180px;
    }

    .popup-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .awards-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .award-item {
        flex: 1;
        min-width: 250px;
        max-width: 350px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    main {
        padding: var(--spacing-md);
    }

    .wrapper {
        background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
            url('/images/enbar1200px.webp');
    }

    .logo {
        width: 90px;
        height: 90px;
    }

    .timeline {
        flex-direction: row;
        align-items: flex-start;
    }

    .timeline img {
        max-width: 400px;
    }

    .contact {
        flex-direction: row;
    }

    .contact > img {
        max-width: 350px;
    }

    .product-container {
        flex-direction: row;
        text-align: left;
        gap: var(--spacing-lg);
    }

    .product-container img {
        max-height: 350px;
    }

    .product-text {
        align-items: flex-start;
        text-align: left;
    }

    .product-image-wrapper {
        flex-shrink: 0;
    }

    #contact-video {
        display: block;
    }

    .social-media a {
        width: 70px;
        height: 70px;
    }

    .social-media img {
        width: 35px;
        height: 35px;
    }

    .awards-image {
        max-height: 600px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    nav {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .nav-spacer {
        display: block;
        width: 110px;
        height: 110px;
        flex: 0 0 auto;
        visibility: hidden;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        position: static;
        background-color: transparent;
        backdrop-filter: none;
        padding: 0;
        max-width: 1000px;
        gap: var(--spacing-xs);
    }

    nav ul li a {
        padding: var(--spacing-sm) var(--spacing-md);
        border: 2px solid rgba(184, 198, 255, 0.25);
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(90, 130, 220, 0.12), rgba(130, 90, 200, 0.12));
        background-size: 200% 200%;
        animation: gradientShift 4s ease infinite;
    }

    nav ul li a:hover,
    nav ul li a:focus,
    nav ul li a:active {
        background: linear-gradient(135deg, rgba(90, 130, 220, 0.3), rgba(130, 90, 200, 0.3));
        border-color: #b8c6ff;
        box-shadow: 0 4px 20px rgba(90, 130, 220, 0.5);
    }

    nav ul li a.active {
        background: linear-gradient(135deg, rgba(90, 130, 220, 0.22), rgba(130, 90, 200, 0.22));
        border-color: #b8c6ff;
    }

    .hamburger-menu {
        display: none;
    }

    .logo {
        width: 110px;
        height: 110px;
    }

    .wrapper {
        background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
            url('/images/enbar1600px.webp');
    }

    .about-section video {
        max-width: 900px;
        max-height: 500px;
    }

    .person {
        max-width: 600px;
    }

    .person img {
        max-height: 450px;
    }

    .product-section-img {
        max-height: 500px;
    }

    .product-container img {
        max-height: 400px;
    }

    .awards-image {
        max-height: 700px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    main {
        padding: var(--spacing-lg);
    }

    .box {
        padding: var(--spacing-lg);
    }

    .about-section video {
        max-width: 1100px;
    }
}

/* Landscape orientation for tablets */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    .popup p {
        font-size: 0.95rem;
    }

    .popup img {
        max-width: 120px;
    }

    .popup-content {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-bg-overlay: rgba(255, 255, 255, 0.98);
    }

    .box {
        border: 2px solid var(--color-text-dark);
    }
}

/* Print styles */
@media print {

    .popup,
    .hamburger-menu,
    nav ul,
    video {
        display: none !important;
    }

    .wrapper {
        background: white;
    }

    .box {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}