/*
Theme Name: Haseeb Portfolio
Theme URI: https://haseebahmed.com
Author: Haseeb Ahmed
Description: Portfolio theme for Haseeb Ahmed - UX/UI Designer & WordPress Developer
Version: 1.0.3
License: GNU General Public License v2 or later
Text Domain: haseeb-portfolio
*/

/* ============================================================
   CSS VARIABLES — exact match to original index.css
   Light mode = warm beige/cream, Dark = warm dark brown
   Primary = teal hsl(174 60% 38%), Accent = steel blue hsl(210 30% 55%)
   ============================================================ */
:root {
  --background:        hsl(40, 20%, 95%);
  --foreground:        hsl(20, 10%, 12%);
  --card:              hsl(38, 18%, 91%);
  --card-foreground:   hsl(20, 10%, 12%);
  --primary:           hsl(174, 60%, 38%);
  --primary-foreground:hsl(0, 0%, 100%);
  --secondary:         hsl(35, 15%, 86%);
  --secondary-foreground: hsl(20, 10%, 15%);
  --muted:             hsl(36, 12%, 89%);
  --muted-foreground:  hsl(20, 8%, 42%);
  --accent:            hsl(210, 30%, 55%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border:            hsl(35, 14%, 82%);
  --radius:            0.75rem;
}

/* Dark mode — class toggled by JS */
.dark {
  --background:        hsl(20, 12%, 7%);
  --foreground:        hsl(38, 18%, 90%);
  --card:              hsl(20, 10%, 11%);
  --card-foreground:   hsl(38, 18%, 90%);
  --primary:           hsl(174, 60%, 42%);
  --primary-foreground:hsl(0, 0%, 100%);
  --secondary:         hsl(20, 8%, 15%);
  --secondary-foreground: hsl(38, 18%, 90%);
  --muted:             hsl(20, 8%, 15%);
  --muted-foreground:  hsl(30, 10%, 50%);
  --accent:            hsl(210, 30%, 50%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border:            hsl(20, 8%, 18%);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; width: 100%; }

.text-gradient {
  background-image: linear-gradient(135deg, hsl(174, 60%, 38%), hsl(210, 30%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark .text-gradient {
  background-image: linear-gradient(135deg, hsl(174, 60%, 42%), hsl(210, 30%, 50%));
}

/* ============================================================
   HEADER / NAV — exact match original
   ============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(20px);
  background-color: color-mix(in srgb, var(--background) 80%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s;
}
.header-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
}
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--muted-foreground); transition: color 0.2s, background 0.2s;
}
.nav-list a:hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 6%, transparent); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 8px 20px; border-radius: 9999px; font-size: 14px; font-weight: 600;
  background: var(--primary); color: var(--primary-foreground);
  margin-left: 8px; transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground); transition: color 0.2s, background 0.2s; margin-left: 8px;
}
.theme-toggle:hover { color: var(--foreground); background: color-mix(in srgb, var(--foreground) 6%, transparent); }
.mobile-menu-btn {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  align-items: center; justify-content: center; color: var(--foreground);
}
.mobile-nav {
  display: none; background: var(--background);
  border-top: 1px solid var(--border); padding: 8px 24px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0; font-size: 14px; font-weight: 500;
  color: var(--muted-foreground); border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }

/* ============================================================
   HERO SECTION — original layout, updated card positions
   ============================================================ */
/* ============================================================
   HERO — full-bleed photo background with gradient overlay
   Same for both light & dark mode
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;       /* text sits toward bottom like reference */
  overflow: hidden;
}

/* Full-bleed photo */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Gradient overlay — dark teal from left fading right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(8, 28, 24, 0.95) 0%,
    rgba(8, 28, 24, 0.85) 28%,
    rgba(8, 28, 24, 0.60) 52%,
    rgba(8, 28, 24, 0.18) 72%,
    transparent 100%
  );
}

/* Content — bottom-left, above overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 120px 48px 100px; /* top padding keeps it below navbar */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* "Hello, I'm" */
.hero-hello {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: block;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
  display: block;
}

.hero-role {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0 0 40px 0;
  line-height: 1.4;
  display: block;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: hsl(174, 60%, 38%);
  color: #ffffff;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary-hero:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Kill any leftover old hero elements */
.bg-grid, .hero-inner-wrap, .hero-grid, .hero-visual,
.hero-photo-group, .hero-photo, .hero-ground,
.hero-ground-line, .hero-ground-glow,
.hero-glow-1, .hero-glow-2,
.hero-label-row, .hero-label-line, .hero-label-text,
.hero-heading, .hero-sub,
.card-uxui, .card-wp, .card-brand { display: none !important; }

/* ============================================================
   ABOUT SECTION — exact original: text left, 3 service cards
   ============================================================ */
#about { padding: 112px 0; }
.about-heading-block { max-width: 672px; margin-bottom: 64px; }
.section-label-text { font-size: 13px; font-weight: 500; color: var(--primary); text-transform: uppercase; letter-spacing: 0.12em; }
.about-h2 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 24px;
}
.about-p { font-size: 18px; color: var(--muted-foreground); line-height: 1.7; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover { border-color: color-mix(in srgb, var(--primary) 30%, transparent); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.service-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: background 0.3s;
}
.service-card:hover .service-icon-wrap { background: color-mix(in srgb, var(--primary) 20%, transparent); }
.service-icon-wrap svg { color: var(--primary); }
.service-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.service-desc { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; }

/* ============================================================
   WORK SECTION — exact original colors/layout
   ============================================================ */
#work { padding: 112px 0; background: color-mix(in srgb, var(--secondary) 30%, transparent); }
.work-h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 48px; }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; border-radius: 9999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground);
  transition: all 0.3s;
}
.filter-btn:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--foreground); }
.filter-btn.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: block;
}
.project-card:hover { border-color: color-mix(in srgb, var(--primary) 30%, transparent); box-shadow: 0 8px 40px rgba(0,0,0,0.1); transform: translateY(-2px); }
.project-thumb {
  height: 192px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-thumb-inner {
  width: 75%; height: 112px; background: color-mix(in srgb, var(--background) 60%, transparent);
  backdrop-filter: blur(4px); border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 24px; }
.project-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.project-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.project-title { font-size: 20px; font-weight: 600; }
.project-ext { color: var(--muted-foreground); opacity: 0; transition: opacity 0.2s; }
.project-card:hover .project-ext { opacity: 1; }
.project-desc { font-size: 14px; color: var(--muted-foreground); line-height: 1.65; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag {
  padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 400;
  background: color-mix(in srgb, var(--secondary) 100%, transparent);
  color: var(--secondary-foreground); border: 1px solid var(--border);
}

/* ============================================================
   TESTIMONIALS — exact original: 2-col grid
   ============================================================ */
#testimonials { padding: 112px 0; }
.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.test-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.test-card:hover { border-color: color-mix(in srgb, var(--primary) 30%, transparent); box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.test-quote-icon { position: absolute; top: 24px; right: 24px; color: color-mix(in srgb, var(--primary) 15%, transparent); }
.test-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.test-star { color: var(--primary); font-size: 14px; }
.test-text { font-size: 14px; color: color-mix(in srgb, var(--foreground) 85%, transparent); line-height: 1.7; margin-bottom: 24px; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 600; font-size: 14px;
}
.test-name { font-size: 14px; font-weight: 600; }
.test-role { font-size: 12px; color: var(--muted-foreground); }

/* ============================================================
   CALENDLY / BOOK SECTION — original with bg-secondary/30
   ============================================================ */
#book { padding: 112px 0; background: color-mix(in srgb, var(--secondary) 30%, transparent); }
.book-header { text-align: center; margin-bottom: 48px; }
.book-h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 16px; }
.book-sub { font-size: 18px; color: var(--muted-foreground); max-width: 576px; margin: 0 auto; line-height: 1.7; }
.book-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.book-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.book-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.book-card-icon svg { color: var(--primary); }
.book-card-title { font-weight: 600; margin-bottom: 4px; }
.book-card-sub { font-size: 14px; color: var(--muted-foreground); }
.calendly-wrap { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--card); }
.calendly-wrap iframe { width: 100%; height: 660px; display: block; border: none; }

/* ============================================================
   SKILLS SECTION — 3-column tag layout (original), no bars
   ============================================================ */
#skills { padding: 112px 0; }
.skills-h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 64px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.skill-col-title {
  font-size: 17px; font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.skill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.skill-dot.accent { background: var(--accent); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-tag {
  padding: 10px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; font-size: 14px; font-weight: 500;
  transition: border-color 0.2s; cursor: default;
}
.skill-tags.design .skill-tag:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.skill-tags.tools .skill-tag:hover  { border-color: color-mix(in srgb, var(--accent)  40%, transparent); }
.skill-tags.creative .skill-tag:hover{ border-color: color-mix(in srgb, var(--primary) 40%, transparent); }

/* ============================================================
   CONTACT SECTION — original 2-col layout
   ============================================================ */
#contact { padding: 112px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 24px; }
.contact-sub { font-size: 17px; color: var(--muted-foreground); line-height: 1.7; margin-bottom: 40px; max-width: 420px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; align-items: center; gap: 16px; }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); transition: background 0.2s;
}
.contact-info-item:hover .contact-info-icon { background: color-mix(in srgb, var(--primary) 20%, transparent); }
.contact-info-item span { font-size: 14px; color: var(--muted-foreground); transition: color 0.2s; }
.contact-info-item:hover span { color: var(--foreground); }
.contact-social { display: flex; gap: 12px; margin-top: 40px; }
.contact-social-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; font-size: 13px; font-weight: 500; color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.contact-social-btn:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: 0 2px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.contact-form-wrap {
  background: color-mix(in srgb, var(--card) 50%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--border);
  border-radius: 28px; padding: 40px;
}
.form-group { margin-bottom: 28px; }
.form-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--muted-foreground); margin-bottom: 10px; }
.form-input, .form-textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 2px solid var(--border);
  padding: 12px 0; color: var(--foreground); font-size: 15px; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.3s;
}
.form-input:focus, .form-textarea:focus { border-bottom-color: var(--primary); }
.form-input::placeholder, .form-textarea::placeholder { color: color-mix(in srgb, var(--muted-foreground) 50%, transparent); }
.form-textarea { resize: none; min-height: 100px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--primary); color: var(--primary-foreground);
  border-radius: 12px; font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.2s, transform 0.2s;
}
.form-submit:hover { opacity: 0.9; transform: scale(1.01); }

/* ============================================================
   FOOTER — centered, one line only
   ============================================================ */
#colophon { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: center; }
.footer-copy { font-size: 14px; color: var(--muted-foreground); text-align: center; }
.footer-copy strong { color: var(--foreground); }

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.wa-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  animation: waPop 0.4s 1.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.wa-btn:hover { background: #20c05a; transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.45); }
@keyframes waPop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }

/* ============================================================
   FADE-UP ANIMATION
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .book-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-list, .theme-toggle, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
