/* 
=======================================
   NexTech Mobile - Premium Tech Theme
======================================= 
*/

:root {
    /* Color Palette */
    --color-bg-main: #0a0a0c;     /* Deep Charcoal Black */
    --color-bg-darker: #050506;   /* Darker Shade */
    --color-bg-card: #141418;     /* Surface Color */
    
    --color-text-main: #f0f0f5;   /* Light Silver for readability */
    --color-text-muted: #a0a0b0;  /* Muted Metallic Gray */
    
    --color-accent: #00E5FF;      /* Electric Blue Glow */
    --color-accent-dark: #0088aa;
    
    --color-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 6rem 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ====================================
   Reset & Base Styles
==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll issues */
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

/* ====================================
   Layout Utilities
==================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.section-header {
    margin-bottom: 4rem;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-accent);
    transition: var(--transition-base);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: var(--color-bg-main);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* ====================================
   Header & Navigation
==================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 12, 0.85); /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px; /* Scale down proportionally for header */
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 36px; /* Smaller logo on mobile */
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.btn-contact {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    border-color: var(--color-accent);
    background: rgba(0, 229, 255, 0.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-text-main);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ====================================
   Parallax Utilities
==================================== */
/* We'll use CSS based parallax strictly where it doesn't cause lag */
.section-parallax {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Provide min height for sections */
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Taller than container for scroll room */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    /* Will be managed by JS on desktop, fixed on mobile */
    will-change: transform;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(10, 10, 12, 0.3) 0%,
        rgba(10, 10, 12, 0.8) 50%,
        rgba(10, 10, 12, 1) 100%
    );
}

/* ====================================
   Hero Section
==================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    padding-top: 80px; /* offset header */
}

