@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Style the scrollbar track (the background of the scrollbar) */
::-webkit-scrollbar {
    width: 12px;  /* Adjust the width of the scrollbar */
    height: 12px; /* Adjust the height of horizontal scrollbar */
}

/* Style the scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background-color: #333333;  /* Dark grey for the thumb */
    border-radius: 6px;          /* Rounded corners for a smooth look */
    border: 2px solid #111111;   /* Subtle dark border to give depth */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);  /* Soft shadow for a lifted effect */
    transition: background-color 0.3s ease;  /* Smooth color transition on hover */
}

/* Style the scrollbar track (background of the scrollbar) */
::-webkit-scrollbar-track {
    background: #1a1a1a;  /* Very dark grey (almost black) for the track */
    border-radius: 10px;   /* Rounded corners for a more refined look */
}

/* Style the scrollbar when it's hovered */
::-webkit-scrollbar-thumb:hover {
    background-color: #555555;  /* Lighter grey for thumb on hover */
    transition: background-color 0.3s ease;  /* Smooth color change on hover */
}

/* Style the horizontal scrollbar */
::-webkit-scrollbar-horizontal {
    height: 12px;  /* Adjust the height of the horizontal scrollbar */
}

/* Style the vertical scrollbar */
::-webkit-scrollbar-vertical {
    width: 12px;  /* Adjust the width of the vertical scrollbar */
}

.merriweather-light {
    font-family: "Merriweather", serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .merriweather-regular {
    font-family: "Merriweather", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .merriweather-bold {
    font-family: "Merriweather", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .merriweather-black {
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .merriweather-light-italic {
    font-family: "Merriweather", serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .merriweather-regular-italic {
    font-family: "Merriweather", serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .merriweather-bold-italic {
    font-family: "Merriweather", serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .merriweather-black-italic {
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-style: italic;
  }

body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    overflow-y: auto; /* Allows vertical scrolling */
    font-family: 'Merriweather', serif;
    position: fixed; 
}

header {
    background: url("../images/aboutback.webp") no-repeat center center/cover;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-attachment: fixed;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7); /* Soft shadow for a polished look */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1;
}

nav {
    width: 100%;
    padding: 0em 2em;
    position: absolute;
    top: 0;
    display: flex; 
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent nav background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border for separation */
}

.logo-img {
    max-width: 100px;
    height: auto;
}


nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 1.5em;
    font-size: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}
nav ul li a::after {
    content: ""; /* Empty content for the line */
    position: absolute;
    bottom: -3px; /* Position it at the bottom of the link */
    left: 0;
    width: 0%; /* Initially, the width of the line is 0 */
    height: 2px; /* Line height */
    background-color: #ffcc33; /* Brighter underline color */
    transition: width 0.5s ease-out; /* Smooth transition for the width */
}

nav ul li a:hover {
    color: #ffcc33; /* Change the text color on hover */
}

nav ul li a:hover::after {
    width: 100%; /* Make the line full-width on hover */
}
/* Style for the "Call Now" button */
.call-now-btn {
    position: fixed;  /* Fixes the button position relative to the screen */
    bottom: 20px;     /* 20px from the bottom */
    right: 20px;      /* 20px from the right */
    background-color: #ffcc33;  /* Yellow background color */
    color: black;     /* White text */
    border: none;     /* No border */
    padding: 15px 30px;  /* Padding to make the button bigger */
    font-size: 18px;  /* Font size */
    border-radius: 5px;  /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);  /* Regular shadow */
    cursor: pointer;  /* Cursor pointer on hover */
    z-index: 9999;    /* Ensures the button stays on top of other elements */
    transition: all 0.3s ease;  /* Smooth transition for all properties */
    transform: translateY(0);   /* Initial state: no translation */
    animation: pulse 1.5s infinite;  /* Continuous pulse animation */
}

/* Glowing effect */
.call-now-btn {
    box-shadow: 0 0 15px 5px rgba(255, 204, 51, 0.8);  /* Glowing yellow shadow */
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1); /* Normal size */
    }
    50% {
        transform: scale(1.1); /* Slightly enlarged */
    }
    100% {
        transform: scale(1); /* Back to normal size */
    }
}

/* Optional: Add focus styling for accessibility */
.call-now-btn:focus {
    outline: none;  /* Remove the default outline */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);  /* Add a focus outline */
}

/* Hover tilt effect */
.call-now-btn:hover {
    transform: translateY(-5px) rotate(5deg);  /* Slight tilt on hover */
}


.home-content h2 {
    font-size: 2em;
    margin-top: 2em;
    margin-bottom: 2em;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Add text shadow for better readability */
}

.home-content p {
    font-size: 1.4em;
    margin-bottom: 1em;
    position: relative;
    z-index: 2;
    max-width: 1100px; /* Limit paragraph width for better readability */
}

.home-content p a {
    text-decoration: none;
    color: #ffcc33; /* Brighter color for links */
}

.content-2 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4em 2em;
    background-color: rgba(0, 0, 0, 0.95); /* Dark background with slight transparency */
    color: white; /* Text color to contrast the dark background */
    gap: 2em;
}

.content-2 .written {
    flex: 1;
    max-width: 600px; /* Limit width for better readability */
}

.content-2 .written h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
    color: var(--hover-color); /* Accent color for headings */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* Subtle shadow for the text */
}

