* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .racing-sans-one-regular {
  font-family: "Racing Sans One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.squada-one-regular {
  font-family: "Squada One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.sansation-regular {
  font-family: "Sansation", sans-serif;
  font-weight: 400;
  font-style: normal;
}

        body {
            font-family: "Sansation", sans-serif;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    
    /* Background image setup */
    background-image: url('Home/Images/HomeBackground.PNG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Dark overlay for better text readability */
    background-color: rgba(41, 41, 41, 0.925);
    background-blend-mode: multiply;
}

/* Navigation */
nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 1rem;
            transition: all 0.3s ease;
        }

.nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

.logo {
            font-family: "Racing Sans One", sans-serif;
            font-size: 2rem;
            font-weight: bold;
            background: linear-gradient(45deg, #ff1744, #ff6b35);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            font-family: "Squada One", sans-serif;
            font-size: 1.3rem;
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a:hover {
            color: #ff1744;
            transform: translateY(-2px);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(45deg, #ff1744, #ff6b35);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav ul li a:hover,
.nav ul li a.active {
  color: #000000;
}

/* Underline effect on hover and for active page */
.nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    min-width: 200px;
    border-radius: 10px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 23, 68, 0.2);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    color: #ff1744;
    transform: translateX(5px);
}

.dropdown-menu a::after {
    display: none; /* Remove underline effect for dropdown items */
}



        /* Hero Section */
        .hero {
            height: 60vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background: rgba(0, 0, 0, 0.3);
        }


        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .hero2 {
            height: 20vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            margin-top: 70px;
            background: rgba(0, 0, 0, 0.3);
        }

        .hero2-content {
            text-align: center;
            z-index: 2;
            position: relative;
            max-width: 1000px;
            padding: 0 1rem;
        }

        .hero2-title {
            font-family: "Racing Sans One", sans-serif;
            font-size: 5rem;
            font-weight: bold;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, #fff, #ff1744, #ff6b35);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: titleGlow 3s ease-in-out infinite alternate;
        }


        @keyframes carsMove {
            0% { transform: translateX(-50px) translateY(10px); }
            50% { transform: translateX(50px) translateY(-10px); }
            100% { transform: translateX(-50px) translateY(10px); }
        }


        @keyframes moveLines {
            0% { transform: translateX(-100px); }
            100% { transform: translateX(100px); }
        }

        .racing-lines {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(45deg, transparent 49%, rgba(255,23,68,0.3) 50%, transparent 51%),
                linear-gradient(-45deg, transparent 49%, rgba(255,107,53,0.2) 50%, transparent 51%);
            background-size: 100px 100px;
            animation: moveLines 20s linear infinite;
        }

        .hero-content {
            text-align: center;
            z-index: 2;
            position: relative;
            max-width: 1000px;
            padding: 1 1rem;
        }

        .hero-title {
            font-family: "Racing Sans One", sans-serif;
            font-size: 5rem;
            font-weight: bold;
            margin-bottom: 1rem;
            margin-top: 2rem;
            background: linear-gradient(45deg, #fff, #ff1744, #ff6b35);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: titleGlow 3s ease-in-out infinite alternate;
        }

        @keyframes titleGlow {
            0% { filter: drop-shadow(0 0 10px rgba(255,23,68,0.5)); }
            100% { filter: drop-shadow(0 0 20px rgba(255,107,53,0.8)); }
        }

        .hero-subtitle {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            opacity: 0.9;
            animation: slideUp 1s ease-out 0.5s both;
        }

        @keyframes slideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 0.9; }
        }

        .cta-button {
            display: inline-block;
            padding: 1rem 2rem;
            background: linear-gradient(45deg, #ff1744, #ff6b35);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-family: "Squada One", sans-serif;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            animation: slideUp 1s ease-out 1s both;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(255,23,68,0.5);
        }

        .cta-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s ease;
        }

        .cta-button:hover::before {
            left: 100%;
        }

        /* Speed indicator */
        .speed-indicator {
            position: absolute;
            top: 50%;
            right: 5%;
            transform: translateY(-50%);
            text-align: center;
            z-index: 2;
        }

        .speedometer {
            width: 120px;
            height: 120px;
            border: 4px solid rgba(255, 23, 69, 0.608);
            border-radius: 50%;
            position: relative;
            margin-bottom: 1rem;
            animation: rotate 2s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .speedometer::before {
            content: '';
            position: absolute;
            top: 10px;
            left: 50%;
            width: 4px;
            height: 50px;
            background: linear-gradient(45deg, #ff1744, #ff6b35);
            transform: translateX(-50%);
            border-radius: 2px;
        }

        .speed-text {
            font-size: 2rem;
            font-weight: bold;
            color: #ff1744;
        }

        .speed-label {
            font-size: 0.9rem;
        }

        /* Stats Section */
        .stats {
            padding: 2rem 1rem;
            background: rgba(0, 0, 0, 0.3);
        }

        .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
        }

        .info-card {
   background: rgba(96, 96, 96, 0.326);
   backdrop-filter: blur(15px);
   border: 1px solid rgba(255, 23, 69, 0.816);
   border-radius: 20px;
   padding: 2rem;
   max-width: 1200px;
   width: 100%;
   text-align: center;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.card-title {
    font-family: "Racing Sans One", sans-serif;
   font-size: 2.5rem;
   font-weight: 700;
   margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #ff1744);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
    background-clip: text;
   line-height: 1.2;
}

.card-description {
   font-size: 1.1rem;
   line-height: 1.8;
   margin-bottom: 2rem;
   opacity: 0.8;
   text-align: left;
}

        .stat-card {
            text-align: center;
            padding: 2rem;
            background: rgba(255,255,255,0.05);
            border-radius: 15px;
            border: 1px solid rgba(255,23,68,0.2);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card:hover {
            transform: translateY(-10px);
            border-color: rgba(255,23,68,0.5);
            box-shadow: 0 20px 40px rgba(255,23,68,0.2);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 2px;
            background: linear-gradient(45deg, #ff1744, #ff6b35);
            transition: left 0.5s ease;
        }

        .stat-card:hover::before {
            left: 100%;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: bold;
            color: #ff1744;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 1.1rem;
            opacity: 0.8;
        }

        /* News Section */
.news {
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: "Racing Sans One", sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #fff, #ff1744);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Updated news-card to be clickable */
.news-card {
    background: rgba(0,0,0,0.6);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 23, 69, 0.792);
    cursor: pointer; /* Show it's clickable */
    text-decoration: none; /* Remove link styling if using <a> tag */
    color: inherit; /* Inherit text color */
    display: block; /* Make entire card clickable */
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(255, 23, 69, 0.851);
}

/* Add a subtle click effect */
.news-card:active {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

/* Add a "Read More" indicator on hover */
.news-card::after {
    content: 'Click to Read More';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 23, 68, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.news-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #ff1744, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Add subtle zoom effect on hover */
.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    padding-bottom: 3rem; /* Extra space for the "Read More" indicator */
}

.news-title {
    font-family: "Racing Sans One", sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ff1744;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #ff6b35; /* Change title color on hover */
}

.news-excerpt {
    opacity: 0.8;
    line-height: 1.6;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-excerpt {
    opacity: 1;
}

/* Alternative style: Add a subtle overlay on hover */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 23, 68, 0.1), rgba(255, 107, 53, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.news-card:hover::before {
    opacity: 1;
}

/* Ensure content stays above overlay */
.news-content,
.news-image {
    position: relative;
    z-index: 2;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .news-card::after {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .news-content {
        padding: 1rem;
        padding-bottom: 2.5rem;
    }
}

        /* Driver Cards Section */
        .drivers-section {
            padding: 2rem 2rem;
            background: rgba(0, 0, 0, 0.3);
        }

        .drivers-section-title {
            text-align: center;
            font-family: 'Racing Sans One', sans-serif;
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 3rem;
            background: linear-gradient(45deg, #fff, #ff1744);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .drivers-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }

        .drivers-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0 2rem 0;
    scroll-behavior: smooth;
    
    /* Hide scrollbar for all browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.drivers-scroll::-webkit-scrollbar {
    display: none;
}

        .driver-card {
            min-width: 280px;
            max-width: 300px;
            height: 400px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 23, 68, 0.2);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            flex-shrink: 0;
        }

        .driver-card:hover {
            transform: translateY(-10px);
            border-color: rgba(255, 23, 68, 0.5);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .driver-header {
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .team-color-bar {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            z-index: 2;
        }

        .driver-image {
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #333, #666);
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            color: white;
            position: relative;
        }
        .driver-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

        .driver-info {
            padding: 1.5rem;
            text-align: center;
        }

        .driver-number {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 1.2rem;
            font-weight: bold;
            opacity: 0.6;
        }

        .driver-name {
            font-family: "Squada One", sans-serif;
            font-size: 2rem;
            margin-bottom: 0.5rem;
            color: white;
        }

        .driver-team {
            font-family: "Squada One", sans-serif;
            font-size: 1rem;
            color: #ff6b35;
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .driver-stats {
            display: flex;
            justify-content: space-between;
            margin: 1rem 0;
        }

        .stat-item {
            text-align: center;
            flex: 1;
        }

        .stat-value {
            font-size: 1.1rem;
            font-weight: bold;
            color: #ff1744;
        }

        .stat-label {
            font-size: 0.8rem;
            opacity: 0.7;
            margin-top: 0.2rem;
        }

        .driver-country {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Hover overlay for detailed info */
        .driver-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.277);
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
            pointer-events: none;
            padding: 1.5rem;
            text-align: center;
        }

        .driver-card:hover .driver-overlay {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        .overlay-name {
            font-family: "Squada One", sans-serif;
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            color: white;
        }

        .overlay-team {
            font-family: "Squada One", sans-serif;
            font-size: 2rem;
            color: #ffffff;
            margin-bottom: 1.5rem;
            font-weight: 500;
        }

        .overlay-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            width: 100%;
            margin-bottom: 1rem;
        }

        .overlay-stat {
            text-align: center;
        }

        .overlay-stat-value {
            font-size: 1.2rem;
            font-weight: bold;
            color: #ff1744;
        }

        .overlay-stat-label {
            font-size: 0.8rem;
            opacity: 0.7;
            margin-top: 0.2rem;
        }

        .overlay-country {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            opacity: 0.8;
            margin-top: 1rem;
        }

        /* Default state - simplified view */
        .driver-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1rem;
            text-align: center;
            background: linear-gradient(to top, rgb(0, 0, 0), transparent);
            transition: all 0.3s ease;
        }

        .driver-card:hover .driver-info {
            opacity: 0;
        }

        /* Team-specific colors */
        .red-bull { background: linear-gradient(135deg, #0600ef, #a20000); }
        .mercedes { background: linear-gradient(135deg, #00d2be, #00b9aa); }
        .ferrari { background: linear-gradient(135deg, #dc143c, #ff1744); }
        .mclaren { background: linear-gradient(135deg, #ff8700, #aa6300); }
        .aston-martin { background: linear-gradient(135deg, #007c6d, #00312c); }
        .alpine { background: linear-gradient(135deg, #0077ff, #005cbf); }
        .williams { background: linear-gradient(135deg, #005aff, #00c1ff); }
        .alphatauri { background: linear-gradient(135deg, #2b4562, #4c7c9b); }
        .kick-sauber { background: linear-gradient(135deg, #00ff11, #0e8901); }
        .haas { background: linear-gradient(135deg, #b3b2b2b9, #a90000); }

        /* Scroll indicators */
        .scroll-indicator {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(255, 23, 68, 0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .scroll-indicator:hover {
            background: rgba(255, 23, 68, 1);
            transform: translateY(-50%) scale(1.1);
        }

        .scroll-left {
            left: -20px;
        }

        .scroll-right {
            right: -20px;
        }

        .scroll-indicator::before {
            content: '';
            width: 8px;
            height: 8px;
            border: 2px solid white;
            border-bottom: none;
            border-right: none;
            transform: rotate(-45deg);
        }

        .scroll-right::before {
            transform: rotate(135deg);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .drivers-section {
                padding: 2rem 1rem;
            }
            
            .drivers-section-title {
                font-size: 2rem;
            }
            
            .driver-card {
                min-width: 250px;
            }
            
            .scroll-indicator {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .driver-card {
                min-width: 220px;
            }
            
            .drivers-scroll {
                gap: 1rem;
            }
        }

        /* Animation for cards appearing */
        .driver-card {
            animation: slideInFromRight 0.6s ease-out forwards;
            opacity: 0;
            transform: translateX(50px);
        }

        .driver-card:nth-child(1) { animation-delay: 0.1s; }
        .driver-card:nth-child(2) { animation-delay: 0.2s; }
        .driver-card:nth-child(3) { animation-delay: 0.3s; }
        .driver-card:nth-child(4) { animation-delay: 0.4s; }
        .driver-card:nth-child(5) { animation-delay: 0.5s; }

        @keyframes slideInFromRight {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
/* End of Driver Section*/

/* Team Cards Section */
        .teams-section {
            padding: 4rem 2rem;
            background: rgba(0, 0, 0, 0.3);
        }

        .teams-section-title {
            text-align: center;
            font-family: 'Racing Sans One', sans-serif;
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 3rem;
            background: linear-gradient(45deg, #fff, #ff1744);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .teams-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }

        .teams-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0 2rem 0;
    scroll-behavior: smooth;
    
    /* Hide scrollbar for all browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.teams-scroll::-webkit-scrollbar {
    display: none;
}

        .teams-card {
            min-width: 280px;
            max-width: 300px;
            height: 400px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 23, 68, 0.2);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            flex-shrink: 0;
        }

        .teams-card:hover {
            transform: translateY(-10px);
            border-color: rgba(255, 23, 68, 0.5);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .teams-header {
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .team-color-bar {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            z-index: 2;
        }

        .teams-image {
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #333, #666);
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            color: white;
            position: relative;
        }
        .teams-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

        .teams-info {
            padding: 1.5rem;
            text-align: center;
        }

        .teams-number {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 1.2rem;
            font-weight: bold;
            opacity: 0.6;
        }

        .teams-name {
            font-family: "Squada One", sans-serif;
            font-size: 2rem;
            margin-bottom: 0.5rem;
            color: white;
        }

        .teams-team {
            font-size: 1rem;
            color: #ff6b35;
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .teams-stats {
            display: flex;
            justify-content: space-between;
            margin: 1rem 0;
        }

        .stat-item {
            text-align: center;
            flex: 1;
        }

        .stat-value {
            font-size: 1.1rem;
            font-weight: bold;
            color: #ff1744;
        }

        .stat-label {
            font-size: 0.8rem;
            opacity: 0.7;
            margin-top: 0.2rem;
        }

        .teams-country {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Hover overlay for detailed info */
        .teams-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.277);
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
            pointer-events: none;
            padding: 1.5rem;
            text-align: center;
        }

        .teams-card:hover .teams-overlay {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        .overlay-drivers {
    font-size: 1rem;
    color: #fbfbfb;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.overlay-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.overlay-detail {
    text-align: center;
}

.overlay-detail-label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.2rem;
}

.overlay-detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

        .overlay-name {
            font-family: "Squada One", sans-serif;
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: white;
        }

        .overlay-team {
            font-size: 1.1rem;
            color: #ffffff;
            margin-bottom: 1.5rem;
            font-weight: 500;
        }

        .overlay-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            width: 100%;
            margin-bottom: 1rem;
        }

        .overlay-stat {
            text-align: center;
        }

        .overlay-stat-value {
            font-size: 1.2rem;
            font-weight: bold;
            color: #ff1744;
        }

        .overlay-stat-label {
            font-size: 0.8rem;
            opacity: 0.7;
            margin-top: 0.2rem;
        }

        .overlay-country {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            opacity: 0.8;
            margin-top: 1rem;
        }

        /* Default state - simplified view */
        .teams-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1rem;
            text-align: center;
            background: linear-gradient(to top, rgb(0, 0, 0), transparent);
            transition: all 0.3s ease;
        }

        .teams-card:hover .teams-info {
            opacity: 0;
        }

        /* Team-specific colors */
        .red-bull { background: linear-gradient(135deg, #0600ef, #a20000); }
        .mercedes { background: linear-gradient(135deg, #00d2be, #00b9aa); }
        .ferrari { background: linear-gradient(135deg, #dc143c, #ff1744); }
        .mclaren { background: linear-gradient(135deg, #ff8700, #aa6300); }
        .aston-martin { background: linear-gradient(135deg, #007c6d, #00312c); }
        .alpine { background: linear-gradient(135deg, #0077ff, #005cbf); }
        .williams { background: linear-gradient(135deg, #005aff, #00c1ff); }
        .alphatauri { background: linear-gradient(135deg, #2b4562, #4c7c9b); }
        .kick-sauber { background: linear-gradient(135deg, #00ff11, #0e8901); }
        .haas { background: linear-gradient(135deg, #b3b2b2b9, #a90000); }

        /* Scroll indicators */
        .scroll-indicator {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(255, 23, 68, 0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .scroll-indicator:hover {
            background: rgba(255, 23, 68, 1);
            transform: translateY(-50%) scale(1.1);
        }

        .scroll-left {
            left: -20px;
        }

        .scroll-right {
            right: -20px;
        }

        .scroll-indicator::before {
            content: '';
            width: 8px;
            height: 8px;
            border: 2px solid white;
            border-bottom: none;
            border-right: none;
            transform: rotate(-45deg);
        }

        .scroll-right::before {
            transform: rotate(135deg);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .teams-section {
                padding: 2rem 1rem;
            }
            
            .teams-section-title {
                font-size: 2rem;
            }
            
            .teams-card {
                min-width: 250px;
            }
            
            .scroll-indicator {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .teams-card {
                min-width: 220px;
            }
            
            .teams-scroll {
                gap: 1rem;
            }
        }

        /* Animation for cards appearing */
        .teams-card {
            animation: slideInFromRight 0.6s ease-out forwards;
            opacity: 0;
            transform: translateX(50px);
        }

        .teams-card:nth-child(1) { animation-delay: 0.1s; }
        .teams-card:nth-child(2) { animation-delay: 0.2s; }
        .teams-card:nth-child(3) { animation-delay: 0.3s; }
        .teams-card:nth-child(4) { animation-delay: 0.4s; }
        .teams-card:nth-child(5) { animation-delay: 0.5s; }

        @keyframes slideInFromRight {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Footer */

        /* Footer container to allow flex layout */
.ds-footer-container {
  display: flex;
  padding: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

/* Left side content */
.ds-footer-left {
  text-align: left;
}

/* Right side content */
.ds-footer-right {
  text-align: right;
}

.ds-footer-left span { 
  color: #c8c8c8; 
  text-transform: uppercase; 
  font-weight: 700; 
  font-size: 16px; 
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.ds-footer-left h4 { 
  color: #c8c8c8; 
  font-size: 20px; 
  font-weight: 700; 
  margin-top: 0;
  margin-bottom: 15px;
}

.ds-footer-left p { 
  letter-spacing: 1.13px; 
  color: #c8c8c8; 
  font-size: 18px; 
  margin-bottom: 0;
}

/* Social links container */
.social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Footer link styling */
.footer-link {
  color: #c8c8c8;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ff1744;
}


        /* Responsive */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-subtitle {
                font-size: 1.2rem;
            }
            
            .nav-links {
                display: none;
            }
            
            .speed-indicator {
                display: none;
            }
        }
