/* ═══════════════════════════════════════════════════════════
   PIXELS EXPRESS — Main Stylesheet
   Typography: Inter (body) + Outfit (headings)
   Palette: Cool Slate-Blue
   Version: 2.0
   ═══════════════════════════════════════════════════════════ */

/* ───── Design Tokens ───── */
:root {
  /* Colors */
  --bg:           #F8FAFC;
  --bg-alt:       #F1F5F9;
  --bg-dark:      #0F172A;
  --text:         #0F172A;
  --text-muted:   #64748B;
  --text-light:   #94A3B8;
  --accent:       #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: rgba(37, 99, 235, 0.07);
  --accent-glow:  rgba(37, 99, 235, 0.15);
  --border:       #E2E8F0;
  --border-hover: #CBD5E1;
  --white:        #FFFFFF;
  --teal:         #0D9488;
  --indigo:       #6366F1;

  /* Radii */
  --radius:    12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 32px 80px rgba(15, 23, 42, 0.10);

  /* Transitions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ───── Reset & Base ───── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}


/* ───── Layout ───── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════ */

.topbar {
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 13px;
  padding: 10px 0;
  letter-spacing: 0.02em;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.topbar a:hover {
  color: #fff;
}

.topbar-links {
  display: flex;
  gap: 24px;
}


/* ═══════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.06);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo .mark svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}
.logo span {
  color: var(--accent);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--accent-light);
}
.nav-links a.active {
  color: var(--accent);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 50;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* CTA button in nav */
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.03em;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  margin-left: 8px;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.hamburger:hover {
  background: var(--accent-light);
}
.hamburger svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}


/* ═══════════════════════════════════════════
   PAGE HERO BANNER
   ═══════════════════════════════════════════ */

.page-hero {
  background: var(--bg-dark);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(99, 102, 241, 0.1), transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  position: relative;
  margin-bottom: 8px;
}
.page-hero .subtitle {
  color: var(--text-light);
  font-size: 17px;
  position: relative;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 20px;
  position: relative;
}
.breadcrumb a {
  color: var(--accent);
  transition: opacity 0.2s;
}
.breadcrumb a:hover {
  opacity: 0.8;
}
.breadcrumb svg {
  width: 12px;
  height: 12px;
  stroke: var(--text-light);
  fill: none;
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
}
.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--text);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


/* ═══════════════════════════════════════════
   SECTION HELPERS
   ═══════════════════════════════════════════ */

.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(30px, 3.5vw, 44px);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
}

.section-header {
  margin-bottom: 60px;
}
.section-header.center {
  text-align: center;
}
.section-header.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.section-header.center .section-label {
  justify-content: center;
}
.section-header.center .section-label::before {
  display: none;
}


/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.card:hover::after {
  transform: scaleX(1);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.3s;
}
.card:hover .card-icon {
  background: var(--accent-glow);
}
.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   PORTFOLIO GRID
   ═══════════════════════════════════════════ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(99, 102, 241, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-overlay span {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.portfolio-info {
  padding: 20px 24px;
}
.portfolio-info h4 {
  font-size: 16px;
  margin-bottom: 2px;
}
.portfolio-info p {
  font-size: 13px;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════
   SKILL / PROGRESS BARS
   ═══════════════════════════════════════════ */

.skill-bar {
  margin-bottom: 20px;
}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}
.skill-bar-track {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  transition: width 1.2s var(--ease-out);
  width: 0;
}


/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */

.cta-section {
  padding: 100px 0;
  background: var(--bg-dark);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 36px;
  position: relative;
}


/* ═══════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════ */

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}


/* ═══════════════════════════════════════════
   CONTACT INFO CARDS
   ═══════════════════════════════════════════ */

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.contact-card h4 {
  font-size: 15px;
  margin-bottom: 2px;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-muted);
}
.contact-card a {
  color: var(--accent);
  transition: opacity 0.2s;
}
.contact-card a:hover {
  opacity: 0.8;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.site-footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 20px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}


/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .topbar-links {
    gap: 16px;
  }

  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
  }
  .nav-links.open .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
  .hamburger {
    display: block;
  }

  .section {
    padding: 72px 0;
  }
  .page-hero {
    padding: 60px 0 48px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
