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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Mulish", sans-serif;
  color: #eee;
  background: #0d0d0d;
  line-height: 1.7;
}

/* ===== CSS VARIABLES ===== */
:root {
  --green: #00c15a;
  --green-dark: #008f41;
  --green-glow: rgba(0, 193, 90, 0.5);
  --dark: #0d0d0d;
  --dark2: #141414;
  --dark3: #1a1a1a;
  --card-bg: #191919;
  --text-muted: #aaa;
  --section-label-color: #00c15a;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

/* ===== SCROLL PROGRESS BAR ===== */
#scrollBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--green);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  padding: 12px 40px;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.logo {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.logo span {
  color: var(--green);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}
.nav-links a {
  text-decoration: none;
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a.active {
  color: var(--green);
  text-shadow:
    0 0 14px var(--green-glow),
    0 0 30px var(--green-glow);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Slideshow */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slide.active {
  opacity: 1;
}

/* Dark overlay on top of photos */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 13, 13, 0.88) 0%,
    rgba(13, 13, 13, 0.72) 60%,
    rgba(0, 80, 30, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 20px 120px;
  max-width: 800px;
}

.hero-greeting {
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  font-weight: 600;
  opacity: 0;
  animation: heroFade 0.8s ease forwards 0.3s;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 16px;
  opacity: 0;
  animation: heroFade 0.8s ease forwards 0.5s;
}
.hero-content h1 span {
  color: var(--green);
}

.hero-subtitle-wrapper {
  height: 40px;
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFade 0.8s ease forwards 0.7s;
}
.hero-subtitle {
  font-family: "Mulish", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #ccc;
}
.cursor {
  color: var(--green);
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-desc {
  color: #aaa;
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 1rem;
  opacity: 0;
  animation: heroFade 0.8s ease forwards 0.9s;
}

.hero-content .btn {
  opacity: 0;
  animation: heroFade 0.8s ease forwards 1.1s;
}

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

/* ===== ARROW BUTTON ===== */
.arrow-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrowBounce 2s ease-in-out infinite;
  transition: all 0.3s ease;
  opacity: 0;
  animation:
    heroFade 0.8s ease forwards 1.4s,
    arrowBounce 2s ease-in-out 2s infinite;
}
.arrow-down:hover {
  background: var(--green);
  color: #000;
  box-shadow: 0 0 20px var(--green-glow);
}
@keyframes arrowBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== BTN ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #000;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}
.btn:hover {
  background: #00e66c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--green-glow);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #000;
}
.btn-lg {
  font-size: 1rem;
  padding: 15px 36px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 100px 40px;
  background: var(--dark2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.about-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image {
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}
.about-image.reveal {
  opacity: 1;
  transform: translateX(0);
}

.about-pic {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--green);
  display: block;
  position: relative;
  z-index: 1;
}
.about-img-accent {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 100%;
  max-width: 360px;
  height: 100%;
  border-radius: 14px;
  border: 2px solid rgba(0, 193, 90, 0.25);
  z-index: 0;
}

.about-text {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease 0.2s;
}
.about-text.reveal {
  opacity: 1;
  transform: translateX(0);
}

.about-text p {
  color: #aaa;
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.about-text h3 {
  margin: 24px 0 14px;
  color: var(--green);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-list {
  list-style: none;
  margin-bottom: 30px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #aaa;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.about-list li i {
  color: var(--green);
  margin-top: 3px;
  flex-shrink: 0;
}

.cv-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== SKILLS ===== */
.skills {
  padding: 100px 40px;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.skills-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.skills-inner h2 {
  margin-bottom: 50px;
}

.skills-bars {
  text-align: left;
}
.skill {
  margin-bottom: 28px;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.skill-name {
  font-weight: 600;
  color: #ccc;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-name i {
  color: var(--green);
  font-size: 1.1rem;
}
.skill-pct {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
}
.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  border-radius: 50px;
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--green-glow);
}

/* ===== WHAT I DO ===== */
.what-i-do {
  padding: 100px 40px;
  background: var(--dark2);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.what-i-do h2 {
  margin-bottom: 50px;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--card-bg);
  padding: 36px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}
.service-card.reveal {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--green);
  box-shadow: 0 0 30px rgba(0, 193, 90, 0.15);
}
.service-card i {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 18px;
  display: block;
}
.service-card h3 {
  margin-bottom: 12px;
}
.service-card p {
  color: #888;
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 100px 40px;
  background: var(--dark);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.projects h2 {
  margin-bottom: 50px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Project Card */
.project-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.project-card.reveal {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 30px rgba(0, 193, 90, 0.2);
}
.project-display {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}
.project-card:hover .project-display {
  transform: scale(1.05);
  filter: brightness(0.35);
}
.project-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #555;
  padding: 50px 20px;
  transition: color 0.3s ease;
  width: 100%;
}
.project-placeholder i {
  font-size: 3rem;
}
.project-placeholder p {
  font-size: 1rem;
  font-weight: 600;
}
.project-card:hover .project-placeholder {
  color: #888;
}

/* Hover Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay span {
  background: var(--green);
  color: #000;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.project-card:hover .project-overlay span {
  transform: scale(1);
}

/* ===== PROJECT DETAIL MODAL ===== */
.project-modal-content {
  max-width: 720px;
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}
#projectModalBody .modal-screenshot {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.modal-screenshot-placeholder {
  width: 100%;
  height: 200px;
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 3rem;
}
#projectModalBody .modal-info {
  padding: 30px 36px 36px;
}
#projectModalBody .modal-info h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 12px;
}
#projectModalBody .modal-info p {
  color: #aaa;
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tech-tag {
  background: rgba(0, 193, 90, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 193, 90, 0.3);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== CONTACT CTA ===== */
.contact-cta {
  padding: 120px 40px;
  background: var(--dark2);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.contact-cta h2 {
  margin-bottom: 16px;
}
.contact-cta p {
  color: #888;
  margin-bottom: 36px;
  font-size: 1rem;
}
.social-icons {
  margin-top: 40px;
}
.social-icons a {
  color: #555;
  font-size: 1.6rem;
  margin: 0 12px;
  transition:
    color 0.3s,
    text-shadow 0.3s;
}
.social-icons a:hover {
  color: var(--green);
  text-shadow: 0 0 12px var(--green-glow);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 24px;
  background: #080808;
  color: #444;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 520px;
  position: relative;
  animation: slideDown 0.35s ease;
  color: #eee;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes slideDown {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-content h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: #fff;
}
.modal-content h2 i {
  color: var(--green);
}

button.close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #555;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
button.close:hover {
  color: var(--green);
}

/* Contact Form */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#contactForm label {
  font-weight: 600;
  font-size: 0.87rem;
  color: #aaa;
  margin-top: 12px;
  margin-bottom: 4px;
}
#contactForm input,
#contactForm textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 11px 14px;
  color: #eee;
  font-size: 0.95rem;
  font-family: "Mulish", sans-serif;
  outline: none;
  transition: border-color 0.25s;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--green);
}
#contactForm textarea {
  resize: vertical;
  min-height: 110px;
}
#contactForm .btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}
#sendButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-status {
  margin-top: 14px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== SCROLL TO TOP ===== */
#topBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--green);
  color: #000;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px var(--green-glow);
}
#topBtn:hover {
  transform: translateY(-3px);
  background: #00e66c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    text-align: center;
  }
  .about-pic {
    max-width: 280px;
  }
  .about-img-accent {
    display: none;
  }
  .services-container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .navbar {
    padding: 14px 20px;
  }
  .nav-links {
    gap: 2px;
  }
  .nav-links a {
    padding: 6px 9px;
    font-size: 0.78rem;
  }
  .about-section,
  .skills,
  .what-i-do,
  .projects,
  .contact-cta {
    padding: 70px 20px;
  }
  .cv-buttons {
    flex-direction: column;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
}
