/* =====================
   Design tokens (global)
   ===================== */
:root {
  --motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-fast: 0.2s;
  --motion-normal: 0.3s;
  --motion-slow: 0.5s;

  --ambient-x: 50%;

  --primary-color: #222;
  --secondary-color: #555;
  --accent-color: #758392;
  --secondary-accent:#a0e629;
  --contrast-color: #fcfa19;
  --secondary-contrast: #D3AF37;
  --bg-light: #f5f5f5;
  --border: #ddd;

  /* spacing scale */
  --space-2xs: 0.25rem; /* 4px  */
  --space-xs: 0.5rem;   /* 8px  */
  --space-sm: 1rem;     /* 16px */
  --space-md: 2rem;   /* 24px */
  --space-lg: 4rem;     /* 32px */
  --space-xl: 8rem;     /* 48px */ 
}

.theme-dark {
  --primary-color: #c0bca8;
  --secondary-color: #e4dab2;
  --accent-color: #a0e629/*#266b4c*/; 
  --secondary-accent: #82aba3;
  --contrast-color: #fcfa19;
  --bg-light: rgba(255, 255, 255, 0.04);
  --secondary-contrast: #D3AF37;
}

.theme-navy {
  --primary-color: #e5e7eb;
  --secondary-color: #9aa4b2;
  --accent-color: #60a5fa; /* clean blue pop */
  --bg-light: #0b1020;
  --border: #1e293b;
}

.theme-light {
  --primary-color: #1f2937;
  --secondary-color: #4b5563;
  --accent-color: #93d61e; /* sage */
  --bg-light: #ebe8dc /*#f6f7f3*/;     /* creamy */
  --border: #e5e7eb;
}

/* =====================
   Base / reset
   ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* =====================
   Header / nav
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 20px; /* more breathing space */

  /* only blur, no background color */
  backdrop-filter: blur(12px);      /* strong blur */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
}

/* Flex container for left/right alignment */
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1460px; /* optional: keeps content centered on large screens */
  margin: 0 auto;
}

/* Site title */
.site-title {
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Playfair Display', serif; /* example */
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary-color);
}

.site-title span {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;

  /* Gradient fill */
  background: linear-gradient(90deg, #D3AF37, #FFD700, #D3AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Glow effect */
  text-shadow:
    0 0 4px rgba(255, 215, 0, 0.6),
    0 0 8px rgba(255, 215, 0, 0.4),
    0 0 12px rgba(255, 215, 0, 0.3);

  display: inline-block;
  transition: all 0.3s ease;

  /* Shimmer animation */
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.site-title span:hover {
  /* Intensified glow on hover */
  text-shadow:
    0 0 6px rgba(255, 215, 0, 0.8),
    0 0 12px rgba(255, 215, 0, 0.6),
    0 0 18px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}


.site-title span:first-child {
  margin-right: -4px; /* overlapping effect */
}

/* Nav links */
.site-header nav {
  display: flex;
  gap: 32px;
}

/* Nav link styling */
.site-header nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--secondary-color);
  opacity: 0.5;
  transition: color var(--motion-fast) var(--motion-ease),
              opacity var(--motion-fast) var(--motion-ease);
}

/* Hover state */
.site-header nav a:hover {
  color: var(--secondary-contrast);
  opacity: 1;
}

/* Hover underline effect */
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-normal) var(--motion-ease);
}

.site-header nav a:hover::after {
  transform: scaleX(1);
}


.site-header nav a:hover::after {
  width: 100%;
}

.section-header {
  margin-bottom: var(--space-md);
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  color: var(--secondary-color);
}

body > * {
  position: relative;
  z-index: 1;
}

