@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  /* Pitch Black & Luxury Gold Palette */
  --bg-dark: #040404;
  --bg-surface: #0a0a0c;
  --bg-card: rgba(15, 15, 18, 0.8);
  --bg-card-hover: rgba(24, 24, 28, 0.9);
  
  --border-glass: rgba(212, 175, 55, 0.18);
  --border-accent: rgba(255, 215, 0, 0.5);
  
  /* Gold Color Tokens */
  --gold-primary: #d4af37;
  --gold-light: #fef08a;
  --gold-bright: #ffd700;
  --gold-dark: #b45309;
  --gold-amber: #f59e0b;
  
  /* White & Slate Text Tokens */
  --text-main: #ffffff;
  --text-muted: #e4e4e7;
  --text-dim: #a1a1aa;
  
  /* Metallic White-Gold Shimmer Gradient */
  --gradient-gold: linear-gradient(135deg, #ffffff 0%, #ffd700 35%, #d4af37 70%, #f59e0b 100%);
  --gradient-gold-subtle: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(255, 215, 0, 0.35) 0%, rgba(212, 175, 55, 0.35) 100%);
  
  --glow-primary: rgba(212, 175, 55, 0.25);
  --glow-accent: rgba(255, 215, 0, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Ambient Gold Background Glows */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

body::before {
  width: 550px;
  height: 550px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, var(--gold-bright) 0%, transparent 70%);
}

body::after {
  width: 650px;
  height: 650px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
}

/* Links & Typography */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(4, 4, 4, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.logo-badge {
  background: var(--gradient-gold);
  color: #000000;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

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

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
  color: var(--gold-bright);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(212, 175, 55, 0.25);
}

/* Layout Containers */
main {
  padding-top: 160px;
  margin-top: 10px;
  padding-bottom: 4rem;
  min-height: calc(100vh - 160px);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #000000;
  box-shadow: 0 8px 25px -5px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -5px rgba(255, 215, 0, 0.6);
  opacity: 0.95;
}

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

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-accent);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

/* Page Header Utilities */
.page-header {
  padding: 2rem 0 1.5rem 0;
  text-align: center;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  padding: 2rem 0 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-bright);
  animation: pulseGlow 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.typing-container {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

.typing-text {
  color: var(--gold-bright);
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  margin-left: 0.5rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.4rem;
  background-color: var(--gold-bright);
  margin-left: 4px;
  animation: blink 1s infinite;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  color: #000000;
  background: var(--gradient-gold);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.5);
}

.hero-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-frame {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-full);
  padding: 6px;
  background: var(--gradient-gold);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.35);
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%;
  transform-origin: center 15%;
  transform: scale(1.7);
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  display: block;
}

.tech-badge-floating {
  position: absolute;
  padding: 0.6rem 1.2rem;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.tech-badge-floating.tb-1 {
  top: 10%;
  left: -10%;
}

.tech-badge-floating.tb-2 {
  bottom: 10%;
  right: -5%;
}

/* Skills Section */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.skill-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--gradient-gold);
  color: #000000;
  border-color: transparent;
  box-shadow: 0 6px 20px -4px rgba(212, 175, 55, 0.4);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-surface);
}

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

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

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

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

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

/* Contact Form & Cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

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

/* Timeline Components */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 10px var(--gold-bright);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.success {
  border-color: var(--gold-bright);
}

/* Footer */
footer {
  padding: 3rem 0;
  margin-top: 6rem;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

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

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .typing-container {
    justify-content: center;
  }

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

  .hero-avatar-wrapper {
    order: -1;
  }
}

@media (max-width: 1024px) {
  header {
    padding: 1rem 5%;
  }

  main {
    padding-top: 110px;
  }

  .mobile-nav-toggle {
    display: block !important;
    z-index: 1010;
  }

  nav {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 80%;
    max-width: 280px;
    height: calc(100vh - 65px);
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.75rem;
    gap: 1.5rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
    z-index: 1005;
  }

  nav.open {
    right: 0 !important;
  }

  nav a {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.6rem 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .avatar-frame {
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }

  .tech-badge-floating.tb-1 {
    top: 0%;
    left: -5%;
    font-size: 0.75rem;
  }

  .tech-badge-floating.tb-2 {
    bottom: 0%;
    right: -5%;
    font-size: 0.75rem;
  }

  .container {
    padding: 0 1.25rem;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .typing-container {
    font-size: 1.2rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .avatar-frame {
    width: 220px;
    height: 220px;
  }

  .glass-card {
    padding: 1.25rem;
  }
}