/* ==========================================
   1. VARIABLES & RESET
   ========================================== */

@font-face {
    font-family: 'LeagueSpartan';
    src: url('fonts/LeagueSpartan.ttf'); 
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-main: #BD521E;
    --bg-card: #ffffff;
    --text-main: #ffffff;
    --text-muted: #000000;
    --accent-color: #E26F26; 
    --accent-hover: #FF9A8C;
    --border-color: #BD521E;
    --font-stack: 'LeagueSpartan', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Universal Box Reset (Fixed selector bug) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
header {
    background-color: #1F1F1F;
    width: 100%;
}

/* 1. Centered Logo Section */
.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.nav-logo {
    max-height: 180px;
    width: auto;
    display: block;
}

.brand-logo-link {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.brand-logo-link:hover {
    opacity: 0.8;
}

/* 2. Sticky Navigation Container */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #1F1F1F;
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem; /* Space between links row and Book Now button */
    max-width: 1200px;
    margin: 0 auto;
}

/* Nav Links Row */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Book Now Button Row */
.book-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-book {
    background: var(--accent-color);
    color: #ffffff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
    display: inline-block;
}

.btn-book:hover {
    background: var(--accent-hover);
}

/* ==========================================
   3. MAIN LAYOUT & CARDS
   ========================================== */
main {
    flex: 1;
    max-width: 1000px;
    margin: 0.5rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

main a {
    color: #ffffff; 
    text-decoration: none; 
}

main a:hover {
    color: #000000;
}

.hero-section {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-section h1 {
    font-size: clamp(0.5rem, 5vw, 3rem);
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 0rem auto;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #BD521E;
}

.card p {
    color: #000000;
    font-size: 0.95rem;
}

/* ==========================================
   4. INDEX CAROUSEL (CONSTRAINED BOX)
   ========================================== */
.carousel-container {
    width: 100% !important;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    width: 400%;
    animation: scrollCarousel 12s infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track a {
    flex: 0 0 25%;
    width: 25%;
    display: block;
    box-sizing: border-box;
}

.carousel-track img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@keyframes scrollCarousel {
    0%, 25% { transform: translateX(0); }
    33%, 58% { transform: translateX(-25%); }
    66%, 91% { transform: translateX(-50%); }
    100% { transform: translateX(-75%); }
}

/* ==========================================
   5. ABOUT PAGE: VERTICAL CENTERED LAYOUT
   ========================================== */
.about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header Section */
.about-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    color: #000000;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

/* Floating Image & Glow Container */
.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 2.5rem auto;
}

.about-carousel-container {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    animation: levitate 6s ease-in-out infinite;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.about-carousel-track {
    display: flex;
    width: 400%;
    animation: scrollAboutCarousel 12s infinite;
}

.about-carousel-track:hover {
    animation-play-state: paused;
}

.about-carousel-track img {
    width: 25%;
    height: auto;
    display: block;
    object-fit: cover;
}

.tech-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #E26F26, #BD521E);
    border-radius: 25px;
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
}

/* White Paragraph Text */
.about-body-text p {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 1.2rem;
}

/* About Page Animations */
@keyframes levitate {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.04); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes scrollAboutCarousel {
    0%, 25% { transform: translateX(0); }
    33%, 58% { transform: translateX(-25%); }
    66%, 91% { transform: translateX(-50%); }
    100% { transform: translateX(-75%); }
}

/* ==========================================
   6. GOOGLE MAP EMBED
   ========================================== */
.map-container {
    width: 100%;
    height: 450px;
    border: 2px solid #d35400;
    border-radius: 12px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ==========================================
   7. FOOTER STYLES
   ========================================== */
footer {
    background-color: #1F1F1F; 
    color: var(--text-main);
    padding: 1.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-content a {
    color: var(--text-main);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: var(--accent-hover);
}

/* ==========================================
   8. MEDIA QUERIES
   ========================================== */
@media (max-width: 768px) {
    .hero-banner-img {
        height: 250px; 
    }
    
    .nav-links {
        gap: 1rem;
    }
}
