/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* === CSS Variables === */
:root {
    --bg-color: #0f1115;
    --second-bg-color: #323946;
    --text-color: #ffffff;
    --main-color: #00ffb3; /* Neon Green */
    --shadow-color: rgba(0, 255, 179, 0.4);
}

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* === Reusable Components === */
.section-title {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.section-title span {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--shadow-color);
}

.content-section {
    min-height: 80vh;
    padding: 10rem 9% 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    background: var(--second-bg-color);
    box-shadow: 0 0 2rem var(--shadow-color);
}

/* === Header & Navbar === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Full width for positioning context */
    padding: 2rem 0; /* Padding top and bottom */
    z-index: 100;
    transition: .3s ease;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    background: #000; /* Pure black background */
    border-radius: 5rem; /* Smooth rounded edges */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-left {
    display: flex;
    width: 0; /* No longer needed, but good for balance */
}

.header.scrolled {
    /* This style seems to be overridden by the black navbar, but keeping for now */
    background: var(--bg-color);
}

.nav-logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
}

.nav-menu {
    list-style: none;
    display: flex; /* This will be overridden on mobile */
    gap: 4rem;
}

.nav-item {
    position: relative; /* Needed for the underline pseudo-element */
}

.nav-link {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 600; /* Bolder font */
    transition: .3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #00FFA3;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

.nav-link:hover, .nav-link.active {
    color: #00FFA3;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* === Hero Section === */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative; /* For pseudo-element positioning */
    padding: 10rem 9% 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 179, 0.05), transparent 70%);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
    opacity: 0.9; /* Slight opacity for a softer look */
}

.hero-section{
    /* This style is no longer needed */
}

.hero-image img {
    width: 35vw;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 2.5rem var(--shadow-color);
    animation: floatImage 4s ease-in-out infinite;
    transition: .5s ease;
    border: 0.5rem solid var(--main-color);
}

.hero-image img:hover {
    box-shadow: 0 0 4rem var(--shadow-color);
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2.4rem); }
    100% { transform: translateY(0); }
}

/* === Education Section === */
.education-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.education-item {
    background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: left;
    width: 100%;
    border-left: 0.5rem solid var(--main-color);
}

.education-degree { font-size: 2.4rem; margin-bottom: 1rem; }
.education-institution { font-size: 1.8rem; color: #ccc; margin-bottom: 0.5rem; }
.education-date { font-size: 1.6rem; color: var(--main-color); font-weight: 600; }
.education-details-list {
    list-style-position: inside;
    margin-top: 1.5rem;
    font-size: 1.6rem;
    padding-left: 1rem;
}
.education-details-list li { margin-bottom: 1rem; }
.education-score { font-size: 1.6rem; margin-top: 1.5rem; }


/* === Experience Section === */
.experience-item {
    background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border-left: 0.5rem solid var(--main-color);
}
.experience-item h3 { font-size: 2.4rem; }
.experience-details { font-size: 1.4rem; color: #ccc; margin: 0.5rem 0 1rem; }
.experience-item ul { list-style-position: inside; font-size: 1.6rem; }
.experience-item li { margin-bottom: 0.5rem; }

/* === Projects Section === */
#projects {
    background: var(--second-bg-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 3rem;
}

.project-card-new {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: .2rem solid transparent;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: .5s ease;
}

.project-card-new:hover {
    transform: translateY(-1rem);
    border-color: var(--main-color);
    box-shadow: 0 0 2rem var(--shadow-color);
}

.project-card-new h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card-new p {
    font-size: 1.5rem;
    flex-grow: 1; /* Pushes the button to the bottom */
    margin-bottom: 2rem;
}

.project-status {
    align-self: flex-start;
    padding: .4rem .8rem;
    border-radius: .5rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-status.completed { background-color: rgba(0, 255, 179, 0.1); color: var(--main-color); }
.project-status.in-progress { background-color: rgba(255, 165, 0, 0.1); color: orange; }

.btn-view-project {
    display: inline-block;
    align-self: flex-start;
    padding: 1rem 2.5rem;
    background: var(--main-color);
    border-radius: 4rem;
    font-size: 1.4rem;
    color: var(--second-bg-color);
    font-weight: 600;
    transition: .3s ease;
}

.btn-view-project:hover {
    background: var(--bg-color);
    color: var(--main-color);
    box-shadow: 0 0 1.5rem var(--shadow-color);
}

/* === Contact Section === */
#contact {
    background-color: #0D0F10;
}

.contact-container {
    text-align: center;
}
.contact-container p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}
.contact-info p {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--text-color);
    transition: .3s ease;
}
.contact-info a:hover {
    color: #00FFA3;
}

.contact-social-icons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-social-icons a {
    font-size: 3rem;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-social-icons a:hover {
    color: #00FFA3;
    transform: scale(1.1);
}

/*New Skills Section*/
#skills {
    background-color: #0D0F10;
}

.skills-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2.5rem;
}

.skill-card-new {
    background: var(--second-bg-color);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    border: .2rem solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card-new:hover {
    transform: translateY(-1rem);
    border-color: var(--main-color);
    box-shadow: 0 0 2rem var(--shadow-color);
}

.skill-card-new i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.skill-card-new h3 {
    font-size: 1.8rem;
    font-weight: 600;
}









/* === Footer === */
.footer {
    padding: 2rem 9%;
    background: var(--second-bg-color);
    text-align: center;
    font-size: 1.4rem;
}

/* === Responsive Design (Hamburger Menu etc.) === */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--text-color); }

@media (max-width: 992px) {
    .header { padding: 1.5rem 3%; }
    .content-section { padding: 10rem 3% 2rem; }
    .navbar {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .navbar {
        border-radius: 0; /* Full width on mobile */
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 6.5rem; /* Adjust based on header height */
        gap: 0;
        flex-direction: column;
        background-color: var(--second-bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }
    .nav-item { margin: 16px 0; }
    .nav-menu.active { left: 0; }
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-image img { width: 70vw; margin-top: 4rem; }
    .hero-text .btn-container { /* This class doesn't exist but leaving for safety */
        justify-content: center;
    }
}

@media (max-width: 450px) {
    html { font-size: 50%; }
}