body {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.02), transparent 80%),
    linear-gradient(
      180deg,
    #000f05 0%,     /* very dark green top */
    #001f0b 20%,    /* deep forest green */
    #033012 40%,    /* supporting shade, rich green */
    #05401a 55%,    /* slightly warmer mid-green for subtle depth */
    #1a5a30 75%,    /* softer green near bottom, complements gold/neon glow */
    #1e6335 90%,    /* slightly brighter green accent near bottom */
    #1b4e2c 100%    /* base green to anchor gradient */
    );
  position: relative;
  font-family: 'Inter', sans-serif;
  color: var(--primary-color);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------- */
/* Noise + Vignette Layer */
/* ----------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* farthest back */

  /* Noise + subtle vignette */
  background-image: 
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>"),
    radial-gradient(circle at 50% 40%, transparent 60%, rgba(0,0,0,0.3) 100%);
  
  background-repeat: repeat, no-repeat;
  background-size: auto, cover; /* noise tiles, vignette covers entire screen */
  opacity: 0.03; /* subtle effect */
}

/* ----------------- */
/* Fireflies Layer (faint + flicker) */
/* ----------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1; /* above noise/vignette, behind content */

  /* Faint stable fireflies + multiple bright flickering fireflies */
  background-image:
    /* faint layers */
    radial-gradient(circle, rgba(211,175,55,0.10) 1px, transparent 2px),
    radial-gradient(circle, rgba(211,175,55,0.07) 1.4px, transparent 3px),
    /* bright layers */
    radial-gradient(circle, rgba(211,175,55,0.25) 1.2px, transparent 2.5px),
    radial-gradient(circle, rgba(211,175,55,0.35) 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(211,175,55,0.22) 1.2px, transparent 2.5px);

  /* Different sizes for depth */
  background-size: 350px 350px, 500px 500px, 700px 700px, 600px 600px, 800px 800px;

  /* Soft glow */
  filter: blur(0.5px); /* <-- add it here */
  
  /* Animate drift + flicker */
  animation: 
    drift 65s linear infinite, 
    flicker1 8s infinite alternate,
    flicker2 9s infinite alternate,
    flicker3 10s infinite alternate;

  /* Mask to fade edges */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* ----------------- */
/* Drift Animation (all fireflies) */
/* ----------------- */
@keyframes drift {
  0% {
    background-position: 0 0, 100px 50px, 200px 150px, 300px 200px, 150px 100px;
  }
  100% {
    background-position: 0 -400px, 100px -600px, 200px -800px, 300px -900px, 150px -700px;
  }
}

/* ----------------- */
/* Flicker Animation (bright layers) */
/* ----------------- */
@keyframes flicker1 {
  0%,100% { opacity: 0.55; }
  25% { opacity: 0.9; }
  50% { opacity: 0.6; }
  75% { opacity: 0.8; }
}

@keyframes flicker2 {
  0%,100% { opacity: 0.5; }
  20% { opacity: 0.85; }
  40% { opacity: 0.6; }
  60% { opacity: 0.8; }
  80% { opacity: 0.55; }
}

@keyframes flicker3 {
  0%,100% { opacity: 0.6; }
  30% { opacity: 0.9; }
  60% { opacity: 0.65; }
  90% { opacity: 0.8; }
}

/*h1, h2, h3, p {
  margin: 0;
}*/
h2 {
  font-size: 2.2rem;             
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  position: relative;
}

/* =====================
   Links
   ===================== */
a {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}

/* =====================
   Layout
   ===================== */
main {
  padding-top: 0; /* adjust to header height */
  position: relative; /* keep z-index stacking proper */
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

section {
  scroll-margin-top: 60px;
  position: relative;
  overflow: hidden;
  border-color: var(--border-color);
  padding-block: var(--space-xl);
}

@keyframes glowDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(-2%, 1%) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
}

/*section:hover::before {
  opacity: 1;
  animation: ambientBreath 6s ease-in-out infinite;
}*/

section::before {
  opacity: 0.35;
  animation: glowDrift 18s ease-in-out infinite;
}


/*section.reveal.active::before {
  opacity: 1;
}*/

