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

/* ==================== CSS VARIABLES ==================== */
:root {
  --bg-primary: #070710;
  --bg-secondary: #0e0e1c;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(212,175,55,0.4);
  --gold: #d4af37;
  --gold-light: #f5d877;
  --gold-dim: rgba(212,175,55,0.15);
  --text-primary: #f0ede6;
  --text-secondary: rgba(240,237,230,0.55);
  --text-muted: rgba(240,237,230,0.35);
  --accent: #c084fc;
  --accent2: #60a5fa;
  --success: #34d399;
  --nav-h: 70px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 30px rgba(212,175,55,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8f6f0;
  --bg-secondary: #eee9dd;
  --bg-card: rgba(0,0,0,0.04);
  --bg-card-hover: rgba(0,0,0,0.07);
  --border: rgba(0,0,0,0.1);
  --border-hover: rgba(180,140,20,0.5);
  --gold: #a07820;
  --gold-light: #c8a030;
  --gold-dim: rgba(180,140,20,0.12);
  --text-primary: #1a1608;
  --text-secondary: rgba(26,22,8,0.6);
  --text-muted: rgba(26,22,8,0.4);
  --bg-card: rgba(255,255,255,0.7);
  --bg-card-hover: rgba(255,255,255,0.9);
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none; border: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html::-webkit-scrollbar { width: 5px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: #000; }
section { padding: 8rem 8%; }
img { display: block; max-width: 100%; }

/* ==================== NOISE 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='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ==================== NAVBAR ==================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  background: rgba(7,7,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
[data-theme="light"] header {
  background: rgba(248,246,240,0.88);
}
header.scrolled { box-shadow: var(--shadow); }
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
.logo:hover { color: var(--gold); }

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar ul li a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  position: relative;
  letter-spacing: 0.02em;
}
.navbar ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--transition);
}
.navbar ul li a:hover::after,
.navbar ul li a.active::after { width: 60%; }
.navbar ul li a:hover,
.navbar ul li a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* Theme toggle & hamburger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(20deg);
}
#menu {
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--text-primary);
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

/* ==================== HERO ==================== */
.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8%;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #d4af37, transparent 70%);
  top: -200px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #c084fc, transparent 70%);
  bottom: -100px; left: -50px;
  animation: float2 10s ease-in-out infinite;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #60a5fa, transparent 70%);
  top: 50%; left: 40%;
  animation: float3 12s ease-in-out infinite;
}
@keyframes float1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.05); }
}
@keyframes float2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(0.95); }
}
@keyframes float3 {
  0%,100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 20px); }
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1 1 50rem;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.3);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.8s ease both;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s 0.1s ease both;
}
.hero-name .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.8s 0.2s ease both;
}
.hero-subtitle .typing-text {
  color: var(--accent);
  font-weight: 500;
}
.hero-desc {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3.5rem;
  max-width: 480px;
  animation: fadeSlideUp 0.8s 0.3s ease both;
}
.hero-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.4s ease both;
  margin-bottom: 4rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 2.8rem;
  border-radius: 100px;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), #b8942a);
  color: #000;
  box-shadow: 0 4px 20px rgba(212,175,55,0.35);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,175,55,0.5); }
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.3rem 2.8rem;
  border-radius: 100px;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 1rem;
  animation: fadeSlideUp 0.8s 0.5s ease both;
}
.hero-socials a {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 1.6rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.hero-socials a:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px) scale(1.1);
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
  flex: 1 1 40rem;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 1s 0.2s ease both;
}
.hero-img-ring {
  position: relative;
  width: 380px; height: 380px;
}
.hero-img-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--gold), transparent, var(--gold-light), transparent, var(--gold));
  animation: spin 8s linear infinite;
  z-index: -1;
}
.hero-img-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-primary);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-img-ring img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--bg-primary);
}
.hero-card-float {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.hero-card-1 {
  top: 20px; right: -20px;
  animation: cardFloat1 4s ease-in-out infinite;
}
.hero-card-2 {
  bottom: 40px; left: -30px;
  animation: cardFloat2 5s ease-in-out infinite;
}
.card-icon { color: var(--gold); margin-right: 0.6rem; }
@keyframes cardFloat1 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes cardFloat2 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 1;
  animation: fadeSlideUp 1s 1s ease both;
}
.scroll-hint span { font-size: 1.1rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.scroll-mouse span {
  width: 3px; height: 8px;
  background: var(--gold);
  border-radius: 3px;
  animation: scrollDown 2s ease infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ==================== SECTION HEADER ==================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.section-label::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--gold);
}
.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.section-heading span { color: var(--gold); }
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 3px;
  margin-bottom: 5rem;
}

