/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #f4f4f4;
}

/* Ensure smooth scroll when clicking on anchors */
html {
    scroll-behavior: smooth;
}

/* Global Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0055a5; /* Initial background */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-logo a {
    color: white;
    font-size: 2em;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.navbar-logo a:hover {
    color: #00b4ff; /* Accent color */
}

/* Navbar Links */
.navbar-links {
    display: flex;
    list-style: none;
}

.navbar-links li {
    margin: 0 20px;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.navbar-links a:hover {
    color: #00b4ff; /* Accent color */
    transform: translateY(-2px); /* Small hover lift */
}

/* Mobile Navbar Toggle (Hamburger) */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.navbar-toggle-icon {
    width: 30px;
    height: 5px;
    background-color: white;
    border-radius: 5px;
}

/* Sticky Navbar effect when scrolling */
.sticky-navbar {
    background-color: #003366; /* Darker color when scrolled */
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Mobile (Hamburger Menu) */
@media (max-width: 768px) {
    .navbar-links {
        display: none; /* Hide links initially on small screens */
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #0055a5;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        border-top: 1px solid #fff;
    }

    .navbar-links.active {
        display: block;
    }

    .navbar-toggle {
        display: flex;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}




/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-image: url('krakenimages-376KN_ISplE-unsplash.jpg'); /* Replace with your image URL */
    background-size: cover;
    background-position: center;
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    z-index: 1; /* Make sure the overlay stays on top of the image */
}

/* Hero Text */
.hero-text {
    position: absolute;
    bottom: 20px; /* Move the text and button to the bottom */
    left: 50%;
    transform: translateX(-50%); /* Center text horizontally */
    color: white;
    text-align: center;
    padding: 20px;
    z-index: 2; /* Make sure the text stays on top of the overlay */
}

.hero-text h1 {
    font-size: 3em;
    font-weight: bold;
    margin: 0;
}

.hero-text p {
    font-size: 1.5em;
    margin-top: 10px;
}

/* Button Styles */
.hero .btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #00b4ff;
    color: white;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: #0055a5;
}

/* ✅ General Service Section Styling */
#services {
    padding: 50px 0;
    background-color: #f8f9fa;
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

/* ✅ Center Services & Adjust Spacing */
.services-container {
    display: flex;
    justify-content: center; /* Centers items */
    gap: 40px; /* Adds space between them */
    flex-wrap: wrap; /* Ensures responsiveness */
}

/* ✅ Ensure All Service Items Have Equal Heights */
.service-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%; /* Increased width for 2 services */
    max-width: 500px; /* Prevents them from getting too large */
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* ✅ Ensures all service items have the same height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* ✅ Hover effect on service items */
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ✅ Fix Unequal Image Sizes */
.service-item .service-image {
    width: 100%; /* Full width */
    height: 250px; /* Fixed height for uniformity */
    object-fit: cover; /* Crop image to fit nicely */
    border-radius: 10px; /* Keeps rounded corners */
    margin-bottom: 20px;
}

/* ✅ Service Title Styling */
.service-item h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

/* ✅ Service Description Styling */
.service-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Makes sure text does not affect button placement */
}

/* ✅ Button Container - Ensures Buttons Stay at the Same Level */
.button-container {
    margin-top: auto; /* Pushes the button to the bottom */
}

/* ✅ Book Appointment Button Styling */
.service-item .book-appointment {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    padding: 12px 24px; /* Padding inside the button */
    font-size: 1.1em; /* Slightly larger font */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline from link */
    display: inline-block;
    margin-top: 20px; /* Space above the button */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions for hover effect */
}

/* ✅ Button hover effect */
.service-item .book-appointment:hover {
    background-color: #0056b3; /* Darker blue when hovering */
    transform: translateY(-3px); /* Slight lift on hover */
}

/* ✅ Responsive: Full width on mobile */
@media (max-width: 768px) {
    .service-item {
        width: 100%; /* Full width for better mobile layout */
    }

    .services-container {
        flex-direction: column; /* Stack services on small screens */
        align-items: center; /* Center align the items */
    }

    /* Adjust image height for mobile */
    .service-item .service-image {
        height: 200px;
    }
}

/* ✅ Book Appointment Button Styling */
.book-appointment-button {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    padding: 12px 24px; /* Button padding */
    font-size: 1.1em; /* Slightly larger font */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline from link */
    display: inline-block;
    text-align: center;
    cursor: pointer;
    margin-top: 20px; /* Space above the button */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
}

/* ✅ Button Hover Effect */
.book-appointment-button:hover {
    background-color: #0056b3; /* Darker blue when hovering */
    transform: translateY(-3px); /* Slight lift on hover */
}

/* ✅ Button Alignment (Ensures it is placed at the bottom) */
.button-container {
    display: flex;
    justify-content: center; /* Center the button */
    margin-top: auto; /* Push button to the bottom */
}




  


/* ✅ Blog Section */
#blog {
    padding: 50px 0;
    background-color: #f4f4f4;
    text-align: center;
}

