/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #eaf0ff;
  background: #0b1220;
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Prevent overflow on small screens */
img, video, iframe {
  max-width: 100%;
}

main {
  overflow-x: hidden;
}

section {
  overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
  --bg-deep: #0b1220;
  --bg-card: #0f1a2e;
  --text: #eaf0ff;
  --text-muted: #a9b4d0;
  --accent: #b08d57;
  --accent-dim: rgba(176, 141, 87, 0.25);
  --accent-glow: rgba(176, 141, 87, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: max(16px, env(safe-area-inset-top)) 0 16px;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--accent-dim);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 18, 32, 0.9);
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: clamp(20px, 2.5vw, 32px);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #c5d0e8;
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #e4c078;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 12vh, 120px) 0 clamp(60px, 8vh, 80px);
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b1220 0%, #0f1a2e 40%, #0d1628 70%, #0b1220 100%);
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 70% 50%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 10% 20%, rgba(176,141,87,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(176,141,87,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,141,87,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

.hero-decor {
  position: absolute;
  color: var(--accent);
  z-index: 0;
  pointer-events: none;
}

.hero-decor-1 {
  top: 15%;
  left: 5%;
  width: 80px;
  height: 80px;
}

.hero-decor-2 {
  bottom: 20%;
  right: 8%;
  width: 60px;
  height: 60px;
}

.hero-decor-3 {
  top: 25%;
  right: 15%;
  width: 48px;
  height: 48px;
}

.hero-decor svg {
  width: 100%;
  height: 100%;
}

.hero-legal-img {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 120px;
  color: var(--accent);
  z-index: 0;
}

.hero-legal-img svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .hero-decor-1 { width: 50px; height: 50px; top: 10%; }
  .hero-decor-2 { width: 40px; height: 40px; bottom: 15%; }
  .hero-legal-img { width: 120px; height: 80px; bottom: 5%; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-label {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle-wrap {
  position: relative;
  margin-bottom: 28px;
}

.hero-line {
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 16px;
  border-radius: 1px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #c5d0e8;
  max-width: 480px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--accent-dim);
  border-bottom: 1px solid var(--accent-dim);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: #c5d0e8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge {
  font-size: 0.8rem;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(176, 141, 87, 0.5);
  border-radius: 999px;
  color: #e8eef8;
  transition: var(--transition);
  white-space: nowrap;
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Buttons - min 44px touch target */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vw, 14px) clamp(20px, 4vw, 28px);
  min-height: 44px;
  font-size: clamp(0.9rem, 1.5vw, 0.95rem);
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--accent);
  color: #0b1220;
}

.btn-primary:hover {
  background: #c9a066;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* Hero Photo */
.hero-photo-wrap {
  order: 2;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0 auto;
  max-width: min(360px, 100%);
  box-sizing: border-box;
}

.hero-photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(176,141,87,0.2);
  animation: hero-ring-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-photo-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(176,141,87,0.1);
}

@keyframes hero-ring-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-photo {
  position: relative;
  z-index: 1;
}

.hero-photo img {
  width: min(320px, 85vw);
  height: min(320px, 85vw);
  max-width: 320px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-dim);
  box-shadow: 0 0 40px var(--accent-glow), var(--shadow);
  transition: var(--transition);
  display: block;
}

.hero-photo img:hover {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 0 50px var(--accent-glow), var(--shadow-hover);
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(48px, 10vw, 100px) 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, #0b1220 0%, #0f1a2e 100%);
}

.section-bg-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.section-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
}

.section-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,18,32,0.95) 0%, rgba(15,26,46,0.9) 100%);
}

#uzmanlik .section-bg-image img {
  opacity: 0.06;
}

#uzmanlik .section-bg-image::after {
  background: linear-gradient(135deg, rgba(11,18,32,0.92) 0%, rgba(18,28,48,0.88) 100%);
}

.section-bg-right img {
  object-position: right center;
}

/* Section content above bg - tüm section'larda zorunlu */
.section .container {
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(32px, 5vw, 48px);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-shadow: 0 0 12px rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.8);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(228, 192, 120, 0.35);
  border: 2px solid #e4c078;
  border-radius: 12px;
  color: #e4c078 !important;
  -webkit-text-fill-color: #e4c078 !important;
}

.section-icon svg {
  width: 24px;
  height: 24px;
  color: #e4c078 !important;
  fill: none;
  stroke: #e4c078 !important;
}

