* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Share Tech Mono', monospace;
}

:root {
    --bg-color: black;
    --second-bg-color: black;
    --text-color: white;
    --main-color: rgb(39, 153, 39);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 3px dashed rgb(39, 153, 39);
    margin: 20px;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    position: relative;
}

canvas {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.5;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 0 0 20px 20px;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;

}

.home-img {
    margin-left: 3rem;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--main-color);
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
    cursor: pointer;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    position: relative;
    z-index: 1;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding-top: 7rem;
}

.home-content {
    flex: 1;
    max-width: 600px;
}

span {
    color: var(--main-color);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3rem;
    letter-spacing: 1px;
}

.home-content h1 {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 400;
    margin-top: 1.5rem;
    line-height: 1.2;
    letter-spacing: 2px;
    color: green;
    text-shadow: 0 0 10px #015401;
}

.home-img {
    flex: 1;
    max-width: 200px;
    display: flex;
    justify-content: center;
}

.home-img img {
    position: relative;
    top: 3rem;
    width: 25vw;
    max-width: 400px; /* Add maximum width */
    height: auto; /* Change from fixed height to auto */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

.home-img img:hover {
    box-shadow: 0 0 10px var(--main-color),
                0 0 10px var(--main-color),
                0 0 10px var(--main-color);
}

.home-content p {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.5px;
}
.text-container {
    position: relative;
    width: 100%;
    height: 3em; /* Set a fixed height for the container */
    margin: 2rem 0;
}

.text-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 3em;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    white-space: nowrap; /* Prevent text from wrapping */
    color: var(--main-color);
}

.text.active {
    opacity: 3;
}



.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 3rem 0;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: transparent;
    font-size: 2.5rem;
    border-radius: 0;
    color: var(--main-color);
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.0) translateY(-3px);
    box-shadow: 0 0 15px var(--main-color);
    background-color: var(--main-color);
}

/* About Section */
.about {
    padding: 6rem 9% 2rem;
}

.heading {
    text-align: center;
    font-size: clamp(3rem, 6vw, 4rem);
    margin-bottom: 5rem;
    letter-spacing: 3px;
}

.about-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem;
    border-radius: 2rem;
    border: 2px solid var(--main-color);
}

.about-text p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: rgba(39, 153, 39, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--main-color);
}

.skill-category h4 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.skill-category p {
    font-size: 1.4rem;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: 6rem 9% 2rem;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto;
}

.project-item {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-left: 3px solid var(--main-color);
    transition: 0.1s ease;
    cursor: pointer;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
    transition: 0.1s ease;
}

.project-item:hover {
    transform: translateX(10px);
    background: rgba(39, 153, 39, 0.1);
  
}

.project-item:hover::before {
    box-shadow: 0 0 30px var(--main-color);
}

.project-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--main-color);
    text-shadow: 0 0 5px var(--main-color);
}

.project-item p {
    font-size: 1.4rem;
    opacity: 0.8;
    transition: 0.1s ease;
}

.project-item:hover p {
    opacity: 1;
}

.project-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.18em 0.85em 0.18em 0.7em;
  margin-left: 0.5em;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  background: #eaeaea;
  color: #222;
  vertical-align: middle;
  gap: 0.4em;
}
.project-status i {
  font-size: 1.1em;
  margin-right: 0.3em;
  vertical-align: middle;
}
.project-status.online {
  background: #000000;
  color: #1a7f1a;
  border: 1.5px solid #1a7f1a;
}
.project-status.in-dev {
  background: #000000;
  color: #b97a00;
  border: 1.5px solid #b92500;
}
.project-status:hover {
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.13);
  filter: brightness(1.08);
}


/* Skills Section */
.skill {
    padding: 6rem 9% 2rem;
}