.content-2 .written p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 1em;
    text-align: justify;
    color: #e0e0e0; /* Slightly lighter gray for readability */
}

.content-2 .teach1 {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px; /* Limit width of the image container */
    overflow: hidden; /* Ensure the gradient overlay is contained within the div */
}

.content-2 .teach1 img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); /* Regular shadow */
}

/* Dark gradient effect */
.content-2 .teach1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 2;
    pointer-events: none; /* Allow interaction with the image */
}

.content-3 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4em 2em;
    background-color: rgba(0, 0, 0, 0.95); /* Dark background with slight transparency */
    color: white; /* Text color to contrast the dark background */
    gap: 2em;
    z-index: 2; 
}

.content-3 .written {
    flex: 1;
    max-width: 600px;
}

.content-3 .written h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
    color: var(--hover-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.content-3 .written ul {
    font-size: 1.2em;
    line-height: 1.6;
    list-style-type: none;
    padding-left: 0;
}

.content-3 .written ul li {
    margin-bottom: 1em;
    color: #e0e0e0;
}

.content-3 .teach2 {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    overflow: hidden;
}

.content-3 .teach2 img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Dark gradient effect */
.content-3 .teach2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 2;
    pointer-events: none;
}

.content-4 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4em 2em;
    background-color: rgba(0, 0, 0, 0.95); /* Dark background with slight transparency */
    color: white; /* Text color to contrast the dark background */
    gap: 2em;
}

.content-4 .written {
    flex: 1;
    max-width: 600px;
}

.content-4 .written h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
    color: var(--hover-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.content-4 .written ul {
    font-size: 1.2em;
    line-height: 1.6;
    list-style-type: none;
    padding-left: 0;
}

.content-4 .written ul li {
    margin-bottom: 1em;
    color: #e0e0e0;
}

.content-4 .teach3 {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    overflow: hidden;
}

.content-4 .teach3 img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Dark gradient effect */
.content-4 .teach3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 2;
    pointer-events: none;
}

.menu-btn {
    display: none;
    font-size: 2em;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

body.menu-active .home-content {
    padding-top: 70% /* Adjust according to the height of your menu */
}

/* Add subtle hover effect on the header */
header:hover {
    transform: scale(1.02);
    transition: transform 0.6s ease-in-out;
}
.contact {
    background-color: rgba(0, 0, 0, 0.95); /* Semi-transparent dark background */
    color: white; /* White text for better contrast */
    padding: 2em; /* Add some padding for spacing */
    text-align: left; /* Align text to the left for consistency */
    font-size: 1.2em;
    list-style: none; /* Remove default list styling */
    
}

/* Styling for the heading inside the contact section */
.contact h2 {
    font-size: 2.5em; /* Larger font size for the heading */
    margin-bottom: 0.3em; /* Spacing below the heading */
    color: #ffcc33; /* Accent color for the heading */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6); /* Subtle shadow for the heading */
    margin-left: 100px;
}

/* Styling for the individual contact details */
.contact p {
    margin: 0.3em 0; /* Adjust spacing between the lines */
    line-height: 1.6; /* Space out the lines a bit */
    opacity: 0.8; /* Slightly reduce opacity for a softer look */
    display: flex; /* Use flexbox to align image and text */
    align-items: center; /* Align icon and text vertically */
    margin-left: 100px;
}

.contact p:hover {
    color: #ffcc33; 
    transition: color 0.3s ease;
}

/* Styling for the icons within the contact section */
.contact img {
    width: 22px;
    height: 22px; /* Consistent height for icons */
    margin-right: 0.8em; /* More spacing between icon and text */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Adding consistent alignment to lists */
.contact ul {
    padding-left: 0; /* Remove default padding */
}

.contact li {
    display: flex; /* Use flexbox to align content */
    align-items: center; /* Align items vertically */
    margin-bottom: 0.3em; /* Space between list items */
}


/* Responsive Design */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(184, 74, 74, 0.8);
        width: 100%;
        padding: 1em 0;
    }

    nav ul li {
        margin: 0.5em 0;
        text-align: center;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    nav ul.show {
        display: flex;
    }

    #nav-links {
        display: none; /* Hide the links by default */
        flex-direction: column; /* Vertical layout for mobile */
        position: fixed; /* Fixed positioning for mobile */
        top: 60px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* Background color */
        padding: 1em;
        padding-bottom: 0em;
        box-sizing: border-box;
        z-index: 9999; /* Ensure the menu stays above other content */
    }

    /* Show the menu when 'show' class is added */
    #nav-links.show {
        display: flex;
        margin-top: 40px;
    }

    .content-2 {
        flex-direction: column;
        text-align: center;
        padding: 3em 1em;
    }

    .content-2 .teach1 {
        margin-top: 2em;
    }
    .content-3 {
        flex-direction: column;
        text-align: center;
        padding: 3em 1em;
    }

    .content-3 .teach2 {
        margin-top: 2em;
    }
    .content-4 {
        flex-direction: column;
        align-items: center;
        padding: 3em 1em;
    }

    .content-4 .written {
        order: 2; /* Moves the 'written' div below the 'teach3' div */
        text-align: center;
    }

    .content-4 .teach3 {
        order: 1; /* Moves the 'teach3' div above the 'written' div */
        margin-bottom: 2em; /* Optional: Adds space between the image and text */
    }

    .contact h2{
        margin-left: 0;
    }

    .contact p{
        margin-left: 0;
    }
}

