/* ============================================================
   ADETOUN OLAYEMI — PORTFOLIO
   Color palette: #1b4948 | #2b7a78 | #f4faf9 | #ebf7f6
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --clr-dark:    #1b4948;
  --clr-mid:     #2b7a78;
  --clr-light:   #3da8a5;
  --clr-bg:      #f4faf9;
  --clr-alt:     #ebf7f6;
  --clr-white:   #ffffff;
  --clr-text:    #1b2d2d;
  --clr-muted:   #5a8a88;
  --clr-border:  rgba(27, 73, 72, 0.14);

  --font-main: 'Ubuntu', sans-serif;
  --font-mono: 'Ubuntu Mono', monospace;

  --shadow-sm:   0 2px 12px rgba(27, 73, 72, 0.08);
  --shadow-md:   0 8px 32px rgba(27, 73, 72, 0.12);
  --shadow-lg:   0 20px 60px rgba(27, 73, 72, 0.16);
  --shadow-card: 0 4px 24px rgba(27, 73, 72, 0.10);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-main);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---------- SCROLL-BASED ANIMATION ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-aos].aos-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- UTILITIES ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--clr-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-mid);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.2;
}
.section-sub {
  color: var(--clr-muted);
  font-size: 1.05rem;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--clr-mid);
  color: var(--clr-white);
  border: 2px solid var(--clr-mid);
}
.btn-primary:hover {
  background: var(--clr-dark);
  border-color: var(--clr-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 73, 72, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 6px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
.navbar.scrolled .nav-logo-img {
  filter: none;
}
.logo-dot { color: var(--clr-light); }

/* Desktop nav — horizontal inline */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--clr-white);
  background: rgba(255,255,255,0.1);
}
.navbar.scrolled .nav-link { color: var(--clr-muted); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--clr-dark);
  background: var(--clr-alt);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--clr-mid);
  color: var(--clr-white) !important;
  border: 2px solid var(--clr-mid);
  transition: var(--transition);
  margin-left: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover {
  background: var(--clr-dark);
  border-color: var(--clr-dark);
  transform: translateY(-1px);
}

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

/* Overlay hidden on desktop; close button hidden on desktop */
.nav-links { display: none; }
.nav-close  { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--clr-dark); }
[data-theme="dark"] .navbar.scrolled .hamburger span { background: var(--clr-text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(140deg, #0a1f1f 0%, #1b4948 45%, #2b7a78 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-container {
  flex: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--nav-h) 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
}

/* Hero content */
.hero-content { padding-bottom: 4rem; }

.hero-greeting {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  font-weight: 300;
}
.hero-greeting span { font-size: 1.2rem; }

.hero-name {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-role-wrap {
  display: flex;
  align-items: center;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  min-height: 2rem;
}
.role-prefix { font-weight: 300; }
.role-text {
  color: var(--clr-light);
  font-weight: 600;
  font-family: var(--font-mono);
}
.role-cursor {
  color: var(--clr-light);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.8;
}
.hero-tagline strong { color: rgba(255,255,255,0.85); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  gap: 12px;
}
.hero-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.hero-socials a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  color: var(--clr-white);
  transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 4rem;
}

.hero-photo-wrap {
  position: relative;
  width: 380px;
  height: 460px;
  flex-shrink: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg) var(--radius-xl) var(--radius-lg) var(--radius-xl);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}
.hero-photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--radius-lg) + 10px) calc(var(--radius-xl) + 10px) calc(var(--radius-lg) + 10px) calc(var(--radius-xl) + 10px);
  border: 2px solid rgba(61, 168, 165, 0.4);
  z-index: 1;
}

/* Floating badges */
.hero-badge {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--clr-white);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
}
.hero-badge i { color: var(--clr-light); font-size: 0.75rem; }
.b1 { top: 8%;  left: -10%;  animation: float 3.5s ease-in-out infinite; }
.b2 { top: 35%; right: -12%; animation: float 4s ease-in-out infinite 0.5s; }
.b3 { bottom: 30%; left: -14%; animation: float 3.8s ease-in-out infinite 1s; }
.b4 { bottom: 10%; right: -8%; animation: float 4.2s ease-in-out infinite 0.3s; }

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

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.5;
  transition: var(--transition);
}
.scroll-down:hover { opacity: 1; }
.scroll-down span {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--clr-white);
  border-radius: 50%;
  animation: scrollPulse 1.5s ease-in-out infinite;
}
.scroll-down span:nth-child(2) { animation-delay: 0.2s; }
.scroll-down span:nth-child(3) { animation-delay: 0.4s; }
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: center;
}

.about-photo-frame {
  position: relative;
}
.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.about-photo-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 70%;
  height: 70%;
  border: 3px solid var(--clr-mid);
  border-radius: var(--radius-lg);
  z-index: 1;
  opacity: 0.35;
}

