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

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #333;
} */


body {
  width: 100%;
  min-height: 100vh;
  background-color: #333;
  overflow-x: hidden;
}

nav {
    width: 100%;
    height: 10vh;
    position: sticky;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.logo span {
    color: #7b1c07;
    text-shadow: 0 0 10px #7b1107;
}

.hamburg,
.cancel {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    display: none;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links {
    display: flex;
}

.nav-container .links a {
    position: relative;
    font-size: 1.2rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before {
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #077b32;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before {
    width: 100%;
}

.nav-container .links a:hover {
    color: #077b32;
}

.dropdown {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dropdown .links a {
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    font-size: 1.5rem;
    margin: 15px 0;
    transition: 0.2s linear;
}

.dropdown .links a:hover {
    color: #7b0907;
}

.cancel {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

section {
    width: 100%;
    min-height: 90vh;
}


.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

/* /* .main-container .image {
    width: 400px;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px #077b32;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
} */
 .main-container .image {
    width: 500px;
    height: 500px; /* <- Ensures it's a perfect circle */
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px #077b32;
} */


/* .main-container .image img {
    width: 100%;
} */
 
 .main-container .image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Or try 'contain' if too much is cropped */
}


.main-container .image:hover {
    animation: animate 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.typewriter-text + label {
    animation: blink 1s infinite;
    color: #077b32;
}

.main-container .content {
    color: white;
    width: 40%;
    min-height: 100px;
}

.content h1 {
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.content h1 span {
    color: #077b32;
    text-shadow: 0 0 10px #077b32;
}

.content .typewriter {
    font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
    font-weight: 600;
}

.content .typewriter-text {
    color: #077b32;
    text-shadow: 0 0 10px #077b32;
}

.content p {
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

.social-links i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid #077b32;
    border-radius: 50%;
    color: #077b32;
    margin: 5px 15px;
    font-size: 1.5rem;
    transition: 0.2s linear;
    z-index: 999;
}

.social-links i:hover {
    scale: 1.3;
    color: black;
    background-color: #077b32;
    filter: drop-shadow(0 0 10px #077b32);
}

/* Tablet and smaller */
@media (max-width: 884px) {
  nav .logo {
    position: absolute;
    top: 16px;
    left: 15px;
    font-size: 1.5rem;
  }

  .main-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-container .links {
    display: none;
  }

  .hamburg,
  .cancel {
    display: block;
  }

  .main-container .content {
    width: 80%;
  }

  .social-links i {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .main-container .image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px #077b32;
    margin-bottom: 20px;
  }

  .main-container .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Phone-specific */
@media (max-width: 480px) {
  .main-container .image {
    width: 180px;
    height: 180px;
  }
}


html {
    scroll-behavior: smooth;
}

#skills {
    padding: 100px 20px;
    background: #111;
    color: #fff;
    text-align: center;
}

.skills-container h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skill {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 20px;
    width: 100px;
    transition: transform 0.3s ease;
}

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

.skill img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

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

#projects {
  padding: 100px 20px;
  background: #222;
  color: #fff;
  text-align: center;
}

#projects header h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #77c4a7;
}

#projects header span {
  color: #fff3e0;
}

/* .projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
} */

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Exactly 3 per row */
  gap: 30px;
}

@media (max-width: 992px) {
  .projects {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 600px) {
  .projects {
    grid-template-columns: 1fr; /* 1 per row on phones */
  }
}


.project {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.project h2 {
  color: #77c4a7;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project p {
  font-size: 0.95rem;
  color: #ccc;
}

.project a {
  display: inline-block;
  margin-top: 10px;
  color: #77c4a7;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project a:hover {
  color: #3a9e7a;
}

.project:hover {
  transform: scale(1.03);
}






#contact {
  padding: 100px 20px;
  background: #111;
  color: #fff;
  text-align: center;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#contact h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #77c4a7;
}

#contact p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #bbb;
  max-width: 500px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  color: #77c4a7;
  border: 2px solid #77c4a7;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #77c4a7;
  cursor: pointer;
}

.contact-link i {
  font-size: 2rem;
}

.contact-link:hover {
  background-color: #77c4a7;
  color: #111;
  box-shadow: 0 0 20px #77c4a7;
  transform: scale(1.1);
}

.contact-intro {
  text-align: center;
  margin-bottom: 40px; /* optional spacing */
  color: #bbb;         /* consistent with other text in #contact */
  max-width: 500px;    /* match #contact p styling */
  margin-left: auto;
  margin-right: auto;
}
#expandable {
  width: 100%;
  max-width: 100%;
  height: 0;
  overflow: hidden;
  background-color: #333;
  transition: height 0.5s ease;
  padding: 0;
  box-sizing: border-box;
}

#expandable.expanded {
  height: 100px; /* Desired expanded height */
  padding-top: 0;
  padding-bottom: 0;
}

