@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #0a0524;
    --second-bg-color: #12171a;
    --text-color: #ededed;
    --main-color: #00abf0;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/*Header Section */

.home {
    background: linear-gradient(to right, var(--bg-color), rgba(10, 5, 36, 0.9));
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 9%;
    transition: 0.3s;
}


.header.sticky {
    background: yellowgreen;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
}

.navbar a:hover,
.navbar a:active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home {
    position: relative; /* Add this to make z-index work */
    display: flex;
    align-items: center;
    padding: 0 9%;
    background-size: cover;
    background-position: center;
}

.home-content {
    max-width: 60rem;
    z-index: 2; /* Ensure text is above the image */
    position: relative; /* Add this to make z-index work */
}
.home-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content .text-animate {
    position: relative;
    width: 32.8rem;
}

.home-content .text-animate h3 {
    font-size: 3rem;
    font-weight: 700;
    color: whitesmoke;
    -webkit-text-stroke: .7px var(--main-color);
}

.home-content p {
    font-size: 1.8rem;
    margin: 2rem 0 4rem;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: .4rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
    background: var(--main-color);
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover:before {
    width: 100%;
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.home-sci a:hover {
    color: var(--bg-color);
}

.home-imgHover {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(10, 5, 36, 0.8), rgba(10, 5, 36, 0.6), rgba(10, 5, 36, 0.2)), url('images/upd 1.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out, opacity 0.5s ease-in-out;
    z-index: 1; /* Ensure image is behind the text */
}

body {
    background: linear-gradient(to right, #080A1A, rgba(8, 10, 26, 0.7)), url('your-image-path.jpg');
    background-size: cover;
    background-position: center;
}

.home-imgHover:hover {
    transform: scale(1.05);
    filter: blur(8px);
    opacity: 0.8;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--bg-color);
    padding-bottom: 6rem;
    text-align: left;
    font-size: 16px;
}

.about-content {
    max-width: 800px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-content h1 {
    font-size: 26px;
    margin-bottom: 0.5rem;
}

.about-content h2 {
    font-size: 20px;
    color: blue;
    margin-top: 3.0rem;
}

.about-content h4 {
    font-size: 20px;
    color: blue;
    margin-top: 3.0rem;
}

.about-content p,
.about-content li,
.about-content a {
    font-size: 16px;
    line-height: 1.6;
}

.about-content a {
    margin-top: 3.0rem;
}

.about-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--main-color);
}

.journey {
    background-color: var(--bg-color);
    margin-bottom: 1.5rem;
    font-size: 20px;
    text-align: center;
    padding-bottom: 5rem;
}

/* Main Education Section */
.education {
    background-color: var(--bg-color);
    padding-bottom: 6rem;
    /* Increased for more spacing */
    text-align: center;
}

/* Main Flexbox Container */
.education-row {
    display: flex;
    /* Enables side-by-side layout */
    justify-content: space-between;
    /* Spreads columns apart */
    flex-wrap: wrap;
    /* Allows responsiveness */
    gap: 3rem;
    /* Increased gap for better spacing */
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    /* Aligns content properly */
}

/* Individual Columns */
.education-column {
    flex: 1 1 45%;
    /* Each column takes 45% width */
    min-width: 400px;
    /* Prevents collapse */
}

/* Section Heading */
.heading {
    font-size: 3rem;
    /* Increased font size for "My Journey" */
    font-weight: bold;
    margin-bottom: 3rem;
    /* Increased space below "My Journey" */
}

/* Titles */
.title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2.5rem;
    /* Increased spacing below titles */
}

