/*
================================================
NAC Travel International - Unified Stylesheet
Version: 1.0
================================================
TABLE OF CONTENTS
------------------------------------------------
1.0  - Root Variables & Global Styles
2.0  - Navigation Bar
3.0  - Hero & Page Headers
4.0  - Sections & Titles
5.0  - Service & Feature Cards
6.0  - Testimonials & Media
7.0  - Page-Specific Styles
    7.1 - About Page
    7.2 - Contact Page
    7.3 - Subscribe Page
8.0  - Final CTA
9.0  - Footer
10.0 - Animations & Keyframes
11.0 - Responsive Media Queries
================================================
*/

/* 1.0 - Root Variables & Global Styles */
:root {
    --primary-blue: #001f3f;
    --primary-blue-darker: #001a33;
    --accent-red: #ff4136;
    --accent-red-hover: #ff6347;
    --text-light: #F0F3F5;
    --text-dark: #333333;
    --text-muted: #666;
    --background-light: #F8F9FA;
    --font-family: 'Poppins', sans-serif;
}

body,
html {
    font-family: var(--font-family);
    scroll-behavior: smooth;
    color: var(--text-dark);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* 2.0 - Navigation Bar */
.navbar {
    transition: background-color 0.5s ease;
    padding: 1rem 0;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-light) !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-red) !important;
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 0.75rem;
    padding: 10px 20px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #FFFFFF !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.btn-cta-nav {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-nav:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 65, 54, 0.2);
}

/* 3.0 - Hero & Page Headers */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: url('https://nac-travel.org/japan.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

.page-header {
    color: white;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.page-header.short-header {
    height: 50vh;
}

/* Specific Page Header Backgrounds */
.services-header { background: url('https://nac-travel.org/japanese.jpg') no-repeat center center/cover; }
.about-header { background: url('https://nac-travel.org/workers.jpg') no-repeat center center/cover; }
.contact-header { background: url('https://nac-travel.org/headphones.jpg') no-repeat center center/cover; }

.hero-overlay,
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.6);
}

.hero-content {
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-content h1,
.page-header h1 {
    z-index: 1;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1.5s ease-in-out;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.btn-hero {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: backwards;
}

.btn-hero:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 65, 54, 0.3);
}

/* 4.0 - Sections & Titles */
.section {
    padding: 100px 0;
}

.section-content {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--primary-blue);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--accent-red);
}

.section-title p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 10px auto 0;
}

/* 5.0 - Service & Feature Cards */
.trust-section {
    background-color: var(--background-light);
}

.trust-feature {
    text-align: center;
}

.trust-feature .icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.trust-feature h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.service-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card .card-img-container {
    height: 220px;
    overflow: hidden;
}

.service-card .card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-container img {
    transform: scale(1.1);
}

.service-card .card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card .card-title,
.service-card h5 {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-card .card-text,
.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* 6.0 - Testimonials & Media */
.testimonials-section {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.testimonials-section .section-title h2 {
    color: #fff;
}

.testimonials-section .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.video-testimonial {
    background: #002b5c;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-testimonial .ratio {
    border-bottom: 3px solid var(--accent-red);
}

.video-testimonial .video-caption {
    padding: 20px;
    text-align: center;
}

.video-testimonial .video-caption h5 {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.video-testimonial .video-caption p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 7.0 - Page-Specific Styles */

/* 7.1 - About Page */
.mission-section {
    background-color: var(--background-light);
}
.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    text-align: center;
}
.testimonial h3 {
    font-size: 1.2rem;
    margin-top: 15px;
    color: var(--primary-blue);
}
.testimonial p {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}
.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}
.video {
    width: 100%;
    max-width: 500px;
}
.video iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 8px;
}

/* 7.2 - Contact Page */
.contact-info {
    text-align: center;
    margin-bottom: 40px;
}
.contact-info p {
    font-size: 1.2rem;
    color: var(--text-muted);
}
.contact-info i {
    color: var(--accent-red);
    margin-right: 10px;
}
#map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* 7.3 - Subscribe Page */
.subscribe-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    background-color: #f7f7f7;
}
.subscribe-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}
.subscribe-form h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-blue);
}
.form-label {
    font-weight: 600;
    color: var(--primary-blue);
}
.btn-subscribe {
    background-color: var(--accent-red);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.2rem;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}
.btn-subscribe:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}
.alert-custom {
    border-radius: 8px;
    font-size: 1rem;
}


/* 8.0 - Final CTA */
.final-cta-section {
    background: linear-gradient(45deg, var(--primary-blue), #002b5c);
    color: white;
    padding: 80px 0;
    border-radius: 20px;
    margin: 50px 0;
}
.final-cta-section h2 {
    font-weight: 700;
    font-size: 2.5rem;
}

/* 9.0 - Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 60px 0 20px;
}
.footer h5 {
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 20px;
}
.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: #fff;
}
.footer .footer-links li {
    margin-bottom: 10px;
}
.footer .social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}
.footer .social-icons a:hover {
    color: var(--accent-red);
}
.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* 10.0 - Animations & Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 11.0 - Responsive Media Queries */
@media (max-width: 768px) {
    .hero-content h1, .page-header h1 {
        font-size: 2.5rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .service-card .card-img-container {
        height: 200px;
    }
    .video iframe {
        height: 200px;
    }
    #map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-content h1, .page-header h1 {
        font-size: 2rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .service-card .card-img-container {
        height: 180px;
    }
    .video iframe {
        height: 180px;
    }
    .subscribe-form {
        padding: 30px 20px;
    }
    .subscribe-form h2 {
        font-size: 1.8rem;
    }
}