/* ========================================
   MIK Racing Website Styles
   수정 완료 버전 - 팀 사진 중앙 정렬 + 타임라인 모바일 최적화 완벽 적용
   ======================================== */

/* ========================================
   Root Variables
   ======================================== */
:root {
    /* Brand Colors - 로고 모티브 */
    --primary-color: #1E90FF;        /* 로고 블루 */
    --secondary-color: #00CED1;      /* 로고 시안 */
    --accent-color: #00FFAA;         /* 액센트 민트 */
    --grey-color: #9E9E9E;           /* 로고 그레이 */
    --dark-bg: #0A0E1A;
    --darker-bg: #050810;
    --card-bg: rgba(15, 20, 35, 0.8);
    --text-light: #FFFFFF;
    --text-gray: #A0AEC0;
    
    /* Typography
       [FIX] --font-body: Inter → Pretendard으로 교체
       Orbitron은 레이싱 디스플레이 전용 유지 */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont,
                 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 5%;
    
    /* Animation */
    --transition-speed: 0.3s;
    --diagonal-distance: 50px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* [FIX] iOS 폰트 자동 확대 방지 */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--darker-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    /* [FIX] 한글 단어 단위 줄바꿈 — 모바일 잘림 방지 */
    word-break: keep-all;
    overflow-wrap: break-word;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ========================================
   사선 모션 애니메이션
   ======================================== */
.animate-diagonal {
    opacity: 0;
    transform: translate(-50px, 50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-diagonal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 애니메이션 지연 효과 (순차적 등장) */
.animate-diagonal:nth-child(1) { transition-delay: 0.1s; }
.animate-diagonal:nth-child(2) { transition-delay: 0.2s; }
.animate-diagonal:nth-child(3) { transition-delay: 0.3s; }
.animate-diagonal:nth-child(4) { transition-delay: 0.4s; }
.animate-diagonal:nth-child(5) { transition-delay: 0.5s; }
.animate-diagonal:nth-child(6) { transition-delay: 0.6s; }

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* [FIX] Safari 지원 */
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 217, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: all var(--transition-speed);
    filter: drop-shadow(0 0 15px rgba(30, 144, 255, 0.5));
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 25px rgba(30, 144, 255, 0.8));
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    /* [FIX] 터치 영역 확보 */
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-speed);
    border-radius: 3px;
}

