:root {
  --header-height: 70px; /* Adjust if your header is taller/shorter */
}

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

/* ==================== BASE ==================== */
body {
  height: 100vh;
  font-family: "Poppins", sans-serif;
  color: white;
  background: linear-gradient(135deg, #53687c, #7c91a2);
  overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1100px;
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  backdrop-filter: blur(12px) saturate(150%);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in-out;
  z-index: 1000;
}

/* Logo */
.logo {
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease, text-shadow 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6),
               0 0 15px rgba(255, 255, 255, 0.4);
}

.logo.clicked {
  transform: scale(0.9);
}

/* Navbar Links */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  border-radius: 9999px;
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

/* Liquid Glass Pill Effect */
.nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Hover & Active States */
.nav-links a:hover {
  color: white;
  transform: translateY(-1px);
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.35);
}

.nav-links a:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
  color: white;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.35);
}

.nav-links a.active::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Active (X) state */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== SECTIONS ==================== */
section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
}

/* ==================== HERO / HOME ==================== */
.home {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 clamp(16px, 4vw, 32px);
  color: white;
  scroll-margin-top: var(--header-height);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  max-width: 72ch;
}

.hero-content h1 {
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  animation: fadeUp 0.9s ease forwards;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #ffffff, #d1d9e6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: #e5eaf0;
  line-height: 1.6;
  text-align: center;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  max-width: 60ch;
  margin: 0 auto;
  animation: fadeUp 1.1s ease forwards;
}

/* Profile Image */
.image-container {
  text-align: center;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  animation: fadeUp 0.9s ease forwards;
}

/* ==================== SOCIAL LINKS ==================== */
.social-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeLift 0.8s ease forwards;
}

.social-links a:nth-child(1) { animation-delay: 0.2s; }
.social-links a:nth-child(2) { animation-delay: 0.4s; }
.social-links a:nth-child(3) { animation-delay: 0.6s; }

.social-links a:hover {
  background: rgba(255, 255, 255, 0.85);
  color: black;
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

/* ==================== PROJECTS ==================== */
.projects-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #53687c, #7c91a2);
  color: white;
}

.slider-container {
  position: relative;
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 10px 0;
}

.slider {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #53687c, #7c91a2);
  padding: 30px;
  border-radius: 35px;
  width: 380px;
  height: 380px;
  text-align: center;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.project-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}

#web-img {
  width: 300px;
  height: 200px;
  border-radius: 10px;
}

.project-card p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: white;
  opacity: 0.9;
}

.project-btn {
  background: transparent;
  color: white;
  padding: 10px 24px;
  border: 2px solid white;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dots {
  text-align: center;
  margin-top: 25px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background-color: white;
}

@media (hover: hover) and (pointer: fine) {
  .dot:hover {
    background-color: white;
  }
}

/* ==================== ABOUT ==================== */
.about-section {
  padding: 50px 8%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-title {
  font-size: 5.3rem;
  font-weight: 700;
  color: white;
  flex: 1;
  min-width: 200px;
}

.about-content {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.glass-card {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
}

.glass-card i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.glass-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #fff;
}

.glass-card p {
  font-size: 1rem;
  color: #e0e0e0;
}

/* Tools */
.tools-card {
  text-align: center;
}

.tools-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: white;
}

.tools-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.glass-icon {
  background: rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.glass-icon i {
  font-size: 32px;
  color: white;
}

.glass-icon:hover {
  transform: scale(1.15);
}

/* ==================== CONTACT ==================== */
.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.contact-inner {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-container {
  width: min(520px, 92%);
  max-width: 460px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
  text-align: center;
  color: #fff;
  margin: 0 auto;
}

.contact-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.contact-title {
  font-size: 1.95rem;
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  min-width: 230px;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-item i {
  font-size: 1.2rem;
}

.contact-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

/* ==================== FOOTER ==================== */
.site-footer {
  width: 100%;
  padding: 16px 0;
  opacity: 70%;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLift {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .project-card {
    width: 300px;
    height: 450px;
    padding: 20px;
  }

  .project-card img {
    width: 130px;
    height: 130px;
  }

  #web-img {
    width: 250px;
    height: 150px;
  }

  .contact-container {
    padding: 70px;
    width: 350px;
    height: 350px;  
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    background: linear-gradient(135deg, rgba(83,104,124,0.9), rgba(124,145,162,0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }

  .nav-links.show {
    max-height: 300px;
    opacity: 1;
  }

  .hero {
    padding-top: 200px;
    min-height: auto;
  }

  .about-container {
    margin-top: 250px;
    flex-direction: column;
    text-align: center;
  }

  .about-title {
    font-size: 2rem;
  }

  #about {
    scroll-margin-top: -210px;
  }

.about-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.about-cards .glass-card {
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 10px);
  min-width: 140px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-content > .glass-card {
  width: 100%;
  padding: 15px;
}

.glass-card h3 {
  font-size: 1.1rem;
}

.glass-card p {
  font-size: 0.9rem;
}

.tools-icons {
  gap: 8px;
}

.glass-icon i {
  font-size: 22px;
  justify-content: center;
}

.site-footer {
    padding: 10px 0;
    font-size: 0.8rem;
}
}