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

:root {
    --black: #000000;
    --black-2: #0a0a0a;
    --black-3: #111111;
    --dark: #1a1a1a;
    --dark-2: #222222;
    --dark-3: #2a2a2a;
    --silver: #C0C0C0;
    --silver-light: #E0E0E0;
    --silver-dark: #888888;
    --white: #FFFFFF;
    --gray-text: #999999;
    --gray-light: #444444;
    --accent: #4A90D9;
    --accent-hover: #5BA0E9;
    --accent-glow: rgba(74,144,217,0.3);
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--black-2);
    color: var(--white);
    overflow-x: hidden;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    height: 42px;
    width: auto;
}

.logo-s {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-lenovo {
    display: block;
    font-size: 0.65rem;
    color: var(--silver-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--silver-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }

.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--silver-light);
    transition: color 0.3s;
}

.cart-icon:hover { color: var(--white); }

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 40%, #0f0f1a 70%, #050510 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,217,0.08), transparent 70%);
    top: -300px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,192,192,0.05), transparent 70%);
    bottom: -150px;
    left: -150px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.highlight {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.hero-device {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-slides {
    position: relative;
    height: 360px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--silver-light);
    background: rgba(0,0,0,0.6);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
    border: 1px solid var(--dark-3);
}

.hero-img {
    width: 80%;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px var(--accent-glow);
    border: 1px solid var(--dark-3);
    animation: float 4s ease-in-out infinite;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26,26,26,0.8);
    border: 1px solid var(--dark-3);
    color: var(--silver-light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.carousel-arrow:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-3);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

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

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

/* ENTRANCE ANIMATIONS */
.anim-item {
    opacity: 0;
    animation-fill-mode: forwards;
}

.anim-fade-up {
    animation-name: fadeUp;
    animation-duration: 0.9s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-fade-right {
    animation-name: fadeRight;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-fade-left {
    animation-name: fadeLeft;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}

.laptop-hero {
    width: 380px;
}

.laptop-screen {
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    border-radius: 12px 12px 0 0;
    padding: 12px;
    aspect-ratio: 16/10;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
    border: 2px solid var(--dark-3);
    border-bottom: none;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #050510, #0a0a1a);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.screen-glow {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(74,144,217,0.3), transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
}

.laptop-base {
    height: 16px;
    background: linear-gradient(180deg, var(--dark-3), var(--dark));
    border-radius: 0 0 8px 8px;
    position: relative;
}

.laptop-base::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--dark-3);
    border-radius: 0 0 4px 4px;
}

/* PRODUCTS */
.products {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.section-header p {
    color: var(--gray-text);
    font-size: 1.05rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--dark-3);
    border-radius: 50px;
    background: transparent;
    color: var(--silver-light);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

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

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--dark-3);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.product-card.hidden {
    display: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image .laptop-icon {
    width: 160px;
    height: auto;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: opacity 0.3s ease;
}

.img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--dark-3);
    color: var(--silver-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    z-index: 5;
    font-family: inherit;
}

.img-arrow:hover {
    background: var(--accent);
    color: white;
}

.img-prev { left: 8px; }
.img-next { right: 8px; }

.product-gallery {
    display: flex;
    gap: 8px;
    padding: 0 20px 4px;
}

.gallery-thumb {
    flex: 1;
    height: 56px;
    border: 2px solid var(--dark-3);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--black-3);
    transition: border-color 0.3s, transform 0.3s;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.modal-product-image .product-main-img {
    padding: 16px;
}

.modal-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: -12px auto 20px;
    max-width: 320px;
}

.modal-gallery .gallery-thumb {
    height: 64px;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-gaming { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; }
.badge-pro { background: var(--accent); color: white; }
.badge-ultra { background: linear-gradient(135deg, #555, #333); color: var(--silver-light); }

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
}

.product-subname {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-bottom: 14px;
}

.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--gray-text);
}

.spec svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--accent);
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--dark-3);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.btn-add {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ABOUT */
.about {
    padding: 100px 24px;
    background: linear-gradient(135deg, #000, #0a0a0a);
    color: white;
    text-align: center;
    border-top: 1px solid var(--dark-3);
    border-bottom: 1px solid var(--dark-3);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 48px;
    color: var(--gray-text);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 4px;
    color: var(--silver-light);
}

/* CONTACT */
.contact {
    padding: 100px 24px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--white);
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input, textarea {
    padding: 14px 20px;
    border: 2px solid var(--dark-3);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    outline: none;
    background: var(--dark);
    color: var(--white);
}

input::placeholder, textarea::placeholder {
    color: var(--gray-text);
}

input:focus, textarea:focus {
    border-color: var(--accent);
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--dark);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: modalIn 0.3s ease;
    border: 1px solid var(--dark-3);
}

@keyframes modalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-text);
    transition: color 0.3s;
}

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

.modal-product-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-3);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--dark-3);
    position: relative;
}

.modal-product-image svg { width: 200px; }

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 4px;
    color: var(--white);
}

.modal-subtitle {
    color: var(--gray-text);
    margin-bottom: 20px;
}

.modal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-spec {
    padding: 12px 16px;
    background: var(--black-3);
    border-radius: 10px;
    border: 1px solid var(--dark-3);
}

.modal-spec-label {
    font-size: 0.75rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 2px;
    color: var(--silver-light);
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

.modal .btn-primary { width: 100%; text-align: center; }

/* CART */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
}

.cart-overlay.active { display: block; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--dark);
    box-shadow: -8px 0 32px rgba(0,0,0,0.5);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    z-index: 3001;
    border-left: 1px solid var(--dark-3);
}

.cart-overlay.active .cart-sidebar { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cart-header h3 { font-size: 1.3rem; color: var(--white); }

.cart-header button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-text);
}

.cart-header button:hover { color: var(--white); }

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-3);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--white);
}

.cart-item-price {
    color: var(--accent);
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cart-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--dark-3);
    background: var(--black-3);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver-light);
    transition: border-color 0.3s;
}

.cart-item-qty button:hover {
    border-color: var(--accent);
}

.cart-item-qty span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: var(--white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 16px 0;
    border-top: 2px solid var(--dark-3);
    margin-top: auto;
    color: var(--white);
}

.cart-total span:last-child {
    color: var(--accent);
}

#checkoutBtn {
    width: 100%;
    margin-top: 12px;
}

/* FOOTER */
footer {
    background: var(--black);
    color: white;
    padding: 60px 24px 0;
    border-top: 1px solid var(--dark-3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo-s {
    font-size: 1.4rem;
}

.footer-brand .logo-img {
    height: 48px;
}

.footer-brand p {
    color: var(--gray-text);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--silver-light);
}

.footer-links a {
    display: block;
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid var(--dark-3);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* NOTIFICATION */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark-2);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 5000;
    border: 1px solid var(--dark-3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

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

    .hero-slides {
        height: 240px;
    }

    .hero-img { width: 70%; }

    .nav-links { display: none; }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .stats { gap: 30px; }

    .cart-sidebar { width: 100%; }
}
