/* ==========================================================================
   Obsidian & Gold Editorial Design System
   Vinay Aluguri - Premium Portfolio Style
   ========================================================================== */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  /* Color System */
  --bg-obsidian: #0a0a0a;
  --surface-charcoal: #131313;
  --surface-container-low: #0e0e0e;
  --surface-container: #1a1a1a;
  --surface-container-high: #242424;
  
  --primary-gold: #d4af37;
  --primary-gold-rgb: 212, 175, 55;
  --text-white: #ffffff;
  --text-grey-light: #e5e2e1;
  --text-grey-muted: #99907c;
  --text-gold-muted: #d0c5af;
  --outline-border: rgba(255, 255, 255, 0.08);
  --outline-gold: rgba(212, 175, 55, 0.25);
  
  /* Fonts */
  --font-serif: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing Scale */
  --spacing-unit: 8px;
  --margin-desktop: 80px;
  --margin-tablet: 40px;
  --margin-mobile: 24px;
}

/* Base Styles & Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html {
  background-color: var(--bg-obsidian);
  color: var(--text-white);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-obsidian);
  cursor: none; /* Hide default cursor to enable premium custom cursor */
}

/* Custom Selection */
::selection {
  background-color: var(--primary-gold);
  color: var(--bg-obsidian);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-container);
  border: 1px solid var(--bg-obsidian);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

/* Layout Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
  position: relative;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--margin-tablet);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--margin-mobile);
  }
}

/* Custom Cursor */
.custom-cursor {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(214, 175, 55, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.custom-cursor.hovered {
  width: 60px;
  height: 60px;
  background-color: rgba(214, 175, 55, 0.1);
  border-color: var(--primary-gold);
}

/* Background Atmospheric FX */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  top: 10%;
  right: -200px;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-left {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 20%;
  left: -300px;
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* Premium Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--outline-border);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary-gold);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-item a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-grey-light);
  text-decoration: none;
  position: relative;
  padding: 10px 0;
  transition: color 0.30s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-gold);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-white);
}

/* Hero Section Grid */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  z-index: 2;
  position: relative;
}

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

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--primary-gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-subtitle::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background-color: var(--primary-gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 30px;
}

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

.hero-desc {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-gold-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.hero-buttons {
  display: flex;
  gap: 24px;
}

/* Profile Photo Circle Frame */
.hero-profile-area {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.profile-circle-container {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid var(--primary-gold);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.1);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.5s, box-shadow 0.5s;
  transform-style: preserve-3d;
}

.profile-circle-container:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.25);
}

.profile-circle-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* Optimal positioning for the square portrait photo */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  filter: contrast(102%) brightness(98%);
  z-index: 2;
  position: relative;
}

.profile-circle-container:hover .profile-img {
  transform: scale(1.04);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
  }
  
  .hero-profile-area {
    order: -1; /* Display profile photo at top */
  }

  .profile-circle-container {
    width: 280px;
    height: 280px;
  }
  
  .hero-subtitle {
    justify-content: center;
  }
  
  .hero-subtitle::before {
    display: none;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile-circle-container {
    width: 220px;
    height: 220px;
  }
}

/* Buttons System */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 0; /* Sharp border system */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: var(--bg-obsidian);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

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

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

/* Section Common Styles */
section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary-gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-line {
  width: 60px;
  height: 1px;
  background-color: var(--primary-gold);
  margin-top: 16px;
}

/* Summary / Profile Section */
.summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.summary-text p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-grey-light);
  margin-bottom: 30px;
}

.summary-text p:first-of-type {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--text-white);
  margin-bottom: 40px;
  border-left: 3px solid var(--primary-gold);
  padding-left: 24px;
}

.summary-specs {
  background-color: var(--surface-charcoal);
  border: 1px solid var(--outline-border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-grey-muted);
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-white);
}

.spec-value a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: color 0.3s;
}

.spec-value a:hover {
  color: var(--text-white);
}

/* Pipeline Experience Section */
.pipeline-container {
  position: relative;
  padding-left: 40px;
}

.pipeline-container::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-gold) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.pipeline-item {
  position: relative;
  margin-bottom: 60px;
}

