/* ====== RESET & BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(120deg, #181c2b 0%, #232946 100%);
  color: #f4f7f6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====== BACKGROUND EFFECTS ====== */
.stars, .twinkling {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.stars {
  background: url('images/stars.png') repeat top center;
  opacity: 0.18;
  animation: moveStars 200s linear infinite;
}
.twinkling {
  background: url('images/twinkling.png') repeat top center;
  opacity: 0.10;
  animation: moveTwinkling 200s linear infinite;
}

@keyframes moveStars {
  from {background-position: 0 0;}
  to {background-position: -10000px 5000px;}
}
@keyframes moveTwinkling {
  from {background-position: 0 0;}
  to {background-position: 10000px 5000px;}
}

/* ====== HEADER & NAV ====== */
header {
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  background: rgba(24, 28, 43, 0.7);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  z-index: 100;
  transition: background 0.3s;
  backdrop-filter: blur(8px);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

nav h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #00ffd0;
  text-shadow: 0 0 8px #00ffd088;
  filter: brightness(1.2);
}

nav ul {
  display: flex;
  gap: 2vw;
  list-style: none;
}

nav ul li a {
  color: #f4f7f6;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

nav ul li a:hover,
nav ul li a:focus {
  background: rgba(0,255,208,0.13);
  color: #00ffd0;
  box-shadow: 0 0 8px #00ffd088;
}

/* ====== HERO SECTION ====== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
  color: #f4f7f6;
  text-shadow: 0 2px 16px #00ffd033;
}
.hero h1 span {
  color: #00ffd0;
  background: linear-gradient(90deg, #00ffd0 60%, #1abc9c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.2);
  text-shadow: 0 0 12px #00ffd088;
}

.typewriter {
  font-size: 1.4rem;
  color: #eebf63;
  min-height: 2.5rem;
  margin-bottom: 30px;
  font-family: 'Fira Mono', 'Consolas', monospace;
  text-shadow: 0 0 8px #eebf6344;
}

.hero .btn {
  margin: 10px 8px;
}

/* ====== BUTTONS ====== */
.btn {
  background: linear-gradient(90deg, #00ffd0 60%, #1abc9c 100%);
  color: #181c2b;
  border: none;
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 16px #00ffd033;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
}
.btn:hover, .btn:focus {
  background: linear-gradient(90deg, #eebf63 60%, #00ffd0 100%);
  color: #232946;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 24px #eebf6344;
}

/* ====== GLASS CARD BASE ====== */
.glass-card {
  background: rgba(35, 41, 70, 0.55);
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(0,255,208,0.08);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0,255,208,0.13);
}

/* ====== ABOUT SECTION ====== */
.about {
  ime-mode: glass-card;
  margin: 48px auto 0 auto;
  max-width: 900px;
  padding: 60px 30px 40px 30px;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #00ffd0;
  margin-bottom: 18px;
  text-shadow: 0 0 8px #00ffd088;
}
.about p {
  font-size: 1.13rem;
  line-height: 1.8;
  color: #f4f7f6;
  text-align: center;
  opacity: 0.96;
}

/* ====== PROJECTS SECTION ====== */
.projects {
  padding: 60px 0 30px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.projects h2 {
  font-size: 2.2rem;
  color: #00ffd0;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 0 8px #00ffd088;
}

h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 2rem 0 1rem 0;
  color: #eebf63;
  text-align: center;
  text-shadow: 0 0 8px #eebf6344;
}

.project-grid {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.project-container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}

.project-card {
  background: rgba(35, 41, 70, 0.7);
  border-radius: 18px;
  box-shadow: 0 4px 24px #00ffd022;
  width: 320px;
  min-width: 260px;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,255,208,0.13);
  backdrop-filter: blur(8px);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px #00ffd044;
  border: 1.5px solid #00ffd0;
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
  object-fit: cover;
  aspect-ratio: 16/9;
  background: #181c2b;
  box-shadow: 0 2px 12px #00ffd022;
}

.project-card h3 {
  font-size: 1.2rem;
  color: #00ffd0;
  margin-bottom: 8px;
  margin-top: 0;
  text-align: left;
  text-shadow: 0 0 8px #00ffd088;
}

.project-card p {
  font-size: 1rem;
  color: #f4f7f6;
  margin-bottom: 16px;
  text-align: left;
  opacity: 0.95;
}

.btn-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.arrow {
  background: none;
  border: none;
  color: #eebf63;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 0 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 transparent;
}
.arrow:hover, .arrow:focus {
  color: #00ffd0;
  background: rgba(0,255,208,0.08);
  transform: scale(1.2);
  box-shadow: 0 0 8px #00ffd088;
}

/* ====== SKILLS SECTION ====== */
.skills {
  padding: 60px 0 30px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.skills h2 {
  font-size: 2rem;
  color: #eebf63;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 0 8px #eebf6344;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  background: rgba(24, 28, 43, 0.7);
  border-radius: 18px;
  padding: 40px 18px;
  box-shadow: 0 4px 24px #00ffd022;
  backdrop-filter: blur(8px);
}

.skill-item {
  text-align: center;
  min-width: 110px;
  flex: 1 1 110px;
  transition: transform 0.2s, background 0.2s;
  padding: 12px 0;
  border-radius: 14px;
  background: rgba(35, 41, 70, 0.5);
  box-shadow: 0 2px 8px #00ffd022;
}
.skill-item i {
  font-size: 2.5rem;
  margin-bottom: 0.7rem;
  display: block;
  text-shadow: 0 0 8px #00ffd044;
}
.skill-item p {
  font-size: 1rem;
  color: #f4f7f6;
}
.skill-item:hover {
  transform: scale(1.09);
  background: rgba(0,255,208,0.08);
}

/* ====== CONTACT SECTION ====== */
.contact {
  background: rgba(35, 41, 70, 0.7);
  border-radius: 18px;
  margin: 40px auto 0 auto;
  max-width: 700px;
  padding: 50px 20px 40px 20px;
  box-shadow: 0 4px 24px #00ffd022;
  text-align: center;
  border: 1.5px solid rgba(0,255,208,0.13);
  backdrop-filter: blur(8px);
}

.contact h2 {
  font-size: 2rem;
  color: #00ffd0;
  margin-bottom: 18px;
  font-weight: 800;
  text-shadow: 0 0 8px #00ffd088;
}
.contact p {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: #eebf63;
  text-shadow: 0 0 8px #eebf6344;
}
.contact .btn {
  font-size: 1.5rem;
  padding: 12px 22px;
  border-radius: 50px;
  background: linear-gradient(90deg, #00ffd0 60%, #eebf63 100%);
  color: #232946;
  box-shadow: 0 2px 12px #00ffd044;
}

/* ====== FOOTER ====== */
footer {
  background: rgba(24, 28, 43, 0.7);
  color: #f4f7f6;
  text-align: center;
  padding: 22px 0 10px 0;
  margin-top: 40px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 16px #00ffd022;
  backdrop-filter: blur(8px);
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}
footer .social-icons a {
  color: #eebf63;
  font-size: 1.6rem;
  transition: color 0.2s, transform 0.2s, text-shadow 0.2s;
  text-shadow: 0 0 8px #eebf6344;
}
footer .social-icons a:hover, footer .social-icons a:focus {
  color: #00ffd0;
  transform: scale(1.2);
  text-shadow: 0 0 12px #00ffd088;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1100px) {
  .projects, .skills {
    max-width: 98vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .about, .contact {
    max-width: 98vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 10px 2vw;
    gap: 8px;
  }
  nav ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .about, .contact {
    padding: 40px 10px 30px 10px;
  }
  .skills-grid {
    padding: 30px 8px;
    gap: 18px;
  }
  .project-card {
    width: 90vw;
    min-width: 0;
    padding: 16px 10px 12px 10px;
  }
}

@media (max-width: 600px) {
  nav h2 {
    font-size: 1.2rem;
  }
  nav ul li a {
    font-size: 1rem;
    padding: 7px 10px;
  }
  .hero h1 {
    font-size: 1.1rem;
  }
  .typewriter {
    font-size: 1rem;
  }
  .about h2, .skills h2, .contact h2, .projects h2 {
    font-size: 1.1rem;
  }
  .about, .contact {
    padding: 24px 4px 18px 4px;
    border-radius: 10px;
  }
  .skills-grid {
    padding: 16px 2px;
    gap: 10px;
    border-radius: 10px;
  }
  .project-card {
    padding: 8px 4px 8px 4px;
    border-radius: 10px;
  }
  .btn {
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 18px;
  }
  footer {
    font-size: 0.85rem;
    padding: 10px 0 6px 0;
    border-radius: 10px 10px 0 0;
  }
  .arrow {
    font-size: 1.5rem;
    padding: 0 2px;
  }
}

/* ====== SCROLLBAR STYLING ====== */
.project-container::-webkit-scrollbar {
  height: 8px;
}
.project-container::-webkit-scrollbar-thumb {
  background: #00ffd0;
  border-radius: 4px;
}
.project-container::-webkit-scrollbar-track {
  background: #232946;
}

/* ====== ANIMATIONS ====== */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease-in forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ====== NAVBAR DROPDOWN FOR MOBILE ====== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 36px;
  height: 36px;
  margin-left: 10px;
  z-index: 200;
}
.nav-toggle span {
  height: 4px;
  width: 100%;
  background: #00ffd0;
  margin: 5px 0;
  border-radius: 2px;
  display: block;
  transition: 0.3s;
}

/* ...existing code... */

/* Hide menu on mobile by default */
/* ...existing code... */

/* Hide menu on mobile by default */
@media (max-width: 900px) {
  nav {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    height: 70px;
    gap: 0;
    padding: 0 2vw;
    position: relative;
  }
  .nav-toggle {
    display: flex;
    margin-left: 10px;
    margin-right: 0;
    order: 2;
  }
  nav h2 {
    order: 1;
    margin-left: 0;
    margin-right: auto;
    font-size: 1.3rem;
  }
  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    left: auto;
    background: rgba(24, 28, 43, 0.97);
    box-shadow: 0 8px 32px #00ffd022;
    border-radius: 10px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 140px;
    max-width: 70vw;
    padding: 10px 0;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 150;
  }
  nav ul.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    width: 100%;
    display: block;
    padding: 10px 18px;
    font-size: 1rem;
    border-radius: 0;
    border-left: 4px solid transparent;
    transition: background 0.2s, color 0.2s, border 0.2s;
  }
  nav ul li a:hover,
  nav ul li a:focus {
    background: rgba(0,255,208,0.13);
    color: #00ffd0;
    border-left: 4px solid #00ffd0;
  }
}
