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

:root {
  /* Color Palette */
  --bg-darkest: #070708;
  --bg-dark: #0d0d0f;
  --bg-card: #151518;
  --bg-card-hover: #1c1c21;
  
  --gold-primary: #d4af37;
  --gold-secondary: #c5a059;
  --gold-dark: #8c6e2d;
  --gold-glow: rgba(212, 175, 55, 0.12);
  --gold-glow-hover: rgba(212, 175, 55, 0.25);
  
  --text-main: #f5f5f7;
  --text-muted: #9f9fb0;
  --text-dark: #5a5a66;
  
  --border-light: rgba(212, 175, 55, 0.1);
  --border-hover: rgba(212, 175, 55, 0.35);
  --border-active: rgba(212, 175, 55, 0.6);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout Constants */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
}

/* Background Glows */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.4;
}

.glow-1 {
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(0,0,0,0) 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(0,0,0,0) 70%);
  bottom: 15%;
  left: -200px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 13, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-text span {
  font-weight: 800;
  color: var(--gold-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.lang-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.65rem;
  border-radius: var(--border-radius-sm);
  gap: 0.35rem;
}

.lang-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  transition: var(--transition-smooth);
}

.lang-tab:hover {
  color: var(--text-main);
}

.lang-tab.active {
  color: var(--gold-primary);
  font-weight: 700;
}

.lang-divider {
  color: var(--text-dark);
  font-size: 0.85rem;
  user-select: none;
}

/* Global Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #121214;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

/* Main Layout & Sections */
main {
  padding-top: 5rem; /* Account for sticky nav */
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title-left {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  position: relative;
  text-align: center;
}

.hero-container {
  max-width: 850px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-light);
  color: var(--gold-primary);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero-title span {
  display: inline-block;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--text-main) 20%, var(--gold-primary) 60%, var(--gold-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
}

/* Projects Section & Cards Grid */
.projects-section {
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
}

@media (hover: hover) {
  .project-card {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg)) translateY(0);
  }
  .project-card:hover {
    transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg)) translateY(-6px);
  }
}

@media (max-width: 1024px) {
  /* Mute tilt transforms on tablets & mobile screens */
  .project-card {
    transform: none !important;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }
  .project-card:hover {
    transform: translateY(-4px) !important;
  }
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(212,175,55,0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-icon-gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  border: 1px solid var(--border-light);
}

.project-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.badge-active {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.project-body {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.project-domain {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

.project-footer {
  position: relative;
  z-index: 2;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.project-link:hover {
  color: var(--gold-primary);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.project-link:hover .arrow-icon {
  transform: translateX(4px);
}

/* About Section & Identity Grid */
.about-section {
  background: linear-gradient(to bottom, transparent, rgba(13, 13, 15, 0.5), transparent);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-info {
  display: flex;
  flex-direction: column;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}



/* Visual Identity Card */
.about-visual {
  display: flex;
  justify-content: center;
}

.identity-card {
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08) 0%, transparent 60%), var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  position: relative;
}

.identity-card::before {
  content: '';
  position: absolute;
  top: -1px;
  right: 15%;
  width: 30%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.identity-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.identity-item {
  display: flex;
  gap: 1.25rem;
}

.identity-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}

.obsidian {
  background-color: #121214;
  border: 1px solid var(--text-dark);
  color: rgba(255, 255, 255, 0.15);
}

.satin-gold {
  background-color: var(--gold-primary);
  color: var(--gold-glow-hover);
}

.feather-white {
  background-color: #ffffff;
  color: rgba(255, 255, 255, 0.6);
}

.identity-text-block h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.identity-text-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  position: relative;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: rgba(21, 21, 24, 0.5);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--border-hover);
  background: rgba(21, 21, 24, 0.8);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding-bottom: 8rem;
}

.contact-card {
  background: linear-gradient(135deg, rgba(21, 21, 24, 0.9) 0%, rgba(13, 13, 15, 0.9) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

.contact-card::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meta-icon {
  font-size: 1.25rem;
}

.meta-value {
  font-weight: 600;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

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

.action-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.email-copy-box {
  display: flex;
  gap: 0.5rem;
}

.email-copy-box input {
  flex-grow: 1;
  width: 100%;
  min-width: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  outline: none;
  transition: var(--transition-smooth);
}

.email-copy-box input:focus {
  border-color: var(--border-hover);
}

/* Toast System */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  color: var(--text-main);
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px var(--gold-glow);
  z-index: 1000;
  font-weight: 500;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-darkest);
  padding: 2.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-muted);
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --border-radius-lg: 16px;
  }

  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .nav-links {
    display: none; /* Mobile menu simplify */
  }

  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .section-title, .section-title-left {
    font-size: 2rem;
  }

  .contact-card {
    padding: 2.25rem 1.5rem;
  }

  .email-copy-box {
    flex-direction: column;
  }
  
  .identity-card {
    padding: 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Scroll Reveal System */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

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