/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #94a3b8;
    --dark-gray: #334155;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --font-main: 'Roboto', sans-serif;
    --font-tech: 'Share Tech Mono', monospace;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    background-color: #f1f5f9;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-cart {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 15px;
    font-size: 14px;
}

.btn-cart:hover {
    background-color: #0f172a;
}

.btn-notify {
    background-color: var(--warning-color);
    color: white;
    padding: 8px 15px;
    font-size: 14px;
}

.btn-notify:hover {
    background-color: #e69009;
}

.btn-subscribe {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 0 6px 6px 0;
}

.btn-subscribe:hover {
    background-color: var(--primary-dark);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 50px;
    font-size: 18px;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-tech);
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 25px;
}

.nav-list a {
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-list a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.search-box {
    display: flex;
    margin-left: 30px;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    width: 200px;
    outline: none;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.gadgets-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    margin-top: 70px;
}

.gadgets-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.gadgets-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Gadgets Grid */
.gadgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gadget-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.gadget-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gadget-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.gadget-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.gadget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gadget-card:hover .gadget-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gadget-card:hover .image-overlay {
    opacity: 1;
}

.quick-view {
    background-color: white;
    color: var(--dark-color);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.quick-view:hover {
    background-color: var(--primary-color);
    color: white;
}

.gadget-info {
    padding: 20px;
}

.gadget-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--warning-color);
}

.rating span {
    color: var(--gray-color);
    font-size: 14px;
    margin-left: 5px;
}

.gadget-desc {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.gadget-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.gadget-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--dark-gray);
}

.gadget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color);
}

/* Upcoming Tech */
.upcoming-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.upcoming-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.upcoming-image {
    height: 100%;
}

.upcoming-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upcoming-content {
    padding: 30px;
}

.upcoming-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.release-date {
    background-color: var(--dark-color);
    color: white;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.upcoming-desc {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.upcoming-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.upcoming-features i {
    color: var(--primary-color);
}

.upcoming-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.expected-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 24px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--gray-color);
    font-size: 14px;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.newsletter .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 16px;
    outline: none;
}

.small-text {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 10px;
}

.newsletter-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    opacity: 0.7;
    margin-bottom: 20px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.7;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.7;
    font-size: 14px;
}

.contact-info i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom i {
    color: var(--danger-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    max-width: 800px;
    width: 90%;
    border-radius: 10px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .search-box {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .gadgets-hero h1 {
        font-size: 36px;
    }

    .gadgets-hero p {
        font-size: 18px;
    }

    .upcoming-card {
        grid-template-columns: 1fr;
    }

    .newsletter .container {
        grid-template-columns: 1fr;
    }

    .newsletter-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .btn-subscribe {
        border-radius: 6px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .gadgets-hero {
        padding: 150px 0 80px;
    }

    .gadgets-hero h1 {
        font-size: 28px;
    }

    .gadgets-hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}