/* ==========================================================================
   ROOT VARIABLES — Light Editorial Theme (Emerald + Gold accents)
   Change these to re-theme the entire site instantly.
   ========================================================================== */
:root {
  --bg-color: #FDFBF6;         /* warm cream background */
  --surface: #FFFFFF;          /* card surfaces */
  --ink: #1C1C1A;              /* main text (near-black) */
  --ink-soft: #6B6B63;         /* secondary text */
  --primary: #047857;          /* deep emerald */
  --accent: #D97706;           /* warm gold accent */
  --line: #E8E4D9;             /* subtle borders */
  --shadow-soft: 0 12px 30px rgba(28, 28, 26, 0.08);
  --shadow-hover: 0 20px 40px rgba(4, 120, 87, 0.15);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}

.section-tag {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 55px;
  color: var(--ink);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
  padding: 22px 0;
}

.navbar.scrolled {
  background: rgba(253, 251, 246, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(28, 28, 26, 0.06);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #036347;
  box-shadow: 0 12px 28px rgba(4, 120, 87, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 40px 60px;
  background:
    radial-gradient(circle at 15% 20%, rgba(4, 120, 87, 0.06), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(217, 119, 6, 0.08), transparent 40%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-greeting {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.hero-name {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero-name span {
  color: var(--primary);
  font-style: italic;
}

.hero-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 22px;
  min-height: 40px;
}

.cursor {
  color: var(--accent);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-desc {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero image */
.hero-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.profile-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 8px;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.profile-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0.5;
  animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-badge {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.floating {
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--ink-soft);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ==========================================================================
   CARD BASE (soft-shadow, light surface — replaces glassmorphism)
   ========================================================================== */
.about-card,
.project-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
  border-radius: var(--radius-md);
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.about-card p {
  color: var(--ink-soft);
  font-size: 0.85rem;
}
/* ==========================================================================
   SKILLS SECTION — simple tag list, no progress bars
   ========================================================================== */
.skills {
  background: linear-gradient(180deg, transparent, rgba(4, 120, 87, 0.03), transparent);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 700px;
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.skill-tag:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.skill-tag-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.skill-tag-name {
  color: var(--ink);
}
/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, #ECFDF5, #FEF3C7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  font-size: 4rem;
}

.project-content {
  padding: 26px;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.project-content p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.badge {
  background: rgba(4, 120, 87, 0.08);
  color: var(--primary);
  border: 1px solid rgba(4, 120, 87, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-buttons {
  display: flex;
  gap: 12px;
}

.btn-small {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-view {
  background: var(--primary);
  color: #fff;
}

.btn-view:hover {
  background: #036347;
  transform: translateY(-2px);
}

.btn-github {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-github:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  padding: 40px 25px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  word-break: break-word;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 40px;
  text-align: center;
}

.footer-container p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-sub {
  margin-top: 6px;
  font-size: 0.8rem;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.35);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: #036347;
}

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(253, 251, 246, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--line);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

  .section-container {
    padding: 70px 24px;
  }

  .about-cards {
    grid-template-columns: 1fr 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-frame {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .about-cards {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    text-align: center;
  }
}
