/* CSS Variables */
:root {
    --primary: #00f0ff;
    --primary-dark: #00b8c4;
    --secondary: #ff00aa;
    --accent: #7b2dff;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border: #2a2a3a;
    --success: #00ff88;
    --warning: #ffaa00;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-primary);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-small {
    padding: 10px 20px;
    font-size: 12px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    border-bottom-color: var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 28px;
}

.logo .au {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(123, 45, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 170, 0.1) 0%, transparent 60%);
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.title-highlight {
    display: block;
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(0, 240, 255, 0.5);
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Section Styles */
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

/* View Controls */
.view-controls {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    color: var(--text-secondary);
}

.filter-select {
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary);
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: var(--bg-card);
    border-radius: 4px;
}

.view-btn {
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Products Section */
.products-section {
    padding: 40px 0 80px;
    background: var(--bg-card);
}

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

/* Product Card */
.product-card {
    position: relative;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.product-card.featured {
    border-color: var(--secondary);
}

.product-card.featured::before {
    content: 'FEATURED';
    position: absolute;
    top: 15px;
    right: -30px;
    padding: 5px 40px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-dark);
    background: var(--secondary);
    transform: rotate(45deg);
    z-index: 10;
}

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #1a1a25 0%, #0a0a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-height: 160px;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    font-size: 60px;
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.badge-new {
    background: var(--success);
    color: var(--bg-dark);
}

.badge-sale {
    background: var(--warning);
    color: var(--bg-dark);
}

.badge-popular {
    background: var(--secondary);
    color: var(--text-primary);
}

.product-content {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.spec-value {
    font-size: 13px;
    color: var(--text-secondary);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.product-price span {
    font-size: 14px;
    color: var(--text-muted);
}

.compare-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.compare-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.compare-checkbox label {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.products-table th,
.products-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.products-table th {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: var(--bg-dark);
    position: sticky;
    top: 0;
}

.products-table tr:hover td {
    background: var(--bg-card-hover);
}

.products-table .laptop-name {
    font-family: var(--font-display);
    font-weight: 600;
}

.products-table .price {
    color: var(--success);
    font-weight: 700;
}

/* Compare Section */
.compare-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.compare-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.compare-slot {
    position: relative;
}

.compare-select {
    width: 100%;
    padding: 15px 40px 15px 15px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
}

.compare-select:hover,
.compare-select:focus {
    border-color: var(--primary);
    outline: none;
}

.clear-slot {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    font-size: 18px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.compare-slot:hover .clear-slot {
    opacity: 1;
}

.clear-slot:hover {
    color: var(--secondary);
}

.compare-table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 15px 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.compare-table th {
    font-family: var(--font-display);
    font-weight: 700;
    background: var(--bg-card);
}

.compare-table .spec-label {
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    width: 150px;
}

.compare-table .compare-col {
    min-width: 200px;
}

.compare-table .highlight {
    color: var(--success);
    font-weight: 600;
}

.compare-table .product-link {
    display: inline-block;
    margin-top: 10px;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-content {
    min-height: 300px;
}

.quiz-question {
    margin-bottom: 30px;
}

.quiz-question h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
}

.quiz-option input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.quiz-option span {
    font-size: 16px;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.quiz-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-result {
    text-align: center;
}

.result-card {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}

.result-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary);
}

.result-card .match-score {
    font-size: 48px;
    font-weight: 900;
    color: var(--success);
    margin: 20px 0;
}

.result-specs {
    text-align: left;
    margin: 20px 0;
}

.result-specs li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

/* SEO Section */
.seo-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.seo-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--primary);
}

.seo-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.seo-content ul {
    margin: 15px 0 15px 20px;
}

.seo-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.seo-content strong {
    color: var(--text-primary);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

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

.footer-brand p {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.footer-legal h4 {
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.affiliate-disclosure {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        gap: 30px;
    }

    .controls-wrapper {
        flex-direction: column;
    }

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

    .compare-selectors {
        grid-template-columns: 1fr;
    }

    .quiz-container {
        padding: 25px;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .quiz-navigation button {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--bg-dark);
}