.skill h1 {
    text-align: center;
    font-size: clamp(3rem, 6vw, 4rem);
    margin-bottom: 5rem;
    color: var(--main-color);
    text-shadow: 0 0 15px var(--main-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem;
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    transition: 0.3s ease;
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(39, 153, 39, 0.2);
}

.skills-card h3 {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-bottom: 2.5rem;
    text-align: center;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.skill-item {
    position: relative;
    cursor: pointer;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.6rem;
    color: var(--text-color);
}

.skill-percentage {
    font-size: 1.6rem;
    color: var(--main-color);
}

.skill-bar {
    height: 1rem;
    background: rgba(39, 153, 39, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: var(--main-color);
    border-radius: 0.5rem;
    transition: width 1s ease-in-out;
    position: relative;
    box-shadow: 0 0 10px var(--main-color);
}

.skill-details {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--main-color);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.skill-item:hover .skill-details {
    opacity: 1;
    transform: translateY(5px);
}

.skill-details p {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.metrics-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.metric-item {
    background: rgba(39, 153, 39, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--main-color);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
}

.metric-header i {
    color: var(--main-color);
    font-size: 2rem;
}

.metric-value {
    margin-left: auto;
    color: var(--main-color);
    font-weight: bold;
}


/* Experience Section */
.experience {
    padding: 6rem 9% 2rem;
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto;
}

.experience-item {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-left: 3px solid var(--main-color);
    transition: 0.1s ease;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0 15px var(--main-color, #27992920);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
    transition: 0.1s ease;
}

.experience-item:hover {
    transform: translateX(10px);
    background: rgba(39, 153, 39, 0.1);
}

.experience-item:hover::before {
    box-shadow: 0 0 30px var(--main-color);
}

.experience-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--main-color);
    text-shadow: 0 0 5px var(--main-color);
}

.experience-item p {
    font-size: 1.4rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    transition: 0.1s ease;
}

.experience-item:hover p {
    opacity: 1;
}


/* Simple fade-in-up animation for sections */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px) scale(0.98); 
  filter: blur(4px); 
  transition: opacity 0.7s cubic-bezier(.77,0,.18,1), 
              transform 0.7s cubic-bezier(.77,0,.18,1), 
              filter 0.7s cubic-bezier(.77,0,.18,1); 
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    text-shadow: 0 0 1px var(--main-color), 0 0 1px var(--main-color);
}

.fade-in-up.visible .heading,
.fade-in-up.visible h1,
.fade-in-up.visible h3 {
    text-shadow: 0 0 1px var(--main-color), 0 0 2px var(--main-color);
}

.heading, h1, h3 {
    text-shadow: none; /* Ensure no initial shadow */
    transition: text-shadow 0.7s cubic-bezier(.77,0,.18,1);
}

.heading span, .project-item h3, .experience-item h3, .skill h1 {
    text-shadow: none; /* Remove initial static shadow */
}

/* Media Queries */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding-top: 12rem;
        flex-direction: column;
        text-align: center;
    }

    .home-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

  
    .home-img img {
        width: 60vw; /* Increase from 70vw to 80vw for better mobile view */
        height:60vw;
        max-width: 300px;
        margin: 2rem auto; /* Center the image */
    }

    .text-container {
        height: 2.5em;
    }
    
    .text {
        font-size: 1.8em;
    }
    .social-icons {
        justify-content: center;
    }

    .experience {
        padding: 6rem 4% 2rem;
    }
    .experience-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        border-top: 2px solid var(--main-color);
        display: none;
    }
    
    .navbar.active {
        display: block;
    }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 1.5rem 0;
        text-align: center;
    }
    .skill-category {
        padding: 1.5rem;
    }
    .text-container {
        height: 1.5em;
    }
    
    .text {
        font-size: 2em;
    }

    .experience {
        padding: 6rem 3% 2rem;
    }
    .experience-container {
        gap: 1.5rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 45%;
    }
    .home-img img {
        width: 60vw; /* Increase from 60vw to 90vw for smaller screens */
        margin: 1rem auto;
        height:40vw;
    }

    .about-content,
    .skill {
        padding: 2rem;
    }

    .social-icons a {
        width: 3.5rem;
        height: 3.5rem;

    }
    .text-container {
        height: 1.8em;
    }
    
    .text {
        font-size: 3em;
    }

    .experience {
        padding: 2rem 2% 2rem;
    }
    .experience-item {
        padding: 1.2rem;
    }
}

@media (max-width: 365px) {
    .home-img img {
        width: 60vw;
        height: 40vw;
    }

    .about-content,
    .skill {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .skill {
        width: 95%;
        padding: 15px;
    }
    
    .skill li {
        margin: 15px 0;
        padding: 8px;
    }
}