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

html { scroll-behavior: smooth; }

/* Mouse Glow */
.mouse-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
}

/* Particles Canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

:root {
  --bg: #070b14;
  --bg-alt: #0d1225;
  --text: #e8e8e8;
  --text-muted: #8899b0;
  --gold: #c9a84c;
  --gold-light: #e8d08a;
  --gold-dark: #a08030;
  --border: rgba(30,64,175,0.15);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.gold { color: var(--gold); }

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

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s;
}

.navbar.scrolled {
  background: rgba(7,11,20,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

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

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 30% 40%, rgba(201,168,76,0.06), transparent),
    radial-gradient(ellipse 600px 600px at 70% 60%, rgba(255,255,255,0.02), transparent);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-type-wrapper {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.cursor {
  display: inline-block;
  animation: blink 0.7s infinite;
  font-weight: 100;
  color: var(--gold);
  font-style: normal;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.hero-social {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.hero-social a {
  color: var(--text-muted);
  font-size: 20px;
  transition: all 0.3s;
}

.hero-social a:hover {
  color: var(--gold);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  margin: 12px auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}

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

/* Sections */
.section {
  padding: 120px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.section-label {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.about-img-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.2);
  padding: 12px;
  margin: 0 auto;
}

.about-img-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  overflow: hidden;
}

.about-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-bio {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 300;
}

.about-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1.5;
  padding: 24px 0;
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 28px;
}

.about-stats {
  display: flex;
  gap: 48px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1px;
}

.about-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 10px 24px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.about-linkedin:hover {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: 16px;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold-dark));
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
  animation: gradientBorder 3s ease infinite;
}

@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-card:hover::before { opacity: 1; }
.project-card:hover::after { opacity: 0.4; }

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.2);
}

.project-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(201,168,76,0.1);
  line-height: 1;
  margin-bottom: 12px;
}

.project-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: gap 0.3s;
}

.project-link:hover { gap: 12px; }

/* Philosophy */
.philosophy-section {
  background: var(--bg-alt);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.philosophy-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s;
}

.philosophy-card:hover {
  border-color: rgba(201,168,76,0.2);
  transform: translateY(-4px);
}

.philosophy-card i {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 20px;
}

.philosophy-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.philosophy-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
}

/* Contact */
.contact-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s;
  min-width: 240px;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 12px 40px rgba(201,168,76,0.08);
}

.contact-icon i {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 16px;
}

.contact-card span {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card small {
  color: var(--text-muted);
  font-size: 14px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 18px;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

/* Split Text */
.split-text span { display: inline-block; }

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Philosophy Card hover */
.philosophy-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Counter Animation */
.stat-num {
  transition: all 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7,11,20,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links a { font-size: 18px; }

  .hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img-frame {
    max-width: 240px;
  }

  .about-stats { justify-content: center; }

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

  .philosophy-grid { grid-template-columns: 1fr 1fr; }

  .contact-card {
    width: 100%;
    min-width: auto;
  }

  footer .container {
    flex-direction: column;
    gap: 16px;
  }

  .hero-badge { font-size: 10px; padding: 6px 16px; }
}

@media (max-width: 480px) {
  .philosophy-grid { grid-template-columns: 1fr; }

  .section { padding: 80px 0; }

  .about-stats { gap: 32px; }
}
