
/* NEW: Hamburger menu icon style */
.menu-icon {
    display: none;         /* Hide by default on larger screens */
    font-size: 24px;       /* Make it large enough to see */
    cursor: pointer;       /* Show pointer on hover */
    margin-right: 50px;    /* Adjust as needed for your layout */
    transition: transform 0.2s ease; /* Smooth transition for transform */
}

.menu-icon:hover {
    transform: scale(1.2); /* Scale up the icon on hover */
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f3f3f3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: flex-end; /* Aligns content to the right */
    align-items: center;
    padding: 10px 20px;
    opacity: 0.9;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end; 
    padding-right: 200px; 
}

nav ul li {
    margin: 0 30px;
}

/* Reset box-sizing for consistent behavior */
nav ul li a {
    box-sizing: border-box;
    display: inline-block; /* Ensures proper spacing behavior */
    border-bottom: 10px solid transparent; /* Reserve space for the border */
    transition: border-color 0.3s ease; /* Smooth transition effect */
    color: #292a2c;
    text-decoration: none;
    font-size: 20px;
    padding: 15px 0;
    margin-bottom: -10px; /* Remove space below border */
}
/* Default active link styling */
nav ul li a.active {
    border-bottom: 10px solid #292a2c;
}

/* Hover effect for all links */
nav ul li a:hover {
    border-bottom: 10px solid #292a2c;
}

/* Remove border from the active link only when hovering over other links */
nav ul li a.active {
    border-bottom: 10px solid #292a2c;
}

nav ul:hover li a.active:not(:hover) {
    border-bottom: none;
    margin-bottom: 0; /* Reset margin when border is removed */
}

/* body */

body {
    font-family: poppins;
    margin: 0;
    padding: 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
}

.hero-content {
    flex: 1;
    text-align: left;
    padding-left: 150px;
    padding-top: 150px;
}

.hero-image {
    flex: 1;
    text-align: right;
    padding-right: 150px;
    padding-top: 250px;
}

.hero-image img {
    max-width: 75%;
    height: auto;
}

h1 {
    color: #292a2c;
    font-size: 68px;
    font-weight: 700;
    font-family: playfair display;
    margin-bottom: 0px;
}

h2 {
    color: #535353;
    font-size: 24px;
    font-weight: 200;
    font-family: open sans;
    margin-top: 2px;
    margin-bottom: 40px;
}

h3 {
    color: #535353;
    font-size: 18px;
    font-weight: 100;
    font-family: open sans;
    margin-bottom: 0px;
}


/* Button */
button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}





/* Social Icons */
.social-icons {
    display: flex;
    gap: 40px; /* Increased gap size */
    margin-top: 30px; /* Increased margin-top size */
    margin-bottom: 30px;
}

.social-icons a {
    color: #292a2c;
    text-decoration: none;
    font-size: 40px; /* Increased font size */
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.2); /* Increased scale size */
}

.section {
    display: flex;
    text-align: left;
    padding-left: 150px;
    font-size: 40px;
    font-weight: bold;
    font-family: playfair display;
    padding-top: 30px;
    margin-top: 30px;
}



.divider {
    display: flex;
    justify-content: center;
    border: none;
    height: 2px; /* Thickness of the line */
    background-color: #ccc; /* Color of the line */
    margin: 20px auto; /* Space above and below the line, center horizontally */
    width: 80%;
}
.divider2 {
    display: flex;
    justify-content: center;
    border: none;
    height: 2px; /* Thickness of the line */
    background-color: #ccc; /* Color of the line */
    margin: 20px auto; /* Space above and below the line, center horizontally */
    width: 40%;
}

.Education {
    padding-left: 150px;

}





/* On smaller screens, show the icon and hide the nav links */
@media (max-width: 768px) {
    .nav-links {
        display: none;      /* Hide nav links by default on small screens */
        flex-direction: column;
        background-color: #f3f3f3;  /* Example background for the dropdown */
        position: absolute;         /* So it can drop down */
        top: 60px;                 /* Position below the fixed nav */
        right: 0;                  /* Align to the right side */
        width: 200px;              /* Width of the dropdown menu */
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    /* Toggle class to show/hide nav links on click */
    .nav-links.show {
        display: flex;
    }

    /* Remove border and add background color for active link */
    .nav-links li a.active {
        border-bottom: none;
        background-color: #292a2c;
        color: #ffffff;
        width: calc(100vw + 20px); /* Expand the background color further left */
        display: block; /* Ensure the link is displayed as a block element */
        margin-left: -20px; /* Shift the background to the left */
    }

    /* Highlight background color on hover and remove active link highlight */
    .nav-links li a:hover {
        border-bottom: none;
        background-color: #292a2c;
        color: #ffffff;
        width: calc(100vw + 20px); /* Expand the background color further left */
        display: block; /* Ensure the link is displayed as a block element */
        margin-left: -20px; /* Shift the background to the left */
    }

    .nav-links li a {
        border-bottom: none; /* Remove borders for all links on smaller screens */
        width: calc(100vw + 20px); /* Expand the background color further left */
        display: block; /* Ensure the link is displayed as a block element */
        margin-left: -20px; /* Shift the background to the left */
    }

    .nav-links:hover li a.active:not(:hover) {
        background-color: transparent;
        color: #292a2c;
    }

    .menu-icon {
        display: block;    /* Show the menu icon on small screens */
        z-index: 9999; /* Ensure it’s on top */
          
    }


    .hero {
        flex-direction: column;  /* Stack the content vertically */
        align-items: flex-start; /* Keep text left-aligned */
        padding: 20px;           /* Add some padding to the overall container */
    }

    .hero-content {
        padding-left: 0;         /* Remove or reduce left padding for smaller screens */
        text-align: left;        /* Ensure text is left-aligned */
        padding-top: 0;          /* Adjust top padding as needed */
        margin-bottom: 20px;     /* Add some space below the text content */
    }

    .hero-image {
        text-align: center;      /* Center the image or keep it left-aligned, your choice */
        padding-right: 0;        /* Remove right padding for smaller screens */
        padding-top: 0;          /* Adjust top padding as needed */
        margin: 0 auto;          /* If you want to center the image horizontally */
        max-width: 100%;         /* Ensure image fits the screen width if needed */
    }

    .hero-image img {
        max-width: 100%;         /* Ensure the image scales down on smaller screens */
        height: auto;
    }
    .section {
        padding-left: 20px;
        font-size: 40px;
        padding-top: 20px;
        margin-top: 20px;
    }

}

