:root {
    --bg-color: #0b0c10;
    --text-color: #f8f8f2;
    --accent-color: #d4af37;
    --accent-dark: #a67c00;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients to make the dark mode interesting */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(166, 124, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.logo a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Carousel Section */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    padding: 0 10%;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -2;
}

.carousel-slide.active .slide-background {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 12, 16, 0.85) 0%, rgba(11, 12, 16, 0.3) 50%, rgba(11, 12, 16, 0.85) 100%);
    z-index: -1;
}

/* Micro-animations for Hero Content */
.hero-content {
    z-index: 5;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff 20%, #dddddd 60%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-slide .hero-content h1 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.carousel-slide .hero-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.carousel-slide .hero-content .btn {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.carousel-slide.active .hero-content h1,
.carousel-slide.active .hero-content p,
.carousel-slide.active .hero-content .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphic Navigation Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-control:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev {
    left: 3%;
}

.carousel-control.next {
    right: 3%;
}

.carousel-control i {
    font-size: 1.2rem;
}

/* Glassmorphic Slide Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-indicators .indicator.active {
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    transform: scale(1.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.glass-btn {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--accent-color);
    backdrop-filter: blur(5px);
}

.glass-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* About Me Section */
.about-section {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.about-container {
    display: flex;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
}

.about-image {
    flex: 1;
    min-height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-text {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.divider {
    height: 3px;
    width: 50px;
    background-color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #aaa;
}

.feed-status {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--accent-dark);
}

/* Search Wrapper & Bar Styles */
.search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
    width: 100%;
    padding: 0 1rem;
}

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 650px;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    position: relative;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.search-container:focus-within .search-icon {
    color: var(--accent-color);
}

#tyre-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

#tyre-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.clear-btn {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 2px;
}

.clear-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Product Cards Badging */
.badge {
    position: absolute;
    top: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 5;
    text-transform: uppercase;
}

.brand-badge {
    left: 15px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--accent-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.size-badge {
    right: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.overlay-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-weight: 600;
}

/* No results state styling */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 15px;
    max-width: 500px;
    margin: 2rem auto;
    width: 100%;
}

.no-results i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.no-results p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    display: block;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-caption {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.overlay-icon {
    align-self: flex-end;
    font-size: 1.2rem;
    color: var(--accent-color);
}



footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
    .masonry-grid {
        column-count: 2;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .carousel-control {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-carousel {
        height: 85vh;
    }
    .carousel-control {
        display: none;
    }
    .nav-links {
        display: none; /* simple hidden for mobile, in real app need a hamburger menu */
    }
    .masonry-grid {
        column-count: 1;
    }
}

/* Tyre Detailed Specification Modal Styles */
.tyre-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 12, 16, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tyre-modal-content {
    width: 100%;
    max-width: 1050px;
    max-height: 90vh;
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(20px);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.close-modal-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 3.5rem;
    align-items: start;
}

/* Left Column: Tabbed Media Viewer */
.modal-media-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.media-tabs {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 30px;
    align-self: flex-start;
}

.media-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.media-tab-btn:hover {
    color: var(--text-color);
}

.media-tab-btn.active {
    background: var(--accent-color);
    color: #0b0c10;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.media-display {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.media-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.media-view.active {
    opacity: 1;
    z-index: 2;
}

/* Right Column: Specs Sheet */
.modal-specs-column {
    display: flex;
    flex-direction: column;
}

.modal-category-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

#modal-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff 40%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.modal-desc-text {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.specs-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.modal-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2.5rem;
}

.modal-specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-specs-table tr:last-child {
    border-bottom: none;
}

.modal-specs-table td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.modal-specs-table td:first-child {
    color: #888;
    font-weight: 400;
}

.modal-specs-table td:last-child {
    color: var(--text-color);
    font-weight: 600;
    text-align: right;
}

.modal-actions {
    display: flex;
}

.modal-actions .btn {
    padding: 1rem 2.5rem;
    border-radius: 40px;
    width: 100%;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: scale(0.95) translateY(20px); }
    to { transform: scale(1) translateY(0); }
}

/* Specs Modal Responsive Styles */
@media (max-width: 900px) {
    .tyre-modal-content {
        padding: 2rem;
    }
    .modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    #modal-title {
        font-size: 2.2rem;
    }
}
