:root {
    --bg-dark: #0a0b12;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #00ff66; /* Brightened for neon effect */
    --primary-glow: #00ff66;
    --accent: #15803d;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 4px #fff,
            0 0 11px var(--primary),
            0 0 19px var(--primary),
            0 0 40px var(--primary);
        opacity: 1;
    }
    20%, 24%, 55% {        
        text-shadow: none;
        opacity: 0.5;
    }
}

@keyframes box-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        box-shadow: 
            0 0 5px #fff,
            0 0 10px var(--primary),
            0 0 20px var(--primary);
        background: var(--primary);
    }
    20%, 24%, 55% {        
        box-shadow: none;
        background: rgba(0, 255, 102, 0.2);
    }
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 11, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Reset to standard height */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

/* Neon Reflection under the logo */
.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 5px;
    width: 50px;
    height: 4px;
    background: var(--primary);
    filter: blur(8px);
    opacity: 0.3;
    border-radius: 50%;
    animation: neon-reflection 3s infinite alternate;
    pointer-events: none;
}

@keyframes neon-reflection {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 0.4; }
    20%, 24%, 55% { opacity: 0.1; }
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #1d1d1b;
    border-top-left-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.white-gap {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-top-left-radius: 8px;
}

.green-square-inner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-top-left-radius: 5px;
    animation: box-flicker 3s infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px; /* Matching nav link font size */
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    display: flex;
    gap: 4px;
}

.brand-name span {
    color: var(--primary);
    animation: neon-flicker 3s infinite;
}

.logo-subtitle {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.menu-btn {
    display: none;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: var(--bg-dark);
}

/* Background Slider */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 11, 18, 0.7), rgba(10, 11, 18, 0.8));
    z-index: 2;
}

.hero-inner-container {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2.5rem 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 128, 55, 0.1); /* Subtle green accent */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

/* Categories Section */
.category-card {
    position: relative;
    overflow: hidden;
    height: 350px; /* Standardized height for better aspect ratio */
    border-radius: 20px;
    background: #000;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensuring all cards look full and consistent */
    object-position: center;
    transition: var(--transition);
    opacity: 0.8; /* Higher visibility for user's real photos */
}

.category-card:hover .category-img {
    transform: scale(1.1);
    opacity: 0.3;
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

/* Contact Info */
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.contact-details {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

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

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

/* Brands Section */
.brands-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.brand-item {
    height: 120px;
    background-color: #ffffff;
    background-size: 200% 200%;
    border-radius: 12px;
    opacity: 0.8;
    transition: var(--transition);
    cursor: default;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-repeat: no-repeat;
    filter: grayscale(1);
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,128,55,0.4);
}

/* Batch 1: RECBER, HES KABLO, SCHNEIDER, SIEMENS */
.b1-tl { background-image: url('assets/ref_logos_1.png'); background-position: 0% 0%; }
.b1-tr { background-image: url('assets/ref_logos_1.png'); background-position: 100% 0%; }
.b1-bl { background-image: url('assets/ref_logos_1.png'); background-position: 0% 100%; }
.b1-br { background-image: url('assets/ref_logos_1.png'); background-position: 100% 100%; }

/* Batch 2: VIKO, OZNUR KABLO, DURACELL, BORSAN */
.b2-tl { background-image: url('assets/ref_logos_2.png'); background-position: 0% 0%; }
.b2-tr { background-image: url('assets/ref_logos_2.png'); background-position: 100% 0%; }
.b2-bl { background-image: url('assets/ref_logos_2.png'); background-position: 0% 100%; }
.b2-br { background-image: url('assets/ref_logos_2.png'); background-position: 100% 100%; }

/* Batch 3: ERKAKAL, GUNSAN, IZELTAS, VARTA */
.b3-tl { background-image: url('assets/ref_logos_3.png'); background-position: 0% 0%; }
.b3-tr { background-image: url('assets/ref_logos_3.png'); background-position: 100% 0%; }
.b3-bl { background-image: url('assets/ref_logos_3.png'); background-position: 0% 100%; }
.b3-br { background-image: url('assets/ref_logos_3.png'); background-position: 100% 100%; }

/* Logo Slider Section */
.logo-slider {
    padding: 3rem 0;
    background: rgba(255,255,255,0.03);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.slider-track {
    display: flex;
    width: calc(220px * 24); /* 12 logos duplicated */
    animation: scroll 30s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slide {
    width: 140px;
    height: 50px;
    margin: 0 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-size: 200% 200%;
    border-radius: 8px;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
    filter: grayscale(1) brightness(1.2);
}

.slide:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.9);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-220px * 12)); }
}

/* Reusing sprite classes for slider slides */
.s-tl { background-position: 0% 0%; }
.s-tr { background-position: 100% 0%; }
.s-bl { background-position: 0% 100%; }
.s-br { background-position: 100% 100%; }

.s1 { background-image: url('assets/ref_logos_1.png'); }
.s2 { background-image: url('assets/ref_logos_2.png'); }
.s3 { background-image: url('assets/ref_logos_3.png'); }

/* Ad Slider Section */
.ad-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.ad-slider {
    position: relative;
    height: 450px;
    display: flex;
}

.ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.ad-slide.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem;
    background: linear-gradient(to top, rgba(10,11,18,0.95), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.ad-slide.active .ad-overlay {
    transform: translateY(0);
    opacity: 1;
}

.ad-badge {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.ad-overlay h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.ad-overlay p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

.btn-outline {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.ad-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(10, 11, 18, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-nav-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-50%) scale(1.1);
}

.ad-nav-btn.prev { left: 20px; }
.ad-nav-btn.next { right: 20px; }

.ad-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Price List Section */
.price-link-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.price-link-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.1);
}

.price-link-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.price-link-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.brand-logo {
    width: 100px;
    height: 60px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-size: 200% 200%;
    background-repeat: no-repeat;
    filter: grayscale(0.5);
    transition: var(--transition);
}

.price-link-card:hover .brand-logo {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Reusing sprite sections for price list logos */
.brand-logo.schneider { background-image: url('assets/ref_logos_1.png'); background-position: 0% 100%; }
.brand-logo.siemens { background-image: url('assets/ref_logos_1.png'); background-position: 100% 100%; }
.brand-logo.viko { background-image: url('assets/ref_logos_2.png'); background-position: 0% 0%; }
.brand-logo.hes { background-image: url('assets/ref_logos_1.png'); background-position: 100% 0%; }
.brand-logo.gunsan { background-image: url('assets/ref_logos_3.png'); background-position: 100% 0%; }

.download-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: auto;
}

.download-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.download-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero-content h1 { font-size: 2.5rem; }
    
    .menu-btn {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }
}