/* Reveal animation placeholder - JS handles */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HAKKIMDA ===== */
.about-section {
  overflow: hidden;
}

.about-bg-art {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(176,141,87,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(176,141,87,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#hakkimda .container {
  position: relative;
  z-index: 1;
}

.about-with-image {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
}

/* Sanatsal galeri - çerçeveli fotoğraflar */
.about-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}

.about-frame {
  position: relative;
  transition: transform var(--transition);
}

.about-frame:hover {
  transform: translateY(-4px);
}

.about-frame-main {
  transform: rotate(-2deg);
  margin-bottom: 24px;
}

.about-frame-main:hover {
  transform: rotate(-2deg) translateY(-4px);
}

.about-frame-secondary {
  transform: rotate(2deg);
}

.about-frame-secondary:hover {
  transform: rotate(2deg) translateY(-4px);
}

.about-frame-inner {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.2),
    0 20px 40px rgba(0,0,0,0.3),
    0 0 0 1px rgba(176,141,87,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 8px;
  background: linear-gradient(145deg, rgba(15,26,46,0.9) 0%, rgba(11,18,32,0.95) 100%);
}

.about-frame-inner::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176,141,87,0.25);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

.about-frame:hover .about-frame-inner img {
  transform: scale(1.03);
}

.about-frame-inner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  transition: transform 0.5s ease;
}

.about-frame-overlay {
  position: absolute;
  inset: 16px 16px 40px 16px;
  background: linear-gradient(to top, rgba(11,18,32,0.85) 0%, transparent 50%);
  pointer-events: none;
}

.about-frame-label {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.about-frame-secondary {
  animation-delay: 0.15s;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.about-with-image .about-content {
  margin: 0;
  max-width: none;
  padding-left: 8px;
  border-left: 2px solid var(--accent-dim);
}

.about-icon-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.about-icon {
  width: 64px;
  height: 64px;
  color: #d4a853;
}

.about-content p {
  margin-bottom: 20px;
  color: #e8eef8;
  font-size: 1.05rem;
}

.about-highlights {
  margin: 24px 0;
  padding-left: 24px;
}

.about-highlights li {
  position: relative;
  margin-bottom: 12px;
  color: #e8eef8;
}

.about-highlights li::before {
  content: '▸';
  position: absolute;
  left: -24px;
  color: var(--accent);
}

.about-location {
  margin-top: 24px;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.6;
}

/* ===== SECTION-SPECIFIC: Başlık ve ikon - hepsi tutarlı parlak ===== */
#deneyim .section-title,
#iletisim .section-title,
#egitim .section-title,
#cv .section-title,
#hakkimda .section-title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 0 12px rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.8);
}

#deneyim .section-icon,
#iletisim .section-icon,
#egitim .section-icon,
#cv .section-icon,
#hakkimda .section-icon {
  background: rgba(228, 192, 120, 0.35);
  border: 2px solid #e4c078;
  color: #e4c078 !important;
}

#deneyim .section-icon svg,
#iletisim .section-icon svg,
#egitim .section-icon svg,
#cv .section-icon svg,
#hakkimda .section-icon svg {
  stroke: #e4c078 !important;
}

/* ===== PRACTICE CARDS ===== */
#uzmanlik .section-title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 0 12px rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.8);
}

#uzmanlik .section-icon {
  background: rgba(228, 192, 120, 0.35);
  border: 2px solid #e4c078;
  color: #e4c078 !important;
}

#uzmanlik .section-icon svg {
  stroke: #e4c078 !important;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 3vw, 24px);
  min-width: 0;
}

.practice-card {
  background: linear-gradient(145deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 26, 46, 0.98) 100%);
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(176, 141, 87, 0.6), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.practice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(176, 141, 87, 0.3);
  border: 1px solid rgba(176, 141, 87, 0.6);
  border-radius: 10px;
  color: #e4c078;
  margin-bottom: 16px;
}

.practice-icon svg {
  width: 24px;
  height: 24px;
}

.practice-card:hover {
  border-color: rgba(176, 141, 87, 0.7);
  box-shadow: 0 8px 40px rgba(176, 141, 87, 0.25), var(--shadow-hover);
  transform: translateY(-2px);
}

.practice-card:hover .practice-icon {
  background: rgba(176, 141, 87, 0.3);
  color: #e4c078;
}