/* ✅ Responsive Grid for Blog Posts */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* ✅ Blog Post Styling (Ensure Equal Heights) */
.blog-post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 400px;
    text-align: left;
    transition: transform 0.3s ease;

    /* ✅ Ensures all blog posts have the same height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.blog-post:hover {
    transform: translateY(-10px);
}

/* ✅ Fixed Blog Image Height & Cropping */
.blog-image {
    width: 100%; /* Full width */
    height: 200px; /* Fixed height to prevent long images */
    object-fit: cover; /* Ensures the image is cropped properly */
    border-radius: 8px; /* Maintain rounded corners */
}

/* ✅ Blog Post Title */
.blog-post h3 {
    margin-top: 15px;
    font-size: 1.5rem;
    color: #333;
}

/* ✅ Blog Post Description */
.blog-post p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Makes sure text does not affect button placement */
}

/* ✅ Center Read More Button */
.read-more-container {
    display: flex;
    justify-content: center; /* Centers the button */
    align-items: center; /* Ensures vertical centering */
    margin-top: auto; /* Pushes the button to the bottom */
    padding-top: 15px; /* Adds spacing above the button */
}

/* ✅ Read More Button Styling */
.read-more {
    color: #1e90ff;
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 15px; /* Adds some padding for consistency */
    border-radius: 5px; /* Optional: Makes button look better */
    transition: transform 0.3s ease;
}

/* ✅ Hover Effect */
.read-more:hover {
    text-decoration: underline;
    transform: translateY(-3px); /* Adds a slight hover lift effect */
}

/* ✅ For hiding and showing text */
.blog-preview {
    display: block;
}

.blog-full-text {
    display: none;
}

/* ✅ Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
    .blog-image {
        height: 180px; /* Adjust for smaller screens */
    }
}




/* Contact Us Section */
.contact-section {
    padding: 80px 20px;
    background-color: #f0f8ff;
    color: #333;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5em;
    color: #0055a5;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    font-size: 1em;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 12px;
    resize: vertical;
}

.contact-form .submit-button {
    padding: 12px 20px;
    font-size: 1.2em;
    background-color: #0055a5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .submit-button:hover {
    background-color: #003b73;
}

.contact-form .submit-button:focus {
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section h2 {
        font-size: 2em;
    }

    .contact-section p {
        font-size: 1.1em;
    }

    .contact-form {
        padding: 15px;
    }
}



/* Footer */
.footer {
    background-color: #0066cc;
    color: #fff;
    padding: 15px;
    text-align: center;
}
/* About Us Section */
#about {
    padding: 100px 20px;
    background-color: #f9f9f9; /* Light neutral background for a clean look */
    text-align: center;
    position: relative;
    z-index: 1;
  }
  
  #about h2 {
    font-size: 3em;
    font-weight: 700;
    color: #0d253f; /* Darker blue for a strong, professional look */
    margin-bottom: 30px; /* Add spacing below the heading */
    text-transform: uppercase; /* Adds a modern feel */
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1s forwards;
  }
  
  #about p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #333; /* Subtle dark gray text */
    padding: 0 20px; /* Adds padding on sides for better spacing */
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    animation: fadeIn 1.5s forwards 0.5s;
  }
  
  #about .content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
  }
  
  #about .content .info-block {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.3s ease-in-out;
  }
  
  #about .content .info-block:hover {
    transform: translateY(-10px); /* Subtle lift on hover */
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  #about .content .info-block h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0d253f;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
  }
  
  #about .content .info-block p {
    font-size: 1.1em;
    color: #777; /* Lighter gray text for paragraphs */
  }
  
  #about .content .info-block:hover h3 {
    color: #3498db; /* Change text color to a bright blue on hover */
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    #about .content {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 768px) {
    #about .content {
      grid-template-columns: 1fr;
    }
  
    #about h2 {
      font-size: 2.5em;
    }
  
    #about p {
      font-size: 1.1em;
    }
  }
  
  /* Keyframe for fade-in animation */
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* Free Consultation Section */
#free-consultation {
    background-color: #007bff; /* Blue background for the section */
    padding: 50px 0;
    text-align: center;
    margin-top: 50px;
    color: white;
}

#free-consultation h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

#free-consultation p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

#free-consultation .consultation-button {
    background-color: #28a745; /* Green button */
    color: white; /* White text */
    padding: 15px 30px; /* Button padding */
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none; /* Remove underline */
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
}

#free-consultation .consultation-button:hover {
    background-color: #218838; /* Darker green on hover */
    transform: translateY(-3px); /* Slight lift effect */
}

#free-consultation .consultation-button:focus {
    outline: none;
}