section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background-image: repeating-radial-gradient(
    circle at 0 0,
    rgba(255, 255, 255, 0.015) 0,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 2px
  );

  opacity: 0.15;
  mix-blend-mode: overlay;
}

section > * {
  position: relative;
  z-index: 1;
}

section h2 {
  margin-bottom: var(--space-md);
}


.section-header {
  /* neutralize any header layout styles */
  display: block;
  position: static;
  background: none;
  padding: 0;

  /* spacing */
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  margin-bottom: 10px;
}

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  color: var(--secondary-contrast);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--secondary-contrast);

  transition: 
    transform var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

/* =====================
   Hero 
   ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: -10px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}


.hero .container {
  max-width: 900px;
}


.hero-name {
  color: var(--secondary-contrast);
}

.typing::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  color: #D3AF37; /* cursor color for the name */
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.hero h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--secondary-color);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero .section-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 620px;
  margin-bottom: 2.5rem;
  color: var(--primary-color);
}


.hero .btn {
  margin-top: 1rem;
  letter-spacing: 0.01em;
}

.hero .btn.gold-glow {
  letter-spacing: 0.02em;
  color: #D3AF37; /* solid warm gold text */
  border: 2px solid #D3AF37;
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

.hero .btn.gold-glow:hover {
  transform: translateY(-2px); /* subtle lift */
  box-shadow: 0 0 20px 5px rgba(211, 175, 55, 0.25), 
              0 4px 12px rgba(211, 175, 55, 0.15);
              /* soft warm glow with layered shadows */
  animation: glow-pulse 1.2s infinite alternate;
}

/* Pulse animation for soft glow */
@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 15px 3px rgba(211, 175, 55, 0.2),
                0 4px 10px rgba(211, 175, 55, 0.1);
  }
  100% {
    box-shadow: 0 0 25px 6px rgba(211, 175, 55, 0.3),
                0 4px 14px rgba(211, 175, 55, 0.15);
  }
}
/* =====================
   Scroll hint – text
   ===================== */

.scroll-hint.text {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);

  animation: scrollFade 2.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes scrollFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, 6px);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, 6px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* =====================
   About Me
   ===================== */

#about {
  margin: 0 auto;
}

#about .container {
  max-width: 950px; /* expanded width */
  margin: 0 auto;
}

/* Heading */
/*bout .section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  position: relative;
}*/

#about .section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--secondary-contrast); /* warm gold */
  margin-top: 8px;
  border-radius: 2px;
}

/* Lead paragraph (editorial feel) */
#about .about-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

/* Regular paragraphs */
#about p {
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Skills Divider */
#about .skills {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Skill Tags */
#about .skill {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s ease, transform 0.3s ease;
}

#about .skill:hover {
  color: #D3AF37;
  font-weight: bold;
  transform: translateY(-2px);
}

/* =====================
   Features
   ===================== */
#features {
  margin-top: 8rem; /* distance from About */
}

#features .container {
  max-width: 950px;
  margin: 0 auto;
}

.feature-cards {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-card {
  position: relative;
  /*background-color: var(--bg-light);*/
  width: 30%;
  min-width: 220px;
  padding: 28px 24px;
  border: 1px solid rgba(211, 175, 55, 0.10);
  border-radius: 6px;

  background: linear-gradient(
    180deg,
    rgba(0, 15, 5, 0.12) 0%,
    rgba(0, 15, 5, 0.08) 100%
  );

  transition: 
    transform 0.35s ease,
    border-color 0.35s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 150%;
  height: 150%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;

  background: radial-gradient(
    circle at center,
    rgba(211, 175, 55, 0.35) 0%,
    rgba(211, 175, 55, 0.25) 35%,
    rgba(211, 175, 55, 0.12) 55%,
    transparent 75%
  );

  filter: blur(40px);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card h3 {
  color: var(--secondary-color);
  margin: 16px 0 12px;
  position: relative;
  display: inline-block;
}

.feature-card h3::after {
  content: "";
  display: block;
  width: 40%;
  height: 2px;
  margin-top: 8px;
  background: var(--secondary-contrast);
  opacity: 0.6;
}

.feature-card p {
  opacity: 0.8;
  line-height: 1.6;
}

/* =====================
   Projects
   ===================== */
#projects {
  margin-top: 8rem; /* distance from About */
}

#projects .container {
  max-width: 950px;
  margin: 0 auto;
}

