:root {
    --primary: #FF5722;
    /* Energetic Orange */
    --primary-hover: #E64A19;
    --dark-bg: #111111;
    --darker-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: #333;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.95)),
        url('../assets/images/theme.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll bugs */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.highlight {
    color: var(--primary);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--dark-bg);
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    /* removed conflicting background-image for poster.jpg */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-btns {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-btns .btn {
    margin: 0 10px;
}

.brand-ticker-container {
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
    /* Contain the ticker */
    margin-bottom: -50px;
    /* Push it down */
}

.ticker-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.brand-scroller .scroller-inner {
    gap: 60px;
    animation: scroll 30s linear infinite;
}

.ticker-logo {
    width: 120px;
    /* Match sprite base size */
    height: 60px;
    transform-origin: center;
}

.ticker-logo:hover {
    transform: scale(1.1);
}

/* About Section */
.about-section {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
        url('../assets/images/theme2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Products Section */
.products-section {
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.95)),
        url('../assets/images/theme3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid var(--border-color);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.cat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 60px 30px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    background-size: cover;
    background-position: center;
}

.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    transition: 0.3s ease;
    z-index: 1;
}

.cat-card:hover::before {
    background: rgba(0, 0, 0, 0.45);
}

.cat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.cat-card h3 {
    font-size: 1.8rem;
    color: white;
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
    font-weight: 700;
}

.btn-cat {
    position: relative;
    z-index: 2;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: 0.3s;
}

.cat-card:hover .btn-cat {
    opacity: 1;
    transform: translateX(5px);
}

/* Category Backgrounds */
.cat-card[data-category="sportswear"] {
    background-image: url('../assets/images/theme3.png');
}

.cat-card[data-category="shoes"] {
    background-image: url('../assets/images/shoes1.jpg');
}

.cat-card[data-category="fitness"] {
    background-image: url('../assets/images/fitness1.jpg');
}

.cat-card[data-category="trophies"] {
    background-image: url('../assets/images/trophy1.jpg');
}

.cat-card[data-category="indoor"] {
    background-image: url('../assets/images/game1.jpg');
}

.cat-card[data-category="dokra"] {
    background-image: url('../assets/images/dokra1.jpg');
}

.cat-card[data-category="handmade"] {
    background-image: url('../assets/images/handmade4.jpg');
}

.cat-card[data-category="tshirt"] {
    background-image: url('../assets/images/sportswear_jersey.png');
}

.cat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Fallback */

/* Full-Page Overlay Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: var(--dark-bg);
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.95)),
        url('../assets/images/theme.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.modal-content {
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px 60px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.close-modal {
    color: white;
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 50px;
    line-height: 1;
    z-index: 2100;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

#modal-category-title {
    margin-bottom: 50px;
    font-size: 3rem;
    text-align: center;
    width: 100%;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2);
}

.product-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-details {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
}

/* Logo Sprites */
[class*="sprite-"] {
    background-image: url('../assets/images/logos_sprite.jpg');
    background-size: 400% 300%;
    width: 120px;
    /* Base size for brands grid */
    height: 60px;
    background-repeat: no-repeat;
    display: inline-block;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-item:hover [class*="sprite-"],
.ticker-logo:hover {
    transform: scale(1.1);
}

.sprite-ss {
    background-position: 0% 0%;
}

.sprite-sg {
    background-position: 33.33% 0%;
}

.sprite-nivia {
    background-position: 66.66% 0%;
}

.sprite-yonex {
    background-position: 100% 0%;
}

.sprite-vectorx {
    background-position: 0% 50%;
}

.sprite-viva {
    background-position: 33.33% 50%;
}

.sprite-lining {
    background-position: 66.66% 50%;
}

.sprite-cougar {
    background-position: 100% 50%;
}

.sprite-vixen {
    background-position: 0% 100%;
}

.sprite-dunlop {
    background-position: 33.33% 100%;
}

.sprite-nba {
    background-position: 66.66% 100%;
}

.sprite-turbo {
    background-position: 100% 100%;
}

/* Brands Section */
.brands-section {
    background: linear-gradient(rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.95)), url('../assets/images/vibrant_pattern.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.brand-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px 40px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item:hover {
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Testimonials Section */
.testimonials-section {
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.95)),
        url('../assets/images/vibrant_stadium.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.scroller {
    width: 100%;
    overflow: hidden;
    /* Ensure scroller doesn't push page width */
}

.scroller-inner {
    display: flex;
    gap: 20px;
    padding-block: 20px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.scroller-inner.reverse {
    animation-direction: reverse;
}

.scroller-inner:hover {
    animation-play-state: paused;
}

.review-card {
    background: var(--card-bg);
    /* Fallback */
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.review-card:hover {
    transform: scale(1.05) rotate(-2deg);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2);
}

.review-card:nth-child(even):hover {
    transform: scale(1.05) rotate(2deg);
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.review-author {
    color: white;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Features Section */
.features-section {
    background: linear-gradient(45deg, var(--dark-bg), var(--card-bg));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-box h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.98)), url('../assets/images/vibrant_pattern.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    align-items: start;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-info strong {
    color: white;
    display: inline-block;
    width: 80px;
}

.contact-info a {
    color: var(--text-main);
}

.contact-info a:hover {
    color: var(--primary);
}

.social-links {
    margin-top: 30px;
}

.btn-small {
    display: inline-block;
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-small:hover {
    background-color: var(--primary);
}

.map-container {
    height: 400px;
    width: 100%;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    color: #555;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: #000;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-content p {
    color: #666;
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design Refinements */
@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }

    .hero-content {
        padding: 0 20px;
        max-width: 100% !important;
    }

    .hero-content h1 {
        font-size: clamp(1.4rem, 8vw, 1.8rem);
        line-height: 1.1;
        letter-spacing: -0.5px;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        max-width: 100% !important;
        padding: 0 10px;
    }

    .hero-content br {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        margin: 0;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0 5px;
    }

    .brand-item {
        padding: 8px;
        height: 60px;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }
}

.hero-content h1 .highlight {
    color: var(--primary);
    font-size: 0.9em;
    font-weight: 500;
}

/* Floating Buttons */
.whatsapp-fab,
.call-fab {
    position: fixed;
    right: 30px;
    width: 55px;
    height: 55px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-fab {
    bottom: 30px;
    background-color: #25D366;
    animation: whatsapp-pulse 2s infinite;
}

.call-fab {
    bottom: 100px;
    background-color: var(--primary);
    animation: phone-pulse 2s infinite;
}

.whatsapp-fab:hover,
.call-fab:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes phone-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 87, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
    }
}