/* ==================== ABOUT ==================== */
.about {
  background: var(--bg-secondary);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-bg {
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  background: var(--gold-dim);
  z-index: 0;
}
.about-img-border {
  position: absolute;
  inset: -3px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
  z-index: 1;
}
.about-img-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 22px;
  filter: grayscale(20%);
  transition: all 0.5s ease;
}
.about-img-wrap:hover img { filter: grayscale(0%); }
.about-tag {
  position: absolute;
  z-index: 3;
  bottom: -20px; right: -20px;
  background: var(--gold);
  color: #000;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-gold);
}
.about-text p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  text-transform: none;
}
.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}
.info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: all var(--transition);
}
.info-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.info-item-label {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.info-item-value {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 500;
  text-transform: none;
}

/* ==================== SKILLS ==================== */
.skills {
  background: var(--bg-primary);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-dim);
  opacity: 0;
  transition: opacity var(--transition);
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}
.skill-card img {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.2rem;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}
.skill-card:hover img { transform: scale(1.15); }
.skill-card span {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  text-transform: capitalize;
}
.skill-card:hover span { color: var(--text-primary); }

/* ==================== EDUCATION ==================== */
.education {
  background: var(--bg-secondary);
}
.edu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}
.edu-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  transition: all 0.5s ease;
}
.edu-card:hover .edu-card-img { filter: brightness(0.85) saturate(1); }
.edu-card-body {
  padding: 2.5rem;
}
.edu-card-year {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 100px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.edu-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.edu-card-sub {
  font-size: 1.4rem;
  color: var(--text-secondary);
  text-transform: none;
}

/* ==================== PROJECTS ==================== */
.work {
  background: var(--bg-primary);
}
.work-empty {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-muted);
  font-size: 1.6rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.work-empty i {
  font-size: 4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}
.project-img {
  width: 100%; height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img { transform: scale(1.05); }
.project-body { padding: 2rem; }
.project-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 1rem;
}
.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.project-desc {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-transform: none;
  margin-bottom: 1.5rem;
}
.project-links {
  display: flex;
  gap: 1rem;
}
.project-link {
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.project-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}
.work-viewall { text-align: center; }

/* ==================== EXPERIENCE ==================== */
.experience {
  background: var(--bg-secondary);
}
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), var(--gold), var(--border), transparent);
  transform: translateX(-50%);
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}
.tl-item.left .tl-content { grid-column: 1; text-align: right; padding-right: 3rem; }
.tl-item.left .tl-dot { grid-column: 2; }
.tl-item.left .tl-empty { grid-column: 3; }
.tl-item.right .tl-empty { grid-column: 1; }
.tl-item.right .tl-dot { grid-column: 2; }
.tl-item.right .tl-content { grid-column: 3; padding-left: 3rem; }
.tl-dot {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.5rem;
}
.tl-dot-inner {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--gold);
  flex-shrink: 0;
  transition: all var(--transition);
}
.tl-item:hover .tl-dot-inner {
  transform: scale(1.4);
  box-shadow: 0 0 0 4px var(--gold), 0 0 20px rgba(212,175,55,0.5);
}
.tl-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  transition: all var(--transition);
}
.tl-item:hover .tl-content {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-gold);
  transform: scale(1.02);
}
.tl-company {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.tl-role {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.tl-date {
  font-size: 1.2rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tl-item.right .tl-date { justify-content: flex-start; }
.tl-item.left .tl-date { justify-content: flex-end; }
.tl-item.left .tl-company,
.tl-item.left .tl-role { text-align: right; }

/* ==================== CONTACT ==================== */
.contact {
  background: var(--bg-primary);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.contact-info p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-transform: none;
  margin-bottom: 3rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.contact-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(5px);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-item-text span {
  display: block;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.contact-item-text a, .contact-item-text p {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 500;
  text-transform: none;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3.5rem;
}
.form-group { margin-bottom: 2rem; }
.form-label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.form-field {
  position: relative;
}
.form-field i {
  position: absolute;
  left: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition);
}
.form-field.textarea i { top: 1.8rem; transform: none; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem 1.4rem 4.5rem;
  font-size: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  transition: all var(--transition);
  text-transform: none;
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-field input:focus ~ i,
.form-field textarea:focus ~ i { color: var(--gold); }
.form-submit {
  width: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), #b8942a);
  color: #000;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.4);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 6rem 8% 3rem;
  min-height: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand .logo { margin-bottom: 1.5rem; display: inline-flex; }
.footer-brand p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-transform: none;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.footer-socials a {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer-socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  transform: translateY(-3px);
}
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a {
  display: block;
  font-size: 1.4rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  transition: all var(--transition);
  text-transform: capitalize;
}
.footer-col a:hover { color: var(--gold); padding-left: 6px; }
.footer-col p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: none;
}
.footer-col p i { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-muted);
}
.footer-bottom .heart { color: #ef4444; animation: pound 0.5s infinite alternate; display: inline-block; }
@keyframes pound { to { transform: scale(1.2); } }

/* ==================== SCROLL TOP ==================== */
#scroll-top {
  position: fixed;
  bottom: 3rem; right: 3rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition);
  text-decoration: none;
}
#scroll-top.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(212,175,55,0.6); }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  html { font-size: 58%; }
  section { padding: 6rem 5%; }
  header { padding: 0 5%; }
  .home { padding: 0 5%; flex-direction: column; text-align: center; justify-content: center; gap: 4rem; }
  .hero-content { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-image-wrap { order: -1; }
  .hero-img-ring { width: 260px; height: 260px; }
  .hero-card-1, .hero-card-2 { display: none; }
  .navbar {
    position: fixed;
    top: var(--nav-h); right: -100%;
    width: 280px; height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: 3rem 2rem;
    transition: right var(--transition);
    flex-direction: column;
  }
  .navbar.nav-toggle { right: 0; }
  .navbar ul { flex-direction: column; align-items: flex-start; gap: 0.5rem; width: 100%; }
  .navbar ul li { width: 100%; }
  .navbar ul li a { display: block; padding: 1.2rem 1.5rem; font-size: 1.6rem; border-radius: var(--radius-sm); }
  #menu { display: flex; }
  .timeline::before { left: 20px; }
  .tl-item { grid-template-columns: 40px 1fr; }
  .tl-item.left .tl-content,
  .tl-item.right .tl-content { grid-column: 2; padding: 0; padding-left: 2rem; text-align: left; }
  .tl-item.left .tl-dot,
  .tl-item.right .tl-dot { grid-column: 1; }
  .tl-item.left .tl-empty,
  .tl-item.right .tl-empty { display: none; }
  .tl-item.left .tl-company,
  .tl-item.left .tl-role { text-align: left; }
  .tl-item.left .tl-date { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  #particles-js { display: none; }
}
@media (max-width: 480px) {
  html { font-size: 55%; }
  .hero-img-ring { width: 220px; height: 220px; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-form { padding: 2rem; }
}