.practice-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.practice-card p {
  font-size: 0.9rem;
  color: #e8eef8;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.practice-card:hover p {
  color: #ffffff;
}

/* ===== TIMELINE ===== */
.timeline {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.timeline-item {
  display: flex;
  gap: clamp(16px, 3vw, 24px);
  position: relative;
}

.timeline-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: rgba(176, 141, 87, 0.25);
  border: 1px solid rgba(176, 141, 87, 0.6);
  border-radius: 10px;
  margin-top: 6px;
  box-shadow: 0 0 20px rgba(176, 141, 87, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e4c078;
}

.timeline-marker svg {
  width: 20px;
  height: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: -24px;
  width: 2px;
  background: rgba(176, 141, 87, 0.35);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-content {
  padding-bottom: 40px;
}

.timeline-date {
  font-size: 0.9rem;
  color: #e4c078;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 600;
}

.timeline-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #e8eef8;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.timeline-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #e4c078;
}

/* ===== EDUCATION ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.education-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.edu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(176, 141, 87, 0.2);
  border: 1px solid rgba(176, 141, 87, 0.45);
  border-radius: 10px;
  color: #d4a853;
  margin-bottom: 12px;
}

.edu-icon svg {
  width: 22px;
  height: 22px;
}

.edu-icon-law {
  background: rgba(176, 141, 87, 0.15);
  border-color: var(--accent-dim);
}

.edu-date {
  font-size: 0.9rem;
  color: #e4c078;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.education-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: #ffffff;
  font-weight: 600;
}

.education-card p {
  font-size: 0.9rem;
  color: #e8eef8;
}

/* ===== CV LAYOUT ===== */
.cv-layout {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 48px);
  overflow-wrap: break-word;
}

.cv-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--accent-dim);
}

.cv-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(176, 141, 87, 0.1);
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}

.cv-header-icon svg {
  width: 28px;
  height: 28px;
}

.cv-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #e4c078;
  margin-bottom: 4px;
  font-weight: 600;
}

.cv-header p {
  color: #e8eef8;
  font-size: 0.95rem;
}

.cv-contact {
  margin-top: 8px;
  font-size: 0.9rem;
}

.cv-block {
  margin-bottom: 28px;
}

.cv-block:last-child {
  margin-bottom: 0;
}

.cv-block h4 {
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.cv-block p,
.cv-block ul {
  color: #e8eef8;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cv-block ul {
  padding-left: 20px;
}

.cv-block ul li {
  position: relative;
  margin-bottom: 6px;
}

.cv-block ul li::before {
  content: '–';
  position: absolute;
  left: -20px;
  color: #e4c078;
}

.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.cv-skills li {
  padding-left: 0;
}

.cv-skills li::before {
  display: none;
}

.cv-skills li::after {
  content: '·';
  margin-left: 8px;
  color: #e4c078;
}

.cv-skills li:last-child::after {
  display: none;
}

@media (max-width: 480px) {
  .cv-skills {
    flex-direction: column;
    gap: 4px;
  }

  .cv-skills li::after {
    display: none;
  }
}

.cv-cert {
  font-style: italic;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(32px, 5vw, 48px);
  min-width: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: #e8eef8;
  word-break: break-word;
}

.contact-item a {
  color: #ffffff;
  transition: color var(--transition);
  word-break: break-all;
}

.contact-item a:hover {
  color: #e4c078;
}

.contact-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #e4c078;
}

.btn-whatsapp-inline {
  align-self: flex-start;
  padding: 12px 24px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
}

.btn-whatsapp-inline:hover {
  background: #20bd5a;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 10px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 30, 50, 0.8);
  border: 1px solid rgba(176, 141, 87, 0.5);
  border-radius: 999px;
  font-size: 0.9rem;
  color: #e8eef8;
  transition: var(--transition);
  touch-action: manipulation;
}

.chip:hover {
  color: #ffffff;
  border-color: rgba(176, 141, 87, 0.8);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e8eef8;
}

