/* 
    AJANTHA CAR RENTAL - PREMIUM DESIGN SYSTEM 
    Color Palette: Emerald Green & Gold
*/

:root {
    --primary: #0a2f1f;
    --primary-light: #1b4d33;
    --accent: #f5b342;
    --accent-hover: #ffdd55;
    --text-light: #ffffff;
    --text-dark: #1e2b27;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-dark: rgba(0, 0, 0, 0.3);
    --border-glass: rgba(255, 255, 255, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-premium: 0 30px 60px -12px rgba(0, 40, 20, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8faf9;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

body.loading {
    overflow: hidden;
}

h1, h2, h3, .premium-font {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Fluid Typography */
h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
p { font-size: clamp(0.95rem, 2vw, 1.15rem); }

/* ---------- LOADER ---------- */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #000 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
    width: 200px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    animation: pulseLogo 2s infinite ease-in-out;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulseLogo { 
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* ---------- NAVBAR ---------- */
nav {
    position: fixed;
    top: 0; width: 100%; height: 90px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 6%;
    background: transparent;
    transition: var(--transition);
    z-index: 1000;
}

nav.scrolled {
    height: 75px;
    background: rgba(10, 47, 31, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.logo img {
    height: 250px;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

nav.scrolled .logo img {
    height: 180px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    opacity: 0.85;
}

.nav-menu a:hover {
    color: var(--accent);
    opacity: 1;
}

.nav-cta {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 10px 20px -5px rgba(245, 179, 66, 0.4);
    opacity: 1 !important;
}

.nav-cta:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
}

/* ---------- HERO ---------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
    background: url('images/CAR RENTALS.svg') no-repeat center center/cover;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Fallback if image not found */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 20px;
    animation: fadeInSlide 1.5s ease-out forwards;
}

@keyframes fadeInSlide {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--accent);
    display: block;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0.9;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-premium {
    padding: 18px 45px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-gold {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(245, 179, 66, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px -10px rgba(0,0,0,0.3);
}

/* ---------- SECTIONS ---------- */
section {
    padding: clamp(60px, 10vw, 120px) 8%;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 80px);
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ---------- OFFICE GALLERY ---------- */
.office-gallery {
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 7 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 7 / 10; grid-row: 2 / 3; }
.gallery-item:nth-child(4) { grid-column: 10 / 13; grid-row: 2 / 3; }

/* ---------- CAR CARDS ---------- */
.cars-section {
    background: #f0f4f2;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.car-card-premium {
    background: #fff;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.car-card-premium:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-premium);
}

.car-image-wrapper {
    background: #f8f8f8;
    border-radius: 30px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.car-card-premium img {
    width: 85%;
    transition: transform 0.6s ease;
}

.car-card-premium:hover img {
    transform: scale(1.08) translateX(10px);
}

.car-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--primary);
    color: var(--accent);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.car-info {
    padding: 25px 15px;
}

.car-price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.car-price-tag span {
    font-size: 1rem;
    opacity: 0.6;
    font-weight: 500;
}

.car-name-premium {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.car-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    background: #f4f7f5;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
}

/* ---------- WHATSAPP BUTTON ---------- */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-sticky:hover {
    transform: scale(1.1) rotate(15deg);
}

.pulse-animation {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- TRUST SECTION ---------- */
.trust-section {
    background: var(--primary);
    color: #fff;
    text-align: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
}

.stat-box h3 {
    font-size: 3.5rem;
    color: var(--accent);
}

.stat-box p {
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* ---------- CAROUSEL / CARS ---------- */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollLinear 40s linear infinite;
    padding: 20px;
}

.carousel-track .car-card-premium {
    width: 380px;
    flex-shrink: 0;
}

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

@keyframes scrollLinear {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

/* ---------- MAP SECTION ---------- */
.map-container {
    width: 100%;
    padding: 80px 8%;
    background: #fff;
}

.map-wrapper {
    width: 100%;
    height: 500px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0,0,0,0.05);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- BOOKING FORM ---------- */
.booking-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-form input, 
.booking-form select, 
.booking-form textarea {
    width: 100%;
    padding: 15px 25px;
    border-radius: 15px;
    border: 1.5px solid #eee;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.booking-form input:focus, 
.booking-form select:focus, 
.booking-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 179, 66, 0.1);
}

.booking-form button {
    background: var(--primary);
    color: var(--accent);
    padding: 18px;
    border-radius: 15px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.booking-form button:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ---------- INSTAGRAM REELS / AJANTHA MOMENTS ---------- */
.reels-section {
    background: #fff;
    overflow: hidden;
}

.reels-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.reels-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scrollLinearReels 60s linear infinite;
    padding: 20px;
}

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

@keyframes scrollLinearReels {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12.5px)); }
}

.reel-card {
    min-width: 280px;
    height: 500px;
    background: #000;
    border-radius: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.reel-card video, .reel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.8s ease;
}

.reel-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(10, 47, 31, 0.4);
    border-color: var(--accent);
}

.reel-card:hover video, .reel-card:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.reel-content {
    position: absolute;
    bottom: 30px;
    left: 25px;
    right: 25px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.reel-content i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.reel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    pointer-events: none;
}

/* ---------- TESTIMONIALS & GOOGLE REVIEWS ---------- */
.testimonials {
    background: #f8faf9;
    padding: 100px 5%;
}

.trust-badge-premium {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.google-rating {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.stars {
    color: #fbbc05; /* Google Gold */
    font-size: 1.5rem;
    display: flex;
    gap: 5px;
}

.review-card-premium {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    width: 400px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative;
}

.review-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent);
}

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

.reviewer-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-name h4 {
    font-size: 1.1rem;
    color: var(--primary);
}

.reviewer-name span {
    font-size: 0.8rem;
    opacity: 0.6;
}

.review-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-card-premium i.fa-quote-right {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 2.5rem;
    opacity: 0.05;
}

/* ---------- FOOTER ---------- */
footer {
    background: #051a11;
    color: rgba(255,255,255,0.7);
    padding: 100px 8% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-logo img { 
    width: auto;
    max-width: 240px;
    max-height: 120px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1); 
    transition: var(--transition);
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .footer-logo img { max-width: 180px; max-height: 90px; margin: 0 auto 30px; }
}

@media (min-width: 2000px) {
    .footer-logo img { max-width: 350px; max-height: 160px; }
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: inherit; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* ---------- RESPONSIVE OVERRIDES ---------- */
@media (max-width: 1200px) {
    .nav-menu { gap: 1.5rem; }
    .hero-content { max-width: 700px; }
}

@media (max-width: 992px) {
    .nav-menu { display: none; }
    .menu-toggle { display: block !important; }
    
    .gallery-grid {
        grid-template-rows: repeat(4, 280px);
    }
    .gallery-item:nth-child(n) {
        grid-column: 1 / 13 !important;
        grid-row: auto !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero { padding: 0 5%; text-align: center; justify-content: center; }
    .hero p { margin: 0 auto 3rem; border-left: none; border-bottom: 3px solid var(--accent); padding: 0 0 15px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-premium { width: 100%; justify-content: center; }
    
    .stats-container { gap: 30px; }
    .stat-box h3 { font-size: 2.5rem; }
    
    .booking-form { padding: 30px 20px; border-radius: 25px; }
}

@media (min-width: 2000px) {
    .hero-content { max-width: 1200px; }
    html { font-size: 22px; }
}