.pipeline-item:last-child {
  margin-bottom: 0;
}

.pipeline-node {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 13px;
  height: 13px;
  background-color: var(--bg-obsidian);
  border: 2px solid var(--primary-gold);
  border-radius: 0;
  transition: background-color 0.3s, transform 0.3s;
}

.pipeline-item:hover .pipeline-node {
  background-color: var(--primary-gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .pipeline-header {
    flex-direction: column;
    gap: 10px;
  }
}

.pipeline-role {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-white);
}

.pipeline-company {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-gold);
  margin-top: 4px;
}

.pipeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background-color: var(--surface-charcoal);
  padding: 6px 16px;
  border: 1px solid var(--outline-border);
  color: var(--text-grey-muted);
}

.pipeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipeline-bullets li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-grey-light);
  padding-left: 20px;
  position: relative;
}

.pipeline-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary-gold);
}

/* Projects Section (Asymmetrical Grid) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.project-card {
  background-color: var(--surface-charcoal);
  border: 1px solid var(--outline-border);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.05);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #0e0e0e;
  border-bottom: 1px solid var(--outline-border);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  filter: grayscale(10%) contrast(110%);
}

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

/* Dark studio glow behind render overlay */
.project-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.project-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
  text-transform: uppercase;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-grey-muted);
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
  text-decoration: none;
  transition: color 0.3s;
}

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

.project-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-gold-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-grey-light);
  border: 1px solid var(--outline-border);
  padding: 4px 10px;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 992px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
}

.skills-card {
  background-color: var(--surface-charcoal);
  border: 1px solid var(--outline-border);
  padding: 40px;
}

.skills-card-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-white);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skills-card-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--outline-border);
  margin-left: 20px;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-name-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-white);
}

.skill-rating {
  font-family: var(--font-mono);
  color: var(--primary-gold);
  font-size: 0.8rem;
}

.skill-track {
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  position: relative;
}

.skill-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--primary-gold);
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-details-text {
  font-size: 0.8rem;
  color: var(--text-grey-muted);
  line-height: 1.4;
}

/* Credentials Grid */
.credentials-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

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

.cert-card {
  background-color: var(--surface-charcoal);
  border: 1px solid var(--outline-border);
  padding: 40px;
}

.cert-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .cert-list {
    grid-template-columns: 1fr;
  }
}

.cert-item {
  border-left: 2px solid var(--outline-border);
  padding-left: 20px;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}

.cert-item:hover {
  border-color: var(--primary-gold);
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
}

.cert-issuer {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-grey-muted);
  margin-top: 8px;
}

.edu-card {
  background-color: var(--surface-charcoal);
  border: 1px solid var(--outline-border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edu-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-white);
  margin-bottom: 20px;
}

.edu-inst {
  font-size: 1.05rem;
  color: var(--primary-gold);
  margin-bottom: 12px;
}

.edu-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-grey-muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--outline-border);
  padding-top: 20px;
  margin-top: 20px;
}

/* Contact / API Terminal Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-headline {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--text-gold-muted);
  line-height: 1.5;
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-grey-muted);
}

.contact-field-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-white);
  text-decoration: none;
}

.contact-field-value:hover {
  color: var(--primary-gold);
}

/* Minimal Underline Form */
.contact-form {
  background-color: var(--surface-charcoal);
  border: 1px solid var(--outline-border);
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 30px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--outline-border);
  padding: 12px 0;
  font-family: var(--font-sans);
  color: var(--text-white);
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.4s ease;
}

.form-input:focus {
  border-bottom-color: var(--primary-gold);
}

.form-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-grey-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Float label upon typing/focus */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -16px;
  font-size: 0.7rem;
  color: var(--primary-gold);
  letter-spacing: 0.15em;
}

textarea.form-input {
  min-height: 100px;
  resize: none;
}

.form-submit-row {
  display: flex;
  justify-content: flex-end;
}

