/* 
    KRN Travels - Premium Styles 
    Color Palette:
    - Background: #0a192f (Deep Navy)
    - Foreground/Text: #ccd6f6 (Metallic Silver)
    - Accents: #ffd700 (Gold)
    - Secondary: #112240 (Light Navy)
*/

:root {
    --primary: #0a192f;
    --secondary: #112240;
    --accent: #ffd700;
    --text-main: #ccd6f6;
    --text-dim: #8892b0;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

section {
    position: relative;
    overflow: hidden;
}

.section-padding {
    padding: 100px 0;
}

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

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-dim);
}

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

.bg-alt {
    background-color: var(--secondary);
}

.accent {
    color: var(--accent);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

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

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo .krn {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: translateY(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.9));
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-dim);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

/* About Section */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.usp-item {
    background-color: var(--secondary);
    padding: 40px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.usp-item:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.usp-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.usp-item h3 {
    color: var(--white);
    margin-bottom: 15px;
}

/* Cars Section */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.car-card {
    background-color: var(--primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-10px);
}

.car-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.1);
}

.car-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    font-weight: 700;
    border-radius: 20px;
    font-size: 0.8rem;
}

.car-info {
    padding: 30px;
}

.car-info h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.car-specs {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.car-specs li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.car-specs li span {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Pricing Table Styles */
.pricing-table-container {
    margin-top: 80px;
    padding: 60px 40px;
    background: rgba(17, 34, 64, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.pricing-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 30px;
    text-align: center;
}

.pricing-table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pricing-table th, .pricing-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table th {
    background: rgba(255, 215, 0, 0.05);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.car-name {
    color: var(--white);
    font-weight: 600;
}

.car-cell {
    display: flex;
    align-items: center;
    gap: 20px;
}

.table-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.price-cell {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.price-cell small {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 0.8rem;
}

.btn-table {
    background: var(--accent);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
}

.btn-table:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    .pricing-table-container {
        padding: 40px 20px;
    }
    .pricing-table th, .pricing-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

/* Reviews */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(17, 34, 64, 0.5);
    padding: 30px;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.author {
    color: var(--accent);
    font-weight: 600;
}

/* Gallery - Masonry */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

.masonry-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.masonry-item:nth-child(2n) {
    grid-row: span 2;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.masonry-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.info-item .icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.info-item h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.map-placeholder {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.contact-form-container {
    background: var(--secondary);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding-top: 80px;
    background: #020c1b;
}

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

.footer-brand .krn {
    color: var(--accent);
    font-size: 1.8rem;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-dim);
}

.footer-links h4, .footer-social h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Floating WhatsApp */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-widget:hover {
    transform: scale(1.1);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .container { padding: 0 30px; }
    .hero h1 { font-size: 3rem; }
    .usp-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .testimonial-carousel { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-secondary { margin-left: 0; }
    
    .fleet-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title { font-size: 2rem; }
}
