:root {
    --primary: #1a76d2;
    --secondary: #ff6b6b;
    --accent: #4ecdc4;
    --dark: #2d3436;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, #1a76d2, #4ecdc4);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b, #ff9e6b);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* Animated Header & Navigation */
header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
}

/* Hide-on-scroll and absolute state */
header.hide {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
header.absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    transition: all 0.4s ease;
}

header.scrolled .nav-container {
    padding: 5px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
}

.logo img {
    height: 96px;            /* was 80px */
    width: 320px;            /* Fixed width for rectangular shape */
    margin-right: 10px;
    object-fit: cover;       /* Changed to cover for rectangular appearance */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
    border: 2px solid transparent; /* Transparent border by default */
    border-radius: 8px;      /* Rounded corners */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    cursor: pointer;         /* Pointer cursor on hover */
}

.logo img:hover {
    border: 2px solid var(--primary); /* Blue border on hover */
    transform: scale(1.02);  /* Slight scale effect on hover */
    box-shadow: 0 4px 12px rgba(26, 118, 210, 0.2); /* Enhanced shadow on hover */
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
    transition: all 0.5s ease;
}

header.scrolled .logo img { 
    height: 50px; 
    width: 266px; /* Maintain aspect ratio for smaller size */
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 15px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gradient);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-menu a:hover:after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn {
    padding: 12px 25px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 118, 210, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.4s ease;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 118, 210, 0.4);
}

.btn.gemini-btn {
    background: var(--gradient-secondary);
     box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
 .btn.gemini-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80') no-repeat center center/cover;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: waveAnimation 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    margin-top: 50px;
    animation: fadeInUp 1s ease;
    font-family: 'Playfair Display', serif;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1.2s ease;
}

.search-box {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 50px;
    display: flex;
    animation: fadeInUp 1.4s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    gap: 10px;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    outline: none;
    font-size: 1rem;
    border-radius: 50px;
    color: var(--dark);
    background: #fff;
    caret-color: var(--primary);
}

.search-box input::placeholder {
    color: #9aa0a6;
}

.search-box button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.05);
}
/* Search Results */
.search-results {
    max-width: 600px;
    margin: 8px auto 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    display: none;
}
.search-results.visible { display: block; }
.search-item { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #f9fbff; }
.search-item .title { font-weight: 600; color: var(--dark); }
.search-item .meta { font-size: 0.85rem; color: #666; margin-top: 2px; }

/* Destinations Section */
.section-title {
    text-align: center;
    margin: 80px 0 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary);
    display: inline-block;
    font-family: 'Playfair Display', serif;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.destinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.destination-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    animation: fadeIn 1s ease;
    position: relative;
}

.destination-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.destination-card:hover .card-content {
    color: var(--dark);
}

.destination-card:hover .card-content p {
    color: #666;
}

.destination-card:hover .price {
    color: var(--primary);
}

.card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    /* Ensure media layer doesn't block clicks on content/buttons below */
    pointer-events: none;
}

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

.destination-card:hover .card-img img {
    transform: scale(1.15);
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

/* Ensure card buttons are always clickable and above media layers */
.destination-card .btn {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Uniform spacing for card buttons */
.destination-card .card-content .btn {
    margin-top: 55px;
}

/* New glow effect outside cards */
.destinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    position: relative;
}

.destination-card {
    position: relative;
}

.destination-card::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(20px);
}

.destination-card:hover::after {
    opacity: 0.3;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--dark);
    transition: all 0.4s ease;
}

.card-content p {
    color: #666;
    margin-bottom: 18px;
    transition: all 0.4s ease;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.price span {
    font-size: 1rem;
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
}

/* Visa Services */
.visa-services {
    background: linear-gradient(to right, #1a76d2, #4ecdc4);
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.visa-services:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: waveAnimation 15s linear infinite;
}

.visa-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.visa-container h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.visa-container p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: #f5f7fa;
    position: relative;
}

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

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    transition: all 0.4s ease;
}

