/* Theme Variables */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Outfit:wght@300;400;500;600;700&family=Fraunces:ital,wght@0,400;0,600;1,400&family=Spectral:ital,wght@0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600&family=Inter:wght@400;500;600&family=Roboto:wght@300;400;500;700&family=Unbounded:wght@300;400;500;600;700&display=swap');

:root {
    /* Default theme */
    --primary: #0b3449;
  --secondary: #377248;
    --text: #333;
    --text-light: white;
    --background: #f5f5f5;
    --card-background: #fff;
    --shadow: rgba(0, 0, 0, 0.1);
    --star: #FFD700;
    --success: #0E9F6E;
    --success-bg: #E3FCF7;
    --warning: #D97706;
    --warning-bg: #FEF3C7;
    --error: #DC2626;
    --error-bg: #FEE2E2;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    --menu-background:rgba(255, 255, 255, 0.8);
    --hero-wave:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg viewBox='0 0 1440 220' version='1.1' id='svg1' sodipodi:docname='wave2.svg' inkscape:version='1.3.2 (091e20ef0f, 2023-11-25)' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Csodipodi:namedview id='namedview1' pagecolor='%23f5f5f5' bordercolor='%230ff000' borderopacity='0.25' inkscape:showpageshadow='2' inkscape:pageopacity='0.0' inkscape:pagecheckerboard='0' inkscape:deskcolor='%23ffd1d1' inkscape:zoom='0.90773824' inkscape:cx='543.65893' inkscape:cy='248.97045' inkscape:window-width='1920' inkscape:window-height='1124' inkscape:window-x='0' inkscape:window-y='0' inkscape:window-maximized='1' inkscape:current-layer='svg1' /%3E%3Cpath fill='%23efefef' fill-opacity='1' d='M 1440.7964,93.474801 1320.9832,112.3519 c -119.8131,18.8771 -359.43927,56.6313 -599.0656,69.25536 -239.62633,12.15213 -479.25243,0.35395 -599.06571,-6.37102 L 3.0388411,168.9832 V 320 H 122.85189 c 119.81328,0 359.43938,0 599.06571,0 239.62633,0 479.2525,0 599.0656,0 h 119.8132 z' id='path1-5-2' style='fill:%23cacaca;fill-opacity:0.43064916;stroke:none;stroke-width:1.08535;stroke-opacity:1' /%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,128L120,144C240,160,480,192,720,202.7C960,213,1200,203,1320,197.3L1440,192L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z' id='path1' style='stroke:none;stroke-opacity:1;fill:%23063046;fill-opacity:0.64023733' /%3E%3Cpath fill='%23efefef' fill-opacity='1' d='m 1440.7964,128 -119.8132,16 C 1201.1701,160 961.54393,192 721.9176,202.7 482.29127,213 242.66517,203 122.85189,197.3 L 3.0388411,192 V 320 H 122.85189 c 119.81328,0 359.43938,0 599.06571,0 239.62633,0 479.2525,0 599.0656,0 h 119.8132 z' id='path1-5' style='stroke:none;stroke-width:0.999221;stroke-opacity:1' /%3E%3C/svg%3E%0A");
}

[data-theme="dark"] {
    --primary: #ff9900;
    --secondary: #dd5500;
    --text: #E5E5E5;
    --text-light: #A3A3A3;
    --background: #1A1A1A;
    --card-background: #2D2D2D;
    --shadow: rgba(0, 0, 0, 0.3);
    --font-heading: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    --menu-background:rgba(45, 45, 45, 0.8);
    --hero-wave:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg viewBox='0 0 1440 220' version='1.1' id='svg1' sodipodi:docname='wave2.svg' inkscape:version='1.3.2 (091e20ef0f, 2023-11-25)' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Csodipodi:namedview id='namedview1' pagecolor='%231A1A1A' bordercolor='%23000000' borderopacity='0.25' inkscape:showpageshadow='2' inkscape:pageopacity='0.0' inkscape:pagecheckerboard='0' inkscape:deskcolor='%23d1d1d1' inkscape:zoom='0.90773824' inkscape:cx='543.65893' inkscape:cy='248.97045' inkscape:window-width='1920' inkscape:window-height='1124' inkscape:window-x='0' inkscape:window-y='0' inkscape:window-maximized='1' inkscape:current-layer='svg1' /%3E%3Cpath fill='%23efefef' fill-opacity='1' d='M 1440.7964,93.474801 1320.9832,112.3519 c -119.8131,18.8771 -359.43927,56.6313 -599.0656,69.25536 -239.62633,12.15213 -479.25243,0.35395 -599.06571,-6.37102 L 3.0388411,168.9832 V 320 H 122.85189 c 119.81328,0 359.43938,0 599.06571,0 239.62633,0 479.2525,0 599.0656,0 h 119.8132 z' id='path1-5-2' style='fill:%23cacaca;fill-opacity:0.43064916;stroke:none;stroke-width:1.08535;stroke-opacity:1' /%3E%3Cpath fill='%23efefef' fill-opacity='1' d='M0,128L120,144C240,160,480,192,720,202.7C960,213,1200,203,1320,197.3L1440,192L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z' id='path1' style='stroke:none;stroke-opacity:1;fill:%23efefef;fill-opacity:0.64023733' /%3E%3Cpath fill='%23efefef' fill-opacity='1' d='m 1440.7964,128 -119.8132,16 C 1201.1701,160 961.54393,192 721.9176,202.7 482.29127,213 242.66517,203 122.85189,197.3 L 3.0388411,192 V 320 H 122.85189 c 119.81328,0 359.43938,0 599.06571,0 239.62633,0 479.2525,0 599.0656,0 h 119.8132 z' id='path1-5' style='stroke:none;stroke-width:0.999221;stroke-opacity:1' /%3E%3C/svg%3E%0A");
}

[data-theme="forest"] {
    --primary: #4CAF50;
    --secondary: #8BC34A;
    --text: #2C3E50;
    --text-light: #546E7A;
    --background: #E8F5E9;
    --card-background: #fff;
    --font-heading: 'Fraunces', serif;
    --font-body: 'Spectral', serif;
    --font-accent: 'Plus Jakarta Sans', sans-serif;
    --menu-background:rgba(255, 255, 255, 0.8);
}

[data-theme="ocean"] {
    --primary: #03A9F4;
    --secondary: #00BCD4;
    --text: #263238;
    --text-light: #455A64;
    --background: #E1F5FE;
    --card-background: #fff;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-accent: 'DM Sans', sans-serif;
    --menu-background:rgba(255, 255, 255, 0.8);
}

[data-theme="sunset"] {
    --primary: #FF9800;
    --secondary: #F44336;
    --text: #3E2723;
    --text-light: #5D4037;
    --background: rgb(255,243,224);
    --background: radial-gradient(circle, rgba(255,243,224,1) 5%, rgba(233,205,159,1) 68%); 
    --card-background: #fff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    --menu-background:rgba(255, 255, 255, 0.8);
}



/* Base typography styles */
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 10px;

}
p {
   font-size: initial;
  font-family: var(--font-body);
  font-weight: initial;
}

.logo, .nav-links {
    font-family: var(--font-accent);
    font-weight: 500;
}

/* Theme-specific typography adjustments */
[data-theme="dark"] h1 {
    letter-spacing: -0.03em;
    font-weight: 500;
}

[data-theme="forest"] h1 {
    font-style: italic;
}







.hero-section:before {
    position:absolute;
    display:inline-block;
    width:100%;
    height:auto;
    pointer-events:none;
    bottom:-10px;
    
    content:var(--hero-wave);

    z-index:20000;
    }


/* Updated theme selector styles */
.theme-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20000;
    background: none;
    padding: 8px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.theme-circles {
    display: flex;
    gap: 8px;
}

.theme-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--card-background);
    padding: 2px;
    cursor: pointer;
    background: transparent;
    position: relative;
    transition: all 0.3s ease;
}

.theme-circle:hover {
    transform: scale(1.1);
}

.theme-circle:active {
    transform: scale(0.95);
}

.circle-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Theme-specific colors */
.theme-circle[data-theme="default"] .circle-inner {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
}

