@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #ffffff;
    /* White bg */
    --accent-color: #FFD700;
    /* Golden Yellow */
    --text-color: #333333;
    /* Dark Grey text */
    --secondary-color: #f5f5f5;
    /* Light Grey bg */
    --dark-bg: #111;
    --border-color: #e5e5e5;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    background: #020617;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

/* --- Header & Nav --- */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    /* Not fixed for this design usually, but let's keep sticky if preferred or relative */
    z-index: 1000;
}

.top-bar {
    background: var(--accent-color);
    padding: 0.5rem 5%;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    display: flex;
    justify-content: space-between;
}

.main-header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-bar {
    padding: 0 5%;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-start;
    /* Align items to the start */
    gap: 0;
    /* Remove gap here, control via elements */
    align-items: center;
}

.catalog-btn {
    background: var(--accent-color);
    color: #000;
    padding: 0 2rem;
    /* Vertical padding handled by height/flex */
    height: 60px;
    /* Fixed height matching nav items roughly */
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
    /* Gap between catalog and links */
}

.nav-links {
    display: flex;
    gap: 0;
    /* Removing general gap, applying to items */
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    /* Horizontal spacing for links */
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: var(--transition);
    /* Remove padding here as it's handled by .nav-item for hit area */
}

.nav-link:hover {
    color: #000;
    border-bottom: 2px solid var(--accent-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
    min-width: 250px;
    display: none;
    flex-direction: column;
    z-index: 1100;
    list-style: none;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.dropdown-menu li a:hover {
    background: #f9f9f9;
    color: #000;
    /* Remove slide padding */
    padding-left: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Circle Indicator inside the item on hover */
.dropdown-menu li a:hover::before {
    content: '○';
    /* Circle unicode or similar */
    margin-right: 8px;
    font-size: 0.8em;
    color: var(--accent-color);
    font-weight: bold;
}

/* Show dropdown on hover */
.nav-item:hover .dropdown-menu {
    display: flex;
    animation: slideDown 0.3s ease;
}

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

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

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero {
    padding: 6rem 5%;
    background: url('/static/images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    min-height: 80vh;
    /* Increased height for impact */
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    text-align: left;
    position: relative;
    z-index: 2;
    /* Bring text above overlay */
}

.hero .breadcrumbs {
    color: #cbd5e1;
    /* Light grey */
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    /* Larger Title */
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-divider {
    width: 100px;
    height: 5px;
    background: var(--accent-color);
    margin-bottom: 2rem;
}

.hero p {
    color: #e2e8f0;
    /* Very light grey/white */
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Removed old hero-image class as it's now background */

/* Old style removal/overrides */
.hero-main-text,
.hero-sub-text,
.floating-widget {
    display: none;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid transparent;
    animation: slideUp 1.2s ease-out;
}

.cta-button:hover {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* --- Products Grid --- */
.section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

/* --- Card Styles Redone --- */
.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Sharper corners like reference */
    padding: 0;
    box-shadow: none;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #666;
}

/* --- Clients Marquee --- */
.clients-section {
    background: #0b1120;
    overflow: hidden;
    padding: 3rem 0;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    animation: marquee 20s linear infinite;
}

.client-logo {
    height: 60px;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

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

/* --- Product Detail Specific --- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.detail-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.feature-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Top Bar - Stack or simplify */
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.75rem 5%;
    }

    .top-links {
        flex-direction: row;
        justify-content: center;
        gap: 1rem !important;
    }

    /* Main Header - Stack vertically */
    .main-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
        position: relative;
    }

    /* Hide contact info in header on mobile (keep in footer) */
    .main-header>div:last-child {
        display: none !important;
    }

    .main-header>div[style*="display: flex"] {
        display: none !important;
    }

    /* Logo - Smaller on mobile */
    .logo {
        font-size: 1.2rem;
        justify-content: center;
    }

    .logo img {
        height: 50px !important;
    }

    .logo>div {
        font-size: 0.9rem;
    }

    .logo span {
        font-size: 0.9rem !important;
    }

    /* Show Hamburger Menu */
    .hamburger {
        display: flex !important;
        position: absolute;
        top: 1.5rem;
        right: 5%;
        z-index: 1001;
    }

    /* Navigation Bar - Mobile Menu */
    .nav-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: none;
    }

    .nav-bar.active {
        max-height: 600px;
        border-bottom: 1px solid var(--border-color);
    }

    .catalog-btn {
        margin: 0;
        border-radius: 0;
        justify-content: center;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Dropdown on Mobile - Accordion Style */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        min-width: 100%;
    }

    .nav-item:hover .dropdown-menu {
        display: none;
        /* Disable hover on mobile */
    }

    .nav-item.active .dropdown-menu {
        display: flex;
    }

    /* Hero Section */
    .hero {
        min-height: 60vh;
        padding: 3rem 5%;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero p {
        font-size: 1rem;
    }

    /* Grid Layouts - Single Column */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Section Padding */
    .section {
        padding: 3rem 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Product Detail - Stack */
    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    /* About Page - Stack Image */
    .about-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stats Section - Single Column */
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer - Better Stacking */
    footer>div:first-child {
        flex-direction: column !important;
        gap: 2rem;
    }

    /* Card Images */
    .card-image {
        height: 180px;
    }

    /* Buttons */
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-header {
        padding: 1rem 3%;
    }

    .nav-bar {
        padding: 0 3%;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

    .section {
        padding: 4rem 3%;
    }
}