/* =========================================
   Base Styles & Resets
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

:root {
    /* South Korean Flag Inspired Palette */
    --korea-blue: #0047A0; 
    --korea-red: #CD2E3A;  
    --text-dark: #111111;
    --bg-light: #F4F6F9;
    --white: #FFFFFF;
}

html { 
    scroll-behavior: smooth; 
}

body { 
    color: var(--text-dark); 
    line-height: 1.6; 
    background-color: var(--bg-light);
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* =========================================
   Navigation
   ========================================= */
header { 
    background-color: var(--white); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
}

.logo { 
    color: var(--korea-blue); 
    font-size: 2rem; 
    font-weight: 800; 
    letter-spacing: 1px;
}

.logo span { 
    color: var(--korea-red); 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 600; 
    transition: color 0.3s; 
}

.nav-links a:hover, .active-link { 
    color: var(--korea-red) !important; 
}

.hamburger { 
    display: none; 
}

/* =========================================
   Buttons & Global Elements
   ========================================= */
.btn-primary { 
    display: inline-block; 
    padding: 12px 28px; 
    background-color: var(--korea-red); 
    color: var(--white); 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
    border: none; 
    cursor: pointer; 
    transition: background 0.3s ease, transform 0.2s; 
}

.btn-primary:hover { 
    background-color: #a8252f; 
    transform: translateY(-2px); 
}

.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background-color: #25d366; 
    color: var(--white); 
    padding: 15px 25px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1.1rem; 
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); 
    z-index: 100; 
    transition: transform 0.3s; 
}

.whatsapp-float:hover { 
    transform: scale(1.05); 
}

.section-title { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 3rem; 
    color: var(--korea-blue); 
}

.sub-heading {
    color: var(--korea-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}

/* =========================================
   Hero Section & Slider
   ========================================= */
.hero { 
    height: 100vh; 
    position: relative; /* Required to hold the absolute slider */
    display: flex; 
    align-items: center; 
    text-align: center; 
    color: var(--white); 
    padding-top: 80px; 
    overflow: hidden;
}

/* Container for the sliding backgrounds */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Puts the slider in the background */
}

/* Individual image slide layers */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 1.5s ease-in-out; /* The smooth fade effect! */
}

/* This class is added by JS to show the current image */
.slide.active {
    opacity: 1; 
}

/* Keeps the text on top of the moving images */
.hero-content { 
    position: relative;
    max-width: 800px; 
    margin: 0 auto; 
    z-index: 1; /* Puts the text IN FRONT of the slider */
}

.hero h2 { 
    font-size: 3.8rem; 
    margin-bottom: 20px; 
    font-weight: 800; 
}

.hero p { 
    font-size: 1.3rem; 
    margin-bottom: 35px; 
}

/* Inner Page Headers */
.inner-header { 
    background: linear-gradient(rgba(0, 71, 160, 0.9), rgba(0, 71, 160, 0.9)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: var(--white); 
    padding: 160px 0 80px 0; 
    text-align: center; 
}

.inner-header h2 { 
    font-size: 3rem; 
    margin-bottom: 15px;
}

.inner-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content { 
    padding: 80px 0; 
    background-color: var(--bg-light);
}

/* =========================================
   Home Page Sections
   ========================================= */
.services { 
    padding: 100px 0; 
    background-color: var(--white); 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.service-card { 
    background: var(--bg-light); 
    padding: 40px 30px; 
    border-radius: 10px; 
    border-top: 4px solid var(--korea-red); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    text-align: center; 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.service-card h3 { 
    color: var(--korea-blue); 
    margin-bottom: 15px; 
    font-size: 1.4rem; 
}

/* Form Styles (Used on Home & Contact pages) */
.contact { 
    padding: 100px 0; 
    background-color: var(--bg-light); 
}

.contact-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}

.contact-info h2 { 
    color: var(--korea-blue); 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
}

.contact-form { 
    background: var(--white); 
    padding: 40px; 
    border-radius: 10px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); 
    border-top: 4px solid var(--korea-blue); 
}

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); }
/* UPDATED: Added textarea here so it matches inputs and selects exactly */
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; font-family: inherit; transition: border-color 0.3s; box-sizing: border-box; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--korea-blue); outline: none; }
/* UPDATED: Specific adjustments just for the text box */
.input-group textarea { resize: vertical; min-height: 100px; }

.contact-form .btn-primary { width: 100%; font-size: 1.1rem; padding: 15px; margin-top: 10px; }

/* =========================================
   Destinations Page
   ========================================= */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.destination-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.destination-card.featured { border: 2px solid var(--korea-red); }