.testimonial-card:hover:before {
    width: 100%;
    opacity: 0.05;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-card i {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.client {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.client img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--accent);
}

.client-info h4 {
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.client-info p {
    color: #777;
    font-size: 0.9rem;
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes waveAnimation {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    border-radius: 3px;
}

.footer-column p {
    margin-bottom: 20px;
    color: #bbb;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-column ul li:hover {
    transform: translateX(5px);
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #333;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.95rem;
}

/* RAS International logo hover effect on About page */
.ras-logo {
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
    border: 2px solid transparent;
}
.ras-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 40px rgba(26, 118, 210, 0.25), 0 10px 24px rgba(0, 0, 0, 0.12);
    filter: saturate(1.15) contrast(1.05) brightness(1.03);
    border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 15px;
    }
    .mobile-menu-btn {
        display: none;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 10px;
    }
    header, nav, section, footer {
        padding: 10px;
    }
    .container {
        padding: 0 12px;
    }
    .nav-menu {
        flex-wrap: wrap;
        gap: 5px 10px;
    }
    .section-title {
        margin: 50px 0 30px;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .destinations {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .destination-card .card-content .btn {
        margin-top: 20px;
    }
}

/* Safety: prevent horizontal overflow on small screens */
@media (max-width: 768px) {
    html, body, header, nav, section, footer, .container {
        max-width: 100%;
        overflow-x: hidden;
    }
}
@media (max-width: 768px) {
    .nav-container {
        padding: 6px 0; /* Reduced navbar padding for mobile */
    }
    header.scrolled .nav-container {
        padding: 3px 0;
    }
    .logo img {
        height: 48px; /* Smaller logo height for mobile */
        width: 160px; /* Maintain aspect ratio for mobile */
    }
    .hero {
        padding: 110px 0 80px; /* Reduced top padding for mobile to account for smaller navbar */
    }
    .hero h1 {
        font-size: 1.6rem; /* Further reduced for better mobile fit */
        line-height: 1.1; /* Tighter line height for mobile */
        margin-bottom: 12px; /* Reduced margin for mobile */
    }
    .hero p {
        font-size: 0.85rem; /* Further reduced for better mobile fit */
        line-height: 1.3; /* Tighter line height for mobile */
        margin-bottom: 20px; /* Reduced margin for mobile */
    }
    .search-box {
        flex-direction: column;
        border-radius: 15px;
        gap: 5px;
        max-width: 90%; /* Better mobile width */
    }
    .search-box input {
        border-radius: 15px;
        margin-bottom: 1px;
        font-size: 0.8rem; /* Even smaller input text for mobile */
        padding: 10px 14px; /* Reduced padding for mobile */
    }
    .search-box button {
        border-radius: 15px;
        font-size: 0.8rem; /* Even smaller button text for mobile */
        padding: 10px 18px; /* Reduced padding for mobile */
    }
}

/* Extra adjustments for very small mobile screens */
@media (max-width: 480px) {
    .nav-container {
        padding: 4px 0; /* Even smaller navbar padding on very small screens */
    }
    header.scrolled .nav-container {
        padding: 2px 0;
    }
    .logo img {
        height: 42px; /* Even smaller logo for very small screens */
        width: 140px;
    }
    .hero {
        padding: 100px 0 60px; /* Even less padding for very small screens */
    }
    .hero h1 {
        font-size: 1.4rem; /* Much smaller for very small screens */
        line-height: 1.0; /* Very tight line height */
        margin-bottom: 10px; /* Minimal margin */
    }
    .hero p {
        font-size: 0.75rem; /* Much smaller text for very small screens */
        line-height: 1.2; /* Very tight line height */
        padding: 0 20px; /* More horizontal padding */
        margin-bottom: 18px; /* Reduced margin */
    }
    .search-box {
        max-width: 95%; /* Use more screen width on small devices */
        padding: 6px; /* Reduced padding */
    }
    .search-box input {
        font-size: 0.75rem; /* Much smaller input text */
        padding: 8px 12px; /* Reduced padding */
    }
    .search-box button {
        font-size: 0.75rem; /* Much smaller button text */
        padding: 8px 14px; /* Reduced padding */
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--dark);
}

.enquiry-container {
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
 @media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .form-group {
        margin-bottom: 20px;
    }
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

/* Custom Message Box */
.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 3000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.message-box.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Itinerary & Deal Modal Content */
#itinerary-content, #deal-content {
    min-height: 200px;
}
#itinerary-content {
     display: flex;
    justify-content: center;
    align-items: center;
}
#deal-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 10px;
}
 #deal-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}
 #deal-content p {
    margin-bottom: 10px;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

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