/* Mobile-specific styles for RamaHolidays website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header and Navbar */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-menu {
    position: fixed;
    left: -100%;
    top: 120px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    margin: 2.5rem 0;
}

.nav-menu a {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007bff;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Roboto Slab', serif;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    display: inline-block;
}

.cta-button:hover {
    background: linear-gradient(45deg, #ff5252, #ff3838);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.hero-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
}

.nav-arrow {
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    margin: 0 8px;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.nav-arrow:hover {
    background: rgba(255,255,255,1);
}

.nav-dots {
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: rgba(255,255,255,1);
}

.dot:hover {
    background: rgba(255,255,255,0.8);
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.6rem;
    padding: 1rem;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
    margin-top: -2rem;
}

.search-box input:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1;
}

.search-box input:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1;
}

.search-box input:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2;
}

.search-box input:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2;
}

.search-box input {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0;
}

.search-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    grid-column: 1 / 3;
    grid-row: 3;
    margin-top: 0rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.search-button:hover {
    background: #0056b3;
}
.animated-title {
    display: none;
}
.animated-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
    font-family: 'Lobster', cursive;
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: subtitleAppear 0.5s ease-in-out 1.2s forwards;
    border-right: 2px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
}



/* Services Section */
.services {
    padding: 2rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    min-height: 100vh; /* Locked height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    flex: 1;
}

.service-card {
    background: white;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Gallery Sections */
.trending-destinations, .destinations {
    min-height: 100vh; /* Locked height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
}

.trending-destinations h2, .destinations h2 {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
    color: #000;
    font-weight: 700;
}

.trending-destinations .subtitle, .destinations .subtitle {
    font-size: 0.95rem;
    font-weight: normal;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.gallery-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    flex: 1;
}

.gallery-grid {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    width: max-content;
    flex-wrap: nowrap;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 280px;
    height: 200px;
    flex-shrink: 0;
}

.gallery-item.small {
    width: 140px;
    height: 150px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.scroll-arrow {
    display: none;
}

/* About Section */
.about {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    min-height: 100vh; /* Locked height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #007bff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.about h2 img {
    height: 3rem;
    width: auto;
    vertical-align: top;
    margin-top: -5px;
    margin-right: 0.5rem;
}

.about h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #555;
    font-style: italic;
}

.about p {
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: #333;
    text-align: justify;
    flex: 1;
}

.about .cta-button {
    margin-top: 2rem;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: 'Roboto Slab', serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.about .cta-button:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Contact Section */
.contact {
    padding: 1rem 0.5rem;
    max-width: 100%;
    margin: 4rem auto 0;
    text-align: center;
    background: #f8f9fa;
    min-height: 100vh; /* Locked height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

#contact-form input,
#contact-form textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

#contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

#contact-form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9rem;
}

#contact-form button:hover {
    background: #0056b3;
}

#success-message {
    margin-top: 1rem;
    padding: 1rem;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

/* Footer */
.footer {
    background: #f5f5f5;
    color: #333;
    padding: 1rem 0;
    margin-top: 4rem;
    font-family: 'Arial', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #000;
    transition: color 0.3s;
    font-size: 1.2rem;
}

.footer-section p {
    color: #000;
    transition: color 0.3s;
}

.footer-section p:hover {
    color: #007bff;
}

.footer-section h3:hover {
    color: #007bff;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    font-size: 1.5rem;
    color: #000;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
    margin-top: 2rem;
    color: #000;
}

.footer-bottom a {
    color: #000;
}

.footer-bottom a:hover {
    color: #007bff;
    font-weight: bold;
}

/* Floating Social Media Icons */
.floating-social-icons {
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: orange;
    padding: 0px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.floating-social-icons a {
    color: white;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

.floating-social-icons a:hover {
    color: #333;
}

.floating-social-icons .separator {
    height: 1px;
    width: 15px;
    background: white;
    margin: 3px 0;
}

/* Breadcrumb Navigation Mobile */
.breadcrumb-nav {
    margin-top: 60px;
}

.breadcrumb-container {
    padding: 0.75rem 1rem;
    gap: 0.25rem;
}

.breadcrumb-link,
.breadcrumb-current {
    font-size: 0.85rem;
}

.breadcrumb-separator {
    margin: 0 0.25rem;
}

/* Animations */
@keyframes titleAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes titleMoveUp {
    from { transform: translateY(0) scale(1); font-size: 2rem; }
    to { transform: translateY(-50px) scale(1); font-size: 2rem; }
}

@keyframes subtitleAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
