/* ========================================
   PHOENIX MOTORSPORT - STYLESHEET
   Flame-themed design with responsive layout
======================================== */

/* ========================================
   CSS RESET & ROOT VARIABLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Flame Color Palette */
    --flame-red: #FF0000;
    --flame-orange: #FF6B00;
    --flame-yellow: #FFB800;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
    --white: #ffffff;

    /* Gradients */
    --flame-gradient: linear-gradient(135deg, var(--flame-red) 0%, var(--flame-orange) 50%, var(--flame-yellow) 100%);
    --flame-gradient-reverse: linear-gradient(135deg, var(--flame-yellow) 0%, var(--flame-orange) 50%, var(--flame-red) 100%);
    --dark-flame-gradient: linear-gradient(135deg, #cc0000 0%, #cc5500 50%, #cc9400 100%);

    /* Typography */
    --font-primary: 'Heebo', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* English Language Override */
body[lang="en"] {
    font-family: var(--font-secondary);
}

/* ========================================
   FIXED HEADER
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 2px solid var(--flame-orange);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

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

/* ========================================
   UTILITY CLASSES
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    background: var(--flame-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #000000;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: contain;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.8));
}

.logo-icon {
    display: inline-block;
    animation: flameFlicker 2s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 0.9; }
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--flame-orange);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.language-toggle:hover {
    background: var(--flame-gradient);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
}

/* ========================================
   BOOK APPOINTMENT SECTION
======================================== */
.book-appointment {
    background: var(--white);
    position: relative;
}

.book-appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--flame-gradient);
}

.appointment-content {
    text-align: center;
}

.appointment-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: var(--flame-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-button {
    display: inline-block;
    background: var(--flame-gradient);
    color: var(--white);
    padding: 25px 60px;
    font-size: 1.5rem;
    font-weight: 900;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.6);
    background: var(--flame-gradient-reverse);
}

/* Google Calendar Iframe Embed - Mobile Friendly */
.calendar-embed-container {
    margin-top: 30px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.2);
    border: 3px solid var(--flame-orange);
}

.calendar-iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

/* Mobile optimization for calendar */
@media (max-width: 768px) {
    .calendar-iframe {
        height: 700px;
    }
}

@media (max-width: 480px) {
    .calendar-iframe {
        height: 650px;
    }

    .calendar-embed-container {
        border-width: 2px;
        border-radius: 10px;
    }
}

/* ========================================
   SERVICES SECTION
======================================== */
.services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--flame-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--flame-orange);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--flame-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========================================
   CONTACT INFO SECTION
======================================== */
.contact-info {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--flame-orange);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--flame-orange);
}

.contact-details {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}

.placeholder-text {
    color: var(--flame-yellow);
    font-style: italic;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    background: var(--light-gray);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
}

.about-content p {
    margin-bottom: 20px;
}

.about-highlight {
    background: var(--flame-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--dark-gray);
    padding: 40px 0;
    text-align: center;
    border-top: 3px solid;
    border-image: var(--flame-gradient) 1;
}

.footer-content p {
    margin: 10px 0;
    color: var(--light-gray);
}

.footer-credit {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--flame-orange);
}

.footer-credit a {
    color: var(--flame-yellow);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--white);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .header-logo {
        height: 100px;
    }

    .language-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .cta-button {
        padding: 20px 40px;
        font-size: 1.2rem;
    }

    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .appointment-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 80px;
    }

    .language-toggle {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 18px 35px;
        font-size: 1.1rem;
    }
}