.hero-bg {
    background-image: url('images/hero.png');
    height: 120vh; /* Extra height for parallax */
    top: -10vh; /* Start slightly higher */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.scroll-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

/* ====================================
   About Section
==================================== */
.about {
    position: relative;
    z-index: 10;
    background: var(--color-bg-main); /* Ensure content hides parallax behind */
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quality-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.badge-icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.image-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-main);
    z-index: 2;
    transform-origin: right;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.about.is-visible .image-reveal {
    transform: scaleX(0);
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: contrast(1.1) brightness(0.9);
    transition: transform 0.8s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0,229,255,0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* ====================================
   Services Section
==================================== */
.services {
    position: relative;
    z-index: 10;
}

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

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-icon {
    width: 50px;
    height: 50px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-desc {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, rgba(0,0,0,0) 70%);
    transform: translate(30%, -30%);
    z-index: -1;
    transition: var(--transition-base);
}

.service-card:hover .card-glow {
    background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, rgba(0,0,0,0) 70%);
    transform: translate(20%, -20%) scale(1.2);
}

/* ====================================
   Quality Promise (Parallax Divider)
==================================== */
.promise {
    height: 60vh;
    min-height: 400px;
}

.promise-bg {
    /* We'll use a CSS gradient as a placeholder, or dark texture */
    background: linear-gradient(45deg, #050506, #141418);
    background-image: radial-gradient(circle at center, #1a1a24 0%, #050506 100%);
    height: 120vh;
}

.promise-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.promise-item {
    text-align: center;
}

.promise-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.promise-item:hover .promise-icon-wrap {
    transform: scale(1.1);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.promise-icon-wrap svg {
    width: 40px;
    height: 40px;
}

/* ====================================
   Testimonials
==================================== */
.testimonials {
    background: var(--color-bg-main);
    position: relative;
    z-index: 10;
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-track {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    pointer-events: none;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: var(--color-accent);
    line-height: 1;
    font-family: serif;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 2rem;
}

.client-info h5 {
    margin-bottom: 0.2rem;
    color: var(--color-accent);
}

.client-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: var(--transition-base);
}

.dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

/* ====================================
   Footer / Contact
==================================== */
.footer {
    background: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    padding-top: 4rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-desc {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--color-accent);
    color: var(--color-bg-main);
    transform: translateY(-3px);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.btn-whatsapp:hover {
    background: #20BA56;
    transform: translateY(-2px);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(85%);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ====================================
   Animations
==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollDown {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* ====================================
   Responsive Design
==================================== */
@media (max-width: 992px) {
    .about-container,
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .promise-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-bg-card);
        padding: 80px 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid var(--color-border);
    }
    
    .nav.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .btn-contact {
        margin-top: 1rem;
        display: inline-block;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1; /* Image on top for mobile */
    }

    .promise-grid {
        grid-template-columns: 1fr;
    }
    
    .promise-item {
        background: rgba(255,255,255,0.02);
        padding: 2rem;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.05);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .map-container {
        height: 300px;
    }

    /* Mobile Parallax Adjustments (Crucial constraint: prevent scroll breaking) */
    .parallax-bg {
        /* Use standard fixed background on mobile for performance */
        background-attachment: scroll; /* We disable JS translation and CSS fixed on tiny mobile to save battery unless requested */
        will-change: auto;
    }
}

/* Specialized hardware accelerated fix for Safari/iOS pseudo parallax */
@supports (-webkit-touch-callout: none) {
    .parallax-bg {
        background-attachment: scroll; 
    }
}

/* ====================================
   Deal of the Day Section
==================================== */
.deal-of-the-day {
    position: relative;
    z-index: 10;
    background: var(--color-bg-main);
}

.deal-wrapper {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.05), inset 0 0 20px rgba(0, 229, 255, 0.02);
    overflow: hidden;
}

.deal-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.deal-image-col {
    flex: 1;
    z-index: 1;
    position: relative;
}

.deal-image-col img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    transform: translateY(0);
    animation: floatImage 6s ease-in-out infinite;
    max-height: 400px;
    object-fit: contain;
}

.deal-content-col {
    flex: 1;
    z-index: 1;
}

.urgent-desc {
    color: var(--color-text-main);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.spec-table th, .spec-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

.spec-table th {
    color: var(--color-text-muted);
    font-weight: 400;
    width: 40%;
}

.spec-table td {
    font-weight: 500;
}

.price-highlight {
    font-size: 1.25rem;
}

.price-highlight del {
    color: var(--color-text-muted);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.price-highlight strong {
    color: var(--color-accent);
    font-size: 1.5rem;
}

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ====================================
   Top Deals Slider Section (Netflix Style)
==================================== */
.top-deals {
    position: relative;
    z-index: 10;
    overflow: hidden; /* Hide horizontal scrollbar on section level */
}

/* Container needs padding right to allow last card to be scrolled fully but stay aligned */
.netflix-slider-container {
    padding-left: max(1.5rem, calc((100% - var(--container-width)) / 2 + 1.5rem));
    padding-right: 1.5rem;
    padding-bottom: 3rem; /* Provide space for shadow */
}

.netflix-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.netflix-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.slider-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--color-border);
    position: relative;
}

.slider-card:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    border-color: rgba(0,229,255,0.3);
    z-index: 2;
}

.card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider-card:hover .card-img-wrap img {
    transform: scale(1.08); /* slight zoom */
}

.card-info {
    padding: 1.5rem;
}

.card-info h4 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.btn-details {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-main);
    border-radius: 50px; /* pill shape */
    font-size: 0.95rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.slider-card:hover .btn-details {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ====================================
   Product Modal
==================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5,5,6,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--color-bg-card);
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    border: 1px solid rgba(0,229,255,0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,229,255,0.1);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.close-modal:hover {
    color: var(--color-accent);
}

.modal-body {
    padding: 2.5rem;
}

.modal-body h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    padding-right: 2rem;
    font-size: 1.8rem;
}

.modal-body p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.modal-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-spec-table th, .modal-spec-table td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-spec-table tr:first-child th,
.modal-spec-table tr:first-child td {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.modal-spec-table th {
    background: rgba(255,255,255,0.01);
    color: var(--color-text-muted);
    font-weight: 500;
    width: 40%;
    text-align: left;
}

@media (max-width: 768px) {
    .deal-wrapper {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .netflix-slider-container {
        padding-left: 1.5rem;
    }
    
    .slider-card {
        flex: 0 0 85%; /* slightly more than full width on small screens to hint scroll */
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body h3 {
        font-size: 1.5rem;
    }
    
    .spec-table th, .modal-spec-table th {
        width: 45%;
    }
}
