* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    background-color: black;
    color: white;
    font-family: 'Poppins', 'Segoe UI', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    


}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    background-color: black;
    position: fixed;
    /* Fixes the navbar at the top */
    top: 0;
    /* Ensures it's at the top of the viewport */
    width: 100%;
    /* Makes sure the navbar spans the full width */
    z-index: 1000;
    /* Ensures it stays above other content */
}



nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 25px;

}

nav ul li a {
    text-decoration: none;
    color: white;

}

nav ul li a:hover {
    color: #03A062;
    font-size: 1rem;

}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 4px;
    background-color: white;
    border-radius: 5px;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 4px;
    background-color: white;
    border-radius: 5px;
}


.left {
    font-size: 1.7rem;
    color: #03A062;
}
section
{
    padding: 120px 11%;

}

#home {
    display: flex;
    position: relative;
    column-gap: 9rem;
    margin:0 auto;
    justify-content: space-around;
    align-items: center;
}

#home>div {
    width: 49%;

}

.leftsection {
    font-size: 1.5rem;
}


.rightsection img {
    max-width:100%;
    width: 400px;
    height: auto;
    transform: scalex(-1);
    margin-top: -10px;



}

#infotxt {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    margin: 0 auto;
    padding: 10px;
    padding-left:0 ;
    font-weight: 400;
    letter-spacing: 0.1em;
    word-spacing: 0.1em;
    font-size: 1rem;
    text-align: justify;
    
}


.infobody {
    margin-top: 30px;
    margin-right: 100px;    
}

.green {
    color: white;
    font-family: "Anta", monospace;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 5rem;
}

#element {
    color: #03A062;
    font-family: "Anta", monospace, 'Segoe UI', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}



#about_me {
    display: flex;
    position: relative;
    margin: 0 auto;
    column-gap: 4rem;
    align-items: center;
    justify-content: space-between; /* Changed to space-between for better alignment */
    scroll-margin-top: 110px;
    width: 100%; /* Ensure it takes up the full width */
    max-width: 1200px; /* Optional max-width for readability */
    padding: 0 20px; /* Add some padding for better spacing */
}

#about_me > div {
    flex: 1; /* Use flex to make the divs take equal space */
}

.leftsection2nd img {
    max-width: 100%;
    width: 100%; /* Make the image responsive */
    height: auto;
    margin-left:-25px; /* Remove negative margin */
}

.rightsection2nd {
    font-size: 5rem;
    max-width: 100%; /* Ensure it takes full width available */
    width: 100%; /* Center align text */
}

.about {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
}

.about_heading {
    margin: 20px 0;
    font-size: 2.5rem;
}
.about_info {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    margin: 0 auto;
    padding: 10px;
    padding-left: 0;
    font-weight: 400;
    letter-spacing: 0.1em;
    word-spacing: 0.1em;
    font-size: 1rem;
    text-align: justify;
}

#links {
    text-decoration: none;
    font-weight: bold; /* Use font-weight instead of font-style */
    color: #03A062;
}


.skills-container {
    max-width: 100%;
    width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding-top:20px;
    padding-bottom: 20px;
}

/* Added these properties to ensure consistent sizing */
.skills-grid>* {
    max-width: 100% ;
    width: 240px;
}

.skill-box {
    background: #0b0b13;
    border-radius: 0%;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 1px #03A062;
}

.skill-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-icon-name {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin: 5px 0;
    font-weight: bold;
    color: white;
}

.skill-name {
    margin-left: 10px;
    display: inline-block;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 500;
}

h2 {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 300;
    text-align: center;
    color: white;
    margin-top: 100px;
    margin-bottom: 50px;
    letter-spacing: 0.2rem;
}

h3 {
    font-family: "Anta", monospace, 'Segoe UI', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

/* Education Section Styles */
.education-container {
    max-width: 100%;
    width: 1400px;
    margin: 0 auto;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

.education-grid>* {
    max-width: 100%;
    width: 300px;
}

.education-box {
    background: #0b0b13;
    border-radius: 7%;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 1px 1px #03A062;
    width: 400px;
}

.education-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.education-title {
    color: #03A062;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.education-school {
    color: white;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.education-year {
    color: #888;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.education-grade {
    color: white;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin-top: 8px;
}



.project-container {
    max-width: 100%;
    width: 2000px;
    margin: 0 auto;
    text-decoration: none;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-content: center;
}

.project-box {
    background: #0b0b13;
    border-radius: 5%;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 1px #03A062;
    width: 100%;
    max-width: 320px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.project-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-box img {
    width: calc(100% + 40px); /* Compensate for parent padding */
    margin: -20px 0 15px -20px; /* Offset the parent padding */
    border-radius: 5% 5% 0 0;
    aspect-ratio: 16/9; /* Maintain image aspect ratio */
    object-fit: cover; /* Ensure image covers area without distortion */
    
}
.project-btn{
    text-decoration: none;
}

.project-title {
    color: #03A062;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-decoration: none;
}

.project-description {
    color: rgb(160, 155, 155);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 1rem;
    text-decoration: none;
    word-spacing: 0.1rem;
    line-height: 1.5rem;
    font-weight: 500;
    margin-top: 8px;
    /* flex-grow: 1;  */
}


.form {
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 1000;
    height: 600px;
    margin-top: -20px;
    margin-left: 20px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form {
    padding: 20px;
    height: 600px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form h2 {
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 600px;
    padding: 10px;
    background: #0b0b13;
    color: white;
    margin-bottom: 15px;
    border: 1px solid #0b0b13;
    border-radius: 5px;
    resize: none;
}

.contact-form input {
    height: 30px;
}

.contact-form textarea {
    height: 200px;
}

.contact-form button {
    width: 600px;
    padding: 10px;
    background: #03A062;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background: white;
    color: #03A062;
}

section {
    /* height: 100vh; Each section takes full viewport height */
    opacity: 0;
    /* Start with sections hidden */
    transition: opacity 2s ease-in-out;
    /* Fade-in/out transition */
    color: inherit;
    /* Default black text color */
}

section.visible {
    opacity: 1;
    /* Fade the section in */
}

section:nth-child(odd) {
    background-color: black;
}

section:nth-child(even) {
    background-color: black;
}

footer {
    background-color: #0b0b13;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}


/* From Uiverse.io by ernestnash */
.btn {
    display: inline-block;
    padding: 0.5rem 1.8rem;
    margin-top: 20px;
    font-size: 16px;
    font-family: "Anta", Arial, sans-serif;
    font-weight: 700;
    color: white;
    border: 2px solid #03A062;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    font-family: inherit;
}

.btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #03A062;
    transform: translateX(-100%);
    transition: all .3s;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

html {
    /* Adjust based on your navbar height */
    scroll-behavior: smooth;
    /* Smooth scrolling */
}
#skills,#projects,#contact_me
{
    scroll-margin-top: -100px;
}

.accounts {
    margin-bottom: 40px;
    margin-top: -40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

a:hover svg {
    transform: scale(1.2);
    transition: transform 0.3s ease, fill 0.3s ease;
  }
a{
    padding-left: 5px;
    padding-right: 5px;
}