@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #333; /* Default text color */
    /* Light background for better contrast */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    padding: 20px 10%; 
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white for header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 25px;
    color: #333; /* Dark gray for logo */
    text-decoration: none;
    font-weight: 600;
}

.logo::before {
    content: ' ';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height:100%;
    background: white;
    animation: showRight 1s ease forwards;
    animation-delay: .4s;
}

.navbar {
    font-size: 18px;
    display: flex; 
    list-style: none; 
}

.navbar a {
    margin-right: 20px; 
    text-decoration: none; 
    color: #333; 
    transition: color 0.3s; 
}

.navbar a:hover {
    color: #A10332 /* Match with your theme color on hover */
}

.home {
    background: url(nmsu.png) no-repeat;
    background-size: 30%; /* Make the image smaller */
    background-position: 85% center; /* Move the image slightly to the left */
    display: flex;
    height: 100vh;
    align-items: center;
    padding: 0 10%;
}

.home-content {
    background-color: rgba(255, 255, 255, 0.8); /* Slightly opaque background for better readability */
    max-width: 600px;
    padding: 20px; /* Padding for content */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
.home-content::before{
    content: '';
    position: absolute;
    top: 0%;
    right: 0%;
    width: 100%;
    height:auto 100%;
    background: #081b29;
    animation:showright 1s ease forwards;
    animation-delay: .4s;
}
.home-content h1 {
    position: relative;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h1::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content h3 {
    position: relative;
    font-size: 32px;
    font-weight: 700;
    color: #A10332; /* Your theme color */
}
.home-content h3::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
}

.home-content p {
    position: relative;
    font-size: 16px;
    margin: 20px 0 40px;
    color: #666; /* Dark gray for better readability */
}
.home-content p::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content .btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 345px;
    height: 50px;
}
.home-content .btn-box ::before{
    content: '';
    top: 0;
    right: 0;
    width: 100%;
    height: 200%;
    background: white;
    position: absolute;
    animation:showRight 1s ease forwards;
    animation-delay: 2.5s;
    z-index: 2;
}
.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px; /* Set a fixed height */
    background: #A10332; /* Button background */
    border: 2px solid black; 
    border-radius: 8px;
    font-size: 19px;
    color: white; /* White text for visibility */
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px; 
    z-index: 1;
    overflow: hidden;
    transition: 1.9s;
}

.btn-box a:hover {
    background-color: white; /* Change background on hover */
    color: #A10332;; /* Change text color on hover */
}

.btn-box a:nth-child(2) {
    background: transparent; /* Second button transparent */
    color: #A10332;; /* Match theme color */
}

.btn-box a:nth-child(2):hover {
    color: white; /* Change text color on hover */
    background-color: #A10332; /* Change background on hover */
}

.home-sci {
    position: absolute;
    bottom: 40px;
    width: 170px;
    display: flex;
    justify-content: space-between;
}
.home-sci::before{
    content: '';
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    position: absolute;
    display: flex;
    animation: showRight 1s ease forwards;
    animation-delay: 2.5s;
    z-index: 2;
}
.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid black ;
    border-radius: 50%;
    font-size: 20px;
    color: black; /* White icon color for visibility */
    text-decoration: none;
    transition: color 0.3s; /* Smooth transition */
}

.home-sci a:hover {
    color: #A10332; /* Change icon color on hover */
    border-color: #A10332; /* Change border color on hover */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .home-content {
        max-width: 100%;
        padding: 10px;
    }

    .btn-box {
        flex-direction: column;
        width: 100%;
    }

    .btn-box a {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Adjust header font sizes for smaller screens */
    .navbar a {
        font-size: 14px; /* Smaller font size for header links */
        margin-right: 15px; /* Reduced space between links */
    }

    .logo {
        font-size: 20px; /* Adjust logo size for smaller screens */
    }

    /* Adjust heading sizes for smaller screens */
    .home-content h1 {
        font-size: 36px; /* Smaller h1 */
    }

    .home-content h3 {
        font-size: 24px; /* Smaller h3 */
    }

    .about-content h2 {
        font-size: 3rem; /* Smaller h2 */
    }

    .about-content h3 {
        font-size: 2rem; /* Smaller h3 */
    }

    .about-content p {
        font-size: 1.4rem; /* Smaller paragraph text */
    }

    .heading {
        font-size: 3rem; /* Smaller heading in About section */
    }
}

.home-imgHover {
    position: absolute;
    top: 0;
    right: 30px;
    width:1000px;
    height: 100%;
    background: transparent;
    transition: 3s;
}
.home-imgHover:hover {
    background: white;
    opacity: .8;
}
.home-imgHover::after{
    content: '';
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    position: absolute;
    display: flex;
    animation: showRight 1s ease forwards;
    animation-delay: 3s;
    z-index: 2;
}
@keyframes showRight {
    100% {
        width:0;
    }
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: #f0f0f0; /* Light gray background */
    padding: 60px 10%;
    color: #333; /* Dark text color */
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    color: #A10332; /* Crimson color for the heading */
}

.about-content h2 {
    text-align: left;
    font-size: 3.6rem;
    line-height: 1.2;
    color: #A10332; /* Crimson color for the section title */
}

.about-content h3 {
    font-size: 2.6rem;
    color: #333; /* Darker gray for the subheading */
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    color: #666; /* Lighter gray for the paragraph text */
}

.about-content strong {
    color: #A10332; /* Crimson color for bold text emphasis */
}
