*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --sage-lightest: #E7F5DC;
  --sage-light: #CFE1B9;
  --sage-mid-light: #B6C99B;
  --sage-mid: #98A77C;
  --sage-mid-dark: #88976C;
  --sage-dark: #728156;
  
  --text-main: #1a2412;
  --text-muted: #4a5738;
  --card-bg: #ffffff;
  --card-alt-bg: #f8faf5;
  --section-bg: #fafcf7;
  --section-alt-bg: #f0f5e8;
  --bg-gradient: linear-gradient(135deg, #fafcf7 0%, #f0f5e8 50%, #E7F5DC 100%);
  --radius: 18px;
  --shadow-soft: 0 8px 32px rgba(114, 129, 86, 0.12);
  --shadow-strong: 0 16px 48px rgba(72, 88, 50, 0.2);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  --neon-green: #B6C99B;
  --neon-glow: 0 0 10px rgba(182, 201, 155, 0.8), 0 0 20px rgba(182, 201, 155, 0.6), 0 0 30px rgba(182, 201, 155, 0.4);
  --neon-glow-strong: 0 0 15px rgba(182, 201, 155, 1), 0 0 30px rgba(182, 201, 155, 0.8), 0 0 45px rgba(182, 201, 155, 0.6);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
}

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

main {
  padding-top: 3.5rem;
}

.section {
  padding: 7rem 0;
  background: var(--section-bg);
  position: relative;
}

.section.alt {
  background: var(--section-alt-bg);
}

.section + .section {
  border-top: 1px solid rgba(114, 129, 86, 0.1);
}

.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage-mid);
  background: rgba(152, 167, 124, 0.12);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.accent {
  color: var(--sage-mid);
  position: relative;
  font-weight: 700;
}

.accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, rgba(182, 201, 155, 0.4), rgba(207, 225, 185, 0.2));
  border-radius: 4px;
  z-index: -1;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sage-mid-light);
  outline-offset: 4px;
}

.cursor {
  width: 12px;
  height: 12px;
  background: var(--sage-mid);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.9;
  will-change: transform;
  box-shadow: var(--neon-glow);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid var(--sage-mid);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  will-change: transform;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor.hover {
  opacity: 1;
  width: 20px;
  height: 20px;
  box-shadow: 0 0 15px rgba(182, 201, 155, 1), 0 0 30px rgba(182, 201, 155, 0.8);
}

.cursor-follower.hover {
  opacity: 0.3;
  width: 60px;
  height: 60px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.15);
}

.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #B6C99B, #98A77C, #88976C, #B6C99B);
  background-size: 400% 100%;
  border-radius: 0 12px 12px 0;
  transition: width 0.15s ease-out;
  animation: shimmer 2s linear infinite, neonPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(182, 201, 155, 0.9), 
              0 0 40px rgba(152, 167, 124, 0.8), 
              0 0 60px rgba(182, 201, 155, 0.7),
              0 0 80px rgba(136, 151, 108, 0.6),
              0 0 100px rgba(182, 201, 155, 0.5);
  filter: brightness(1.4);
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(182, 201, 155, 0.9), 
                0 0 40px rgba(152, 167, 124, 0.8), 
                0 0 60px rgba(182, 201, 155, 0.7),
                0 0 80px rgba(136, 151, 108, 0.6),
                0 0 100px rgba(182, 201, 155, 0.5);
    filter: brightness(1.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(182, 201, 155, 1), 
                0 0 60px rgba(152, 167, 124, 0.9), 
                0 0 90px rgba(182, 201, 155, 0.8),
                0 0 120px rgba(136, 151, 108, 0.7),
                0 0 150px rgba(182, 201, 155, 0.6);
    filter: brightness(1.6);
  }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, #3d5a2f, #4a6b38, #2d4522);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(77, 107, 56, 0.6);
  z-index: 999;
  transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 4px 30px rgba(45, 69, 34, 0.7);
  background: linear-gradient(135deg, #3d5a2f, #4a6b38, #2d4522);
}

.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  position: relative;
  gap: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  position: relative;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #e8f5e0;
  transform: translateY(-2px);
}

.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #B6C99B, #98A77C);
  border-radius: 5px;
  animation: slideIn 0.3s ease;
  box-shadow: 0 0 10px rgba(182, 201, 155, 0.8), 0 0 20px rgba(152, 167, 124, 0.6);
}

