/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Global CSS Variables for Premium Dark Theme */
:root {
    --bg-color: #1f242d; /* Dark background */
    --second-bg-color: #323946; /* Slightly lighter dark sections */
    --text-color: #fff; /* White text */
    --main-color: #0ef; /* Cyan Neon Accent Color */
}

/* Basic Reset */
* {
    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 for easier calculation */
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Reusable CSS */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 4rem;
}

.heading span {
    color: var(--main-color);
}

span.highlight {
    color: var(--main-color);
    font-weight: 700;
}

/* Header / Navbar Styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(31, 36, 45, 0.9); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
    font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p.description {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
    max-width: 600px;
}

.home-img img {
    width: 35vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    border: 2px solid var(--main-color);
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2.4rem); }
    100% { transform: translateY(0); }
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1.3rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.secondary-btn {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: none;
    margin-left: 2rem;
}
.secondary-btn:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}


/* About Section */
.about {
    background: var(--second-bg-color);
    text-align: center;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem auto;
    max-width: 800px;
    line-height: 1.8;
}

/* Education Section */
.education-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.education-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.education-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.education-box i {
    font-size: 7rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.education-box h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.education-box p {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.education-box span {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.7);
}


/* Skills Section */
.skills {
    background: var(--second-bg-color);
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}
.skill-category h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.skill-tags span {
    padding: 0.8rem 1.5rem;
    background: var(--bg-color);
    border-radius: 1rem;
    font-size: 1.4rem;
    color: var(--text-color);
    border: 1px solid var(--main-color);
    transition: 0.3s;
}
.skill-tags span:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 10px var(--main-color);
}


/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    height: 300px; /* Fixed height for uniformity */
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), var(--main-color)); /* Gradient overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%); /* Hidden initially */
    transition: .5s ease;
}

.project-card:hover .project-layer {
    transform: translateY(0); /* Show on hover */
}

.project-layer h4 {
    font-size: 2.4rem;
    color: var(--text-color);
}

.project-layer p {
    font-size: 1.4rem;
    margin: 1rem 0 2rem;
    color: var(--text-color);
}

.project-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.project-layer a i {
    font-size: 2rem;
    color: var(--second-bg-color);
}


/* Contact Section */
.contact {
    background: var(--second-bg-color);
    text-align: center;
}
.contact-container p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
}
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--bg-color);
}

.footer-text p {
    font-size: 1.4rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}


/* BREAKPOINTS (For Mobile Responsiveness) */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3% 2rem;
    }
    .home {
        flex-direction: column-reverse; /* Image on top for mobile */
        gap: 4rem;
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block; /* Show hamburger menu */
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0,0,0,0.2);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,0.2);
        display: none; /* Hidden by default on mobile */
    }
    
    .navbar.active {
        display: block; /* Show when active class is added via JS */
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    .secondary-btn {
        margin-left: 0;
        margin-top: 1.5rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    .home-content h1 {
        font-size: 4.5rem;
    }
    .home-img img {
        width: 90vw;
    }
}