/* ================================================================
   TOIBUR.COM — MAIN STYLESHEET
   Author: Toibur Rahman
   Last Updated: 2025

   TABLE OF CONTENTS:
   1.  CSS Custom Properties (Variables)
   2.  Reset & Base
   3.  Noise Overlay
   4.  Navigation
   5.  Mobile Menu
   6.  Hero Section
   7.  About Section
   8.  Journey / Timeline
   9.  Interests Section
   10. Updates Section
   11. Contact Section
   12. Footer
   13. Back to Top
   14. Utility Classes
   16. Reveal Animations
   17. Dark / Light Theme
   18. Responsive / Media Queries
================================================================ */

/* ================================================================
   1. CSS CUSTOM PROPERTIES
   — To change the color scheme, edit the values below.
   — Accent color is the gold/amber (#c9a96e). Change to suit your brand.
================================================================ */
:root {
  /* Colors — Dark Theme (default) */
  --bg:           #0c0c0c;
  --bg-elevated:  #141414;
  --bg-card:      #181818;
  --border:       rgba(255, 255, 255, 0.07);
  --text-primary: #f0ece4;
  --text-secondary: #8a8278;
  --text-muted:   #4a4640;
  --accent:       #c9a96e;       /* ← MAIN ACCENT COLOR — change this */
  --accent-light: rgba(201, 169, 110, 0.12);
  --accent-glow:  rgba(201, 169, 110, 0.25);

  /* Timeline markers */
  --marker-announcement: #c9a96e;
  --marker-milestone:    #6eb5c9;
  --marker-launch:       #6ec98c;
  --marker-media:        #c96eb5;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Syne', sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-max:   1180px;
  --gutter:          24px;

  /* Misc */
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    all 0.3s ease;
  --shadow:        0 4px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 12px 60px rgba(0, 0, 0, 0.6);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg:            #f8f5f0;
  --bg-elevated:   #ffffff;
  --bg-card:       #ffffff;
  --border:        rgba(0, 0, 0, 0.08);
  --text-primary:  #1a1714;
  --text-secondary:#5a534c;
  --text-muted:    #a09890;
  --accent-light:  rgba(160, 110, 40, 0.08);
  --accent-glow:   rgba(160, 110, 40, 0.15);
  --shadow:        0 4px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg:     0 12px 60px rgba(0, 0, 0, 0.15);
}

/* ================================================================
   2. RESET & BASE
================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { opacity: 0.8; }

ul { list-style: none; }

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

strong { font-weight: 700; color: var(--text-primary); }
em { font-style: italic; color: var(--accent); }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Sections */
.section {
  padding: var(--section-padding) 0;
}

/* Section Header */
.section-header {
  margin-bottom: 64px;
  max-width: 680px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

/* ================================================================
   3. NOISE OVERLAY
   — Adds a subtle film grain texture to the background.
   — Remove the <div class="noise-overlay"> in HTML to disable.
================================================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ================================================================
   4. NAVIGATION
================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 245, 240, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #0c0c0c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 400;
  flex-shrink: 0;
}

.logo-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-light);
  opacity: 1;
}

/* Contact CTA in nav */
.nav-cta {
  background: var(--accent);
  color: #0c0c0c !important;
  font-weight: 700;
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--text-primary);
  color: var(--bg) !important;
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================================================
   5. MOBILE MENU
================================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 0 24px;
}

.mobile-link {
  display: block;
  text-align: center;
  padding: 14px 24px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius);
  transition: var(--transition);
  width: 100%;
}

.mobile-link:hover {
  background: var(--accent-light);
  color: var(--accent);
  opacity: 1;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================================================
   6. HERO SECTION
================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Background grid lines — decorative */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

/* Eyebrow text */
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Main name */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 1.0;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-name em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

/* Tagline */
.hero-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

/* Bio */
.hero-bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 40px;
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Social icons (hero) */
.hero-socials {
  display: flex;
  gap: 12px;
}

.hero-socials a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
  opacity: 1;
}

/* Profile Image */
.hero-image {
  display: flex;
  justify-content: center;
}

.image-frame {
  position: relative;
  width: 320px;
  flex-shrink: 0;
}

.profile-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}

.profile-img:hover { filter: grayscale(0%); }

/* Decorative ring */
.image-ring {
  position: absolute;
  inset: -12px;
  border: 1px solid var(--accent);
  border-radius: calc(var(--radius-lg) + 12px);
  opacity: 0.3;
  z-index: 1;
}

/* Glow effect */
.image-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(20px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

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

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}

/* ================================================================
   7. BUTTONS (Global)
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0c0c0c;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg);
  opacity: 1;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  opacity: 1;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  opacity: 1;
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   8. ABOUT SECTION
================================================================ */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-text p:last-child { margin-bottom: 0; }

/* Stat Cards */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: sticky;
  top: 120px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ================================================================
   9. JOURNEY / TIMELINE
================================================================ */
.journey {
  background: var(--bg-elevated);
  position: relative;
}

.timeline {
  position: relative;
  padding-left: 0;
  max-width: 820px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 24px;
  position: relative;
  margin-bottom: 0;
}

