/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --keyboard-color: #E2231A;
    --mouse-color: #E2231A;
     --primary-color: #3e76af;
    --secondary-color: #3498DB;
    --accent-color: #FF6B6B;
    --light-color: #ECF0F1;
    --dark-color: #2C3E50;
    --text-color: #333;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(to right, #0575E6, #021B79);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: #E5E7EB;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #FFD700;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Lucky Image */
.lucky {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.lucky img {
    height: 30px;
    width: 30px;
    margin: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    width: 32px;
    height: 3px;
    background: white;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.1s 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.hamburger.active {
    background: transparent;
}

.hamburger.active::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.active::after {
    top: 0;
    transform: rotate(-45deg);
}

/* =========================================== */
/* RESPONSIVE NAVIGATION */
/* =========================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-container {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: -300px;
        flex-direction: column;
        background: linear-gradient(135deg, #33529D 0%, #2a5298 100%);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 1rem 0;
        border-radius: 0 0 15px 15px;
        z-index: 999;
        margin: 0 20px;
        width: calc(100% - 40px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }

    .nav-menu.active {
        top: 70px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a {
        margin: 0;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        display: block;
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }

    .nav-menu a:last-child {
        border-bottom: none;
        border-radius: 0 0 15px 15px;
    }

    /* Add backdrop blur effect when menu is open */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.1);
        z-index: -1;
        backdrop-filter: blur(2px);
        opacity: 1;
    }

    .nav-menu::before {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        margin: 0 10px;
        width: calc(100% - 20px);
    }

    .nav-menu a {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.btn-details {
    display: block;
    width: fit-content;
    margin: 5px auto 0 auto;
    padding: 10px 30px;
    background: #5f5207e2;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-details:hover {
     background: #826d0c;
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(95, 82, 7, 0.35);
}

@media (max-width: 480px) {
    .btn-details {
        width: 80%;
        padding: 10px 0;
    }
}

.heroin {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), #1a2530);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.heroin-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.heroin-title {
    font-weight : 700;
    font-size: 40px;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.heroin-subtitle {
    font-size: 22px;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    display: inline-block;
    background: #ffd700;
    color: #333;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
    border: none;
    font-weight: 600;
}

.cta-button:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    animation: fadeInUp 1s ease;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Brand Filters */
.brand-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.filter-btn.active,
.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-btn[data-filter="all"].active,
.filter-btn[data-filter="all"]:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn[data-filter="keyboard"].active,
.filter-btn[data-filter="keyboard"]:hover {
    background: var(--keyboard-color);
    color: white;
    border-color: var(--keyboard-color);
}

.filter-btn[data-filter="mouse"].active,
.filter-btn[data-filter="mouse"]:hover {
    background: var(--mouse-color);
    color: white;
    border-color: var(--mouse-color);
}

/* Keyboards & Mice Section */
.laptops {
  padding: 100px 0;
  background: #9c626216;
}

.laptop-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 100px;
    animation: fadeInUp 0.8s ease;
    transition: var(--transition);
}

.laptop-item.hidden {
    display: none;
}

.laptop-item.reverse {
    direction: rtl;
}

.laptop-item.reverse > * {
    direction: ltr;
}

.laptop-info {
    padding: 2rem;
}

.laptop-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.keyboard-badge {
    background: var(--keyboard-color);
}

.mouse-badge {
    background: var(--mouse-color);
}

.laptop-name {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.laptop-specs {
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: rgb(0, 0, 0); 
    font-weight: 800;
}

.spec-item i {
    color: var(--secondary-color);
    width: 20px;
}

.laptop-description {
    color: rgb(0, 0, 0);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.laptop-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.feature-tag {
    background: var(--light-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* .price-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
} */

/* Product Image */
.laptop-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.laptop-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover .laptop-img {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================== */
/* RESPONSIVE DESIGN FOR ALL DEVICE SIZES */
/* =========================================== */

/* Large Tablets and Small Laptops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .laptop-item {
        gap: 2rem;
        margin-bottom: 80px;
    }
    
    .laptop-name {
        font-size: 1.8rem;
    }
    
    .laptop-img {
        height: 350px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    /* Product Items */
    .laptop-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 60px;
        text-align: center;
    }
    
    .laptop-item.reverse {
        direction: ltr;
    }
    
    .laptop-info {
        padding: 1rem 0;
        order: 2;
    }
    
    .laptop-image {
        order: 1;
    }
    
    .laptop-name {
        font-size: 1.6rem;
    }
    
    .spec-item {
        justify-content: center;
    }
    
    .laptop-features {
        justify-content: center;
    }
    
    .price-section {
        justify-content: center;
    }
    
    .laptop-img {
        height: 300px;
    }
    
    /* Brand Filters */
    .brand-filters {
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 25px;
    }
    
    .nav-logo i {
        font-size: 1.rem;
        font-weight: 800;
    }
    
    .lucky img {
        height: 25px;
        width: 25px;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Brand Filters */
    .brand-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 5px;
    }
    
    .filter-btn i {
        font-size: 0.9rem;
    }
    
    /* Product Items */
    .laptop-item {
        margin-bottom: 50px;
        gap: 1.5rem;
    }
    
    .laptop-name {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .laptop-specs {
        margin-bottom: 1rem;
    }
    
    .spec-item {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .laptop-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .laptop-features {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-tag {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1.6rem;
    }
    
    .laptop-img {
        height: 250px;
    }
}

/* Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .brand-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        justify-content: center;
    }
    
    .laptop-name {
        font-size: 1.3rem;
    }
    
    .spec-item {
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 1.4rem;
    }
    
    .laptop-img {
        height: 200px;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 100px 0 40px;
    }
    
    .nav-menu {
        padding-top: 80px;
    }
    
    .nav-link {
        padding: 0.8rem 0;
    }
}

.dvp {
    color: yellow;
}

a {
    text-decoration: none;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #DCDCDC;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFB700;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
    color: #ccc;
}

/* High Resolution Displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}