/* General Reset */
body, h1, h2, p, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    color: #f5f5f5; /* Light text color for contrast */
    background-color: #000; /* Black background */
    line-height: 1.6;
}

/* Header Styling */
header {
    background-color: #333; /* Dark gray background for header */
    color: #f5f5f5; /* Light text color */
    padding: 10px 15px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
/* Logo Styling */
.logo {
    font-size: 28px; /* Font size for logo */
    font-weight: bold;
    text-decoration: none;
    color: #f5f5f5; /* Default color for the logo */
    display: flex;
    align-items: center;
}

.logo span {
    color: #fff; /* White color for EscortHub */
}

.logo i {
    color: #ff0000; /* Red color for the heart icon */
    margin-left: 8px; /* Space between text and icon */
}

.logo .bangalore {
    color: #ff0000; /* Red color for Bangalore */
}


.search-bar-container {
    position: relative;
    display: inline-block;
}

/* Search Bar Styling */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #fff;
}

.search-bar input[type="text"] {
    padding: 10px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
    flex: 1;
    font-size: 16px;
    background-color: #333;
    color: #f5f5f5;
}

.search-bar button {
    padding: 10px 20px;
    border: none;
    background-color: #ff0000;
    color: #fff;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.search-bar button:hover {
    background-color: #cc0000;
}

/* Autocomplete Styling */
.autocomplete-items {
    display: none;
    position: absolute;
    border: 1px solid #fff;
    border-top: none;
    z-index: 99;
    background-color: #333;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    padding: 0;
    margin-top: 2px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* Hide scrollbar for iOS */
.autocomplete-items::-webkit-scrollbar {
    display: none;
}

.autocomplete-items {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Active state for autocomplete items */
.autocomplete-items.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #f5f5f5;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid #444;
}

.autocomplete-item:hover {
    background-color: #ff0000;
    color: #fff;
}

.autocomplete-active {
    background-color: #ff0000;
    color: #fff;
}

strong {
    color: #ff82b6;
    font-weight: 500;
}

/* Mobile View Adjustments for Autocomplete */
@media (max-width: 768px) {
    .autocomplete-items {
        width: 85%;
        max-width: 400px; /* Adjust max-width for smaller screens */
        border-radius: 6px; /* Slightly rounded corners */
    }

    .autocomplete-item {
        padding: 10px;
        font-size: 14px; /* Smaller font size for better fit */
    }
}

@media (max-width: 480px) {
    .autocomplete-items {
        width: 90%;
        max-width: 300px; /* Further reduce max-width */
        border-radius: 6px; /* Slightly rounded corners */
    }

    .autocomplete-item {
        padding: 8px;
        font-size: 13px; /* Even smaller font size for compact fit */
    }
}

/* Remove underline from social media icons */
.social-icons a {
    color: #f5f5f5;
    font-size: 28px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ff0000;
}

/* Menu Icon */
.menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: #f5f5f5;
}

/* Navigation Menu */
nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #333;
    width: 100%;
    text-align: center;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

nav.active {
    display: block;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav li {
    margin: 10px 0;
}

nav a {
    text-decoration: none;
    color: #f5f5f5;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff0000;
}

/* Main Content Styling */
main {
    padding-top: 70px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Heading and Paragraph Box Styling */
.content-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-align the box itself */
    border: 2px solid #fff; /* White border for the box */
    padding: 20px; /* Adjust padding as needed */
    margin-bottom: 20px; /* Space between boxes */
    margin-top: 20px;
background-color: rgba(0, 0, 0, 0.7); /* Slightly transparent background */
    border-radius: 20px; /* More pronounced rounded corners */
    text-align: center; /* Center-align text within the box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Add shadow for depth */
}

.content-box::before, .content-box::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ff0000; /* Red color for decoration */
    z-index: -1; /* Place behind the box */
}

.content-box::before {
    top: -10px;
    left: -10px;
    border-radius: 50% 0 0 0; /* Top-left corner */
}

.content-box::after {
    bottom: -10px;
    right: -10px;
    border-radius: 0 0 50% 0; /* Bottom-right corner */
}

.content-box h1, 
.content-box h2, 
.content-box h3, 
.content-box h4, 
.content-box h5, 
.content-box h6 {
    margin: 0;
    color: #ff0000; /* Red color for headings */
    font-weight: 600;
}

.content-box p {
    color: #f5f5f5; /* White color for paragraphs */
    margin: 0; /* Remove default margin */
}



/* Landscape Images */
.landscape-img-container {
    position: relative;
    width: 100%;
    max-height: 500px; /* Reduced max-height for more compact images */
    overflow: hidden;
    border: 2px solid #fff; /* Add border for better visibility */
    border-radius: 10px; /* Rounded corners for the container */
    margin-top: 50px;
}

.landscape-img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 500px; /* Constrain height */
    object-fit: cover; /* Cover the container while preserving aspect ratio */
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px; /* Reduced margin for a more compact look */
    
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 2s ease-out;
}

.overlay-text p {
    font-size: 1rem; /* Slightly smaller font size for better fit */
    margin-top: 5px; /* Reduced margin for better spacing */
    animation: slideInFromRight 1.5s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Image Grid Container */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Space between images */
    justify-content: space-between; /* Distribute space between images */
    position: relative;
}