.about-bio {
  color: var(--clr-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.85;
}
.about-bio strong { color: var(--clr-dark); font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0;
}
.stat-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-plus { font-size: 1.4rem; color: var(--clr-mid); }
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.about-details span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--clr-muted);
}
.about-details i { color: var(--clr-mid); width: 14px; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-cat {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.skill-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-mid);
}
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.skill-cat-header i {
  font-size: 1.1rem;
  color: var(--clr-mid);
  width: 20px;
}
.skill-cat-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags span {
  display: inline-block;
  padding: 5px 12px;
  background: var(--clr-alt);
  color: var(--clr-dark);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.skill-tags span:hover {
  background: var(--clr-mid);
  color: var(--clr-white);
  border-color: var(--clr-mid);
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-mid), transparent);
}

.tl-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 36px;
}
.tl-marker {
  position: absolute;
  left: 12px;
  top: 24px;
  width: 18px;
  height: 18px;
  background: var(--clr-mid);
  border-radius: 50%;
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 3px var(--clr-mid);
  z-index: 1;
}
.tl-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.tl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-border);
  transform: translateX(4px);
}

.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tl-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 4px;
}
.tl-company {
  font-size: 0.9rem;
  color: var(--clr-mid);
  font-weight: 500;
}
.tl-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--clr-muted);
  white-space: nowrap;
  padding: 4px 12px;
  background: var(--clr-alt);
  border-radius: 50px;
  flex-shrink: 0;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tl-tags span {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--clr-alt);
  color: var(--clr-mid);
  border-radius: 50px;
  font-weight: 500;
  border: 1px solid var(--clr-border);
}

.tl-list {
  padding-left: 1.2rem;
}
.tl-list li {
  list-style: disc;
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}
.tl-list li strong { color: var(--clr-dark); font-weight: 600; }

/* ============================================================
   PROJECTS
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid var(--clr-border);
  background: var(--clr-white);
  color: var(--clr-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--clr-mid);
  color: var(--clr-mid);
}
.filter-btn.active {
  background: var(--clr-mid);
  border-color: var(--clr-mid);
  color: var(--clr-white);
}

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

.proj-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.proj-card.hidden { display: none; }

.proj-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}
.proj-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: var(--transition);
}
.proj-card:hover .proj-screenshot { opacity: 0.85; }

.proj-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--clr-light);
  color: var(--clr-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.proj-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 73, 72, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}
.proj-card:hover .proj-overlay { opacity: 1; }

.proj-ext {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-size: 0.9rem;
  transition: var(--transition);
}
.proj-ext:hover {
  background: var(--clr-white);
  color: var(--clr-dark);
}

.proj-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proj-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 10px;
}
.proj-body p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.proj-tags span {
  font-size: 0.72rem;
  padding: 3px 9px;
  background: var(--clr-alt);
  color: var(--clr-mid);
  border-radius: 50px;
  font-weight: 500;
  border: 1px solid var(--clr-border);
}
.proj-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  margin-top: auto;
}
.proj-link:hover { color: var(--clr-dark); gap: 10px; }

/* featured card spans 2 cols */
.proj-card.featured {
  grid-column: span 2;
  flex-direction: row;
}
.proj-card.featured .proj-img {
  width: 42%;
  height: auto;
  flex-shrink: 0;
}
.proj-card.featured .proj-body {
  padding: 32px;
}
.proj-card.featured .proj-body h3 { font-size: 1.2rem; }
.proj-card.featured .proj-body p  { font-size: 0.925rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--clr-text);
}
.contact-card:hover {
  border-color: var(--clr-mid);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.contact-card.no-link:hover { transform: none; cursor: default; }
.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--clr-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-mid);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-card h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--clr-muted);
  margin-bottom: 2px;
}
.contact-card span { font-size: 0.9rem; color: var(--clr-dark); font-weight: 400; }

