:root {
    --color-primary: #9c27b0;
    --color-light: #F0F0F0;
    --color-dark: #111111;
    --color-black: #000000;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-black);
    color: var(--color-light);
    font-family: var(--font-sans);
    line-height: 1.6;
}

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

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

p {
    margin-bottom: 1rem;
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

/* --- Layout Containers --- */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.specs-container {
    max-width: 896px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.cta-container {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

.subtitle {
    display: block;
    font-family: var(--font-sans);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.125rem;
}

.battery-tagline {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 700;
    border-radius: 0.375rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    box-shadow: 0 0 15px 3px var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

/* Button Loading State (For JS) */
.btn.loading {
    cursor: wait;
    opacity: 0.7;
    pointer-events: none;
}


/* --- Header --- */
.sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--color-black);
    transition: box-shadow 0.3s;
}

.sticky-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: none;
}

.nav-links a {
    font-family: var(--font-sans);
    color: var(--color-light);
    transition: color 0.3s;
}

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

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-black);
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 1rem;
    width: 100%;
}

/* --- Feature Section Base --- */
.feature-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

/* --- Section-Specific Backgrounds --- */
#camera,
#battery,
#specs {
    background-color: var(--color-dark);
}

#performance {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(bg\ wednesday\ 1.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#design {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(window\ bg.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#cta {
    background-color: var(--color-black);
}


/* --- Grids & Layouts --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

#design h2 {
    margin-bottom: 4rem;
}

.image-stack {
    display: grid;
    gap: 2rem;
}

.image-stack img,
.performance-grid img,
#battery img,
.grid-3-col img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.grid-3-col img {
    margin-bottom: 1.5rem;
}

.grid-3-col p {
    margin-top: 0.5rem;
}

/* --- Tech Specs Section --- */
#specs h2 {
    margin-bottom: 4rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 3rem;
    font-size: 1.125rem;
    color: var(--color-light);
}

.spec-item {
    border-bottom: 1px solid #4a5568;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
}

.spec-item span:first-child {
    font-weight: 600;
    color: #a0aec0;
}

.spec-item span:last-child {
    color: #fff;
}

/* --- CTA Section --- */
.cta-image {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto 3rem auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#cta h2 {
    margin-bottom: 1.5rem;
}

#cta p {
    margin-bottom: 2.5rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-black);
    padding: 3rem 0;
    border-top: 2px solid var(--color-dark);
}

.footer-content {
    color: #718096;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    color: #718096;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #fff;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-links a {
    transition: color 0.3s;
}

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

.copyright {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    margin: 0;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.1s;
}

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

.header-scrolled {
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.2);
}

.hero-content {
    min-height: 450px;
}

.main-box {
    transition: box-shadow 300ms ease-in-out;
    background: rgba(30, 30, 30, 0.514);
    border-radius: 10px;
    width: 80%;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    padding-bottom: 50px;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 2rem;
}

.hero-product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

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

.hero-product-slide img {
    max-height: 450px;
    width: auto;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Slider Navigation Buttons (Prev/Next) */
.hero-slider-btn {
    position: absolute;
    top: 57%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.hero-slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.thing-error {
    height: 40px;
    width: 30px;
}

/* --- Slider Button Responsive Positioning --- */
/* 1. Mobile View (Default) */
@media (max-width: 426px) {
    .hero-slider-btn {
        top: 90%;
    }

}

@media (max-width: 320px) {
    .thing-error {
        height: 20px;
        width: 10px;
    }
}

.hero-prev-btn {
    left: 15px;
}

.hero-next-btn {
    right: 15px;
}

/* 2. Tablet View (768px se upar) */
@media (min-width: 768px) {
    .hero-slider-btn {
        top: 50%;
    }

    .hero-prev-btn {
        left: 50px;
    }

    .hero-next-btn {
        right: 50px;
    }
}

/* 3. Desktop View (1280px se upar) */
@media (min-width: 1280px) {
    .hero-prev-btn {
        left: 170px;
    }

    .hero-next-btn {
        right: 170px;
    }
}

/* Slider Dots */
.hero-slider-dots {
    display: flex;
    gap: 12px;
    z-index: 10;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-slider-dots span {
    width: 10px;
    height: 10px;
    background-color: #555;
    border-radius: 50%;
    cursor: pointer;
}

.hero-slider-dots span.active {
    background-color: var(--color-primary);
    box-shadow: 0px 0px 2px 1px var(--color-primary);
}


/* --- Key Features Section --- */
.key-features-section {
    min-height: 16vh;
    background-color: #0a0a0a;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;

    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0px 0px 10px 10px;
}

.key-features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.key-feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.key-icon-circle {
    width: 60px;
    height: 60px;
    border: 2px solid #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.key-feature-item:hover .key-icon-circle {
    border-color: var(--color-primary);
    background-color: #222;
}

.key-feature-item i {
    font-size: 24px;
    color: #f0f0f0;
}

.key-feature-item p {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 0;
}

/* --- Modal Overlay (Background) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- Modal Content (Box) --- */
.modal-content {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #444;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    /* Mobile ke liye */
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.modal-content p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-light);
    margin-bottom: 2rem;
}

/* --- Form Elements --- */
#preorder-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#modal-email-input {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 12px 15px;
    border-radius: 6px;
    border: 2px solid #444;
    background-color: #222;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

#modal-email-input:focus {
    border-color: var(--color-primary);
}

#modal-submit-btn {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* --- Modal Close Button (X) --- */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

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

#modal-success-content p {
    margin-bottom: 0;
}


/* --- Responsive (Desktop) Styles --- */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    h1 {
        font-size: 8rem;
    }

    h2 {
        font-size: 4.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .feature-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .grid-2-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .performance-grid .reveal:first-child {
        order: 1;
    }

    .performance-grid .reveal:last-child {
        order: 2;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}