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

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    height: 100svh; /* Small viewport height for iOS */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

/* Mobile splash screen fixes */
@media screen and (max-width: 768px) {
    #splash-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        z-index: 9999;
        overflow: hidden;
    }
}

/* Prevent scrolling during splash screen */
body.splash-active {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
}

/* Mobile splash active fixes */
@media screen and (max-width: 768px) {
    body.splash-active {
        height: 100vh;
        height: 100dvh;
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        touch-action: none;
        -webkit-overflow-scrolling: touch;
    }
}

/* Force page to start at top */
html, body {
    scroll-behavior: auto;
    scroll-restore: manual;
}

/* Ensure page starts at top on load */
body {
    position: relative;
    top: 0;
    left: 0;
}

#splash-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    height: 100svh; /* Small viewport height for iOS */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 2s ease-out;
    mask: linear-gradient(to bottom, 
        transparent 0%, 
        black 10%, 
        black 90%, 
        transparent 100%);
    -webkit-mask: linear-gradient(to bottom, 
        transparent 0%, 
        black 10%, 
        black 90%, 
        transparent 100%);
}

/* Mobile video fixes */
@media screen and (max-width: 768px) {
    #splash-video {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        object-fit: cover;
        object-position: center;
        top: 0;
        left: 0;
        position: absolute;
    }
}

#splash-logo {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: logoEntrance 3s ease-out;
}

.logo-image {
    max-width: clamp(300px, 50vw, 600px);
    height: auto;
    position: relative;
    z-index: 2;
}

/* Remove harsh background - use only drop-shadow */

.logo-subtitle {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: #ccc;
    margin-top: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotateY(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

/* Removed harsh glow animations */

/* Removed unused animation */

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    height: 25px !important;
    max-height: 25px !important;
    width: auto !important;
    max-width: 100px !important;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #0000ff);
    transition: width 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ff0000;
    margin: 3px 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px #ff0000;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    height: 100svh; /* Small viewport height for iOS */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    width: 100%;
    height: 120%;
    object-fit: cover;
    opacity: 0.8;
    transform: translateY(-10%);
    filter: brightness(0.7) contrast(1.1);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 255, 0.1) 100%
    );
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: heroEntrance 2s ease-out;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: heroLogoEntrance 2s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.hero-logo-image {
    max-width: clamp(300px, 50vw, 600px);
    height: auto;
    position: relative;
    width: 100%;
}

/* Remove harsh background - use only drop-shadow */

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #ccc;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #0000ff;
    box-shadow: 0 0 20px rgba(0, 0, 255, 0.3);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #ff0000, transparent);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ff0000;
    border-bottom: 2px solid #ff0000;
    transform: rotate(45deg);
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroLogoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotateY(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

/* Removed harsh glow animations */

/* Removed unused animation */

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #0000ff);
}

/* About Section */
.about {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    min-height: 100svh; /* Small viewport height for iOS */
    padding: 6rem 0;
    background: linear-gradient(135deg, #111 0%, #000 100%);
    position: relative;
    display: flex;
    align-items: center;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ff0000" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/5;
}

.about-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.5s ease;
}

.about-img.active {
    opacity: 1;
}

.about-image:hover .about-img.active {
    transform: scale(1.05);
}

.about-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px #ff0000;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #0000ff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ccc;
}

.about-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Racing Section */
.racing {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    min-height: 100svh; /* Small viewport height for iOS */
    padding: 6rem 0;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
}

.racing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.racing-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.racing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.racing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.racing-item:hover .racing-img {
    transform: scale(1.05);
}

.racing-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.racing-item:hover .racing-overlay,
.racing-item.hover-active .racing-overlay {
    transform: translateY(0);
}

.racing-item.hover-active {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.racing-item.hover-active .racing-img {
    transform: scale(1.05);
}

.racing-overlay h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #ff0000;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px #ff0000;
}

.racing-overlay p {
    color: #ccc;
    font-size: 1rem;
}

/* Print Shop Section */
.printshop {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    min-height: 100svh; /* Small viewport height for iOS */
    padding: 6rem 0;
    background: linear-gradient(135deg, #000 0%, #111 100%);
    position: relative;
    display: flex;
    align-items: center;
}

.printshop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 0, 255, 0.1) 0%, transparent 50%);
}

.printshop-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.printshop-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #ff0000;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px #ff0000;
}

.printshop-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ccc;
}

.printshop-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.print-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.print-link:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
}

.link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.print-link:hover .link-arrow {
    transform: translateX(5px);
}