.project-cards {
  display: flex;
  flex-direction: column; /* vertical stacking */
  gap: 2rem; /* space between cards */
}

.project-card-wrapper {
  width: 100%;
}

.project-card {
  display: block;
  text-decoration: none;
  color: var(--secondary-color);
  background: linear-gradient(
    180deg,
    rgba(0, 17, 8, 0.38) 0%, 
    rgba(0, 15, 5, 0.30) 40%,
    rgba(0, 15, 5, 0.25) 100%
  );
  
  border-radius: 6px;
  border: 0.87px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: 1.7rem;

  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 15px rgba(211, 175, 55, 0.06); /* tiny gold hint */
  border-top: 2px solid rgba(211, 175, 55, 0.08); /* optional top accent */

  transition: background-color 0.3s ease,
              border-color 0.3s ease;
}

.project-card h3,
.project-card p,
.project-tech {
  transition: color 0.3s ease;
}

.project-card:hover {
   background: linear-gradient(
    180deg,
    rgba(0, 15, 5, 0.48) 0%,
    rgba(0, 15, 5, 0.38) 100%
  );
  /*border-color: rgba(255, 255, 255, 0.14);*/
  border-color: rgba(211, 175, 55, 0.25);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(211, 175, 55, 0.12); /* subtle gold glow on hover */
}

/* Sparkle effect on project card title */
.project-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
  color: var(--secondary-color);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.project-card:hover h3 {
  color: var(--secondary-contrast);
  text-shadow:
    0 0 6px rgba(255, 215, 120, 0.45),
    0 0 14px rgba(255, 215, 120, 0.25);
}

.project-card p,
.project-tech {
  color: rgba(228, 218, 178, 0.55); /* slightly richer text */
  margin: 0.5rem 0;
  line-height: 1.7;
  font-size: 1rem;
}

.project-card:hover p,
.project-card:hover .project-tech {
  color: rgba(228, 218, 178, 1); /* slightly richer on hover */
}

.project-screenshot {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
}

.project-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--secondary-contrast);
  text-decoration: none;
}

/* =====================
   Contact Section
   ===================== */
#contact .container {
  max-width: 900px;           /* like About/Features */
  margin: 0 auto;
  padding: 6rem 2rem;         /* similar vertical spacing */
  text-align: center;
}

#contact .section-header h2 {
  margin-bottom: 2rem;
  color: var(--secondary-color);
  font-size: 2.2rem;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(0, 15, 5, 0.45);  /* dark, semi-transparent to match theme */
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(211, 175, 55, 0.1); /* subtle gold accent */
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;  /* required for ::before positioning */
  overflow: hidden;    /* ensures glow doesn't spill outside border-radius */
}

/* Ambient Glow behind Contact Form */
.contact-form::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  background: radial-gradient(circle, rgba(211,175,55,0.15) 0%, transparent 70%);
  border-radius: 12px;
  z-index: -1;
  filter: blur(20px);
  animation: floatGlow 6s ease-in-out infinite;
}

/* subtle floating animation */
@keyframes floatGlow {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-5px) translateX(5px); }
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid rgba(211, 175, 55, 0.2); /* softer gold */
  font-size: 1rem;
  font-family: inherit;
  color: var(--secondary-color);           /* text color */
  background: rgba(255, 255, 255, 0.05);   /* subtle dark glass effect */
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: rgba(228, 218, 178, 0.5);   /* soft gold-ish placeholder */
  font-style: italic;
}