/* Individual Images in Grid */
.image-grid img {
    flex: 1 1 calc(25% - 15px); /* Four images per row with space for the gap */
    max-width: calc(25% - 15px); /* Ensure images do not exceed this width */
    height: 400px; /* Maintain aspect ratio */
    border-radius: 10px; /* Rounded corners for images */
    border: 2px solid #fff; /* White border for images */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Shadow for images */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition for hover effects */
}

.image-grid p {
    flex: 1 1 calc(25% - 15px); /* Four images per row with space for the gap */
    /*max-width: calc(25% - 15px); /* Ensure images do not exceed this width */
    text-align: justify;
    padding: 5px;
    height: 400px; /* Maintain aspect ratio */
    border-radius: 10px; /* Rounded corners for images */
    border: 2px solid #fff; /* White border for images */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Shadow for images */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition for hover effects */
}


/* Hover effect for images */
.image-grid img:hover {
    opacity: 0.8;
}

/* Decorative Frame for Grid Container */
.image-grid::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #ff0000; /* Red border for decorative frame */
    border-radius: 16px; /* Rounded corners for the frame */
    z-index: -1; /* Place behind the grid */
}

/* Tablet View Adjustments */
@media (max-width: 768px) {
    .image-grid img {
        width: calc(50% - 15px); /* 2 images per row on tablets */
        height: auto; /* Maintain aspect ratio */
    }

    .image-grid p {
        width: calc(50% - 15px); /* 2 images per row on tablets */
        height: auto; /* Maintain aspect ratio */
    }
}

/* Mobile View Adjustments */
@media (max-width: 480px) {
    .image-grid img {
        width: calc(100% - 30px); /* 1 image per row on mobile */
        height: auto; /* Maintain aspect ratio */
    }

    .image-grid p {
        width: calc(100% - 30px); /* 1 image per row on mobile */
        height: auto; /* Maintain aspect ratio */
    }
}


/* Footer Styling */
footer {
    background-color: #222;
    color: #f5f5f5;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-search {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.footer-search .search-bar {
    max-width: 500px;
    width: 100%;
}

.footer-search input[type="text"] {
    border-radius: 50px 0 0 50px;
    border: 1px solid #fff;
    background-color: #333;
    color: #f5f5f5;
    padding: 10px 20px;
    font-size: 16px;
}

.footer-search button {
    border-radius: 0 50px 50px 0;
    background-color: #ff0000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
}

.footer-search button:hover {
    background-color: #cc0000;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 0;
}

.footer-content .copyright {
    font-size: 12px;
    color: #ddd;
    margin-top: 20px;
}

/* Contact Buttons */
.contact-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    background: #ff0000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.contact-btn:hover {
    background: #cc0000;
}

.contact-btn i {
    margin-right: 5px;
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .header-top-row {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    .header-bottom-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .search-bar {
        width: 100%;
        max-width: 500px;
        margin: 0;
    }

    .search-bar input[type="text"] {
        border-radius: 50px 0 0 50px;
        width: calc(100% - 80px);
    }

    .search-bar button {
        border-radius: 0 50px 50px 0;
        width: 80px;
        padding: 10px;
    }

    .menu-icon {
        display: block;
    }

    nav {
        top: 60px;
        background: #333;
        width: 100%;
        padding: 20px;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        list-style: none;
        padding: 0;
    }

    nav li {
        margin: 10px 0;
    }

    nav a {
        color: #f5f5f5;
        font-size: 18px;
        font-weight: 500;
    }

    .image-grid img {
        max-width: 100%;
        flex: 1 1 100%;
    }

.landscape-img-container{
       margin-top: 90px;

    .landscape-img {
        margin-top: 40px;
        margin-bottom: 0px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    .search-bar input[type="text"] {
        font-size: 14px;
        padding: 8px;
    }

    .search-bar button {
        font-size: 14px;
        padding: 8px;
    }

    .contact-buttons {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        gap: 5px;
    }

    .contact-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .social-icons a {
        font-size: 24px;
    }
}



/* Contact Page Styling */
.contact {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-container {
    background-color: #222;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.contact h1 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
}

.contact label {
    color: #fff;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #333;
    color: #fff;
    font-size: 1em;
}

.contact textarea {
    height: 150px;
    resize: vertical;
}

.contact button {
    padding: 12px 24px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background-color: #cc0000;
}

.contact-info {
    margin-top: 30px;
}

.contact-info h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.contact-info p {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 1em;
}





/* New Code June By me */

/* Service Cards Section */
.service-cards {
  background-color: #f5f5f5;
  color: #1a1a1a;
  padding: 60px 20px;
  text-align: center;
}

.service-heading {
  font-size: 32px;
  margin-bottom: 40px;
  color: #1a1a1a;
}

.service-heading .highlight {
  color: #ff4d00;
  font-weight: bold;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  background: #ffffff;
  width: 300px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
  position: relative;
}

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

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-icon {
  position: absolute;
  top: 120px;
  left: 20px;
  background: #001b66;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white;
}

.service-card h3 {
  margin: 40px 20px 10px;
  font-size: 20px;
  font-weight: 700;
  color: #001b66;
}

.service-card p {
  font-size: 15px;
  margin: 0 20px 20px;
  color: #333;
}

.learn-more {
  display: inline-block;
  margin: 0 20px 20px;
  font-weight: 600;
  color: #ff4d00;
  text-decoration: none;
  transition: color 0.2s ease;
}

.learn-more:hover {
  color: #cc0000;
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
  }
}