.shirt-gallery h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #0000ff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px #0000ff;
}

.shirt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.shirt-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.shirt-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0, 0, 255, 0.3);
}

.shirt-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.shirt-item:hover .shirt-img {
    transform: scale(1.05);
}

.shirt-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.shirt-item:hover .shirt-overlay,
.shirt-item.hover-active .shirt-overlay {
    transform: translateY(0);
}

.shirt-item.hover-active {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0, 0, 255, 0.3);
}

.shirt-item.hover-active .shirt-img {
    transform: scale(1.05);
}

.shirt-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Contact Section */
.contact {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    min-height: 100svh; /* Small viewport height for iOS */
    padding: 6rem 0;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

.contact-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #ff0000;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px #ff0000;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #ccc;
}

.website-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.website-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.website-link:hover {
    transform: translateY(-5px);
}

.website-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.website-link:hover .website-card::before {
    left: 100%;
}

.website-link:hover .website-card {
    border-color: #ff0000;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.05);
}

.website-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #ff0000;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px #ff0000;
}

.website-card p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.link-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #ff0000;
    transition: transform 0.3s ease;
}

.website-link:hover .link-arrow {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: #111;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff0000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* Prevent horizontal scrolling */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Universal mobile overflow prevention */
@media (max-width: 768px) {
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
    }
    
    /* Prevent all elements from overflowing */
    div, section, article, header, footer, nav, main, aside {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Text content overflow prevention */
    h1, h2, h3, h4, h5, h6, p, span, a, li, td, th {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    /* Image and media overflow prevention */
    img, video, iframe, object, embed {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Form elements overflow prevention */
    input, textarea, select, button {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Ensure full screen video coverage */
#splash-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

/* Force video to cover entire screen */
@media screen and (max-width: 768px) {
    #splash-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-width: 100vw;
        min-height: 100vh;
        min-height: 100dvh;
        object-fit: cover;
        object-position: center center;
        z-index: 1;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        display: block;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }
    
    .printshop-content {
        grid-template-columns: 1fr;
    }
    
    .website-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    
    .website-card {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .website-card h4 {
        font-size: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .website-card p {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-content {
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    /* Prevent contact section overflow */
    .contact {
        padding: 3rem 0;
        overflow-x: hidden;
    }
    
    .contact .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Prevent all sections from overflowing */
    .hero, .about, .racing, .printshop, .contact, .footer {
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }
    
    .hero-background, .parallax-layer {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Navigation overflow prevention */
    .nav-container {
        max-width: 100vw;
        padding: 0 1rem;
        overflow-x: hidden;
    }
    
    /* Grid and flex containers */
    .racing-grid, .shirt-grid, .about-card, .printshop-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Button and link overflow prevention */
    .btn-primary, .btn-secondary, .website-link, .print-link {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Logo and image overflow prevention */
    .nav-logo, .footer-logo-img, .hero-logo-image, .logo-image {
        max-width: 100%;
        height: auto;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-logo-image {
        max-width: 90vw;
    }
    
    .logo-image {
        max-width: 80vw;
    }
    
    /* Full screen sections on mobile */
    .hero {
        height: 100vh;
        height: 100dvh;
        height: 100svh; /* Small viewport height for iOS */
        min-height: 100vh;
        min-height: 100dvh;
        min-height: 100svh;
    }
    
    .about, .racing, .printshop, .contact {
        min-height: 100vh;
        min-height: 100dvh;
        min-height: 100svh; /* Small viewport height for iOS */
        padding: 3rem 0;
        padding-bottom: 4rem; /* Extra padding to prevent cropping */
    }
    
    .about .container,
    .racing .container,
    .printshop .container,
    .contact .container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: calc(100vh - 6rem);
        min-height: calc(100dvh - 6rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .about-card,
    .contact-form {
        padding: 1.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .racing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .shirt-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Extra small screen overflow prevention */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Ensure all text fits */
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle, .logo-subtitle {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Button text wrapping */
    .btn-primary, .btn-secondary {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Simple, smooth loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Racing gallery items - no individual animation needed */

/* Shirt gallery items start hidden */
.shirt-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.shirt-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Effects */
.parallax-element {
    will-change: transform;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Final overflow prevention - catch all */
@media (max-width: 768px) {
    /* Force all elements to respect viewport width */
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* Prevent any element from causing horizontal scroll */
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    /* Ensure all containers respect viewport */
    .container, .nav-container, .hero-content, .about-content, 
    .racing-content, .printshop-content, .contact-content {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }
}