#contact input:hover,
#contact textarea:hover {
  border-color: var(--secondary-contrast);
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--secondary-contrast);
  box-shadow: 0 0 10px rgba(211, 175, 55, 0.35);
  transform: scale(1.02);
}

#contact button {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 6px;
  background-color: transparent;
  color: var(--secondary-contrast);
  border: 1px solid var(--secondary-contrast);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

#contact button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(211, 175, 55, 0.25), 0 4px 12px rgba(211, 175, 55, 0.15);
}

/* =====================
   Footer
   ===================== */
footer {
  padding: 1.5rem 0 2rem;
  color: var(--secondary-color);
  font-family: 'Cormorant Garamond',serif;
  font-weight: 400;
  letter-spacing: 0.6px;
  border-top: none;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  background-color: rgba(211,175,55,0.02); /* very soft gold tint */

  position: relative;
  overflow: hidden;
}

footer .container {
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--secondary-contrast);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
  color: #f5d76e; /* slightly lighter gold */
  text-shadow: 0 0 8px rgba(211,175,55,0.4);
}

footer p {
  margin: 0;
}

footer p:first-child {
  margin-bottom: 0.5rem;
}

/* =====================================
   RESPONSIVE STYLES
   ===================================== */

/* Desktop / Tablet */
@media (max-width: 1024px) {

  /* Header */
  .site-header nav {
    gap: 20px;
  }

  .site-title {
    font-size: 1.8rem;
  }

  /* Hero */
  #hero {
    min-height: 60vh; /* flexible, not fixed 100vh */
    padding-bottom: 3rem;
  }

  /* About Section */
  #about {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  /* Features & Projects */
  section {
    padding-block: 4rem;
  }

  #features, #projects {
    margin-top: 2rem;
  }
}

/* Medium Tablets / iPads */
@media (min-width: 768px) and (max-width: 1024px) {

  #hero {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center content */
    min-height: 80vh; /* taller for better balance */
    padding-block: 2rem; /* slightly smaller padding */
  }

  #about {
    margin-top: 1.5rem; /* closer to hero */
    margin-bottom: 2rem;
  }

  #features, #projects {
    margin-top: 3rem;
  }
}

/* Large Mobile */
@media (max-width: 900px) {

  .feature-card {
    width: 45%;
  }

  #hero {
    min-height: 55vh;
    padding-bottom: 2.5rem;
  }

  #about {
    margin-top: 1.8rem;
    margin-bottom: 1.5rem;
  }

  #features, #projects {
    margin-top: 3.5rem;
  }
}

/* Tablet / Mobile */
@media (max-width: 768px) {

  .site-header {
    padding: 16px;
  }

  .site-header .container {
    flex-direction: column;
    gap: 16px;
  }

  .site-header nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header nav a {
    font-size: 0.85rem;
  }

  .project-card {
    padding: 1rem;
  }

  section {
    padding-block: 3rem;
  }

  #features, #projects {
    margin-top: 3.5rem;
  }

  #about {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  #hero {
    min-height: 50vh;
    padding-bottom: 2.5rem;
  }
}

/* Small Mobile */
@media (max-width: 600px) {

  .feature-card {
    width: 100%;
  }

  section {
    padding-block: 2.5rem;
  }

  #features, #projects {
    margin-top: 3rem;
  }

  #hero {
    height: auto; /* content decides height */
    padding-bottom: 2rem;
  }

  #about {
    margin-top: 1.2rem;
    margin-bottom: 1rem;
  }
}

/* Very Small Mobile */
@media (max-width: 480px) {

  .project-cards {
    gap: 1.5rem;
  }

  .site-title span {
    font-size: 1.5rem;
  }

  section {
    padding-block: 2rem;
  }

  .feature-cards {
    gap: 12px;
    padding: 0 0.5rem;
  }

  #features, #projects {
    margin-top: 2.5rem;
  }

  #about {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  #hero {
    height: auto;
    padding-bottom: 1.8rem;
  }
}