/* Content Boxes */
.education-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual Content Cards */
.education-content {
    background-color: #111;
    /* Dark card background */
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    /* Soft shadow */
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.education-content:hover {
    transform: translateY(-5px);
}

/* Headings */
.education-content h3 {
    color: #0a84ff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0.7rem;
}

/* Descriptions */
.education-content p {
    font-size: 16px;
    color: lightgray;
    margin-bottom: 1rem;
}

/* Year Styling */
.year {
    font-size: 1.2rem;
    color: #bbb;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.year i {
    margin-right: 8px;
    font-size: 1.3rem;
}

/* Main Education Section */
.projects {
    background-color: var(--bg-color);
    padding-bottom: 6rem;
    /* Increased for more spacing */
    text-align: center;
}

/* Main Flexbox Container */
.projects-row {
    display: flex;
    /* Enables side-by-side layout */
    justify-content: space-between;
    /* Spreads columns apart */
    flex-wrap: wrap;
    /* Allows responsiveness */
    gap: 3rem;
    /* Increased gap for better spacing */
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    /* Aligns content properly */
}

/* Individual Columns */
.projects-column {
    flex: 1 1 45%;
    /* Each column takes 45% width */
    min-width: 400px;
    /* Prevents collapse */
}

/* Section Heading */
.heading {
    font-size: 3rem;
    /* Increased font size for "My Journey" */
    font-weight: bold;
    margin-bottom: 3rem;
    /* Increased space below "My Journey" */
}

/* Titles */
.title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2.5rem;
    /* Increased spacing below titles */
}

/* Content Boxes */
.projects-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual Content Cards */
.projects-content {
    background-color: #111;
    /* Dark card background */
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    /* Soft shadow */
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.projects-content:hover {
    transform: translateY(-5px);
}

/* Headings */
.projects-content h3 {
    color: #0a84ff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0.7rem;
}

/* Descriptions */
.projects-content p {
    font-size: 16px;
    color: lightgray;
    margin-bottom: 1rem;
}

/* Year Styling */
.year {
    font-size: 1.2rem;
    color: #bbb;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.year i {
    margin-right: 8px;
    font-size: 1.3rem;
}

.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--bg-color);
}

.skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-row .skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skills-box .skills-content {
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.skills-box .skills-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: navy;
    z-index: -1;
    transition: .5s;
}

.skills-box .skills-content:hover::before {
    width: 100%;

}

.skills-content .progress {
    padding: 1rem 0;
}

.skills-content .progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
}

.skills-content .progress h3 span {
    color: var(--text-color);
}

.skills-content .progress .bar {
    height: 1.3rem;
    /* Corrected spacing issue */
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
    padding: .2rem;
    /* Reduced padding for better visibility */
    margin: 1rem 0;
    width: 100%;
    /* Ensure full width */
    background: rgba(255, 255, 255, 0.1);
    /* Light background to show progress */
    position: relative;
}

.skills-content .progress .bar span {
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--main-color);
    width: 0%;
    /* Default state */
    transition: width 1s ease-in-out;
    /* Smooth animation */
}

/* Add width dynamically for different skills */
.skills-content .progress:nth-child(1) .bar span {
    width: 90%;
}

.skills-content .progress:nth-child(2) .bar span {
    width: 90%;
}

.skills-content .progress:nth-child(3) .bar span {
    width: 80%;
}

.skills-content .progress:nth-child(4) .bar span {
    width: 85%;
}

.skills-content .progress:nth-child(5) .bar span {
    width: 90%;
}

.skills-content .progress:nth-child(6) .bar span {
    width: 80%;
}

.skills-content .progress:nth-child(7) .bar span {
    width: 75%;
}

.skills-content .progress:nth-child(8) .bar span {
    width: 70%;
}

/* Contact Section */
.contact {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--bg-color);
}

.contact h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box .input-field {
    width: 48%;
    margin-bottom: 2rem;
}

.contact form .input-box .input-field input {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    outline: none;
}

.contact form .textarea-field {
    width: 100%;
    margin-bottom: 2rem;
}

.contact form .textarea-field textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    outline: none;
    resize: none;
    height: 15rem;
}

.contact form .btn-box {
    display: flex;
    justify-content: center;
}

.contact form .btn-box .btn {
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--bg-color);
    background: var(--main-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    cursor: pointer;
    transition: 0.5s;
}

.contact form .btn-box .btn:hover {
    background: transparent;
    color: var(--main-color);
}

/* Placeholder Styling */
.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact form .input-box .input-field {
        width: 100%;
    }
}