/* General Reset and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: lightblue;
    padding: 15px 0;
    color: white;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    margin-top: 15px;
    display: inline-block;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

header a:hover {
    background-color: lightcoral;
    border-color: lightcoral;
}

.logo-img {
    height: 120px; 
    width: auto;
    margin-right: 15px; 
}
/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: white; /* Dark background for contrast */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow to give depth */
}

/* Navbar Links List */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
}

.nav-links li {
    margin-left: 30px; /* More spacing between links */
}

.nav-links a {
    color: black; /* Light gray text for readability */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem; /* Slightly larger text for visibility */
    transition: color 0.3s, transform 0.3s; /* Smooth transition for hover effects */
}

/* Hover Effects for Links */
.nav-links a:hover {
    color: black; /* Accent color on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

/* Navbar Logo */
.logo img {
    width: 130px; /* Adjust logo and right image size */
    height: 120px;
}

/* Navbar Right (auth links or other items) */
.auth-links a {
    color: black;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: black; /* Accent color on hover */
}


.auth-links a {
    margin-left: 15px;
    color: black;
    text-decoration: none;
}

/* General body and font styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styles */
header {
    background-color: lightblue;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    margin-top: 15px;
    display: inline-block;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

header a:hover {
    background-color: lightcoral;
    border-color: lightcoral;
}

/* Navbar Logo */
.logo-img {
    height: 120px;
    width: auto;
    margin-right: 15px;
}

/* Auth Links */
.auth-links a {
    color: black;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #ff4081;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 400px;
}

/* Close Button Styling */
.close-btn {
    color: #aaa; /* Light gray color */
    font-size: 28px; /* Font size for the "×" */
    font-weight: bold;
    cursor: pointer; /* Shows pointer cursor when hovering */
    position: absolute;
    top: 10px; /* Position from the top */
    right: 10px; /* Position from the right */
}

.close-btn:hover,
.close-btn:focus {
    color: black; /* Changes color when hovered or focused */
    text-decoration: none;
}


/* Form Styling */
#login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#login-form button {
    width: 100%;
    padding: 10px;
    background-color: lightcoral;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#login-form button:hover {
    background-color: #ff3366;
}

#login-message {
    color: red;
    margin-top: 10px;
}

/* Hero Section */
.hero {
    background: url('background.jpg') no-repeat center center;
    background-size: cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.welcome-box {
    background-color: white;
    padding: 40px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgb(0, 0, 0);
    border: 3px solid #fff;
}

.welcome-box h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.welcome-box p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: plum;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    color: black;
    text-decoration: none;
}

.cta-button:hover {
    background-color: lightpink;
}

/* About Section */
#about {
    padding: 50px 20px;
    background-color: lightcoral;
}

.about-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Styling for both boxes */
.about-box,
.testimonials-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Heading styling for both boxes */
.about-box h2,
.testimonials-box h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-box p,
.testimonials-box p {
    font-size: 16px;
    color: #555;
}

/* Testimonials list styling */
.testimonials-box ul {
    list-style-type: none;
    padding: 0;
}

.testimonials-box li {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.testimonials-box li::before {
    content: "❝ ";
    font-size: 18px;
    color: #27ae60;
}

.testimonials-box li::after {
    content: " ❞";
    font-size: 18px;
    color: #27ae60;
}

/* Footer Styles */
footer {
    background-color: lightblue;
    color: white;
    padding: 10px 0;
    text-align: center;
}

.social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 16px;
}

footer p {
    font-size: 14px;
}

/* Accessibility: Ensure focus states for links and buttons */
a:focus, button:focus {
    outline: 3px solid #ff4081; /* Adds a focus ring for better accessibility */
}

