:root {
    --primary-color: #2196f3;
    --secondary-color: #1976d2;
    --background-dark: #121212;
    --surface-dark: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #64b5f6;
    --error-color: #f44336;
    --success-color: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #181c24 0%, #232946 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background-color: var(--surface-dark);
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--surface-dark);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--background-dark);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    width: 40%;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    padding: 0.5rem;
    outline: none;
}

.search-bar button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.user-actions {
    display: flex;
    gap: 1rem;
}

.user-actions a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.compare-btn {
    background-color: var(--primary-color);
}

.login-btn {
    background-color: var(--surface-dark);
    border: 1px solid var(--primary-color);
}

/* Navbar Styles */
.navbar {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 12px 0 rgba(33,150,243,0.08);
    padding: 0.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #b3e5fc;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    transition: 0.3s;
}

/* Footer Styles */
.footer {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 12px 0 rgba(33,150,243,0.08);
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #b3e5fc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.5rem;
    border: 1px solid var(--text-secondary);
    background-color: var(--background-dark);
    color: var(--text-primary);
    border-radius: 5px;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--text-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-bar {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar {
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface-dark);
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .user-actions {
        flex-direction: column;
        width: 100%;
    }

    .user-actions a {
        text-align: center;
    }
}

/* Main Content Styles */
.main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

/* Hero Section */
.hero-section {
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 0 8px 32px 0 rgba(33,150,243,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(33,150,243,0.12);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    outline: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: 0 2px 8px rgba(33,150,243,0.2);
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(33,150,243,0.3);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

.secondary-btn {
    background: rgba(33,150,243,0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Featured Devices Section */
.featured-devices {
    margin-bottom: 3rem;
}

.featured-devices h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.device-grid {
    display: grid;
    gap: 2rem;
}

.device-category h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.device-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.device-card {
    background: rgba(30, 30, 30, 0.85);
    border: 1.5px solid rgba(33,150,243,0.08);
    box-shadow: 0 4px 32px 0 rgba(33,150,243,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.device-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 40px 0 rgba(33,150,243,0.18);
    border-color: var(--primary-color);
}

.device-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.device-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    filter: brightness(0.95) drop-shadow(0 2px 8px #2196f3aa);
    transition: filter 0.3s;
}

.device-card:hover .device-image img {
    filter: brightness(1.05) drop-shadow(0 4px 16px #2196f3cc);
}

.device-info {
    padding: 1rem;
}

.device-info h4 {
    margin-bottom: 0.3rem;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.device-specs {
    color: #b3e5fc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Features Section */
.features-section {
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 0 8px 32px 0 rgba(33,150,243,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(33,150,243,0.12);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.85);
    border: 1.5px solid rgba(33,150,243,0.08);
    box-shadow: 0 4px 32px 0 rgba(33,150,243,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 40px 0 rgba(33,150,243,0.18);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Glassmorphism & Gradients */
.glass {
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Headings */
h1, h2, h3, h4 {
    font-family: 'Segoe UI Semibold', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

h2 {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content, .device-card, .feature-card {
    animation: fadeInUp 0.8s cubic-bezier(.39,.575,.565,1) both;
}

/* Spacing and Layout */
.device-cards, .features-grid {
    gap: 2.5rem;
}

.device-cards {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 12px 0 rgba(33,150,243,0.08);
}
.footer-section h3 {
    color: var(--accent-color);
}
.footer-section a {
    color: #b3e5fc;
}
.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 1024px) {
    .main-content {
        padding: 1.5rem 0.5rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0.2rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .device-cards, .features-grid {
        gap: 1.2rem;
    }
}
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem 0.1rem;
    }
    .hero-content h1 {
        font-size: 1.1rem;
    }
}

.admin-nav-btn {
    background: linear-gradient(90deg, #f44336, #ff9800);
    color: #fff !important;
    border-radius: 12px;
    font-weight: bold;
    padding: 0.7rem 1.2rem !important;
    margin-left: 1rem;
    box-shadow: 0 2px 8px rgba(244,67,54,0.15);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.admin-nav-btn:hover {
    background: linear-gradient(90deg, #ff9800, #f44336);
    color: #fff !important;
    transform: scale(1.05);
} 