body {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light gray text for readability */
}

/* 헤더 스타일링 */
header {
    background-color: #161617;
    color: #fff;
    padding: 20px; /* 기본 패딩 */
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* 헤더를 최상단에 배치 */
    transition: padding 0.3s ease, background-color 0.3s ease, opacity 0.3s ease; /* 패딩, 배경색, 투명도 애니메이션 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 그림자 추가 */
}

header.scrolled {
    padding: 10px; /* 스크롤 시 작은 패딩 */
    background-color: rgba(43, 43, 43, 0.8); /* 스크롤 시 배경 색상 변경 (약간 투명) */
    opacity: 0.9; /* 투명도 적용 */
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    transition: color 0.3s ease, transform 0.3s ease; /* 애니메이션 추가 */
}

nav ul li a:hover {
    color: #FF87BC; /* 호버 시 텍스트 색상 변경 */
    text-decoration: underline;
    transform: scale(1.1); /* 호버 시 확대 효과 */
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    max-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: max-height 0.3s ease;
    overflow: hidden;
    width: 160px;
    /* 드롭다운 메뉴의 너비를 조정합니다. */
    left: 50%;
    /* TEAMS 글자의 중앙으로 이동하기 위해 left 값을 50%로 설정합니다. */
    /* transform: translateX(-50%); */
    /* left 값을 기준으로 왼쪽으로 50%만큼 이동합니다. */
    top: 100%;
    /* TEAMS 글자의 아래로 이동합니다. */
}

.dropdown-content.show {
    display: block;
    height: 530px;
    /* 드롭다운 메뉴의 최대 높이 */
}

.dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content ul li a{
    padding-left: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: large;
    color: #333;
    transition: background-color 0.3s ease;
    margin-left: 20px;
    /* 왼쪽 마진 없음 */
    position: relative;
    /* |를 위치시키기 위해 상대적 위치 지정 */
}

/* .dropdown-content ul li::before {
    content: '||||';
    font-size: x-large;
    font-weight: 2000;
    position: absolute;
    left: 1%;
    color: transparent;
    transition: color 0.3s ease;
    letter-spacing: -0.41em;
} */

/* 팀별 색상에 맞추어 | 색상 변경 */
/* 각 팀별 색상 설정 */
.dropdown-content ul li:nth-child(1):before {
    color: #27F4D2;
    /* Mercedes */
}

.dropdown-content ul li:nth-child(2):before {
    color: #3671C6;
    /* Red Bull Racing */
}

.dropdown-content ul li:nth-child(3):before {
    color: #E8002D;
    /* Ferrari */
}

.dropdown-content ul li:nth-child(4):before {
    color: #FF8000;
    /* McLaren */
}

.dropdown-content ul li:nth-child(5):before {
    color: #FF87BC;
    /* Alpine */
}

.dropdown-content ul li:nth-child(6):before {
    color: #6692FF;
    /* RB */
}

.dropdown-content ul li:nth-child(7):before {
    color: #229971;
    /* Aston Martin */
}

.dropdown-content ul li:nth-child(8):before {
    color: #64C4FF;
    /* Williams */
}

.dropdown-content ul li:nth-child(9):before {
    color: #52E252;
    /* Kick Sauber */
}

.dropdown-content ul li:nth-child(10):before {
    color: #B6BABD;
    /* Haas */
}

.dropdown-content ul li a {
    color: black;
    /* 기본 글자 색상 */
}

.dropdown-content ul li a:link,
/* 방문 전 링크 */
.dropdown-content ul li a:visited,
/* 방문 후 링크 */
.dropdown-content ul li a:hover,
/* 호버 상태 */
.dropdown-content ul li a:active {
    /* 활성 상태 */
    color: black;
    /* 모든 상태에서 글자 색상을 검은색으로 설정 */
}

/* Main Content Padding */
main {
    padding-top: 80px;
    margin-bottom: 250px;
    overflow: auto; /* 스크롤 가능하도록 설정 */
}

/* Alpine Info Title */
.alpine-info h2 {
    padding-top: 10px;
    font-size: 50px;
    text-align: center;
}

/* Driver Images Styling */
.driver-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Driver Card Styling */
.driver-card {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-radius: 6px;
    padding: 20px 0px;
    width: 40%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.driver-card img {
    padding-top: 10px;
    width: 80%;
    border-radius: 6px;
    padding-bottom: 10px;
}

.driver-card:hover {
    transform: scale(1.007);
}

.driver-card .driver-number {
    font-size: 36px;
    color: #FF87BC;
    font-family: 'Bebas Neue';
}

.driver-card .driver-name {
    font-size: 24px;
    margin: 10px 0;
}

.driver-card .driver-team {
    font-size: 18px;
    color: #999;
}

/* Famous Section Styling for Horizontal Full-Width Boxes */
.famous-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 1200px;
}