/* ========================================
   Hero Section
   [FIX] 모바일 높이: min-height 100svh + height auto
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--section-padding);
    background-image: url('../images/hero-racing-action.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* [FIX] hero-bg: 배경 레이어 분리 (원본 코드에 있으나 CSS 누락) */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-racing-action.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.hero-logo-image {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(30, 144, 255, 0.6));
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(30, 144, 255, 0.6)); }
    50% { filter: drop-shadow(0 0 50px rgba(0, 206, 209, 0.8)); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: var(--font-heading);
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.title-main {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1E90FF, #00CED1, #00FFAA);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
    letter-spacing: 5px;
    text-shadow: 0 0 60px rgba(30, 144, 255, 0.5);
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-tagline {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 206, 209, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 5px 20px rgba(30, 144, 255, 0.4);
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--darker-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 206, 209, 0.4);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(30, 144, 255, 0.5);
    /* [FIX] 모바일 잘림 방지 */
    word-break: break-word;
    white-space: normal;
    line-height: 1.2;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--dark-bg);
    padding: var(--section-padding);
    background-image: url('../images/team-group.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.about > .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.about-features {
    display: grid;
    gap: 30px;
}

.feature-item {
    background: rgba(15, 20, 35, 0.9);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(30, 144, 255, 0.3);
    transition: all var(--transition-speed);
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(30, 144, 255, 0.3);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

.about-quote {
    margin-top: 40px;
    padding: 30px;
    background: rgba(15, 20, 35, 0.9);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
}

.about-quote p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.about-quote cite {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   Drivers Section
   ======================================== */
.drivers {
    background: var(--darker-bg);
    padding: var(--section-padding);
}

.drivers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.driver-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(30, 144, 255, 0.2);
    transition: all var(--transition-speed);
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}

.driver-card[data-driver="hansol"] {
    background-image: url('../images/profile-hansol.jpg');
}

.driver-card[data-driver="jaehee"] {
    background-image: url('../images/profile-jaehee.jpg');
}

.driver-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(10, 14, 26, 0.98) 0%,
        rgba(10, 14, 26, 0.7) 50%,
        rgba(10, 14, 26, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.driver-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 60px rgba(30, 144, 255, 0.4);
    border-color: var(--primary-color);
}

.driver-info {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.driver-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(30, 144, 255, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 20px rgba(30, 144, 255, 0.6); }
    50% { text-shadow: 0 0 40px rgba(0, 206, 209, 0.8); }
}

.driver-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.driver-role {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.driver-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(30, 144, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(30, 144, 255, 0.3);
}

.stat-item strong {
    color: var(--primary-color);
    margin-right: 5px;
}

.driver-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.driver-quote {
    padding: 20px;
    background: rgba(30, 144, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 5px;
    font-style: italic;
    color: var(--text-light);
}

/* ========================================
   Team Section
   ======================================== */
.team {
    background: var(--dark-bg);
    padding: var(--section-padding);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(30, 144, 255, 0.2);
    transition: all var(--transition-speed);
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center center;
}

.team-card[data-member="ceo"] {
    background-image: url('../images/profile-ceo.jpg');
}

.team-card[data-member="director"] {
    background-image: url('../images/profile-director-real.jpg');
}

.team-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(10, 14, 26, 0.98) 0%,
        rgba(10, 14, 26, 0.7) 50%,
        rgba(10, 14, 26, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 60px rgba(30, 144, 255, 0.4);
    border-color: var(--primary-color);
}

.team-card:hover .team-card-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 14, 26, 0.95) 0%,
        rgba(10, 14, 26, 0.6) 50%,
        rgba(10, 14, 26, 0.2) 100%
    );
}

.team-info {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(30, 144, 255, 0.5);
}

.team-role {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-quote {
    padding: 20px;
    background: rgba(30, 144, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 5px;
    font-style: italic;
    color: var(--text-light);
}

/* ========================================
   Technology Section
   [FIX] 서브타이틀 ~ 스펙 카드 사이 간격 확보
   ======================================== */
.technology {
    background: var(--darker-bg);
    padding: var(--section-padding);
}

/* section-header 하단 여백 조정 */
.technology .section-header {
    margin-bottom: 48px;
}

/* tech-content 전체 상단 여백 */
.technology .tech-content {
    margin-top: 0;
}

.tech-vehicle {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(30, 144, 255, 0.2);
    position: relative;
    min-height: 600px;
    background-image: url('../images/vehicle-ioniq5n.jpg');
    background-size: cover;
    background-position: center;
    /* [FIX] 스펙 카드 그리드와 간격 확보 */
    margin-bottom: 56px;
}

/* [FIX] vehicle-image-slot 오버플로우 방지 */
.vehicle-image-slot {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.vehicle-image-slot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.vehicle-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 26, 0.9) 0%,
        rgba(5, 8, 16, 0.85) 100%
    );
    z-index: 1;
}

.vehicle-info {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.vehicle-info h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(30, 144, 255, 0.5);
}

.vehicle-subtitle {
    font-family: var(--font-body);
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.tech-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.spec-card {
    background: rgba(15, 20, 35, 0.9);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(30, 144, 255, 0.3);
    transition: all var(--transition-speed);
}

.spec-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(30, 144, 255, 0.3);
}

.spec-icon {
    margin-bottom: 20px;
}

.spec-card i {
    font-size: 3rem;
    color: var(--primary-color);
    display: block;
}

/* [FIX] HTML은 h4/p 구조 — spec-value/spec-label 선택자 보완 */
.spec-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 8px;
    word-break: keep-all;
    white-space: normal;
    line-height: 1.3;
}

.spec-card > p {
    font-family: var(--font-body);
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.spec-detail {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    word-break: keep-all;
}

/* 기존 선택자 호환 유지 */
.spec-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.spec-label {
    font-family: var(--font-body);
    color: var(--text-gray);
    font-size: 0.9rem;
}
/* ========================================
   News Section
   ======================================== */
.news {
    background: var(--dark-bg);
    padding: var(--section-padding);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 206, 209, 0.2);
    transition: all var(--transition-speed);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card[data-news="1"] {
    background-image: url('../images/news-1.jpg');
}

.news-card[data-news="2"] {
    background-image: url('../images/news-2.jpg');
}

.news-card[data-news="3"] {
    background-image: url('../images/news-3.jpg');
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(10, 14, 26, 0.98) 0%,
        rgba(10, 14, 26, 0.7) 50%,
        rgba(10, 14, 26, 0.3) 100%
    );
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 60px rgba(0, 217, 255, 0.4);
    border-color: var(--primary-color);
}

