/* ============================================
   MERT MALÇOK - Portfolio CSS
   Font: Syne (display) + DM Sans (body)
   Palette: Deep Crimson + Scarlet + Off-white
   Aesthetic: Dark editorial with bold red accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --red-900:   #1a0000;
  --red-800:   #3d0000;
  --red-700:   #5c0000;
  --red-600:   #8b0000;
  --red-500:   #c0392b;
  --red-400:   #e74c3c;
  --red-300:   #f1948a;
  --red-200:   #fadbd8;
  --red-accent:#ff2d2d;
  --bg:        #0d0d0d;
  --bg2:       #141414;
  --bg3:       #1c1c1c;
  --surface:   #222222;
  --border:    rgba(255,255,255,0.07);
  --text:      #f0ece4;
  --text-muted:#8a8680;
  --text-dim:  #5a5652;
  --white:     #ffffff;
  --shadow:    0 8px 40px rgba(0,0,0,0.6);
  --glow:      0 0 40px rgba(192,57,43,0.25);
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-500); border-radius: 4px; }

/* ---- SELECTION ---- */
::selection { background: var(--red-500); color: #fff; }

/* ---- HEADER ---- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 72px;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

header.scrolled {
  height: 60px;
  background: rgba(13,13,13,0.97);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
  position: relative;
}

.logo span { color: var(--red-400); }

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red-400);
  transition: width var(--transition);
}
.logo:hover::after { width: 100%; }

nav { display: flex; align-items: center; gap: 2.5rem; }

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red-400);
  transition: width var(--transition);
}

nav a:hover, nav a.active { color: var(--text); }
nav a:hover::after, nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Cart button - only shows on services */
.cart-btn {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}

.cart-btn:hover {
  background: var(--red-600);
  border-color: var(--red-500);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--red-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: pop 0.3s ease;
  display: none;
}

.cart-count.visible { display: flex; }

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none; border: none;
}

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

.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); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--red-400); }

/* ---- SECTIONS ---- */
section {
  min-height: 100vh;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 8vw, 8rem);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-400);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--red-600);
}

/* ---- HERO ---- */
#home {
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(139,0,0,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(192,57,43,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(192,57,43,0.12);
  border: 1px solid rgba(192,57,43,0.3);
  color: var(--red-300);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  animation: fadeDown 0.8s ease both;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-400);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

h1.hero-title .red { color: var(--red-400); }
h1.hero-title .outline {
  -webkit-text-stroke: 2px var(--text-dim);
  color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s 0.35s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.5s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 1s 1s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red-500), transparent);
  animation: scrollLine 1.5s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--red-500);
  color: #fff;
  box-shadow: 0 4px 24px rgba(192,57,43,0.4);
}

.btn-primary:hover {
  background: var(--red-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(192,57,43,0.5);
}

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

.btn-outline:hover {
  border-color: var(--red-500);
  color: var(--red-300);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--red-700);
  border-color: var(--red-500);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- ABOUT ---- */
#about {
  background: var(--bg2);
  display: flex;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-photo {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 420px;
}

.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.5s ease;
}

.about-photo:hover img { filter: grayscale(0%) contrast(1.1); }

.about-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,0.2) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.about-photo-border {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--red-500), transparent 50%);
  z-index: -1;
}

.photo-placeholder {
  width: 100%; height: 100%;
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.photo-placeholder .icon { font-size: 3rem; opacity: 0.3; }

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.skill-tag {
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.2);
  color: var(--red-300);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(192,57,43,0.25);
  transform: translateY(-1px);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.stat:hover {
  border-color: var(--red-600);
  transform: translateY(-2px);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red-400);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

/* ---- SERVICES ---- */
#services {
  background: var(--bg);
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.services-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1rem;
}

.services-header p { color: var(--text-muted); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--red-600);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.product-image {
  height: 180px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg2));
}

.product-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--red-600);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  z-index: 1;
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red-400);
}

.product-price span {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
  font-family: var(--font-body);
}

.add-to-cart {
  background: var(--red-500);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.add-to-cart:hover {
  background: var(--red-400);
  transform: scale(1.03);
}

.add-to-cart.added {
  background: #1a7a4a;
  pointer-events: none;
}

/* ---- PROJECTS ---- */
#projects {
  background: var(--bg2);
}

.projects-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.projects-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
}

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--red-600);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.project-thumb {
  height: 220px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-link {
  background: var(--red-500);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

.project-link:hover { background: var(--red-400); transform: scale(1.1); }

.project-body { padding: 1.5rem; flex: 1; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-300);
  background: rgba(192,57,43,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- CONTACT ---- */
#contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.contact-link:hover {
  border-color: var(--red-500);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 40px; height: 40px;
  background: rgba(192,57,43,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-link-text { font-size: 0.9rem; }
.contact-link-label { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.1rem; }

/* Contact Form */
.contact-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

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

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--red-500);
  background: var(--bg2);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

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

.form-message {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  background: rgba(26,122,74,0.15);
  border: 1px solid rgba(26,122,74,0.3);
  color: #4ade80;
  display: block;
}

.form-message.error {
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.3);
  color: var(--red-300);
  display: block;
}

/* ---- CART DRAWER ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(500px, 100vw);
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg2);
  z-index: 1;
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-close:hover { background: var(--red-600); }

.cart-items { padding: 1.5rem 2rem; flex: 1; }

.cart-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-dim);
}

.cart-empty .icon { font-size: 3rem; margin-bottom: 1rem; }

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.cart-item-price { color: var(--red-400); font-weight: 700; font-size: 1rem; font-family: var(--font-display); }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: color var(--transition);
  align-self: flex-start;
}

.cart-item-remove:hover { color: var(--red-400); }

/* Checkout form in cart */
.checkout-form {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-total-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-total-amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red-400);
}

.checkout-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-success {
  text-align: center;
  padding: 2rem;
  display: none;
}

.order-success.visible { display: block; }

.order-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pop 0.5s ease;
}

.order-success h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #4ade80;
}

.order-success p { color: var(--text-muted); font-size: 0.9rem; }

.order-number-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-400);
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 8vw, 8rem);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.footer-logo span { color: var(--red-400); }

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-600);
  opacity: 0;
  transition: opacity var(--transition);
}

.social-link:hover {
  color: #fff;
  border-color: var(--red-500);
  transform: translateY(-3px);
}

.social-link:hover::before { opacity: 1; }

.social-link svg, .social-link i { position: relative; z-index: 1; }

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

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--red-400); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Loading spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; aspect-ratio: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }

  h1.hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }

  .projects-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

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

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

@media (max-width: 480px) {
  section { padding: 4rem 1.25rem; }
  .stats-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Loading state for products */
.products-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-dim);
  grid-column: 1 / -1;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}