.info-box {
    display: flex;
    align-items: center;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.info-content p {
    font-family: "Titillium Web";
}

.info-box:hover {
    transform: scale(1.02);
}

.info-box img {
    width: 40%;
    border-radius: 6px;
    margin-right: 20px;
}

.info-box .info-content {
    width: 60%;
}

.info-box h3 {
    font-size: 32px;
    color: #FF87BC;
    margin-bottom: 15px;
}

.info-box p {
    font-size: 18px;
    line-height: 1.5;
}

/* Team Leadership Section Styling */
.team-leadership {
    margin: 40px auto;
    max-width: 900px;
}

.team-leadership h2 {
    font-size: 50px;
    color: #FF87BC;
    text-align: center;
    margin-bottom: 30px;
}

/* Leadership Cards Container */
.leadership-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .leadership-cards {
        flex-direction: row;
    }
}

/* Leadership Card Styling */
.leadership-card {
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center; /* Center align text in absence of images */
}

.leadership-card:hover {
    transform: scale(1.02);
}

.team-leadership h2 {
    color: #fff;
}

.leadership-card h3 {
    font-size: 28px;
    color: #FF87BC;
    margin-bottom: 10px;
}

.leadership-card p {
    font-size: 18px;
    line-height: 1.5;
}





/* 차량 컨테이너 스타일링 */
.car-container {
    display: flex;
    align-items: center;
    margin: 20px;
    background-color: #1e1e1e;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.car-container img {
    max-width: 54.4%;
    margin-right: 20px;
    border: 2px solid #343434;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.car-container img:hover {
    transform: scale(1.03);
}

.car-text h2 {
    font-size: 60px;
    color: #FF87BC;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    padding-left: 10px;
}

.car-details {
    font-size: 32px;
    color: #e0e0e0;
    background-color: #1e1e1e;
    padding: 36px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.car-details ul li strong {
    color: #FF87BC;
}

/* Technical Specifications Styling */
/* Technical Specifications Styling */
.car-specs {
    margin-top: 50px;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    margin: 40px auto;
}

.car-specs h3 {
    font-size: 34px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
}

/* Accordion Card Styling */
.car-specs .card {
    background-color: #2b2b2b;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.car-specs .card-header {
    background-color: #2b2b2b;
    border: 1px solid #FF87BC;
    border-radius: 10px;
    padding: 15px;
}

.car-specs .card-header h5 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.car-specs .btn-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 22px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.car-specs .btn-link:hover {
    color: #FF87BC;
    background-color: #333333;
    border-radius: 10px;
}

.car-specs .card-body {
    background-color: #262626;
    color: #e0e0e0;
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
    border-top: 1px solid #FF87BC;
}

.car-specs .card-body p {
    margin: 0;
}

/* Icon Styling for Accordion */
.car-specs .card-header .btn-link:after {
    content: '▼';
    font-size: 18px;
    color: #FF87BC;
    transition: transform 0.3s ease;
}

.car-specs .card-header.collapsed .btn-link:after {
    transform: rotate(180deg);
}




/* 푸터 스타일 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #444;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-content h3 {
    margin-bottom: 10px;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-content ul li {
    display: inline;
    margin-right: 10px;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-bottom p {
    font-size: 0.8em;
}

.f1-logos ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.f1-logos li {
    display: inline-block;
    margin: 1% 1%;
}

.f1-logos img {
    width: auto;
    height: 45px;
    vertical-align: middle;
}

/* Fade-in keyframes */
/* Fade-in keyframes */
@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initial hidden state for text */
.fade-in-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInText 1s forwards;
}

/* Staggered effect for each fade-in element */
.fade-in-text:nth-child(1) {
    animation-delay: 0.3s;
}

.fade-in-text:nth-child(2) {
    animation-delay: 0.5s;
}

.fade-in-text:nth-child(3) {
    animation-delay: 0.7s;
}

.fade-in-text:nth-child(4) {
    animation-delay: 0.9s;
}

.fade-in-text:nth-child(5) {
    animation-delay: 1.1s;
}

.fade-in-text:nth-child(6) {
    animation-delay: 1.3s;
}

/* Initial hidden state for text */
.fade-in-text {
    opacity: 0;
    transition: opacity 2s ease, transform 1s ease;
}

/* Fully visible state */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInText 1s forwards;
}