.news-card:hover .news-card-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 14, 26, 0.95) 0%,
        rgba(10, 14, 26, 0.6) 50%,
        rgba(10, 14, 26, 0.2) 100%
    );
}

.news-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.news-date {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 217, 255, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.news-link:hover {
    gap: 15px;
}

.news-source {
    display: block;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ========================================
   Schedule Section (타임라인 PC 완벽 정렬 적용)
   ======================================== */
.schedule {
    background: var(--darker-bg);
    padding: var(--section-padding);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 중앙 기준선 */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 50px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* 홀수 번째는 왼쪽, 짝수 번째는 오른쪽에 배치 */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* 날짜 스타일링 */
.timeline-date {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    display: block;
    margin-bottom: 15px;
}

/* 카드 본체 */
.timeline-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(30, 144, 255, 0.3);
    position: relative;
    transition: all var(--transition-speed);
    text-align: left; /* 카드 안쪽 텍스트는 항상 왼쪽 정렬 */
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
    border-color: var(--secondary-color);
}

/* 아이콘 */
.timeline-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 206, 209, 0.4);
}

/* 홀수(왼쪽) 카드의 아이콘은 오른쪽 선 위로 */
.timeline-item:nth-child(odd) .timeline-icon {
    right: -75px; 
}

/* 짝수(오른쪽) 카드의 아이콘은 왼쪽 선 위로 */
.timeline-item:nth-child(even) .timeline-icon {
    left: -75px; 
}

.timeline-icon i {
    font-size: 1.2rem;
    color: var(--text-light);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--dark-bg);
    padding: var(--section-padding);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(30, 144, 255, 0.2);
    transition: all var(--transition-speed);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.2);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.info-card h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-family: var(--font-body);
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(30, 144, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.7;
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(30, 144, 255, 0.1);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(30, 144, 255, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(30, 144, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design (반응형 최적화)
   ======================================== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 40px;
        transition: left var(--transition-speed);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero, .about {
        background-attachment: scroll;
    }
    
    .about-content, .drivers-grid, .team-grid, .contact-content {
        grid-template-columns: 1fr;
    }
    
    .tech-specs, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 타임라인 모바일 최적화 (한 줄 정렬) */
    .timeline::before {
        left: 30px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        padding: 20px 0 20px 80px; /* 왼쪽에 선이 있으므로 왼쪽 여백 확보 */
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 5px; /* 왼쪽 선 위에 아이콘 배치 */
        right: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tech-specs, .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .driver-card {
        min-height: 450px;
    }
    
    .team-card {
        min-height: 400px;
    }
    
    .tech-vehicle {
        min-height: 300px;
    }
}

/* ========================================
   모바일 최적화 수정 버전
   ======================================== */
@media (max-width: 768px) {
    /* 1. 히어로 섹션 높이 및 배경 최적화 */
    .hero-section {
        height: -webkit-fill-available; /* 모바일 브라우저 주소창 대응 */
        min-height: 600px;
        background-attachment: scroll; /* 모바일 배터리 절약 및 버벅임 방지 */
        background-position: center 20%; /* 차량이 더 잘 보이도록 이미지 위치 조정 */
    }

    /* 2. 메인 타이틀 크기 및 겹침 방지 */
    .hero-content h1 {
        font-size: 2.2rem !important; /* 폰트 크기를 화면에 맞게 축소 */
        letter-spacing: 2px;
        margin-bottom: 15px;
        word-break: keep-all; /* 단어 단위로 줄바꿈하여 가독성 향상 */
    }

    /* 3. 로고와 텍스트 간격 조정 */
    .hero-logo {
        width: 140px !important;
        margin-bottom: 10px;
    }

    .hero-tagline {
        font-size: 0.9rem !important;
        margin-bottom: 30px;
        letter-spacing: 4px;
    }

    /* 4. 버튼 레이아웃 */
    .hero-buttons {
        flex-direction: column; /* 버튼을 가로가 아닌 세로로 배치 */
        gap: 15px;
        width: 100%;
        padding: 0 10%;
    }

    .btn {
        width: 100%; /* 버튼이 가로로 꽉 차게 변경 */
        padding: 15px 0;
        justify-content: center;
    }

    /* 5. 배경 어둡게 처리 (글자 가독성 확보) */
    .hero-section::before {
        background: rgba(0, 0, 0, 0.6); /* 배경을 조금 더 어둡게 하여 글자가 돋보이게 함 */
    }
}