/* Common */

body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  /* unified seamless background for entire page */
  background: linear-gradient(120deg, #232526 0%, #414345 60%, #00bcd4 100%);
  background-attachment: fixed;
  color: #fff;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  height: 100%;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
  /* border: 2px solid blue; */
}

h1 {
  font-family: "Poppins", sans-serif;
  font-size: 60px;
}

/* More than one */

.projects a {
  text-decoration: none;
  color: #0400ff;
  transition-duration: 300ms;
}

.projects a:hover {
  color: #115a3e;
  background-color: red;
}

#AboutMe h1,
#Projects h1,
#Contact h1 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: clamp(30px, 10vw, 50px);
  margin-top: 4.5vh;
  color: #00bcd4; /* Match About Me heading color */
}

/* Navbar */
nav {
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 15px 10%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.8rem; /* Larger logo text */
  font-weight: 600;
  color: #0400ff;
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

#nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.2rem; /* Slightly larger link text */
  transition: color 0.2s ease, border-bottom 0.2s ease;
  padding-bottom: 4px;
}

#nav-links li a:hover {
  color: #0078d7;
  border-bottom: 2px solid #0078d7;
}

/* --- Mobile-friendly navbar additions --- */

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile layout for nav links */
@media (max-width: 900px) {
  nav {
    padding: 12px 4%;
  }

  /* show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* hide left/right spacing so menu can be full width */
  .nav-container {
    gap: 12px;
  }

  /* default: hide links, show only when nav has .nav-open */
  #nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    margin: 0;
    padding: 12px 4%;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 999;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  #nav-links li {
    width: 100%;
  }

  #nav-links li a {
    display: block;
    padding: 10px 12px;
    color: #333;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 1rem;
  }

  /* when open: show the dropdown */
  nav.nav-open #nav-links {
    display: flex;
  }

  /* animated hamburger -> X */
  nav.nav-open .menu-toggle .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  nav.nav-open .menu-toggle .bar:nth-child(2) {
    opacity: 0;
  }
  nav.nav-open .menu-toggle .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}

/* Home */
#Home {
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  /* removed local gradient so body gradient is seamless */
  background: transparent;
  box-sizing: border-box;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4vw;
  align-items: center;
  background: rgba(24, 24, 24, 0.95);
  border-radius: 32px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  padding: 3rem 4vw;
  width: 80vw;
  max-width: 1100px;
  min-height: 70vh;
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.77,0,.18,1);
}

.home-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.profile-img {
  width: 400px;
  height: 400px;
  border-radius: 100%;
  object-fit: cover;
  background: #222;
  box-shadow: 0 4px 16px rgba(0,188,212,0.18);
  border: 4px solid #00bcd4;
}

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

.home-content h1 {
  font-size: 4rem;
  color: #00bcd4;
  margin-bottom: 1rem;
  text-align: center;
}

.home-subtitle {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 1px;
}

.typer {
  display: flex;
  position: relative;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.typer p {
  font-size: 2.2rem;
  color: #00bcd4;
  font-weight: bold;
  margin-bottom: 2rem;
  min-height: 2.5rem;
  text-align: center;
  border-right: 2px solid #00bcd4;
  padding-right: 8px;
  height: 2.5rem;
  line-height: 2.5rem;
  animation: blink-cursor 1s steps(2) infinite;
}

@keyframes blink-cursor {
  0%, 100% { border-color: #00bcd4; }
  50% { border-color: transparent; }
}

.home-socials {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,188,212,0.12);
  background: #222;
  object-fit: contain;
}

.social-icon:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 6px 18px rgba(0,188,212,0.18);
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
    padding: 2rem 2vw;
    width: 98vw;
    max-width: 98vw;
    min-height: 80vh;
    gap: 2vw;
  }
  .profile-img {
    width: 160px;
    height: 160px;
  }
  .home-content h1 {
    font-size: 2.2rem;
  }
  .home-subtitle {
    font-size: 1.2rem;
  }
  .typer p {
    font-size: 1.6rem;
  }
}


/* AboutMe */


#AboutMe {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-sizing: border-box;
  padding: 0;
  margin: 0 0 4rem 0; /* Added margin-bottom */
}

