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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f9fa;
    color: #333;
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Constants & Theme Colors */
:root {
    --primary-green: #2E7D32;
    --light-green: #4CAF50;
    --highlight-orange: #FF9800;
    --dark-orange: #F57C00;
    --text-main: #2C3E50;
    --text-muted: #607D8B;
    --bg-light: #FFFFFF;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.05);
    --hover-shadow: 0 12px 20px rgba(0,0,0,0.1);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: sticky;
    align-items: center;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* 🔥 UPDATED NAVBAR ALIGNMENT */
.nav-container {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

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

/* 🔥 CENTER NAVIGATION */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-green);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Brand Selection */
.brand-selection {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.brand-btn {
    padding: 10px 24px;
    border: none;
    background: var(--bg-light);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.brand-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.brand-btn.active {
    background: var(--light-green);
    color: white;
}

/* Mobile Display Section */
.mobile-display {
    padding: 40px 0 80px;
}

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

/* Mobile Card */
.mobile-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mobile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.mobile-image-wrapper {
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.mobile-brand {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.mobile-model {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.mobile-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.mobile-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
    text-align: left;
    background: #f8fbfa;
    padding: 15px;
    border-radius: 12px;
}

.spec-item {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.spec-icon {
    font-size: 1rem;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-flipkart {
    background-color: #047BD5;
    color: white;
}

.btn-flipkart:hover {
    background-color: #0366b2;
}

.btn-amazon {
    background-color: var(--highlight-orange);
    color: white;
}

.btn-amazon:hover {
    background-color: var(--dark-orange);
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: var(--light-green);
}

.footer-section p {
    color: #b0bec5;
    font-size: 0.95rem;
}

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

.footer-section.links a {
    color: #b0bec5;
}

.footer-bottom {
    text-align: center;
}

/* 🔥 SEO SECTION CENTERED */
.seo-section {
    margin-bottom: 25px;
    text-align: center;
}

.seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.seo-links a {
    background: #e8f5e9;
    color: #2E7D32;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.seo-links a:hover {
    background: #2E7D32;
    color: white;
}

/* DOWNLOAD BUTTON */
.download-btn {
    padding: 12px 24px;
    background: #FF5722;
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

/* SORT BUTTON */
.sort-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #2E7D32;
    color: white;
    cursor: pointer;
}/* ===== NEW FEATURES (SAFE ADDITION) ===== */

/* CENTER NAVBAR */
.nav-container {
    display: flex;
    align-items: center;
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin: 0 auto;
}

/* SEO SECTION */
.seo-section {
    margin-bottom: 25px;
    text-align: center;
}

.seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.seo-links a {
    background: #e8f5e9;
    color: #2E7D32;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.3s;
}

.seo-links a:hover {
    background: #2E7D32;
    color: white;
}

/* DOWNLOAD BUTTON */
.download-btn {
    padding: 12px 24px;
    background: #FF5722;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

/* SORT BUTTON */
.sort-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #2E7D32;
    color: white;
    cursor: pointer;
}
/* ===== FIXED GALLERY MODAL ===== */

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.7);
    z-index: 9999;

    justify-content: center;
    align-items: center;
}

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

/* CENTER BOX */
.gallery-content {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;

    background: #fff;
    border-radius: 12px;
    padding: 15px;

    overflow-y: auto;
    position: relative;
}

/* IMAGES */
.gallery-images-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

/* CLOSE BUTTON */
.gallery-back-btn {
    position: sticky;
    top: 0;
    background: #2E7D32;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 10px;
}