.theme-circle[data-theme="dark"] .circle-inner {
    background: linear-gradient(135deg, #2D2D2D, #404040);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-circle[data-theme="forest"] .circle-inner {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.theme-circle[data-theme="ocean"] .circle-inner {
    background: linear-gradient(135deg, #03A9F4, #00BCD4);
}

.theme-circle[data-theme="sunset"] .circle-inner {
    background: linear-gradient(135deg, #FF9800, #F44336);
}

/* Active theme indicator */
.theme-circle.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

.theme-circle.active .circle-inner {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Dark theme adjustments */
[data-theme="dark"] .theme-selector {
    background: rgba(45, 45, 45, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .nav {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.submenu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
}






[data-theme="default"] .submenu {
    background: rgba(3, 47, 68, 0.69);
    color: white;
}

[data-theme="dark"] .submenu {
    background: rgba(45, 45, 45, 0.8);
    
}

[data-theme="forest"] .submenu {
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="ocean"] .submenu {
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="sunset"] .submenu {
    background: rgba(255, 255, 255, 0.4);
}




/* Tooltip on hover */
.theme-circle::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--card-background);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 5px var(--shadow);
}

.theme-circle:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}



/* Base Styles */

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

body {
/*    font-family: Arial, sans-serif;*/
    line-height: 1.6;
    background: var(--background);
    color: var(--text);
    overflow-y: auto;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1001;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    /*! max-width: 1200px; */
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    position: relative;
    height: 90px;
    background: rgb(11,86,98);
    background: radial-gradient(circle, rgb(12, 52, 73) 0%, rgb(1, 45, 67) 65%, rgb(0, 66, 101) 100%);
    z-index: 200;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    color: white;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: transform 0.2s ease;
    animation: dealIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transform-origin: left center;
}

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

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
    animation: dealIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transform-origin: top center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.products-wrapper{
    max-width: 1200px;
    margin:auto;
    margin-top:80px;
}

.product-card {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.2s ease;
    overflow: hidden;
    animation: dealIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.product-details {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    overflow: hidden;
    height: 120px;
}

.star-rating {
    color: var(--star);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.stock-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.in-stock {
    background: var(--success-bg);
    color: var(--success);
}

.low-stock {
    background: var(--warning-bg);
    color: var(--warning);
}

.out-of-stock {
    background: var(--error-bg);
    color: var(--error);
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-to-cart:hover:not([disabled]) {
    background: var(--secondary);
}

.add-to-cart[disabled] {
    background: #ccc;
    cursor: not-allowed;
}

/* Filter Bar */
.filter-bar {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    animation: dealIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text);
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    padding: 0.5rem;
    border: 1px solid var(--text-light);
    border-radius: 4px;
    background: var(--card-background);
    color: var(--text);
}

.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range input {
    width: 100px;
}

.filter-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars span {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.rating-stars span.active {
    color: var(--star);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;

}

.apply-filters {
    background: var(--primary);
    color: white;

}

.apply-filters:hover {
    background: var(--secondary);
}

.clear-filters {
    background: var(--text-light);
    color: white;
}

.clear-filters:hover {
    background: var(--text);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}

.no-results {
    text-align: center;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 8px;
    margin: 2rem 0;
}
[data-theme="dark"] nav {
    background: rgba(45, 45, 45, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-links {
    background: rgba(45, 45, 45, 0.95);
}

[data-theme="dark"] .nav-links a {
    color: var(--text);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary);
}

[data-theme="dark"] .menu-toggle {
    
    color: var(--card-background);
}
.menu-toggle {
    display: none;
    cursor: pointer;
}
/* Theme selector adjustments for dark theme */

[data-theme="dark"] .theme-selector select {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}
/* Animations */
@keyframes dealIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */



/* Previous CSS remains the same until the filter bar section */

/* Layout and Column Styles */
/* Layout Container */
.layout-container {
    display: grid;
    gap: 20px;
    margin: 0px auto;
    padding: 2rem;
    max-width: 1200px;
}

/* Column Configurations */
.layout-container[data-columns="1"] {
    grid-template-columns: 1fr;
    max-width: 1200px;
}

.layout-container[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.layout-container[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

/* Layout Column - matching the dev tools styles exactly */
.layout-column {
    min-height: 100px;
    padding: 16px;
    border: medium;
    background: none;
    box-shadow: none;
    transition: transform 0.2s ease;
    animation: dealIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.layout-column-content {
    height: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .layout-container[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .filter-bar {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        margin: 20px;
    }

    .price-range {
        grid-template-columns: 1fr;
    }

    .price-range span {
        display: none;
    }
    
    .product-grid {
        gap: 1rem;
        padding: 1rem;
    }
    .product-card{
        margin:10px;
    }
    .product-card img {
        
        height: 300px;
        
        
    }
    .theme-selector {
        top: auto;
        bottom: 20px;
        right: 20px;
        padding: 6px;
    }

    .theme-circle {
        width: 25px;
        height: 25px;
    }

    .theme-circle::after {
        display: none;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(45, 45, 45, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .layout-container {
        padding: 1rem;
        gap: 1rem;
    }

    .layout-container[data-columns="2"],
    .layout-container[data-columns="3"] {
        grid-template-columns: 1fr;
    }
}

/* Animation */

.layout-column img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Content Alignment Helpers */
.layout-container.content-center .layout-column-content {
    text-align: center;
}

.layout-container.content-right .layout-column-content {
    text-align: right;
}

/* Page Transitions */
.page {
    position: absolute;
    width: 100%;
    min-height: calc(100% - 80px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.page.exit {
    animation: pageExit 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.page.enter {
    visibility: visible;
    animation: pageEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    top: 0;
}

@keyframes pageExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .layout-container {
        width: 100%;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .theme-selector {
        bottom: 20px;
        right: 20px;
        padding: 6px;
    }

    .theme-circle {
        width: 25px;
        height: 25px;
    }

    .theme-circle::after {
        display: none;
    }

    .layout-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .layout-container[data-columns="2"],
    .layout-container[data-columns="3"] {
        grid-template-columns: 1fr;
    }

    .layout-column:hover {
        transform: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-background);
        padding: 1rem;
        box-shadow: 0 2px 10px var(--shadow);
    }
}



.loader {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: radial-gradient(circle, #1e5786, #0c3d63);
    overflow: hidden;
    opacity: 0;
    position: fixed;
    width: 100vw;
    height: 100vh;
    transform: translateY(100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    z-index: 1000;
}

.loader.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.loader.inactive {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease-in, opacity 0.5s ease-in;
}

.bar {
    width: 20px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: black;
    animation: bounce 1.2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.bar:nth-child(1) { background: #00ff00; animation-delay: 0s; }
.bar:nth-child(2) { background: #ccff00; animation-delay: 0.1s; }
.bar:nth-child(3) { background: #ffff00; animation-delay: 0.2s; }
.bar:nth-child(4) { background: #ffcc00; animation-delay: 0.3s; }
.bar:nth-child(5) { background: #ff9900; animation-delay: 0.4s; }
.bar:nth-child(6) { background: #ff6600; animation-delay: 0.5s; }
.bar:nth-child(7) { background: #ff3300; animation-delay: 0.6s; }
.bar:nth-child(8) { background: #ff3300; animation-delay: 0.6s; }



@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}
 .footer {
            background: var(--background);
            color: var(--text);
            border-top: 1px solid var(--text-light);
            padding: 4rem 0;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        @media (min-width: 768px) {
            .footer-container {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .footer-logo {
            color: var(--primary);
            font-weight: bold;
            font-size: 1.5rem;
            font-family: var(--font-accent);
        }

        .footer-description {
            color: var(--text-light);
            margin-top: 1rem;
        }

        .footer-heading {
            font-family: var(--font-accent);
            font-size: 1.125rem;
            margin-bottom: 1rem;
        }

        .footer-links {
            list-style: none;
            padding: 0;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: var(--text);
            text-decoration: none;
            transition: color 0.2s ease;
        }

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

        .footer-bottom {
            
            margin: 4rem auto 0;
            padding: 2rem 1rem 0;
            border-top: 1px solid var(--text-light);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        @media (min-width: 768px) {
            .footer-bottom {
                flex-direction: row;
                justify-content: space-between;
            }
        }

        .footer-copyright {
            color: var(--text-light);
        }

        .footer-social {
            display: flex;
            gap: 1.5rem;
        }

        .footer-social a {
            color: var(--text-light);
            transition: color 0.2s ease;
        }

        .footer-social a:hover {
            color: var(--primary);
        }

        .footer-social svg {
            width: 1.5rem;
            height: 1.5rem;
        }


        .page-container {
            flex: 1 0 auto;
            margin-bottom: 2rem;
        }
        .footer {
            flex-shrink: 0;
            background: linear-gradient(to bottom, transparent, var(--background) 20%);
            padding-top: 4rem;
            bottom: 0;
            position: relative;
            display: inline-block;
            width: 100%;
        }
        html, body {
            height: 100%;
            margin: 0;
        }

        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .site-content {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
        }

        .page-container {
            flex: 1 0 auto;
            width: 100%;
            padding-bottom: 2rem;
        }
        .page{
            display: inline-block;
            position: relative;
        }
        .footer {
            flex-shrink: 0;
            width: 100%;
            background: var(--background);
            color: var(--text);
            border-top: 1px solid var(--text-light);
            padding: 4rem 0 0 0;
            margin-top: auto;
        }


        .product-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .view-details-btn {
            padding: 0.5rem 1rem;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 0.25rem;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .view-details-btn:hover {
            background: var(--secondary);
        }
        .product-detail {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .product-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        .product-gallery {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .main-image {
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
        }

        .main-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thumbnail-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
        }

        .thumbnail {
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 4px;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .thumbnail:hover {
            opacity: 0.8;
        }

        .product-info {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .product-info h1 {
            font-size: 2rem;
            font-weight: bold;
            color: var(--text);
        }

        .product-info .price {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary);
        }

        .product-info .description {
            color: var(--text-light);
            line-height: 1.6;
        }

        .product-info .actions {
            margin-top: 2rem;
        }

        .error-container {
            text-align: center;
            padding: 4rem 2rem;
        }

        .back-button {
            margin-top: 1rem;
            padding: 0.5rem 1rem;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .product-container {
                grid-template-columns: 1fr;
            }
        }
        .rating-section {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin: 1rem 0;
        }

        .star-rating {
            display: flex;
            gap: 0.25rem;
        }

        .star {
            font-size: 1.5rem;
            cursor: pointer;
            color: #ccc;
            transition: color 0.2s ease;
        }

        .star.active,
        .star.hover {
            color: #ffd700;
        }

        .rating-count {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .rating-message {
            margin-top: 0.5rem;
            padding: 0.5rem;
            border-radius: 4px;
            font-size: 0.9rem;
        }

        .rating-message.success {
            background-color: #d4edda;
            color: #155724;
        }

        .rating-message.error {
            background-color: #f8d7da;
            color: #721c24;
        }
        .product-hero {
            width: 100%;
            height: 60vh;
            overflow: hidden;
            position: relative;
        }

        .product-hero img,
        .product-hero video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-gallery {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .main-image {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
        }

        .main-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .thumbnail-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
            width:100%;
        }

        .thumbnail {
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 4px;
            cursor: pointer;
            transition: opacity 0.2s;
            width:100px;
        }

        .thumbnail:hover,
        .thumbnail.active {
            opacity: 0.8;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .quantity-btn {
            width: 2rem;
            height: 2rem;
            border: 1px solid var(--border-color);
            background: var(--background);
            border-radius: 4px;
            cursor: pointer;
        }

        #quantity {
            width: 3rem;
            height: 2rem;
            text-align: center;
            border: 1px solid var(--border-color);
            border-radius: 4px;
        }

        .extended-description {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
        }

        .extended-description h2 {
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }
        canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        .gradient-bar {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 100px;
            background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
            z-index: 1;
        }
        .menu-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .menu-item {
            position: relative;
        }

        .menu-link {
            display: flex;
            align-items: center;
            padding: 10px;
            color: #333;
            text-decoration: none;
            transition: background-color 0.2s;
        }

        .menu-link:hover {
            background-color: rgba(0,0,0,0.05);
        }

        .menu-link.active {
            color: #007bff;
            font-weight: 500;
        }

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

        .submenu.open {
            display: block;
        }

        .submenu-toggle {
            background: none;
            border: none;
            padding: 0 8px;
            cursor: pointer;
            color: #666;
        }

        .submenu-toggle:hover {
            color: #333;
        }

        .arrow {
            display: inline-block;
            transition: transform 0.2s;
        }

        .submenu-toggle.open .arrow {
            transform: rotate(90deg);
        }

        /* Ensure images scale properly */

.product-hero{
    height:60vh;
    margin-bottom:10px;
}
/* Fix container width issues */
.page-container {
    
    overflow-x: hidden;
    margin: auto;
    
}

.product-container {
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.product-gallery {
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

/* Ensure images scale properly */
.main-image img,
.thumbnail-grid img {
  max-width: 100%;
  height: auto;
}

/* Adjust product info section */
.product-info {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .content-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}


.main-image img{
  max-width: 100%;
  height: 60vh;  
}
.thumbnail-grid img {
  max-width: 100%;
  height: auto;
}
 .scroll-sentinel {
          height: 1px;
          margin: 0;
          padding: 0;
          position: absolute;
          bottom: 20px;
          left: 0;
          right: 0;
          pointer-events: none;
          grid-column: 1 / -1; /* Spans all columns */
      }

      .product-grid {
          position: relative; /* Required for absolute positioning of sentinel */
          margin-bottom: 100px;
      }



      .cart-wrapper {
        position: relative;
        margin-left: 20px;
    }

    .cart-toggle {
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
    }

    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--primary-color, #ff4444);
        color: white;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 12px;
    }

    .cart-dropdown {
        position: absolute;
        right: 0;
        top: 100%;
        width: 400px;
        background: var(--menu-background);
        backdrop-filter: blur(25px);
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
        top: 60px;
        padding: 20px;
      border: 1px solid rgba(255, 255, 255, .1);
        
      border-top: none;

    }

    .cart-dropdown.active {
        display: block;
        animation: dealIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    }

    .cart-items {
        max-height: 300px;
        overflow-y: auto;
        padding: 10px;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 60px 1fr 30px;
        gap: 10px;
        padding: 10px;
        border-bottom: 1px solid var(--shadow);
    }

    .cart-item img {
        width: 100%;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
    }

    .item-details h4 {
        margin: 0;
        font-size: 14px;
    }

    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .quantity-controls button {
        background: #f0f0f0;
        border: none;
        border-radius: 4px;
        padding: 2px 8px;
        cursor: pointer;
    }

    .cart-summary {
        padding: 15px;
        
        border-top: 1px solid var(--shadow);
    }

    .cart-total {
        font-weight: bold;
        margin-bottom: 10px;
    }

    .view-cart-btn,
    .checkout-btn {
        width: 100%;
        padding: 8px;
        margin-top: 5px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .view-cart-btn {
        background: #f0f0f0;
    }

    .checkout-btn {
        background: var(--primary-color, #4CAF50);
        color: white;
    }

    .notification {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 10px 20px;
        border-radius: 4px;
        color: white;
        z-index: 4000;
        animation: slideIn 0.3s ease-out;
    }

    .notification.success {
        background: var(--primary-color, #4CAF50);
    }

    .notification.error {
        background: #f44336;
    }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    .cart-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }
    .cart-items-list{
        max-width: 1200px;
        margin:auto;
        margin-top:80px;
    }


        .logo img {
            width: 80px;
            height: auto;
        }

        /* Add these styles for the flag buttons */
        .language-flag-btn {
            opacity: 0.6;
            transition: all 0.2s ease;
            width: 25px;
            padding: 0;
            background: none;
            border: none;
            cursor: pointer;

        }

        .language-flag-btn:hover {
            opacity: 1;
        }

        .language-flag-btn.active {
            opacity: 1;
            transform: scale(1.2);

        }

        .language-flag-btn img {
            width: 100%;
            height: auto;
            display: block;
        }

        .hero-section:before {
            position: absolute;
            display: inline-block;
            width: 100%;
            height: auto;
            pointer-events: none;
            bottom: -10px;
            content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg viewBox='0 0 1440 220' version='1.1' id='svg1' sodipodi:docname='wave2.svg' inkscape:version='1.3.2 (091e20ef0f, 2023-11-25)' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Csodipodi:namedview id='namedview1' pagecolor='%23ffffff' bordercolor='%23000000' borderopacity='0.25' inkscape:showpageshadow='2' inkscape:pageopacity='0.0' inkscape:pagecheckerboard='0' inkscape:deskcolor='%23d1d1d1' inkscape:zoom='0.90773824' inkscape:cx='543.65893' inkscape:cy='248.97045' inkscape:window-width='1920' inkscape:window-height='1124' inkscape:window-x='0' inkscape:window-y='0' inkscape:window-maximized='1' inkscape:current-layer='svg1' /%3E%3Cpath fill='%23efefef' fill-opacity='1' d='M 1440.7964,93.474801 1320.9832,112.3519 c -119.8131,18.8771 -359.43927,56.6313 -599.0656,69.25536 -239.62633,12.15213 -479.25243,0.35395 -599.06571,-6.37102 L 3.0388411,168.9832 V 320 H 122.85189 c 119.81328,0 359.43938,0 599.06571,0 239.62633,0 479.2525,0 599.0656,0 h 119.8132 z' id='path1-5-2' style='fill:%23cacaca;fill-opacity:0.43064916;stroke:none;stroke-width:1.08535;stroke-opacity:1' /%3E%3Cpath fill='%23efefef' fill-opacity='1' d='M0,128L120,144C240,160,480,192,720,202.7C960,213,1200,203,1320,197.3L1440,192L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z' id='path1' style='stroke:none;stroke-opacity:1;fill:%23efefef;fill-opacity:0.64023733' /%3E%3Cpath fill='%23efefef' fill-opacity='1' d='m 1440.7964,128 -119.8132,16 C 1201.1701,160 961.54393,192 721.9176,202.7 482.29127,213 242.66517,203 122.85189,197.3 L 3.0388411,192 V 320 H 122.85189 c 119.81328,0 359.43938,0 599.06571,0 239.62633,0 479.2525,0 599.0656,0 h 119.8132 z' id='path1-5' style='stroke:none;stroke-width:0.999221;stroke-opacity:1' /%3E%3C/svg%3E%0A");
            z-index: 20000;
        }

        .layout-container {
            display: grid;
            gap: 20px;
            margin: 0px auto;
            padding: 2rem;
            border: medium;
            max-width: 1200px;
            grid-template-columns: repeat(3, 1fr);
            box-shadow: none;
            background: none;
        }

        @media (max-width: 768px) {
            .layout-container {
                grid-template-columns: repeat(1, 1fr);
            }
        }


        :root {
            /* Menu Base Colors */
            --menu-bg: rgba(255, 255, 255, 0.95);
            --menu-text: white;
            --menu-hover: rgba(255, 255, 255, 0.1);
            --menu-active: var(--primary);
            --menu-border: rgba(255, 255, 255, 0.2);
            --submenu-bg: rgba(255, 255, 255, 0.98);
            --submenu-text: white;
            --menu-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            --menu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --menu-border-radius: 12px;
            --menu-padding: 14px 18px;
            --submenu-item-hover: white;
        }

        [data-theme="dark"] {
            --menu-bg: rgba(45, 45, 45, 0.95);
            --menu-text: #e5e5e5;
            --menu-hover: rgba(255, 153, 0, 0.15);
            --menu-active: #ff9900;
            --menu-border: rgba(255, 255, 255, 0.15);
            --submenu-bg: rgba(45, 45, 45, 0.98);
            --submenu-text: #e5e5e5;
            --menu-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            --submenu-item-hover: rgba(255, 153, 0, 0.1);
        }

        [data-theme="forest"] {
            --menu-hover: rgba(76, 175, 80, 0.1);
            --submenu-item-hover: rgba(76, 175, 80, 0.08);
        }

        [data-theme="ocean"] {
            --menu-hover: rgba(3, 169, 244, 0.1);
            --submenu-item-hover: rgba(3, 169, 244, 0.08);
        }

        [data-theme="sunset"] {
            --menu-hover: rgba(255, 152, 0, 0.1);
            --submenu-item-hover: rgba(255, 152, 0, 0.08);
        }

        /* Navigation Container */
        .nav-container {
            position: relative;
            z-index: 1000;
        }

        /* Main Navigation Links */
        .nav-links {
            display: flex;
            align-items: center;
            gap: 4px;
            margin: 0;
            padding: 0;
            list-style: none;
            position: relative;
        }

        /* Menu Item Base Styles */
        .menu-item {
            position: relative;
            list-style: none;
            margin: 0;
        }

        /* Menu Link Styles */
        .menu-link {
            display: flex;
            align-items: center;
            padding: var(--menu-padding);
            color: var(--menu-text);
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            letter-spacing: 0.02em;
            transition: var(--menu-transition);
            position: relative;
            white-space: nowrap;
            border-radius: 8px;
            margin: 0 2px;
            font-family: var(--font-accent);
        }

        .menu-link:hover {
            color: var(--menu-text);
            background: var(--menu-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .menu-link.active {
            color: var(--text-light);
            font-weight: 600;
            background: var(--menu-hover);
        }

        .menu-link.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 24px;
            height: 3px;
            background: var(--menu-active);
            border-radius: 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        /* Dropdown Arrow */
        .dropdown-arrow {
            margin-left: 8px;
            font-size: 11px;
            transition: var(--menu-transition);
            opacity: 0.8;
            font-weight: 400;
        }

        /* Dropdown Arrow - Desktop Only */
        @media (hover: hover) and (pointer: fine) {
            .menu-item.has-submenu:hover .dropdown-arrow {
                transform: rotate(180deg);
                opacity: 1;
                color: var(--menu-active);
            }
        }
        
        /* Dropdown Arrow - Touch Devices */
        .menu-item.has-submenu.active .dropdown-arrow {
            transform: rotate(180deg);
            opacity: 1;
            color: var(--menu-active);
        }

        /* Submenu Hover State - Desktop Only */
        @media (hover: hover) and (pointer: fine) {
            .menu-item.has-submenu:hover>.submenu {
                opacity: 1;
                visibility: visible;
                transform: translateX(-50%) translateY(0) scale(1);
            }
        }
        
        /* Submenu Active State - Touch Devices */
        .menu-item.has-submenu.active>.submenu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0) scale(1);
        }

        /* Submenu Items */
        .submenu .menu-item {
            width: 100%;
            margin: 0;
        }

        .submenu .menu-link {
            padding: 12px 20px;
            margin: 0;
            border-radius: 0;
            font-size: 13px;
            font-weight: 400;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--submenu-text);
            transition: var(--menu-transition);
        }

        .submenu .menu-link:hover {
            background: var(--submenu-item-hover);
            transform: translateX(6px);
            padding-left: 26px;
            color: var(--menu-active);
            box-shadow: none;
        }

        /* Multi-level Submenus */
        .submenu .submenu {
            top: 0;
            left: calc(100% + 8px);
            transform: translateX(8px) translateY(-16px) scale(0.95);
            margin-top: 0;
            margin-left: 0;
        }

        .submenu .menu-item.has-submenu:hover>.submenu {
            transform: translateX(8px) translateY(0) scale(1);
        }

        .submenu .submenu::before {
            top: 24px;
            left: -7px;
            transform: rotate(-45deg);
        }

        /* Add subtle animation to submenu items */
        .submenu .menu-link {
            opacity: 0;
            animation: slideInSubmenu 0.3s ease-out forwards;
        }

        .submenu .menu-link:nth-child(1) {
            animation-delay: 0.05s;
        }

        .submenu .menu-link:nth-child(2) {
            animation-delay: 0.1s;
        }

        .submenu .menu-link:nth-child(3) {
            animation-delay: 0.15s;
        }

        .submenu .menu-link:nth-child(4) {
            animation-delay: 0.2s;
        }

        .submenu .menu-link:nth-child(5) {
            animation-delay: 0.25s;
        }

        @keyframes slideInSubmenu {
            from {
                opacity: 0;
                transform: translateX(-8px);
            }

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

        /* Mega Menu Support */
        .menu-item.mega-menu .submenu {
            min-width: 600px;
            max-width: 800px;
            padding: 24px;
        }

        .mega-menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 24px;
        }

        .mega-menu-section {
            border-right: 1px solid var(--menu-border);
            padding-right: 24px;
        }

        .mega-menu-section:last-child {
            border-right: none;
            padding-right: 0;
        }

        .mega-menu-section h4 {
            font-size: 14px;
            font-weight: 600;
            color: var(--menu-active);
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--menu-border);
        }

        /* Mobile Menu Styles */
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--menu-text);
            font-size: 18px;
            cursor: pointer;
            padding: 8px;
            border-radius: 4px;
            transition: var(--menu-transition);
        }

        .menu-toggle:hover {
            background: var(--menu-hover);
        }

        /* Enhanced Mobile Styles */
        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }

            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--menu-bg);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border: 1px solid var(--menu-border);
                border-top: none;
                border-radius: 0 0 var(--menu-border-radius) var(--menu-border-radius);
                box-shadow: var(--menu-shadow);
                flex-direction: column;
                align-items: stretch;
                padding: 16px 0;
                max-height: 100vh;
                overflow-y: auto;
                scrollbar-width: thin;
                scrollbar-color: var(--menu-border) transparent;
                
            }

            .nav-links::-webkit-scrollbar {
                width: 4px;
            }

            .nav-links::-webkit-scrollbar-track {
                background: transparent;
            }

            .nav-links::-webkit-scrollbar-thumb {
                background: var(--menu-border);
                border-radius: 2px;
            }

            .nav-links.active {
                display: flex;
                background: var(--menu-active);
                animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                
            }

            @keyframes slideDown {
                from {
                    opacity: 0;
                    transform: translateY(-10px);
                }

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

            .menu-item {
                width: 100%;
                border-bottom: 1px solid var(--menu-border);
                
            }

            .menu-item:last-child {
                border-bottom: none;
            }

            .menu-link {
                padding: 16px 20px;
                margin: 0;
                border-radius: 0;
                justify-content: space-between;
                width: 100%;
                box-sizing: border-box;
                display: flex;
                align-items: center;
                position: relative;
                transition: all 0.3s ease;
                
            }

            .menu-link:hover {
                transform: none;
                padding-left: 24px;
                background: rgba(255, 255, 255, 0.05);
            }
            
            /* Add subtle left accent for main menu items */
            .menu-item:not(.has-submenu) .menu-link::before {
                content: '';
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 3px;
                height: 20px;
                background: var(--primary);
                opacity: 0;
                transition: all 0.3s ease;
                
            }
            
            .menu-item:not(.has-submenu) .menu-link:hover::before {
                opacity: 1;
            }

          
           

          
            /* Mobile submenu toggle */
            .mobile-submenu-toggle {
                background: none;
                border: none;
                padding: 4px;
                cursor: pointer;
                color: var(--menu-text);
                opacity: 0.7;
                transition: var(--menu-transition);
                margin-left: auto;
            }

            .mobile-submenu-toggle:hover {
                opacity: 1;
            }

            .mobile-submenu-toggle.active {
                transform: rotate(180deg);
            }
        }

        /* Language Flags Integration */
        .language-flags {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 16px;
            padding-left: 16px;
            border-left: 1px solid var(--menu-border);
        }

        @media (max-width: 768px) {
            .language-flags {
                margin-left: 0;
                padding-left: 0;
                border-left: none;
                padding: 16px 20px;
                border-top: 1px solid var(--menu-border);
                justify-content: center;
            }
        }

        /* Cart Integration */
        .cart-container {
            margin-left: 16px;
            display: none;
        }

        @media (max-width: 768px) {
            .cart-container {
                margin-left: 0;
                padding: 16px 20px;
                border-top: 1px solid var(--menu-border);
                display: none;
                justify-content: center;

            }
        }

        /* Smooth Transitions */
        * {
            transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 150ms;
        }

        /* Focus States for Accessibility */
        .menu-link:focus {
            outline: 2px solid var(--menu-active);
            outline-offset: 2px;
            border-radius: 4px;
        }

        /* Loading States */
        .menu-loading {
            opacity: 0.5;
            pointer-events: none;
        }

        .menu-loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 16px;
            height: 16px;
            border: 2px solid var(--menu-border);
            border-top-color: var(--menu-active);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            transform: translate(-50%, -50%);
        }

        @keyframes spin {
            to {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }

        /* High Contrast Mode Support */
        @media (prefers-contrast: high) {
            :root {
                --menu-border: #000;
                --menu-hover: rgba(0, 0, 0, 0.2);
            }

            [data-theme="dark"] {
                --menu-border: #fff;
                --menu-hover: rgba(255, 255, 255, 0.2);
            }
        }

        /* Reduced Motion Support */
        @media (prefers-reduced-motion: reduce) {
            * {
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
            }
        }

       

      


        /* Ensure hover area extends properly */
        .menu-item.has-submenu {
            position: relative;
        }

       
        
        /* Submenu active state - Touch Devices */
        .menu-item.has-submenu.active>.submenu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0) scale(1);
        }

       
       

        .submenu .menu-item.has-submenu:hover>.submenu {
            transform: translateX(0) translateY(0) scale(1);
        }

        .submenu .submenu::before {
            top: 24px;
            left: -7px;
            transform: rotate(-45deg);
        }

       

        /* Additional fixes for theme compatibility */
        [data-theme="dark"] .submenu {
            background: rgba(45, 45, 45, 0.98);
        }

        [data-theme="dark"] .submenu::before {
            background: rgba(45, 45, 45, 0.98);
        }

        /* Ensure proper z-index stacking */
        .nav-links {
            position: relative;
            z-index: 1000;
        }

        .menu-item.has-submenu {
            z-index: 1001;
        }

        .submenu {
            z-index: 1002;
        }

        .submenu .submenu {
            z-index: 1003;
        }

        /* Critical Submenu Fixes */

        /* 1. Fix the submenu visibility and hover states */
        .submenu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            min-width: 240px;
            max-width: 320px;
            background: var(--submenu-bg);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid var(--menu-border);
            border-radius: var(--menu-border-radius);
            box-shadow: var(--menu-shadow);
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-8px) scale(0.98);
            transition: var(--menu-transition);
            z-index: 1001;
            padding: 12px 0;
            overflow: hidden;
            margin-top: 8px;
            pointer-events: none;
            /* Key fix: prevent early mouse events */
        }

        /* 2. Show submenu on parent hover - this is the critical fix */
        .menu-item.has-submenu:hover>.submenu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0) scale(1);
            pointer-events: auto;
            /* Re-enable pointer events when visible */
        }

        /* 3. Keep submenu visible when hovering over submenu itself */
        .submenu:hover {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0) scale(1);
            pointer-events: auto;
        }

        /* 4. Create a hover bridge to prevent gaps causing submenu to close */
        .menu-item.has-submenu::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: -10px;
            right: -10px;
            height: 16px;
            background: transparent;
            z-index: 1000;
            pointer-events: auto;
        }

        /* 5. Fix submenu arrow positioning */
        .submenu::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 50%;
            transform: translateX(-50%) rotate(45deg);
            width: 12px;
            height: 12px;
            background: var(--submenu-bg);
            border: 1px solid var(--menu-border);
            border-bottom: none;
            border-right: none;
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            z-index: 1;
        }

        /* 6. Enhanced menu link hover states */
        .menu-link {
            display: flex;
            align-items: center;
            padding: var(--menu-padding);
            color: var(--menu-text);
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            letter-spacing: 0.02em;
            transition: var(--menu-transition);
            position: relative;
            white-space: nowrap;
            /*! border-radius: 8px; */
            margin: 0 2px;
            font-family: var(--font-accent);
        }

        .menu-link:hover {
            color: var(--menu-text);
            background: var(--menu-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* 7. Fix dropdown arrow animation */
        .dropdown-arrow {
            margin-left: 8px;
            font-size: 11px;
            transition: var(--menu-transition);
            opacity: 0.8;
            font-weight: 400;
        }

        /* Dropdown Arrow - Desktop Only */
        @media (hover: hover) and (pointer: fine) {
            .menu-item.has-submenu:hover .dropdown-arrow {
                transform: rotate(180deg);
                opacity: 1;
                color: var(--menu-active);
            }
        }
        
        /* Dropdown Arrow - Touch Devices */
        .menu-item.has-submenu.active .dropdown-arrow {
            transform: rotate(180deg);
            opacity: 1;
            color: var(--menu-active);
        }

        /* 8. Submenu item styles */
        .submenu .menu-item {
            width: 100%;
            margin: 0;
        }

        .submenu .menu-link {
            padding: 12px 20px;
            margin: 0;
            border-radius: 0;
            font-size: 13px;
            font-weight: 400;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--submenu-text);
            transition: var(--menu-transition);
        }

        .submenu .menu-link:hover {
            background: var(--submenu-item-hover);
            transform: translateX(6px);
            padding-left: 26px;
            color: var(--menu-active);
            box-shadow: none;
        }

        /* 9. Multi-level submenu positioning */
        .submenu .submenu {
            top: 0;
            left: calc(100% + 8px);
            transform: translateX(0) translateY(-8px) scale(0.98);
            margin-top: 0;
            margin-left: 0;
        }

        .submenu .menu-item.has-submenu:hover>.submenu {
            transform: translateX(0) translateY(0) scale(1);
        }

        .submenu .submenu::before {
            top: 20px;
            left: -6px;
            transform: rotate(-45deg);
        }

        /* 10. Mobile submenu overrides */
        @media (max-width: 768px) {
            .menu-item.has-submenu::after {
                display: none;
            }

            .submenu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                border: none;
                border-radius: 0;
                background: rgba(0, 0, 0, 0.03);
                margin: 0;
                padding: 0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                pointer-events: auto;
                max-width: 100%;
            }

            .submenu::before {
                display: none;
            }

            .menu-item.has-submenu.active>.submenu {
                max-height: 300px;
                padding: 8px 0;
                transform: none;
            }
        }

        /* 11. Ensure proper z-index stacking */
        .nav-container {
            position: relative;
            z-index: 1000;
        }

        .nav-links {
            position: relative;
            z-index: 1001;
        }

        .menu-item.has-submenu {
            position: relative;
            z-index: 1002;
        }

        .submenu {
            z-index: 1003;
        }

        .submenu .submenu {
            z-index: 1004;
        }

        /* 12. Theme-specific submenu backgrounds */
        [data-theme="dark"] .submenu {
            background: rgba(45, 45, 45, 0.98);
        }

        [data-theme="dark"] .submenu::before {
            background: rgba(45, 45, 45, 0.98);
        }

        /* 13. Animation improvements */
        .submenu .menu-link {
            opacity: 0;
            animation: slideInSubmenu 0.2s ease-out forwards;
        }

        .submenu .menu-link:nth-child(1) {
            animation-delay: 0.02s;
        }

        .submenu .menu-link:nth-child(2) {
            animation-delay: 0.04s;
        }

        .submenu .menu-link:nth-child(3) {
            animation-delay: 0.06s;
        }

        .submenu .menu-link:nth-child(4) {
            animation-delay: 0.08s;
        }

        .submenu .menu-link:nth-child(5) {
            animation-delay: 0.10s;
        }

        @keyframes slideInSubmenu {
            from {
                opacity: 0;
                transform: translateY(-4px);
            }

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

        .submenu-visible>.submenu {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateX(-50%) translateY(0) scale(1) !important;
            pointer-events: auto !important;
        }

        /* CRITICAL: Add this CSS with higher specificity to override existing styles */

        /* Force submenu visibility with !important to override conflicts */
        .nav-links .menu-item.has-submenu:hover>.submenu,
        .nav-links .menu-item.has-submenu.submenu-visible>.submenu {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateX(-50%) translateY(0) scale(1) !important;
            pointer-events: auto !important;
            display: block !important;
        }

        /* Ensure the submenu itself stays visible when hovered */
        .nav-links .submenu:hover {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            display: block !important;
        }

        /* Reset any conflicting transforms */
        .nav-links .menu-item.has-submenu:hover>.submenu {
            transform: translateX(-50%) translateY(0) scale(1) !important;
        }

        /* Ensure the dropdown arrow rotates */
        .nav-links .menu-item.has-submenu:hover .dropdown-arrow {
            transform: rotate(180deg) !important;
            opacity: 1 !important;
            color: var(--menu-active) !important;
        }

        /* Debug styles - temporarily add bright background to see if submenu is actually showing */
        .nav-links .submenu {
            min-height: 50px !important;
            /* Ensure it has height */
        }

        /* MOBILE-SPECIFIC MENU STYLES */
        @media (hover: none) and (pointer: coarse) {
            /* Override hover-based styles for touch devices */
            .menu-item.has-submenu:hover > .submenu {
                opacity: 0 !important;
                visibility: hidden !important;
                transform: none !important;
            }
            
            .menu-item.has-submenu .dropdown-arrow {
                opacity: 1 !important;
                cursor: pointer;
                display: inline-block;
                transition: transform 0.3s ease;
                pointer-events: auto;
            }
            
            .menu-item.has-submenu .menu-link {
                cursor: pointer;
                padding-right: 30px;
                position: relative;
            }
            
            /* Touch-friendly click area for dropdown */
            .menu-item.has-submenu .menu-link::after {
                content: '';
                position: absolute;
                right: 0;
                top: 0;
                width: 30px;
                height: 100%;
                background: transparent;
                z-index: 2;
            }
            
            /* Mobile submenu positioning - FIXED for tree structure */
            .submenu {
                position: static !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
                max-height: none !important;
                overflow: visible !important;
                transition: all 0.3s ease !important;
                background: rgba(0, 0, 0, 0.02) !important;
                border-radius: 0 !important;
                margin-top: 0 !important;
                padding: 0 !important;
                left: auto !important;
                right: auto !important;
                top: auto !important;
                box-shadow: none !important;
                /* Beautiful tree structure */
                border-left: 2px dotted rgba(255, 255, 255, 0.3) !important;
                margin-left: 20px !important;
                width: 100% !important;
                display: block !important;
            }
            
            /* Active state for mobile - Always visible in tree structure */
            .menu-item.has-submenu .submenu,
            .menu-item.has-submenu.active .submenu {
                opacity: 1 !important;
                visibility: visible !important;
                max-height: none !important;
                padding: 0 !important;
                display: block !important;
            }
            
            /* Mobile submenu links - Tree structure */
            .submenu .menu-link {
                padding: 12px 20px !important;
                margin-left: 0 !important;
                border-left: 2px solid transparent !important;
                transition: all 0.3s ease !important;
                width: 100% !important;
                box-sizing: border-box !important;
                position: relative !important;
                display: block !important;
            }
            
            /* Add beautiful bullet points */
            .submenu .menu-link::before {
                content: '•' !important;
                position: absolute !important;
                left: 8px !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                color: var(--primary) !important;
                font-size: 10px !important;
                opacity: 0.6 !important;
            }
            
            .submenu .menu-link:hover {
                border-left-color: var(--menu-active) !important;
                background: var(--submenu-item-hover) !important;
            }
            
            /* Touch feedback for mobile */
            .menu-item.has-submenu .menu-link:active {
                transform: scale(0.95);
                background: var(--menu-hover);
            }
            
            /* Better touch targets */
            .menu-item.has-submenu .menu-link {
                min-height: 44px;
                min-width: 44px;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }
            
            .dropdown-arrow {
                min-width: 20px;
                min-height: 20px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }

        /* Additional touch-friendly styles */
        .touch-device .menu-item.has-submenu .menu-link {
            -webkit-tap-highlight-color: transparent;
            /* tap-highlight-color: transparent; */
        }

        .touch-device .menu-item.has-submenu .menu-link:focus {
            outline: 2px solid var(--menu-active);
            outline-offset: 2px;
        }

        /* Fixed Footer Styles - Proper positioning and full width */
        .footer {
            background: none;
            color: #e5e5e5;
            padding: 3rem 0 1rem;
            border-top: 1px solid #333;
            width: 100%;
            position: relative;
            /* Ensure proper document flow */
            clear: both;
            /* Clear any floated elements above */
            z-index: 1;
            /* Keep it below other content */
            height: 900px;
        }

        /* Ensure the footer container doesn't inherit any problematic positioning */
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            gap: 4rem;
            align-items: start;
            position: relative;
            width: 100%;
            box-sizing: border-box;
            height: auto;
        }

        /* Make sure the main content doesn't overlap */
        .page-container {
            position: relative;
            z-index: 2;
            min-height: 60vh;
            /* Ensure minimum height */
            margin-bottom: 2rem;
            /* Add space before footer */
        }

        /* Ensure the site content wrapper doesn't cause issues */
        .site-content {
            position: relative;
            width: 100%;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Make sure main content area grows to push footer down */
        main[role="main"] {
            flex: 1;
            position: relative;
            z-index: 2;
        }

        /* Footer container should be at the bottom */
        .footer-container-wrapper {
            margin-top: auto;
            /* Push to bottom if using flexbox */
            width: 100%;
        }

        /* Fix any potential overflow issues */
        body {
            overflow-x: hidden;
        }

        /* Ensure footer doesn't inherit any problematic styles */
        .footer * {
            box-sizing: border-box;
        }

        /* Footer Brand Section */
        .footer-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .footer-brand .footer-logo {
            color: #fff;
            font-size: 1.5rem;
            font-weight: bold;
            text-decoration: none;
            margin-bottom: 1rem;
            display: block;
        }

        .footer-brand .footer-logo::before {
            /* content: url(https://new.datavault.dk/assets/images/data-vault-white.webp); */
            margin-right: 0.5rem;
            font-size: 1.8rem;
        }

        .footer-description {
            color: #ccc;
            font-size: 0.9rem;
            line-height: 1.5;
            margin: 0;
        }

        /* Footer Headings */
        .footer-heading {
            color: #fff;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            letter-spacing: 0.5px;
        }

        /* Tree Menu Section */
        .footer-menu-section {
            min-height: 300px;
        }

        .footer-menu-tree {
            list-style: none;
            padding: 0;
            margin: 0;
            font-size: 0.9rem;
            columns: 1;
            column-gap: 2rem;
            column-fill: balance;
            line-height: 8px;
        }

        .footer-menu-tree .footer-menu-item {
            margin: 0;
            padding: 0;
            break-inside: avoid;
            line-height: 8px;
        }

        .footer-menu-tree .footer-menu-link {
            display: block;
            color: #ccc;
            text-decoration: none;
            padding: 0.4rem 0;
            transition: color 0.2s ease;
            position: relative;
        }

        .footer-menu-tree .footer-menu-link:hover {
            color: #fff;
        }

        /* Tree Structure Indentation */
        .footer-menu-item[data-level="0"]>.footer-menu-link {
            padding-left: 0;
            font-weight: 500;
            color: #e5e5e5;
            margin-top: 1rem;
        }

        .footer-menu-item[data-level="0"]:first-child>.footer-menu-link {
            margin-top: 0;
        }

        .footer-menu-item[data-level="1"]>.footer-menu-link {
            padding-left: 1.5rem;
            font-size: 0.85rem;
            color: #bbb;
        }

        .footer-menu-item[data-level="2"]>.footer-menu-link {
            padding-left: 3rem;
            font-size: 0.8rem;
            color: #999;
        }

        .footer-menu-item[data-level="3"]>.footer-menu-link {
            padding-left: 4.5rem;
            font-size: 0.75rem;
            color: #888;
        }

        /* Tree lines and connectors */
        .footer-menu-item[data-level="1"]>.footer-menu-link::before {
            content: "├─";
            position: absolute;
            left: 0.5rem;
            color: #555;
            font-family: monospace;
        }

        .footer-menu-item[data-level="2"]>.footer-menu-link::before {
            content: "│  ├─";
            position: absolute;
            left: 1rem;
            color: #555;
            font-family: monospace;
        }

        .footer-menu-item[data-level="3"]>.footer-menu-link::before {
            content: "│  │  ├─";
            position: absolute;
            left: 1.5rem;
            color: #555;
            font-family: monospace;
        }

        /* Last child items */
        .footer-menu-item[data-level="1"]:last-child>.footer-menu-link::before {
            content: "└─";
        }

        .footer-menu-item[data-level="2"]:last-child>.footer-menu-link::before {
            content: "│  └─";
        }

        .footer-menu-item[data-level="3"]:last-child>.footer-menu-link::before {
            content: "│  │  └─";
        }

        /* Submenu styles */
        .footer-submenu {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        /* Search Section */
        .footer-search .footer-search-box {
            display: flex;
            background: #2a2a2a;
            border: 1px solid #444;
            border-radius: 4px;
            overflow: hidden;
        }

        .footer-search input {
            flex: 1;
            background: transparent;
            border: none;
            padding: 0.75rem;
            color: #fff;
            font-size: 0.9rem;
        }

        .footer-search input::placeholder {
            color: #888;
        }

        .footer-search input:focus {
            outline: none;
        }

        .footer-search button {
            background: transparent;
            border: none;
            padding: 0.75rem;
            color: #ccc;
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .footer-search button:hover {
            color: #fff;
        }

        /* Footer Bottom */
        .footer-bottom {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            background: rgba(0, 0, 0, 0.3);
            margin-left: -2rem;
            margin-right: -2rem;
            padding-left: 2rem;
            padding-right: 2rem;
            bottom: 0;
            width: 100%;
            position: absolute;
        }

        .footer-copyright {
            color: #888;
            font-size: 0.85rem;
            margin: 0;
        }

        .footer-social {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .footer-social a {
            color: #888;
            transition: color 0.2s ease;
        }

        .footer-social a:hover {
            color: #fff;
        }

        .footer-site-by {
            color: #888;
            font-size: 0.85rem;
        }

        .footer-site-by a {
            color: #ccc;
            text-decoration: none;
        }

        .footer-site-by a:hover {
            color: #fff;
        }

        /* Mobile Responsiveness */
        @media (max-width: 1024px) {
            .footer-container {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
            }

            .footer-menu-tree {
                columns: 1;
            }
        }

        @media (max-width: 768px) {
            .footer {
                padding: 2rem 0 1rem;
            }

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

            .footer-menu-section {
                text-align: left;
            }

            .footer-menu-tree {
                columns: 1;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
                margin-left: -1rem;
                margin-right: -1rem;
                padding-left: 1rem;
                padding-right: 1rem;
            }
        }

        /* Add some nice hover effects */
        .footer-menu-tree .footer-menu-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background: #555;
            transition: width 0.3s ease;
        }

        .footer-menu-tree .footer-menu-link:hover::after {
            width: 100%;
        }

        #footerContainer {
            background: url(https://new.datavault.dk/uploads/editor/footer-back_6856f9f7ca8c4_1750530551.webp);
            background-size: auto;
            background-size: cover;
            min-height: 900px;
            height: 900px;
        }

        /* ===================================
   ALTERNATING SECTIONS CSS - RESPONSIVE FRONTEND
   Enhanced responsive design with stacked columns
   =================================== */

/* Base alternating section styles */
.alternating-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 2rem;
}

/* Content wrapper */
.alternating-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

/* Layout container within sections - Desktop First */
.alternating-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

/* Column styling */
.alternating-column {
    min-height: 100px;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Dark theme sections */
.alternating-dark {
    background: radial-gradient(circle, rgb(12, 52, 73) 0%, rgb(1, 45, 67) 65%, rgb(0, 66, 101) 100%);
    color: white;
}

.alternating-dark-column {
    background: rgba(255, 255, 255, 0.05);
}

.alternating-dark-heading {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

.alternating-dark-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
}

/* Light theme sections */
.alternating-light {
    background: #ffffff;
    color: #1f2937;
}

.alternating-light-column {
    background: rgba(0, 0, 0, 0.02);
}

.alternating-light-heading {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.2;
}

.alternating-light-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1f2937;
}

/* Height variations */
.alternating-auto {
    min-height: 200px;
}

.alternating-medium {
    min-height: 400px;
}

.alternating-large {
    min-height: 600px;
}

.alternating-full {
    min-height: 100vh;
}

/* Texture overlay for dark sections */
.alternating-texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* Hover effects */
.alternating-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.alternating-dark:hover {
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* Typography inheritance */
.alternating-section h1,
.alternating-section h2,
.alternating-section h3,
.alternating-section h4,
.alternating-section h5,
.alternating-section h6 {
    color: inherit;
    margin-bottom: 1rem;
}

.alternating-section p {
    color: inherit;
    margin-bottom: 1rem;
}

.alternating-section a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.alternating-section a:hover {
    opacity: 0.8;
}

.alternating-dark a {
    color: #bfdbfe;
}

.alternating-light a {
    color: #3b82f6;
}

/* Button styling within sections */
.alternating-section button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
}

.alternating-section button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.alternating-light button {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.alternating-light button:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* Images within sections */
.alternating-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .alternating-section {
        padding: 4rem 3rem;
    }
    
    .alternating-layout {
        gap: 3rem;
    }
    
    .alternating-dark-heading,
    .alternating-light-heading {
        font-size: 2.5rem;
    }
    
    .alternating-dark-text,
    .alternating-light-text {
        font-size: 1.2rem;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .alternating-section {
        padding: 3rem 2rem;
    }
    
    .alternating-layout {
        gap: 2rem;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .alternating-section {
        padding: 2.5rem 1.5rem;
    }
    
    .alternating-layout {
        gap: 1.5rem;
    }
    
    .alternating-dark-heading,
    .alternating-light-heading {
        font-size: 1.75rem;
    }
    
    .alternating-dark-text,
    .alternating-light-text {
        font-size: 1rem;
    }
}

/* Tablet Portrait & Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    .alternating-section {
        padding: 2rem 1rem;
        /* Remove center alignment to allow natural content flow */
        align-items: stretch;
    }
    
    /* STACK COLUMNS VERTICALLY */
    .alternating-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .alternating-content {
        padding: 0 0.5rem;
    }
    
    .alternating-column {
        padding: 1.5rem;
        text-align: center;
    }
    
    .alternating-dark-heading,
    .alternating-light-heading {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .alternating-dark-text,
    .alternating-light-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Adjust height variations for mobile */
    .alternating-medium {
        min-height: 300px;
    }
    
    .alternating-large {
        min-height: 400px;
    }
    
    .alternating-full {
        min-height: 80vh;
    }
    
    /* Button adjustments for mobile */
    .alternating-section button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        width: auto;
        display: inline-block;
    }
     .nav-links .menu-item.has-submenu:hover>.submenu {
            transform: translateX(0) translateY(0) scale(1) !important;
        }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {
    .alternating-section {
        padding: 1.5rem 0.75rem;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .alternating-content {
        padding: 0 0.25rem;
    }
    
    .alternating-layout {
        gap: 1rem;
    }
    
    .alternating-column {
        padding: 1rem;
        min-height: 80px;
    }
    
    .alternating-dark-heading,
    .alternating-light-heading {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .alternating-dark-text,
    .alternating-light-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Further adjust height for very small screens */
    .alternating-auto {
        min-height: 150px;
    }
    
    .alternating-medium {
        min-height: 250px;
    }
    
    .alternating-large {
        min-height: 350px;
    }
    
    .alternating-full {
        min-height: 70vh;
    }
    
    /* Full-width buttons on very small screens */
    .alternating-section button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}

/* Extra Small Mobile (under 320px) */
@media (max-width: 319px) {
    .alternating-section {
        padding: 1rem 0.5rem;
    }
    
    .alternating-column {
        padding: 0.75rem;
    }
    
    .alternating-dark-heading,
    .alternating-light-heading {
        font-size: 1.1rem;
    }
    
    .alternating-dark-text,
    .alternating-light-text {
        font-size: 0.9rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Text alignment utilities */
.alternating-section .text-left { text-align: left; }
.alternating-section .text-center { text-align: center; }
.alternating-section .text-right { text-align: right; }

/* Mobile-specific text alignment */
@media (max-width: 767px) {
    .alternating-section .mobile-center { text-align: center; }
    .alternating-section .mobile-left { text-align: left; }
}

/* Spacing utilities */
.alternating-section .mb-0 { margin-bottom: 0; }
.alternating-section .mb-1 { margin-bottom: 0.25rem; }
.alternating-section .mb-2 { margin-bottom: 0.5rem; }
.alternating-section .mb-4 { margin-bottom: 1rem; }
.alternating-section .mb-8 { margin-bottom: 2rem; }

.alternating-section .mt-0 { margin-top: 0; }
.alternating-section .mt-1 { margin-top: 0.25rem; }
.alternating-section .mt-2 { margin-top: 0.5rem; }
.alternating-section .mt-4 { margin-top: 1rem; }
.alternating-section .mt-8 { margin-top: 2rem; }

/* Font weight utilities */
.alternating-section .font-light { font-weight: 300; }
.alternating-section .font-normal { font-weight: 400; }
.alternating-section .font-medium { font-weight: 500; }
.alternating-section .font-semibold { font-weight: 600; }
.alternating-section .font-bold { font-weight: 700; }

/* Font size utilities with responsive scaling */
.alternating-section .text-sm { font-size: 0.875rem; }
.alternating-section .text-base { font-size: 1rem; }
.alternating-section .text-lg { font-size: 1.125rem; }
.alternating-section .text-xl { font-size: 1.25rem; }
.alternating-section .text-2xl { font-size: 1.5rem; }
.alternating-section .text-3xl { font-size: 1.875rem; }
.alternating-section .text-4xl { font-size: 2.25rem; }

@media (max-width: 767px) {
    .alternating-section .text-xl { font-size: 1.125rem; }
    .alternating-section .text-2xl { font-size: 1.25rem; }
    .alternating-section .text-3xl { font-size: 1.5rem; }
    .alternating-section .text-4xl { font-size: 1.875rem; }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Focus states for better accessibility */
.alternating-section a:focus,
.alternating-section button:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .alternating-dark {
        background: #000000;
    }
    
    .alternating-light {
        background: #ffffff;
        border: 1px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .alternating-section {
        transition: none;
    }
    
    .alternating-section:hover {
        transform: none;
    }
    
    .alternating-column {
        transition: none;
    }
    
    .alternating-section button {
        transition: none;
    }
    
    .alternating-section button:hover {
        transform: none;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .alternating-section {
        width: 100%;
        margin-left: 0;
        padding: 1rem;
        page-break-inside: avoid;
        box-shadow: none;
        background: white !important;
        color: black !important;
    }
    
    .alternating-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .alternating-texture-overlay {
        display: none;
    }
    
    .alternating-section button {
        border: 1px solid black;
        background: white;
        color: black;
    }
}
/* Mobile Navigation Fixes */
@media (max-width: 768px) {
    /* Fix mobile menu toggle */
    .menu-toggle {
        display: block;
        color: white;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--menu-background);
        backdrop-filter: blur(10px);
        padding: 1rem;
        box-shadow: 0 2px 10px var(--shadow);
        gap: 1rem;
    }

    /* Show nav links when active */
    .nav-links.active {
        display: flex;
    }

    /* Fix nav link colors on mobile */
    .nav-links a {
        color: var(--text-light);
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links a:hover {
  color: var(--text-light);
}

    /* Last nav item shouldn't have border */
    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Dark theme nav adjustments */
    [data-theme="dark"] .nav-links {
        background: rgba(45, 45, 45, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Column Layout Mobile Fixes */
@media (max-width: 768px) {
    /* Ensure alternating sections work on mobile */
    .alternating-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Stack all multi-column layouts on mobile */
    .layout-container[data-columns="2"],
    .layout-container[data-columns="3"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduce padding on mobile */
    .layout-container {
        padding: 1rem !important;
    }
    
    /* Fix alternating section padding */
    .alternating-section {
        padding: 2rem 1rem !important;
    }
}

/* Submenu Mobile Fixes - DISABLED - using enhanced mobile menu styles instead */
@media (max-width: 768px) {
    .submenu {
        position: static;
        width: 100%;
        background: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    
    .submenu.open {
        display: block;
    }
}
/* Contact form container */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #1e1e1e;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Form heading */
.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
}

/* Input and textarea fields */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #444444;
    border-radius: 4px;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder text */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaaaaa;
    opacity: 1;
}

/* Focus state for inputs and textarea */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Textarea specific styles */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button */
.contact-form button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Button hover state */
.contact-form button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Button active state */
.contact-form button:active {
    transform: translateY(0);
}

/* Form states */
.contact-form.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form.form-loading button {
    background: #6c757d;
    cursor: not-allowed;
}

.contact-form.form-success input,
.contact-form.form-success textarea {
    border-color: #28a745;
}

.contact-form.form-error input,
.contact-form.form-error textarea {
    border-color: #dc3545;
}

/* Form messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button disabled state */
.contact-form button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.contact-form button:disabled:hover {
    background: #6c757d;
    transform: none;
}

/* Loading animation for button */
.contact-form.form-loading button::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h3 {
        font-size: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    .contact-form button {
        font-size: 0.95rem;
    }

    .form-message {
        font-size: 0.9rem;
    }
}

/* ===== NEWS TIMELINE COMPONENT ===== */
.news-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.news-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--card-background);
    border-radius: 50%;
    top: 1rem;
    left: 50%;
    margin-left: -10px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    position: relative;
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45%;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-date {
    position: absolute;
    top: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    background: var(--card-background);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--primary);
    white-space: nowrap;
    z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -4rem;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -4rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.timeline-content p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.timeline-content .read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.timeline-content .read-more:hover {
    color: var(--secondary);
}

.timeline-content .read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.timeline-content:hover .read-more::after {
    transform: translateX(4px);
}

.timeline-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.timeline-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-category.press {
    background: var(--secondary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .news-timeline::before {
        left: 2rem;
    }
    
    .timeline-item::before {
        left: 2rem;
        margin-left: -10px;
    }
    
    .timeline-content {
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
    }
    
    .timeline-date {
        position: relative;
        left: auto !important;
        right: auto !important;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: auto;
        right: auto;
        position: relative;
    }
}

@media (max-width: 480px) {
    .news-timeline {
        padding: 1rem 0;
    }
    
    .timeline-content {
        padding: 1rem;
        width: calc(100% - 3rem);
        margin-left: 3rem !important;
    }
    
    .news-timeline::before {
        left: 1.5rem;
    }
    
    .timeline-item::before {
        left: 1.5rem;
    }
    
    .timeline-image {
        height: 150px;
    }
}

/* Loading animation */
.timeline-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.timeline-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.timeline-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.timeline-empty h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

/* Timeline section wrapper */
.timeline-section {
    margin: 2rem 0;
}

.timeline-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
    font-size: 2rem;
    font-weight: 600;
}

/* ===== ARTICLE PAGE STYLES ===== */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-category.press {
    background: var(--secondary);
}

.article-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-date {
    font-weight: 500;
}

.article-author {
    color: var(--primary);
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-content {
    line-height: 1.8;
    color: var(--text);
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-footer a:hover {
    color: var(--secondary);
}

.error-page {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-page a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.error-page a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .article-page {
        padding: 1rem;
    }
    
    .article-page h1 {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-featured-image {
        height: 250px;
    }
}
    