.destination-img { width: 100%; height: 220px; object-fit: cover; }
.destination-info { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.destination-info h3 { color: var(--korea-blue); margin-bottom: 15px; font-size: 1.5rem; }
.destination-info p { color: #555; margin-bottom: 25px; flex-grow: 1; }
.destination-info .btn-primary { text-align: center; width: 100%; }

/* =========================================
   About Page
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.team-section { background-color: var(--white); padding: 80px 0; }
.team-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.team-card { background: var(--bg-light); border-radius: 12px; width: 300px; text-align: center; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--korea-red); }

/* New real image styles */
.team-photo { width: 100%; height: 250px; object-fit: cover; object-position: center top; }

.team-info { padding: 25px; }
.team-info h3 { color: var(--korea-blue); margin-bottom: 5px; text-transform: capitalize; }
.team-info .role { color: var(--korea-red); font-weight: bold; margin-bottom: 15px; font-size: 0.9rem; }

/* =========================================
   Services Page
   ========================================= */
.service-detail-row {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid var(--korea-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-detail-row.reverse { border-left: none; border-right: 5px solid var(--korea-red); }
.service-list { margin-top: 20px; list-style-type: none; }
.service-list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 500; }
.service-list li::before { content: "✓"; position: absolute; left: 0; color: var(--korea-red); font-weight: bold; }
.cta-center { text-align: center; margin-top: 50px; }

/* =========================================
   Contact Page
   ========================================= */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-details-box { background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--korea-blue); }
.contact-list { list-style: none; margin: 25px 0; }
.contact-list li { margin-bottom: 15px; font-size: 1.1rem; color: #444; }
.map-container { margin-top: 20px; border-radius: 8px; overflow: hidden; border: 2px solid var(--bg-light); }
.contact-form-box .contact-form { height: 100%; }

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: var(--korea-blue);
    color: var(--white);
    padding: 70px 0 0 0;
    margin-top: 50px;
}

.footer-container { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-col h3 { color: var(--korea-red); font-size: 1.3rem; margin-bottom: 25px; font-weight: 700; }
.footer-logo { font-size: 2rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 15px; color: var(--white); }
.footer-logo span { color: var(--korea-red); }
.about-col p { color: #d1e0f0; margin-bottom: 20px; line-height: 1.7; font-size: 0.95rem; }

.social-links a {
    display: inline-block; background: rgba(255, 255, 255, 0.1); color: var(--white); width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; margin-right: 10px; text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: background 0.3s, transform 0.3s;
}

.social-links a:hover { background: var(--korea-red); transform: translateY(-3px); }
.links-col ul { list-style: none; }
.links-col ul li { margin-bottom: 12px; }
.links-col ul li a { color: #d1e0f0; text-decoration: none; transition: color 0.3s, padding-left 0.3s; }
.links-col ul li a:hover { color: var(--white); padding-left: 8px; }
.contact-col p { color: #d1e0f0; margin-bottom: 15px; font-size: 0.95rem; }
.footer-bottom { background-color: #00367a; padding: 20px 0; text-align: center; font-size: 0.9rem; color: #a3c2e6; }

/* =========================================
   Mobile Responsiveness (All Elements)
   ========================================= */
@media(max-width: 768px) {
    /* Mobile Menu */
    .hamburger { display: block; cursor: pointer; }
    .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--korea-blue); transition: all 0.3s ease; }
    .nav-links { display: none; } 
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; background-color: var(--white); box-shadow: 0 5px 10px rgba(0,0,0,0.1); padding: 20px 0; gap: 1.5rem;
    }

    /* General Typography & Elements */
    .hero h2 { font-size: 2.5rem; }
    .whatsapp-float { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 1rem; }

    /* Page Grids Fixes */
    .contact-container, 
    .about-grid, 
    .contact-page-grid { 
        grid-template-columns: 1fr; 
    }

    /* Footer Mobile Fixes */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .social-links {
        display: flex;
        justify-content: center;
    }
    .links-col ul li a:hover {
        padding-left: 0; /* Turn off slide effect on touch screens */
    }
}

/* =========================================
   Success Pop-Up Modal
   ========================================= */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: popIn 0.3s ease-out;
    border-top: 5px solid #25d366; /* WhatsApp green accent */
}

.modal-icon { font-size: 50px; margin-bottom: 15px; }
.modal-content h3 { color: var(--korea-blue); margin-bottom: 10px; }
.modal-content p { margin-bottom: 25px; color: #555; line-height: 1.6; }

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}