/* Vertical line */
.timeline-connector {
  position: relative;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-connector::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% + 0px);
  background: var(--border);
}

.timeline-connector.last::after {
  display: none;
}

/* Dot */
.timeline-dot {
  grid-column: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  margin-top: 6px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
  flex-shrink: 0;
}

/* For items using flat layout */
.timeline-item {
  display: flex;
  gap: 28px;
  padding-bottom: 52px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

/* Vertical line between items */
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 18px;
  width: 2px;
  height: calc(100% - 18px);
  background: var(--border);
}

.timeline-dot {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  margin-top: 4px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.timeline-dot.highlight {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-dot.active {
  border-color: #6ec98c;
  background: #6ec98c;
  box-shadow: 0 0 12px rgba(110, 201, 140, 0.4);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110, 201, 140, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(110, 201, 140, 0); }
}

.timeline-content {
  flex: 1;
  padding-bottom: 8px;
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 10px;
}

.timeline-badge {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ================================================================
   10. INTERESTS SECTION
================================================================ */
.interests {
  background: var(--bg);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.interest-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.interest-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.interest-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.interest-card:hover .interest-icon {
  background: var(--accent);
  color: #0c0c0c;
}

.interest-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.interest-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   12. UPDATES SECTION
================================================================ */
.updates {
  background: var(--bg);
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
}

.update-item {
  display: flex;
  gap: 28px;
  padding-bottom: 48px;
  position: relative;
}

.update-item:last-child { padding-bottom: 0; }

.update-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 20px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--border);
}

.update-marker {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

/* Marker color variants */
.update-marker.announcement { background: var(--marker-announcement); box-shadow: 0 0 8px rgba(201,169,110,0.5); }
.update-marker.milestone    { background: var(--marker-milestone); box-shadow: 0 0 8px rgba(110,181,201,0.5); }
.update-marker.launch       { background: var(--marker-launch); box-shadow: 0 0 8px rgba(110,201,140,0.5); }
.update-marker.media        { background: var(--marker-media); box-shadow: 0 0 8px rgba(201,110,181,0.5); }

.update-body {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.update-body:hover {
  border-color: var(--accent);
}

.update-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.update-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.update-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.update-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.update-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.update-text:last-child { margin-bottom: 0; }

.update-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  transition: var(--transition);
}

/* ================================================================
   13. CONTACT SECTION
================================================================ */
.contact {
  background: var(--bg-elevated);
}

.contact-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-info-item i {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-info-item a {
  color: var(--text-secondary);
}

.contact-info-item a:hover {
  color: var(--accent);
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(110, 201, 140, 0.08);
  border: 1px solid rgba(110, 201, 140, 0.2);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ec98c;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.required { color: var(--accent); }

.form-group input,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text-primary);
  transition: var(--transition);
  resize: none;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg-card);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e05555;
}

.field-error {
  font-size: 0.78rem;
  color: #e05555;
  min-height: 16px;
  font-weight: 500;
}

.form-success,
.form-error-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
}

.form-success {
  background: rgba(110, 201, 140, 0.1);
  border: 1px solid rgba(110, 201, 140, 0.3);
  color: #6ec98c;
}

.form-error-msg {
  background: rgba(224, 85, 85, 0.1);
  border: 1px solid rgba(224, 85, 85, 0.3);
  color: #e05555;
}

/* ================================================================
   14. FOOTER
================================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 8px;
}

.footer-birthday {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-email:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-credits {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================================================================
   15. BACK TO TOP
================================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: #0c0c0c;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--accent-glow);
}

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

.back-to-top:hover {
  background: var(--text-primary);
  transform: translateY(-3px);
}

/* ================================================================
   16. REVEAL ANIMATIONS
   — Elements with class "reveal" start hidden and animate in
   — when scrolled into view (handled in script.js)
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Staggered delays for grid children */
.interests-grid .interest-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.interests-grid .interest-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.interests-grid .interest-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.interests-grid .interest-card.reveal:nth-child(4) { transition-delay: 0.2s; }
.interests-grid .interest-card.reveal:nth-child(5) { transition-delay: 0.25s; }

.about-stats .stat-card:nth-child(1) { transition-delay: 0.05s; }
.about-stats .stat-card:nth-child(2) { transition-delay: 0.1s; }
.about-stats .stat-card:nth-child(3) { transition-delay: 0.15s; }
.about-stats .stat-card:nth-child(4) { transition-delay: 0.2s; }

/* ================================================================
   18. RESPONSIVE / MEDIA QUERIES
================================================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  :root { --section-padding: 90px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-bio     { margin: 0 auto 40px; }
  .hero-image   { justify-content: center; order: -1; }
  .image-frame  { width: 260px; }
  .profile-img  { height: 320px; }

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

  .about-stats {
    position: static;
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .contact-info {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  :root { --section-padding: 70px; }

  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  .hero { padding: 100px 0 60px; }

  .hero-name { font-size: clamp(2.8rem, 10vw, 4rem); }

  .section-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }

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

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

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 24px; }

  .contact-info { flex-direction: column; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn { width: 100%; justify-content: center; }

  .timeline-item { gap: 16px; }

  .update-body { padding: 20px; }
}