/* Cyber Footer */
.cyber-footer {
  border-top: 1px solid var(--outline-border);
  padding: 60px 0;
  background-color: var(--bg-obsidian);
  text-align: center;
  position: relative;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-social-link {
  color: var(--text-grey-muted);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.footer-social-link:hover {
  color: var(--primary-gold);
  transform: translateY(-3px);
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-obsidian);
    border-top: 1px solid var(--outline-border);
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    transition: left 0.4s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
}

/* Animation utilities for scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* ==========================================================================
   3D Particle Canvas & Interactive Modals Styling
   ========================================================================== */

/* Hero Canvas Background */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Glassmorphic Project Details Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background-color: var(--surface-charcoal);
  border: 1px solid rgba(212, 175, 55, 0.3);
  width: 90%;
  max-width: 900px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(212, 175, 55, 0.05);
}

.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-grey-muted);
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--primary-gold);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 480px;
}

@media (max-width: 768px) {
  .modal-body-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .modal-window {
    max-height: 90vh;
    overflow-y: auto;
  }
}

.modal-img-container {
  position: relative;
  overflow: hidden;
  background-color: #0e0e0e;
  border-right: 1px solid var(--outline-border);
}

@media (max-width: 768px) {
  .modal-img-container {
    border-right: none;
    border-bottom: 1px solid var(--outline-border);
    aspect-ratio: 16/9;
  }
}

.modal-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.modal-project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-project-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.modal-project-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-gold-muted);
  margin-bottom: 30px;
  overflow-y: auto;
  max-height: 180px;
}

.modal-tech-header {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-grey-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--outline-border);
  padding-bottom: 8px;
}

.modal-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.modal-actions {
  margin-top: auto;
}

/* Enhanced 3D Parallax Card Lift */
.project-card {
  transform-style: preserve-3d;
  cursor: pointer;
}

.project-card .project-img-wrapper {
  transform-style: preserve-3d;
}

.project-card .project-img {
  transform: translateZ(0px);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-img {
  transform: scale(1.05) translateZ(30px); /* Lift out of frame */
}

/* ==========================================================================
   CSS 3D Wireframe Floating Cubes & Grid Horizon Floor
   ========================================================================== */

.cube-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  perspective: 1200px;
  overflow: hidden;
  pointer-events: none;
}

.cube {
  position: absolute;
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  animation: spinCube 25s infinite linear;
  pointer-events: auto; /* Enable cursor response */
  cursor: pointer;
}

.cube-1 {
  top: 22%;
  right: 12%;
  width: 130px;
  height: 130px;
}

.cube-2 {
  bottom: 18%;
  left: 8%;
  width: 80px;
  height: 80px;
  animation-duration: 38s;
  animation-direction: reverse;
}

.cube .face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 0 25px rgba(212, 175, 55, 0.05);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.cube:hover .face {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: inset 0 0 35px rgba(212, 175, 55, 0.2), 0 0 20px rgba(212, 175, 55, 0.08);
}

/* Face coordinates using translateZ relative to size scale */
.cube-1 .front  { transform: rotateY(0deg) translateZ(65px); }
.cube-1 .back   { transform: rotateY(180deg) translateZ(65px); }
.cube-1 .right  { transform: rotateY(90deg) translateZ(65px); }
.cube-1 .left   { transform: rotateY(-90deg) translateZ(65px); }
.cube-1 .top    { transform: rotateX(90deg) translateZ(65px); }
.cube-1 .bottom { transform: rotateX(-90deg) translateZ(65px); }

.cube-2 .front  { transform: rotateY(0deg) translateZ(40px); }
.cube-2 .back   { transform: rotateY(180deg) translateZ(40px); }
.cube-2 .right  { transform: rotateY(90deg) translateZ(40px); }
.cube-2 .left   { transform: rotateY(-90deg) translateZ(40px); }
.cube-2 .top    { transform: rotateX(90deg) translateZ(40px); }
.cube-2 .bottom { transform: rotateX(-90deg) translateZ(40px); }

@keyframes spinCube {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* 3D Horizon perspective Grid Floor */
.grid-floor-3d {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 350px;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(72deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  z-index: 1;
  pointer-events: none;
}

/* Clickable items feedback */
.clickable-experience,
.clickable-skill,
.clickable-cert {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s, box-shadow 0.4s;
}

.clickable-experience:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(212, 175, 55, 0.03);
}

.clickable-skill:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 30px rgba(212, 175, 55, 0.05);
}

.clickable-cert:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.05);
}


