/*General*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');


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

:root{
    --bg-color: #1f242d;
    --second-color: #323946;
    --main-color: #0ef;
    --bg-gradient: linear-gradient(135deg, #1f242d, #0d1117);
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #fff;
    --text-scan: #ccc;
    --box-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
}

body{
    font-family: "Poppins", sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}

p{
    color: #ccc;
}

ul,li{
    color: #ccc;
    list-style-position: inside;
}

h3{
    color: #ccc;
}

/* Transition */
a, 
.btn {
    transition: all 300ms ease;
}

/* Desktop Nav*/

header{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
}

header.slidedown{
    position: fixed;
    background: var(--bg-color);
    animation: slidedown .3s forwards;
    height: 80px;
}

#desktop-nav{
    margin-top: -10px;
}

header nav, .nav-links{
    display: flex;
}

@keyframes slidedown{
    from{
        top: -250px;
    }
    to{
        top: 0;
        box-shadow: 0 2px 8px 0 var(--main-color);
    }
}

nav{
    justify-content: space-around;
    align-items: center;
    height: 13.3vh;
}

.nav-links{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

nav a{
    color: var(--main-color);
    text-decoration: none;
}

a{
    color: #fff;
    text-decoration: none;
}

nav a:hover{
    color: var(--main-color);
    background: var(--second-color);
    padding: 1rem;
    border-radius: 15px;
    background: var(--main-color);
    color: var(--second-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.logo{
    font-size: 2rem;
}

.logo:hover{
    cursor: default;
}


nav ul li{
    display: inline-block;
}

/*Hamburger- Menu*/
#hamburger-nav{
    display: none;
}

.hamburger-menu{
    position: relative;
    display: inline-block;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3 ease-in-out;
}

.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background: #1b1f25;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all;
}

.menu-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--main-color);
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 300px;
}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2){
    opacity: 0;
}

.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child{
    transform: none;
    opacity: 1;
}

/* Sections */

#profile_pic{
    border-radius: 50%;
}

section{
    padding-top: 13vh;
    min-height: 100vh;
    margin: 0 10rem;
    min-height: fit-content;
}

.section-container{
    display: flex;
}

/* Profile Section */

#profile{
    display: flex;
    justify-content: center;
    gap: 5rem;
    min-height: 100vh;
}

.name{
    font-size: 3rem;
    text-align: center;
    color: #fff;
}

.section_pic-container{
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
    filter: drop-shadow(5px 25px 100px var(--main-color));
}

.section-text{
    align-self: center;
    text-align: center;
}

.section-text p{
    font-weight: 600;
}

.section_text_p1{
    text-align: center;
    color: #fff;
}
.section_text_p2{
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.title {
    font-size: 3rem;
    text-align: center;
    color: var(--main-color);
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--main-color);
    margin: .5rem .5rem .5rem 0;
    transition: .5 ease;
}

.social-media a:hover{
    background: var(--main-color);
    color: var(--second-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* Icon */

.icon{
    cursor: pointer;
    height: 2rem;
    filter: drop-shadow(0 0 10px var(--main-color));
}


/* Buttons */

.btn-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1,
.btn-color-2{
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover{
    cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover{
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color-1:hover{
    background: rgb(0, 0, 0);
}

.btn-color-2{
    background: none;
}

.btn-color-2:hover{
    border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container{
    gap: 1rem;
}

/* About Section */

#about{
    position: relative;
    min-height: 100vh;
}

.about-containers{
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-containers{
    justify-content: center;
    flex-direction: column;
}

.about-containers, 
.about-details-containers{
    display: flex;

}

.about_pic{
    border-radius: 2rem;
}

.arrow{
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container{
    position: relative;
    padding: 1.5rem;
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    text-align: center;
    overflow: hidden;
    transition: all 400ms ease;
}

.details-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--main-color);
    border-color: var(--main-color);
}
/* Ensure text remains visible and doesn't change to black wildly */
.details-container h2, 
.details-container h3, 
.details-container p, 
.details-container i {
    color: #fff; /* Key fix: Text stays white */
    transition: color 300ms ease;
}

.details-container:hover h2, 
.details-container:hover h3, 
.details-container:hover p, 
.details-container:hover i {
    color: var(--main-color); /* Highlight text on hover */
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
}

/* Removing the old chaotic hover effect that changed background to main-color */


.section-container{
    gap: 4rem;
    height: 80%;
}

.section_pic-container{
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.text-container p{
    color: #ccc;
}

/* Experience Section */

#experience{
    position: relative;
    min-height: 100vh;
}

.experience-sub-title{
    color: var(--text-color); /* Fixed: Was dark grey, now white */
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container{
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

.article-container h3{
    color: var(--text-color); /* Fixed: Was #1f242d (invisible), now white */
    font-size: 1.1rem; /* Slight adjustment for better hierarchy */
}

article{
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon{
    cursor: default;
}

/* Projects Section */

#projects{
    position: relative;
    min-height: 100vh;
}

.color-container{
    border-color: rgb(163, 163, 163);
    background: #1b1f25;
}

.project-img{
    border-radius: 2rem;
    width: 100%; /* Use full width of container */
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Prevent stretching */
    margin-bottom: 1rem;
}

.project-title{
    margin: 1rem;
    color: #fff; /* Fixed invisibility bug */
    font-size: 1.5rem;
    font-weight: 600;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem; /* More spacing */
}

.tech-stack i {
    font-size: 1.5rem;
    color: #ccc;
    transition: transform 0.3s ease, color 0.3s ease;
}

.details-container:hover .tech-stack i {
    color: #fff;
    transform: scale(1.2);
}

.project-btn{
    color: #1b1f25;
    border-color: rgb(163, 163, 163);
    background: var(--main-color);
}


/* Contact Section */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
    margin: 2rem auto;
    padding: 1rem;
    width: 80%;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
    height: 10rem;
}

.email-icon {
    height: 2.5rem;
}
    

/* Contact Form */
.contact-form-container {
    width: 80%;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--main-color);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

form input, form textarea {
    width: 97%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
}

form button {
    padding: 0.8rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background-color: #1b1f25;
    color: var(--main-color);
    box-shadow: 0 0 5px var(--main-color),
    0 0 25px var(--main-color),
    0 0 50px var(--main-color),
    0 0 100px var(--main-color);
}

.submit-btn{
    background: var(--main-color);
    color: #1b1f25;
}


/* Footer Section */

footer{
    height: fit-content; /* Fixed: Allow footer to grow */
    margin: 0 1rem;
    padding-bottom: 2rem; /* Add some bottom spacing */
}

footer p{
    text-align: center;
    color: var(--main-color);
    margin-top: 2rem; /* Reduced from 50px for better proportion */
    margin-bottom: 1rem;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 1rem;
    background: var(--card-bg); /* Added background */
    backdrop-filter: blur(10px); /* Added glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.2);
}

/* Footer Content */

.footer-content {
    flex: 1;
    padding: 0 20px;
    text-decoration: none;
}

.footer-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-content ul li {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-content ul li .quick-links {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-content ul li .quick-links:hover {
    color: var(--main-color);
}

.social-icons {
    display: flex;
    padding: 0;
    justify-content: space-between; 
}
.social-icons li {
    margin-right: 10px;
    list-style: none; 
}

.social-icons a {
    color: #333;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
    border-radius: 50%;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--second-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* Scroll Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}