/* ================================
   GLOBAL RESET
================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #0d1117;
  color: #fff;
  line-height: 1.6;
}

/* ================================
   HEADER / NAVIGATION
================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #222;
}

nav {
  max-width: 1200px;
  height: 100%;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  color: #58a6ff;
  font-size: 28px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

nav a:hover {
  color: #58a6ff;
}

/* ================================
   MOBILE MENU BUTTON
================================ */

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* ================================
   HERO
================================ */

.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
}

.hero-content {
  max-width: 900px;
}

.tagline {
  color: #58a6ff;
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h2 {
  font-size: 4rem;
  line-height: 1.2;
  max-width: 900px;
  margin-bottom: 25px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  color: #c9d1d9;
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-buttons button {
  padding: 14px 30px;
  border-radius: 30px;
}

/* ================================
   BUTTONS
================================ */

button {
  padding: 15px 35px;
  border: none;
  border-radius: 50px;
  background: #238636;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

button:hover {
  transform: translateY(-4px);
}

.hero-buttons a:nth-child(2) button {
  background: #161b22;
  border: 1px solid #58a6ff;
}

.hero-buttons a:nth-child(2) button:hover {
  background: #58a6ff;
  color: #0d1117;
}

/* ================================
   SECTIONS
================================ */

section {
  max-width: 1200px;
  margin: auto;
  padding: 70px 20px;
}

section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

/* ================================
   PROJECT GRID
================================ */

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ================================
   PROJECT CARDS
================================ */

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  border-color: #58a6ff;
  box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

/* ================================
   PROJECT IMAGES
================================ */

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: 0.3s;
}

.card:hover img {
  transform: scale(1.05);
}

/* ================================
   CARD CONTENT
================================ */

.card h3 {
  color: #58a6ff;
  margin: 20px 20px 10px;
}

.card p {
  color: #c9d1d9;
  margin: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ================================
   TECHNOLOGY TAGS
================================ */

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 20px 20px;
}

.tech-stack span {
  background: #21262d;
  border: 1px solid #30363d;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: #58a6ff;
}

/* ================================
   PROJECT LINKS
================================ */

.project-links {
  display: flex;
  gap: 15px;
  padding: 0 20px 25px;
  flex-wrap: wrap;
}

.project-links a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 20px;
  background: #238636;
  color: white;
  transition: 0.3s;
}

.project-links a:hover {
  transform: scale(1.05);
}

/* ================================
   ABOUT
================================ */

#about p {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ================================
   SKILLS / CONTACT TEXT
================================ */

#skills p,
#contact p {
  text-align: center;
  font-size: 1.1rem;
  color: #c9d1d9;
}

/* ================================
   CONTACT LINKS
================================ */

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-links a {
  text-decoration: none;
  color: white;
  background: #238636;
  padding: 12px 25px;
  border-radius: 30px;
  transition: 0.3s;
}

.contact-links a:hover {
  transform: translateY(-5px);
  background: #2ea043;
}

/* ================================
   UPCOMING PROJECT CARD
================================ */

.upcoming-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.upcoming-card p em {
  display: block;
  color: #58a6ff;
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 10px;
}

.upcoming-card p em:last-child {
  margin-top: 15px;
  margin-bottom: 0;
}

/* ================================
   FOOTER
================================ */

footer {
  text-align: center;
  padding: 50px 20px;
  background: #161b22;
  border-top: 1px solid #30363d;
}

footer h2 {
  color: #58a6ff;
  margin-bottom: 15px;
}

footer p {
  color: #c9d1d9;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.social-links a {
  text-decoration: none;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  background: #238636;
  transition: 0.3s;
}

.social-links a:hover {
  transform: translateY(-5px);
}

.copyright {
  font-size: 14px;
  opacity: 0.7;
}

/* ================================
   WHATSAPP FLOATING BUTTON
================================ */

.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25d366;
  color: #ffffff;

  border-radius: 50%;

  font-size: 30px;
  text-decoration: none;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);

  z-index: 9999;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ================================
   TABLET / IPAD
================================ */

@media (min-width: 768px) and (max-width: 1024px) {
  header {
    height: 80px;
  }

  nav {
    padding: 20px 30px;
  }

  nav h1 {
    font-size: 25px;
  }

  nav ul {
    gap: 20px;
  }

  .hero {
    min-height: 80vh;
    padding: 120px 40px 60px;
  }

  .hero h2 {
    font-size: 3.2rem;
    max-width: 800px;
  }

  .hero p {
    font-size: 1.35rem;
    max-width: 680px;
    line-height: 1.7;
  }

  section {
    padding: 70px 35px;
  }

  section h2 {
    font-size: 2.3rem;
  }

  #about p {
    max-width: 750px;
    font-size: 1.25rem;
    line-height: 1.8;
  }

  .project-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .card img {
    height: 210px;
  }

  .card h3 {
    font-size: 1.35rem;
  }

  .card p {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .tech-stack {
    gap: 8px;
  }

  .tech-stack span {
    font-size: 14px;
  }

  .project-links {
    gap: 10px;
  }

  .project-links a {
    padding: 10px 15px;
  }

  .upcoming-card p {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  .upcoming-card p em {
    font-size: 1.2rem;
  }

  #skills p,
  #contact p {
    font-size: 1.15rem;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
    right: 25px;
    bottom: 25px;
    font-size: 30px;
  }
}

/* ================================
   MOBILE
================================ */

@media (max-width: 767px) {
  header {
    height: 70px;
  }

  nav {
    padding: 15px 20px;
    flex-direction: row;
    justify-content: space-between;
  }

  nav h1 {
    font-size: 24px;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;

    background: #0d1117;

    flex-direction: column;
    align-items: center;

    padding: 20px;
    gap: 20px;

    display: none;

    border-bottom: 1px solid #30363d;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 110px 20px 60px;
  }

  .tagline {
    font-size: 14px;
  }

  .hero h2 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 350px;
  }

  .hero-buttons a,
  .hero-buttons button {
    width: 100%;
  }

  section {
    padding: 55px 20px;
  }

  section h2 {
    font-size: 2rem;
  }

  .project-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .card img {
    height: 220px;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  .card p {
    font-size: 1rem;
  }

  .project-links {
    flex-wrap: wrap;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-links a {
    width: 80%;
    text-align: center;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 15px;
    bottom: 15px;
    font-size: 27px;
  }
}

.cv-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  background: #161b22;
  border: 1px solid #58a6ff;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.cv-button:hover {
  transform: translateY(-4px);
  background: #58a6ff;
  color: #0d1117;
}