/* Form */
.contact-form {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-bg);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--clr-text);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-mid);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(43,122,120,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  margin-top: 12px;
  font-size: 0.875rem;
  text-align: center;
  color: var(--clr-mid);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-dark);
  padding: 56px 0 40px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-tagline {
  font-style: italic;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--clr-mid);
  border-color: var(--clr-mid);
  color: var(--clr-white);
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--clr-mid);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 500;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--clr-dark);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-content   { padding-bottom: 2rem; order: 1; }
  .hero-visual    { order: 2; padding-bottom: 5rem; }
  .hero-actions   { justify-content: center; }
  .hero-socials   { justify-content: center; }
  .hero-tagline   { margin-left: auto; margin-right: auto; }
  .hero-photo-wrap { width: 300px; height: 360px; }
  .b1 { top: 5%;  left: 2%;  }
  .b2 { top: 30%; right: 2%; }
  .b3 { bottom: 28%; left: 2%; }
  .b4 { bottom: 8%;  right: 2%; }

  .about-grid      { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-col { max-width: 380px; margin: 0 auto; }
  .about-stats     { grid-template-columns: repeat(2, 1fr); }

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

  .projects-grid   { grid-template-columns: repeat(2, 1fr); }
  .proj-card.featured { grid-column: span 2; }

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

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .section { padding: 72px 0; }

  /* Nav — fullscreen overlay */
  .hamburger    { display: flex; }
  .nav-desktop  { display: none; }
  .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 24, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .nav-links.open li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
  .nav-links.open li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s;  }
  .nav-links.open li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
  .nav-links.open li:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.2s;  }
  .nav-links.open li:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
  .nav-links.open li:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.3s;  }
  .nav-links.open li:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
  .nav-right { position: relative; z-index: 1002; }
  .nav-close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .nav-link {
    font-size: 1.75rem;
    font-weight: 700;
    padding: 12px 32px;
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 8px;
    border-bottom: none;
    text-align: center;
    letter-spacing: -0.5px;
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--clr-light) !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }
  .nav-cta {
    margin: 20px auto 0;
    text-align: center;
    color: var(--clr-white) !important;
    padding: 14px 40px;
    font-size: 1rem;
  }

  /* Hero */
  .hero-container { padding-top: calc(var(--nav-h) + 24px); min-height: auto; padding-bottom: 64px; }
  .hero-photo-wrap { width: 260px; height: 310px; }
  .b1, .b2, .b3, .b4 { font-size: 0.72rem; padding: 6px 12px; }
  .b1 { top: 2%;  left: 0; }
  .b2 { top: 28%; right: 0; }
  .b3 { display: none; }
  .b4 { bottom: 5%; right: 0; }

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

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .proj-card.featured { grid-column: span 1; flex-direction: column; }
  .proj-card.featured .proj-img { width: 100%; height: 190px; }

  /* Experience */
  .timeline::before { left: 14px; }
  .tl-item  { padding-left: 44px; }
  .tl-marker { left: 6px; }
  .tl-top   { flex-direction: column; align-items: flex-start; }
  .tl-card  { padding: 20px; }

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

  /* Contact */
  .contact-info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .about-stats    { grid-template-columns: repeat(2, 1fr); }
  .hero-actions   { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .open-to-work   { font-size: 0.72rem; padding: 5px 12px; }
  .hero-name      { font-size: 3rem; }
  .hero-role-wrap { font-size: 0.95rem; }
  .tl-card        { padding: 16px; }
  .nav-container  { padding: 0 1.25rem; }
}

/* ============================================================
   DARK MODE TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.12);
  color: var(--clr-white);
}
.navbar.scrolled .theme-toggle {
  border-color: var(--clr-border);
  color: var(--clr-muted);
}
.navbar.scrolled .theme-toggle:hover {
  background: var(--clr-alt);
  color: var(--clr-dark);
}

/* ============================================================
   OPEN TO WORK BADGE
   ============================================================ */
.open-to-work {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.3px;
}
.otw-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ============================================================
   CURRENTLY SECTION
   ============================================================ */
.currently-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.currently-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  text-align: center;
}
.currently-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-mid);
}
.currently-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}
.currently-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.currently-card p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.7;
}
.currently-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.currently-list li {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.currently-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-mid);
  font-size: 0.8rem;
}
.currently-list li strong {
  color: var(--clr-dark);
  font-weight: 600;
}
.currently-note {
  font-size: 0.75rem !important;
  color: var(--clr-light) !important;
  font-weight: 500;
  border-top: 1px solid var(--clr-border);
  padding-top: 12px;
  margin-top: 4px;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testi-quote-mark {
  font-size: 5rem;
  line-height: 0.6;
  color: var(--clr-mid);
  opacity: 0.25;
  font-family: Georgia, serif;
  margin-bottom: 20px;
  display: block;
}
.testi-text {
  font-size: 0.925rem;
  color: var(--clr-muted);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
  margin-bottom: 24px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
}
.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--clr-alt);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  font-size: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-author h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 2px;
}
.testi-author span {
  font-size: 0.78rem;
  color: var(--clr-muted);
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --clr-bg:     #0c1a1a;
  --clr-alt:    #0f2222;
  --clr-white:  #152b2b;
  --clr-text:   #d4eded;
  --clr-muted:  #7ab8b5;
  --clr-border: rgba(61, 168, 165, 0.14);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(12, 26, 26, 0.95);
}
[data-theme="dark"] .stat-card,
[data-theme="dark"] .skill-cat,
[data-theme="dark"] .tl-card,
[data-theme="dark"] .proj-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .currently-card,
[data-theme="dark"] .testi-card {
  background: #152b2b;
}
[data-theme="dark"] .skill-tags span,
[data-theme="dark"] .tl-tags span,
[data-theme="dark"] .proj-tags span,
[data-theme="dark"] .tl-date,
[data-theme="dark"] .filter-btn {
  background: #0f2222;
  color: var(--clr-light);
}
[data-theme="dark"] .filter-btn.active {
  background: var(--clr-mid);
  color: var(--clr-white);
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: #0c1a1a;
  color: var(--clr-text);
  border-color: var(--clr-border);
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: rgba(122, 184, 181, 0.45);
}
[data-theme="dark"] .footer {
  background: #071010;
}
[data-theme="dark"] .back-to-top {
  background: var(--clr-mid);
}

/* ============================================================
   RESPONSIVE — CURRENTLY + TESTIMONIALS
   ============================================================ */
@media (max-width: 1024px) {
  .currently-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .currently-grid { grid-template-columns: 1fr; }
  .testi-grid     { grid-template-columns: 1fr; }
}