.form-group label span {
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  padding: clamp(12px, 2.5vw, 14px) clamp(14px, 3vw, 18px);
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a9b4d0;
  opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-error {
  font-size: 0.8rem;
  color: #e74c3c;
  min-height: 18px;
}

/* Map */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--accent-dim);
  height: clamp(200px, 40vw, 280px);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: max(32px, env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  max-width: min(400px, calc(100vw - 32px));
  margin: 0 auto;
  transform: translateY(100px);
  padding: clamp(16px, 3vw, 20px) clamp(20px, 4vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast p {
  color: var(--text);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px clamp(16px, 4vw, 24px);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--accent-dim);
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: #e8eef8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  word-wrap: break-word;
}

.footer-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== FLOATING BUTTONS ===== */
.float-whatsapp {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  width: 56px;
  height: 56px;
  min-width: 48px;
  min-height: 48px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.float-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.5);
}

.float-whatsapp svg {
  width: 28px;
  height: 28px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.6); }
}

.back-to-top {
  position: fixed;
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 64px));
  right: max(20px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Tablet & below: hero stacked, contact stacked */
@media (max-width: 900px) {
  .about-with-image {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-gallery {
    order: -1;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .about-frame-main,
  .about-frame-secondary {
    transform: none;
    margin-bottom: 0;
  }

  .about-frame-main:hover,
  .about-frame-secondary:hover {
    transform: translateY(-4px);
  }

  .about-frame-inner img {
    height: 200px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-label {
    text-align: center;
  }

  .hero-subtitle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-photo-wrap {
    order: -1;
    padding: 12px;
  }

  .hero-photo img {
    margin: 0 auto;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Mobile nav: hamburger menu */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    flex-direction: column;
    padding: max(80px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--accent-dim);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links .nav-link {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hamburger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: clamp(40px, 8vw, 60px) 0;
  }

  .container {
    padding: 0 16px;
  }

  .cv-layout {
    padding: 20px 16px;
  }

  .about-with-image {
    gap: 32px;
  }

  .about-content {
    padding-left: 0;
    border-left: none;
  }

  .about-highlights {
    padding-left: 20px;
  }

  .about-highlights li::before {
    left: -20px;
  }

  .timeline-content ul li {
    font-size: 0.9rem;
  }

  .practice-grid {
    gap: 16px;
  }

  .section-title {
    font-size: 1.4rem;
    flex-direction: column;
    gap: 8px;
  }

  .section-icon {
    width: 40px;
    height: 40px;
  }

  .section-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero {
    padding-top: 90px;
  }

  .hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  .hero-stats {
    gap: 20px;
    padding: 16px 0;
    justify-content: center;
  }

  .hero-stat-num {
    font-size: 1.25rem;
  }

  .hero-stat-label {
    font-size: 0.7rem;
  }

  .about-gallery {
    max-width: 100%;
  }

  .about-frame-inner img {
    height: 180px;
  }

  .practice-card {
    padding: 16px;
  }

  .practice-icon {
    width: 40px;
    height: 40px;
  }

  .practice-icon svg {
    width: 20px;
    height: 20px;
  }

  .toast {
    left: 12px;
    right: 12px;
    padding: 16px 20px;
  }

  .hero-photo-wrap {
    padding: 8px;
  }

  .hero-photo img {
    width: min(260px, 75vw);
    height: min(260px, 75vw);
  }

  .hero-photo-ring::before {
    inset: 4px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-badges {
    gap: 8px;
  }

  .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .practice-card h3 {
    font-size: 1.1rem;
  }

  .cv-header h3 {
    font-size: 1.25rem;
  }

  .cv-contact {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .contact-chips {
    width: 100%;
  }

  .chip {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .float-whatsapp {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    width: 52px;
    height: 52px;
  }

  .back-to-top {
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 56px));
    right: max(16px, env(safe-area-inset-right));
  }
}

/* Extra small (320px) */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-photo-wrap {
    padding: 6px;
  }

  .hero-photo img {
    width: min(220px, 80vw);
    height: min(220px, 80vw);
  }

  .hero-text h1 {
    font-size: 1.4rem;
    letter-spacing: 0.04em;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-num {
    font-size: 1.1rem;
  }

  .hero-badges {
    gap: 6px;
  }

  .badge {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .nav-links {
    width: 100%;
  }

  .practice-card h3 {
    font-size: 1rem;
  }

  .practice-card p {
    font-size: 0.85rem;
  }

  .map-wrapper {
    height: 180px;
  }

  .float-whatsapp {
    width: 48px;
    height: 48px;
    bottom: max(12px, env(safe-area-inset-bottom));
    right: max(12px, env(safe-area-inset-right));
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    bottom: max(68px, calc(env(safe-area-inset-bottom) + 56px));
  }
}