/* Mobile and Smaller Screen Adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em; /* Adjust font size for smaller screens */
    }

    .about-container {
        flex-direction: column;
        gap: 20px;
    }

    .about-box,
    .testimonials-box {
        width: 100%;
    }

    .cta-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .hero {
        height: 40vh; /* Smaller hero section on mobile */
    }

    .welcome-box {
        width: 90%;
        padding: 20px;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    
    /* Logo adjustments */
    .navbar .logo {
        margin-top: 10px; /* Add small top margin for better spacing */
        margin-bottom: 0; /* Remove space below logo */
        text-align: center; /* Center the logo */
        padding-left: 15px; /* Add space to the left of the logo */
        padding-right: 15px; /* Add space to the right of the logo */
    }

    /* Navbar layout */
    .navbar {
        display: flex;
        flex-direction: column;  /* Stack elements vertically */
        justify-content: flex-start;  /* Align items at the top */
        align-items: left; /* Center items horizontally */
        min-height: 150px; /* Increase height for better spacing */
        padding: 2px 6px;  /* Add padding around navbar for even spacing on all sides */
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    /* Links section layout */
    .navbar .nav-links,
    .auth-links {
        display: flex;
        flex-wrap: wrap; /* Allow items to wrap if necessary */
        justify-content: center; /* Center links horizontally */
        gap: 8px; /* Space between items */
        margin: 0; /* Remove any default margin */
        width: 100%; /* Ensure the links section takes up full width */
    }

    /* Style for individual links */
    .nav-links a,
    .auth-links a {
        font-size: 12px;  /* Smaller font size */
        padding: 2px 6px; /* Adjust padding for spacing */
        white-space: nowrap;  /* Prevent text wrapping */
        margin: 0 5px;  /* Small margin between links */
    }

    /* Auth links section */
    .auth-links {
        margin-top: 10px; /* Small gap between nav links and auth links */
    }

    /* Ensure nav links span the full width */
    .nav-links {
        text-align: center; /* Center text inside nav-links */
    }
}

/* Responsive Design for iPad */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* Logo adjustments */
    .navbar .logo {
        margin-top: 10px; /* Add small top margin for better spacing */
        margin-bottom: 0; /* Remove space below logo */
        text-align: center; /* Center the logo */
        padding-left: 15px; /* Add space to the left of the logo */
        padding-right: 15px; /* Add space to the right of the logo */
        width: 100%; /* Ensure the logo takes up full width */
    }

    /* Navbar layout */
    .navbar {
        display: flex;
        flex-direction: ro;  /* Keep elements in a horizontal line */
        justify-content: space-between;  /* Space out elements with equal margins */
        align-items: center; /* Vertically align items */
        min-height: 100px; /* Ensure enough space for the navbar */
        padding: 10px 20px;  /* Add padding to the left and right of the navbar */
        overflow-x: hidden; /* Prevent horizontal scrolling */
        width: 100%; /* Ensure navbar takes up full width */
    }

    /* Links section layout */
    .navbar .nav-links,
    .auth-links {
        display: flex;
        flex-wrap: nowrap; /* Prevent wrapping of links */
        justify-content: flex-start; /* Align items to the left */
        gap: 15px; /* Increase space between items */
        margin: 0; /* Remove any default margin */
        width: auto; /* Let links take their natural width */
        flex-grow: 1; /* Allow links section to grow and take available space */
    }

    /* Style for individual links */
    .nav-links a,
    .auth-links a {
        font-size: 14px;  /* Slightly larger font size for readability */
        padding: 5px 10px; /* Adjust padding for better spacing */
        white-space: nowrap;  /* Prevent text wrapping */
        margin: 0;  /* Remove additional margins */
        text-align: center; /* Ensure links are centered */
    }

    /* Auth links section */
    .auth-links {
        margin-left: 20px; /* Add space between nav and auth links */
    }

    /* Ensure nav links stay aligned */
    .nav-links {
        text-align: left; /* Align links to the left */
        width: auto; /* Allow nav links to adjust their width */
    }
}

/* Responsive Design for iPad Mini (portrait/landscape, min-width: 768px and max-width: 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    
    /* Logo adjustments */
    .navbar .logo {
        margin-top: 10px;
        margin-bottom: 0;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;  /* Ensure logo takes up full width */
    }

    /* Navbar layout */
    .navbar {
        display: flex;
        flex-direction: column;  /* Stack elements vertically */
        justify-content: space-between;
        align-items: center;
        min-height: 100px;  /* Ensure enough height for the navbar */
        padding: 5px 10px;
        overflow-x: hidden;
        width: 100%;
    }

    /* Links section layout */
    .navbar .nav-links,
    .auth-links {
        display: flex;
        flex-wrap: nowrap;  /* Prevent wrapping of links */
        justify-content: flex-start;  /* Align items to the left */
        gap: 15px;  /* Increase space between items */
        margin: 0;
        width: auto;
        flex-grow: 1;  /* Allow links section to grow */
    }

    /* Style for individual links */
    .nav-links a,
    .auth-links a {
        font-size: 16px;  /* Slightly larger font size for readability */
        padding: 8px 12px;
        white-space: nowrap;
        margin: 0;
        text-align: center;  /* Ensure links are centered */
    }

    /* Auth links section */
    .auth-links {
        margin-left: 10px;  /* Space between nav and auth links */
    }

    /* Ensure nav links stay aligned */
    .nav-links {
        text-align: left;  /* Align links to the left */
        width: auto;
    }
}


/* Responsive Styles - for smaller screens */
@media (max-width: 768px) {
    .welcome-box {
        width: 90%;              /* Make the box take 90% of the screen */
        padding: 20px;           /* Reduce padding for smaller devices */
        margin: 5% 5%;           /* Add margin on both sides for spacing */
    }
}