@keyframes slideIn {
  from { width: 0; left: 50%; }
  to { width: 100%; left: 0; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
  padding-top: 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 10s ease-in-out infinite;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #CFE1B9, #B6C99B);
  top: -150px;
  right: -150px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #98A77C, #728156);
  bottom: 5%;
  left: -100px;
  animation-delay: 2s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #E7F5DC, #98A77C);
  top: 45%;
  right: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(8deg); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage-mid);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.8em;
}

.typing-cursor {
  font-weight: 700;
  color: var(--sage-mid);
  animation: blink 1s steps(2, start) infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.2;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.3s;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  max-width: 42rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.5s;
  line-height: 1.8;
}

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

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.btn {
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s var(--transition-smooth), box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn.primary {
  background: linear-gradient(135deg, #B6C99B, #98A77C);
  color: #1a2412;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-strong), var(--neon-glow-strong);
}

.btn.ghost {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--sage-mid);
}

.btn.ghost:hover {
  border-color: var(--sage-mid-dark);
  background: rgba(182, 201, 155, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(114, 129, 86, 0.25);
}

.btn.full-width {
  width: 100%;
}

.hero-socials {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.social-label {
  font-weight: 600;
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.social-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: background 0.3s ease, transform 0.3s ease, gap 0.3s ease;
  cursor: pointer;
}

.social-link:hover {
  background: rgba(152, 167, 124, 0.15);
  transform: translateY(-3px);
}

.social-link svg {
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.15) rotate(5deg);
}

.divider {
  color: var(--text-muted);
  font-weight: 300;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.1s;
}

.mouse {
  width: 28px;
  height: 44px;
  border: 3px solid var(--sage-mid-dark);
  border-radius: 22px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.wheel {
  width: 5px;
  height: 10px;
  background: var(--sage-mid);
  border-radius: 3px;
  animation: scroll 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(182, 201, 155, 0.6);
}

@keyframes scroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

.scroll-indicator span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-cards {
  display: grid;
  gap: 1.5rem;
}

.about-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(114, 129, 86, 0.15);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #B6C99B, #98A77C);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  box-shadow: var(--neon-glow);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(114, 129, 86, 0.3);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.about-card ul {
  list-style: none;
  padding-left: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.about-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.about-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--sage-mid);
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--card-alt-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(114, 129, 86, 0.15);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.skill-category:hover::after {
  transform: rotate(45deg) translateX(100%);
}

.skill-category:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.skill-category h3 {
  margin-bottom: 1.2rem;
  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: 700;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-chips span {
  position: relative;
  background: var(--sage-lightest);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  color: var(--text-main);
  border: 1px solid rgba(114, 129, 86, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.skill-chips span:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(114, 129, 86, 0.25);
  background: #ffffff;
}

.skill-chips span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(182, 201, 155, 0.7), rgba(231, 245, 220, 0.3));
  transform: translateX(-100%);
  transition: transform 0.6s ease-out;
}

.skill-chips span.active::after {
  transform: translateX(var(--skill-offset, -20%));
}

.skill-chips span.selected {
  background: linear-gradient(135deg, #B6C99B, #98A77C);
  border-color: var(--sage-mid);
  color: #1a2412;
  box-shadow: 0 0 15px rgba(182, 201, 155, 0.8), 
              0 0 30px rgba(152, 167, 124, 0.6);
  transform: scale(1.05);
}

.skill-info-box {
  margin-top: 2.5rem;
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border: 2px solid rgba(114, 129, 86, 0.2);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-info-box.show {
  opacity: 1;
  transform: translateY(0);
}

.skill-info-content {
  margin-bottom: 1rem;
}

.skill-info-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.skill-info-content strong {
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
}

.skill-progress-bar {
  height: 12px;
  background: rgba(114, 129, 86, 0.15);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #B6C99B, #98A77C, #88976C);
  border-radius: 10px;
  transition: width 1s var(--transition-smooth);
  box-shadow: 0 0 15px rgba(182, 201, 155, 0.9), 
              0 0 30px rgba(152, 167, 124, 0.7), 
              0 0 45px rgba(182, 201, 155, 0.5);
  position: relative;
}

.skill-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(114, 129, 86, 0.15);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: visible;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(152, 167, 124, 0.12));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(114, 129, 86, 0.3);
}

.project-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(136, 151, 108, 0.25);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  line-height: 1;
}

.project-card h3 {
  margin-bottom: 0.8rem;
  color: var(--text-main);
  position: relative;
  font-size: 1.4rem;
  font-weight: 700;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.project-card ul {
  list-style: none;
  padding-left: 0;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.project-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.project-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage-mid);
  font-size: 0.9rem;
  font-weight: 700;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  background: rgba(152, 167, 124, 0.15);
  color: var(--sage-mid-dark);
  border-radius: 50px;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.project-btn {
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  background: var(--sage-dark);
  color: var(--sage-lightest);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.3s ease, transform 0.3s ease, gap 0.3s ease;
}

.project-btn:hover {
  background: #566341;
  transform: translateY(-3px);
  gap: 1rem;
  box-shadow: 0 8px 20px rgba(114, 129, 86, 0.3);
}

.project-btn svg {
  transition: transform 0.3s ease;
  pointer-events: none;
}

.project-btn:hover svg {
  transform: translate(4px, -4px);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(114, 129, 86, 0.15);
}

.contact-method:hover {
  transform: translateX(12px);
  box-shadow: var(--shadow-soft);
}

.method-icon {
  font-size: 1.8rem;
}

.method-details {
  display: flex;
  flex-direction: column;
}

.method-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.method-value {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-form {
  background: #2a3520;
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid rgba(231, 245, 220, 0.3);
  box-shadow: var(--shadow-strong);
  color: var(--sage-lightest);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.3s ease;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  background: rgba(231, 245, 220, 0.08);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 2px solid rgba(231, 245, 220, 0.25);
  color: var(--sage-lightest);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage-mid-light);
  background: rgba(231, 245, 220, 0.15);
  box-shadow: 0 0 25px rgba(182, 201, 155, 0.4), var(--neon-glow);
}

input::placeholder,
textarea::placeholder {
  color: rgba(231, 245, 220, 0.6);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.footer {
  background: #2a3520;
  padding: 2rem 0;
  text-align: center;
  color: var(--sage-lightest);
  border-top: 1px solid rgba(231, 245, 220, 0.3);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer p {
  font-size: 0.95rem;
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #B6C99B, #98A77C);
  color: #1a2412;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--transition-smooth);
}

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

.back-to-top:hover {
  transform: translateY(-6px) scale(1.15);
  box-shadow: var(--shadow-strong), var(--neon-glow-strong);
}

.back-to-top svg {
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-4px);
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #2a3520;
  color: var(--sage-lightest);
  padding: 1.2rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong), var(--neon-glow-strong);
  z-index: 1001;
  opacity: 0;
  transition: all 0.4s var(--transition-smooth);
  border: 2px solid rgba(182, 201, 155, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 1200px) {
  .hero-inner {
    gap: 2.5rem;
  }
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 5.5rem 0;
  }

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

  .cursor,
  .cursor-follower {
    display: none;
  }

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

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(42, 53, 32, 0.98);
    padding: 5rem 2.5rem 2rem;
    flex-direction: column;
    gap: 2rem;
    transition: right 0.4s var(--transition-smooth);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
  }

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

  .nav-link {
    font-size: 1.3rem;
    color: var(--sage-lightest);
  }
  
  .nav-link.active::after {
    bottom: -8px;
  }

  .hero {
    padding-top: 5rem;
    min-height: auto;
  }

  .hero-inner {
    gap: 2rem;
  }

  .section-heading {
    margin-bottom: 2.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .scroll-indicator {
    display: none;
  }
  
  .section {
    padding: 5rem 0;
  }

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

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

@media (max-width: 576px) {
  main {
    padding-top: 3.5rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .header-inner {
    padding: 0.4rem 0;
  }
  
  .logo {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-socials {
    font-size: 0.9rem;
    justify-content: center;
  }

  .about-card,
  .skill-category,
  .project-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.8rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .about-text p,
  .contact-info p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }

  .project-number {
    font-size: 2.5rem;
    top: 1rem;
    right: 1.5rem;
  }

  .social-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .nav-links {
    width: 85%;
    max-width: 280px;
  }

  .method-value {
    font-size: 0.95rem;
    word-break: break-word;
  }

  .container {
    width: 92%;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .project-number {
    font-size: 2rem;
  }

  .about-card h3,
  .skill-category h3,
  .project-card h3 {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}