.aboutme-card {
  background: #181818;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  padding: 4rem;
  width: 90vw;
  max-width: 1200px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
}

.aboutme-card h1 {
  color: #00bcd4;
  font-size: 4rem;
  margin-bottom: 2rem;
  text-align: center;
}

.aboutme-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
  justify-content: space-between;
}

.aboutme-info {
  flex: 2;
  min-width: 320px;
}

.aboutme-info p {
  color: #ccc;
  font-size: 2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.languages-list {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.language-item {
  background: #00bcd4;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.5rem;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.language-item:hover {
  background: #0097a7;
  transform: scale(1.12);
}

.experience-list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.exp-icon {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #222;
  object-fit: contain;
}

.exp-icon:hover {
  transform: scale(1.18) rotate(-5deg);
  box-shadow: 0 12px 36px rgba(0,188,212,0.22);
}

@media (max-width: 1068px) {
  #AboutMe {
    height: auto;
    min-height: 100vh;
  }
  .aboutme-card {
    padding: 2rem;
    width: 98vw;
    min-height: 70vh;
  }
  .aboutme-card h1 {
    font-size: 2.5rem;
  }
  .aboutme-info p {
    font-size: 1.2rem;
  }
  .language-item {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
  .exp-icon {
    width: 60px;
    height: 60px;
  }
  .aboutme-flex {
    gap: 2rem;
  }
}


/* Projects */


#Projects {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.projectGallery {
  width: 90%;
  max-width: 1200px;
  border-radius: 16px;
  padding: 2rem;
  background: rgba(24, 24, 24, 0.9); /* Dark box */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 8vw, 3rem);
  margin-bottom: 2rem;
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #333;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1rem;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #eee;
}

.project-info p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.4;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #00bcd4;
  color: #222;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #0097a7;
}

@media (max-width: 1280px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .projectGallery {
    width: 98vw; /* Full width on smaller screens */
    padding: 1rem; /* Adjust padding as needed */
    border-radius: 0; /* Remove border-radius for full width */
  }

  .projects-grid {
    grid-template-columns: 1fr; /* Stack projects on smaller screens */
  }
}


/* Contact */


#Contact {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  /* removed local gradient so body gradient is seamless */
  background: transparent;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.contactClass{
  display: flex;
  flex-direction: column;
  gap: 1%;
  width: 100%;
  padding: 1%;
  border: 2px dotted red;
  box-sizing: border-box;
  align-items: center;
  height: auto;
  max-width: fit-content;
  max-height: fit-content;
}

.contact-card {
  background: #181818;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 2.5rem 2rem;
  margin: 3rem auto;
  max-width: 500px;
  width: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card h1 {
  color: #00bcd4;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-desc {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  font-size: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

form label {
  color: #00bcd4;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

form input,
form textarea {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #333;
  background: #222;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
}

form input:focus,
form textarea:focus {
  border-color: #00bcd4;
  outline: none;
}

#submit,
button[type="submit"] {
  background: #00bcd4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}

#submit:hover,
button[type="submit"]:hover {
  background: #0097a7;
  transform: scale(1.05);
}

/* Footer */


footer {
  background: rgba(39, 38, 38, 0.764); /* Dark semi-transparent background */
  color: #fff;
  text-align: center;
  padding: 0.5rem 0; /* Reduced padding for smaller size */
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem; /* Reduced font size */
  position: relative; /* For z-index */
  /* z-index: -1; Behind other content */
}

footer .section-title {
  font-size: 1.5rem; /* Smaller title */
  color: #00bcd4;
  margin-bottom: 0.5rem; /* Reduced margin */
  background: none;
  -webkit-text-fill-color: initial;
}

.socialImages {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.footer-social-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #222;
  box-shadow: 0 2px 8px rgba(0,188,212,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  object-fit: contain;
}

.footer-social-icon:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 6px 18px rgba(0,188,212,0.18);
  background: #00bcd4;
}

.footer-credit {
  color: #ccc;
  font-size: 0.75rem; /* Smaller credit text */
  margin-top: 0.5rem; /* Reduced margin */
  letter-spacing: 0.5px; /* Reduced letter spacing */
}