:root {
  --primary-color: #0A192F;
  --accent-cyan: #00E5FF;
  --accent-purple: #7B1FA2;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --gradient-1: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
  --gradient-2: linear-gradient(to right, #00d2ff 0%, #3a7bd5 100%);
  --blur-bg: rgba(10, 25, 47, 0.7);
  --card-shadow: 0 8px 32px 0 rgba(0, 229, 255, 0.1);
}

/* Header */
header {
  background: rgba(5, 0, 21, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  font-family: 'Poppins', sans-serif;
}

/* Navigation */
nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

nav ul li a,
nav ul li a:visited {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  color: var(--accent-cyan);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.header-cta {
  background: var(--glass-bg);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.header-cta:hover {
  background: var(--accent-cyan);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

/* Global Styles */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.24) 0 4px, transparent 5px),
    radial-gradient(circle at 13% 19%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.2) 0 6px, transparent 7px),
    radial-gradient(circle at 72% 74%, rgba(255, 255, 255, 0.18) 0 5px, transparent 6px),
    radial-gradient(circle at 35% 82%, rgba(255, 255, 255, 0.15) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 88%, rgba(255, 255, 255, 0.16) 0 4px, transparent 5px),
    radial-gradient(circle at 52% 46%, rgba(255, 255, 255, 0.14) 0 3px, transparent 4px);
  opacity: 0.6;
}

body {
  background: linear-gradient(135deg, var(--primary-color), #000000);
  font-family: 'Inter', sans-serif;
  color: white;
  margin: 0;
  line-height: 1.6;
  font-size: 18px;
  padding: 0px;
}

/* Link Styles */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

/* Main */
main {

  border-radius: 25px;
  background: #aaaaaa;
  padding: 20px;
  margin: 20px;

}

/* Hero section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  background: rgba(10, 25, 47, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin: 2rem;
}

.hero h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: glow 2s ease-in-out infinite alternate;
}

/* Animations */
@keyframes glow {
  from {
    text-shadow: 0 0 10px var(--accent-cyan),
                 0 0 20px var(--accent-cyan);
  }
  to {
    text-shadow: 0 0 20px var(--accent-cyan),
                 0 0 30px var(--accent-cyan),
                 0 0 40px var (--accent-cyan);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Project grid */
.projectlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  padding: 2rem;
}

.projectlist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projectlist li {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.projectlist li:hover {
  transform: translateY(-5px);
}

.project-card {
  position: relative;
  background: var(--glass-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.project-content {
  padding: 1.5rem;
  background: linear-gradient(to top, var(--primary-color) 0%, transparent 100%);
}

/* Resume Styles */
.resume-container {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--blur-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 3rem;
}

.resume-header {
  text-align: center;
  margin-bottom: 2rem;
}

.resume-header h1 {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.resume-header p {
  color: #fff;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #888;
}

.section-title {
  color: var(--accent-cyan);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid var(--accent-cyan);
  padding-bottom: 0.5rem;
}

.experience-item {
  margin-bottom: 1.5rem;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.company-name {
  font-weight: bold;
  color: #fff;
}

.job-location {
  color: #888;
  font-size: 0.9rem;
}

.job-title {
  color: var(--accent-cyan);
  font-size: 1rem;
  margin: 0.25rem 0;
}

.experience-list {
  list-style-type: none;
  padding-left: 1.5rem;
}

.experience-list li {
  position: relative;
  margin-bottom: 0.5rem;
  color: #ddd;
}

.experience-list li::before {
  content: "•";
  color: var(--accent-cyan);
  position: absolute;
  left: -1.5rem;
}

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

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--gradient-2);
}

/* Footer */
footer {
  background-color: #050015;
  color: white;
  text-align: center;
  padding: 10px;
} /* Footer */

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.footer-sections {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1rem;
  text-align: left;
}

.footer-section {
  min-width: 150px;
}

.footer-section h4 {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-section p {
  font-size: 0.8rem;
  color: #888;
  margin: 0.2rem 0;
}

.footer-section a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-cyan);
}

.footer-nav {
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

.copyright, .last-updated {
  font-size: 0.8rem;
  color: #666;
}

/* Remove or comment out the connect button styles from footer */
/* .connect-button { ... } */
/* .connect-button:hover { ... } */
/* .connect-button a { ... } */

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  /* Adjust styles for smaller screens */
  /* ... */
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: 1rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  filter: drop-shadow(0 0 4px var(--accent-cyan));
  transform: translateY(-2px);
}

.social-icon path {
  fill: #fff;
}

.header-right {
  display: flex;
  align-items: center;
}

.footer-section .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-section .social-icon {
  width: 16px;
  height: 16px;
}

.footer-section .social-icon path {
  fill: #888;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-username {
  font-size: 0.8rem;
  color: #888;
}

/* Modern Layout Components */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}

@media (max-width: 920px) {
  .split-section {
    grid-template-columns: 1fr;
  }
}

.split-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--blur-bg);
  backdrop-filter: blur(20px);
  z-index: -1;
  border-radius: 30px;
  opacity: 0.3;
}

.card-header-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.involvement-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  padding: 5px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.involvement-card h2 {
  margin: 0.5rem 0 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--accent-ice);
}

.involvement-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.floating-element {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(0, 229, 255, 0.2));
}

/* Modern Card Design */
.modern-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0.1;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.modern-card:hover::before {
  transform: translateX(0);
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.2;
}

/* Interactive Elements */
.skill-badge {
  background: var(--glass-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Placeholder Styles */
.placeholder-video {
  width: 100%;
  height: 400px;
  background: var(--glass-bg);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.placeholder-3d {
  width: 100%;
  height: 500px;
  background: var(--glass-bg);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

/* Project Layout Styles */
.projects-container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.featured-project {
  margin-bottom: 2rem;
}

.featured-project .modern-card {
  padding: 0;
  background: var(--blur-bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Changed to 4 columns */
  gap: 1.5rem; /* Reduced gap to accommodate more items */
  width: 100%;
}

.project-grid .modern-card {
  min-width: 250px; /* Added minimum width */
  /* ...existing code... */
}

/* Add responsive breakpoints for the grid */
@media (max-width: 1400px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.project-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--glass-bg);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.project-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-info {
  padding: 1.5rem;
  flex: 1;
}

.tech-stack {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: var(--glass-bg);
  border-radius: 15px;
  color: var(--accent-cyan);
}

/* Project Detail Pages */
.project-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.project-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.project-hero h1 {
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  animation: glow 2s ease-in-out infinite alternate;
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-main-image {
  border-radius: 20px;
  overflow: hidden;
}

.project-main-image img {
  width: 100%;
  height: auto;
}

.model-viewer {
  background: var(--glass-bg);
  border-radius: 20px;
  min-height: 400px;
}

.project-description {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.project-navigation a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-navigation a:hover {
  transform: translateX(-5px);
}

.project-navigation .next-project:hover {
  transform: translateX(5px);
}

/* Project Detail Page */
.project-detail {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.project-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.project-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-gallery {
    width: 100%;
}

.project-main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-description {
    line-height: 1.6;
}

.project-description h2 {
    margin: 2rem 0 1rem;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .project-content {
        grid-template-columns: 3fr 2fr;
    }
}
/* Header refresh: sticky + collapsible mobile drawer */
.site-header {
  background: rgba(5, 0, 21, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 300;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
  margin-right: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.site-header .navbar {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-header .navbar ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}

.site-header .navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.site-header .navbar a:hover {
  color: var(--accent-cyan);
}

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hire-status {
  font-size: 0.78rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  color: #c9fbff;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.quick-resume {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.78rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}

.quick-resume:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.45);
}

.site-header .social-links {
  margin-left: 0;
  gap: 0.65rem;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav-drawer {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(5, 0, 21, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.35rem;
  }

  .site-header.is-open .nav-drawer {
    display: flex;
  }

  .site-header .navbar {
    width: 100%;
    justify-content: flex-start;
  }

  .site-header .navbar ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-header .header-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-header.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

.site-header {
  transition: transform 0.25s ease;
}

@media (max-width: 920px) {
  .site-header.mobile-collapsed {
    transform: translateY(-105%);
  }
}

/* ===== 2026 visual refresh: cosmic noir palette ===== */
:root {
  --bg-void: #07050f;
  --bg-night: #0d1021;
  --bg-panel: #151a2f;
  --bg-panel-2: #1a1833;
  --ink-soft: #cec8bf;
  --ink-muted: #a39fb8;
  --line-soft: rgba(223, 217, 206, 0.16);
  --accent-lilac: #9383d8;
  --accent-violet: #704ca8;
  --accent-ice: #bfc8e2;
  --shadow-deep: 0 16px 45px rgba(2, 0, 12, 0.5);
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.24) 0 4px, transparent 5px),
    radial-gradient(circle at 13% 19%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.2) 0 6px, transparent 7px),
    radial-gradient(circle at 72% 74%, rgba(255, 255, 255, 0.18) 0 5px, transparent 6px),
    radial-gradient(circle at 35% 82%, rgba(255, 255, 255, 0.15) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 88%, rgba(255, 255, 255, 0.16) 0 4px, transparent 5px),
    radial-gradient(circle at 52% 46%, rgba(255, 255, 255, 0.14) 0 3px, transparent 4px);
  opacity: 0.6;
}

body {
  background:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.45), transparent 45%),
    radial-gradient(1.5px 1.5px at 25% 85%, rgba(242,227,201,0.45), transparent 50%),
    radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,0.4), transparent 45%),
    radial-gradient(2px 2px at 85% 60%, rgba(191,200,226,0.42), transparent 50%),
    linear-gradient(160deg, var(--bg-void) 0%, #090817 35%, #12152b 68%, #111025 100%);
  color: var(--ink-soft);
}

.site-header {
  background: rgba(9, 8, 22, 0.78);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .navbar a,
.site-header .navbar a:visited,
.header-right,
.header-cta,
.quick-resume {
  color: var(--ink-soft);
}

.header-cta,
.quick-resume,
.hire-status {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
}

.header-cta:hover,
.quick-resume:hover {
  background: rgba(147, 131, 216, 0.18);
  color: #f5f2ea;
}

main,
.hero,
.resume-container,
.modern-card,
.project-card {
  background: linear-gradient(150deg, rgba(19, 22, 42, 0.88), rgba(19, 18, 34, 0.82));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-deep);
}

.section-title,
.hero h2,
.resume-header h1,
.gradient-text {
  color: #dfd6c8;
  border-color: rgba(223, 214, 200, 0.35);
  text-shadow: none;
}

/* Project page - larger trading card style */
.projects-container {
  max-width: 1280px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.2rem;
}

.projects-hero {
  margin: 0 auto 1.3rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(27, 23, 47, 0.9), rgba(14, 18, 36, 0.85));
}

.projects-hero h1 {
  margin: 0 0 0.35rem;
  color: #f0e6d8;
}

.projects-hero p {
  margin: 0;
  color: var(--ink-muted);
}

.trading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.trading-card {
  position: relative;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 202, 190, 0.26);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.44);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  text-decoration: none;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  background-size: cover;
  background-position: center;
}

.trading-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 22, 0.1) 0%, rgba(7, 5, 14, 0.95) 100%);
  z-index: -1;
  transition: opacity 0.4s ease;
}

.trading-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.6s;
  z-index: 1;
}

.trading-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.trading-card:hover::after {
  left: 150%;
}

.card-kicker {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3e6d4;
  background: rgba(8, 8, 15, 0.66);
  border: 1px solid rgba(243, 230, 212, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.card-overlay h3 {
  margin: 0 0 0.3rem;
  color: #f6eee4;
  font-size: 1.28rem;
}

.card-overlay p {
  margin: 0;
  color: #d9d2c7;
  font-size: 0.95rem;
  max-width: 34ch;
}

.card-market { background: radial-gradient(circle at 20% 15%, rgba(140, 130, 217, 0.42), transparent 40%), url('../assets/images/market.jpg'), linear-gradient(130deg, #15152d, #1d2b43, #191327); }
.card-skate { background: radial-gradient(circle at 85% 20%, rgba(188, 146, 108, 0.4), transparent 35%), url('../assets/images/skate.jpg'), linear-gradient(130deg, #18162a, #27363f, #1a1426); }
.card-axial { background: radial-gradient(circle at 25% 20%, rgba(126, 172, 229, 0.35), transparent 35%), url('../assets/images/axial.jpg'), linear-gradient(135deg, #14142a, #1c2042, #151023); }
.card-helmet { background: radial-gradient(circle at 78% 15%, rgba(213, 171, 135, 0.34), transparent 35%), url('../assets/images/helmet.jpg'), linear-gradient(135deg, #17162b, #2f2d42, #1b1425); }
.card-hover { background: radial-gradient(circle at 18% 75%, rgba(134, 119, 228, 0.36), transparent 35%), url('../assets/images/hover.jpg'), linear-gradient(145deg, #141127, #232743, #1a1428); }
.card-portfolio { background: radial-gradient(circle at 83% 22%, rgba(206, 196, 174, 0.34), transparent 40%), url('../assets/images/portfolio.jpg'), linear-gradient(130deg, #1a1630, #23284a, #151525); }
.card-engine { background: radial-gradient(circle at 22% 18%, rgba(214, 113, 132, 0.3), transparent 35%), url('../assets/images/engine.jpg'), linear-gradient(140deg, #1d1528, #2d1f35, #171123); }

/* Footer refresh */
.site-footer {
  background: linear-gradient(180deg, rgba(12, 11, 24, 0.95), rgba(7, 6, 16, 0.98));
  border-top: 1px solid var(--line-soft);
  padding: 1.6rem 1rem;
}

.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer .footer-sections {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1rem;
}

.site-footer .footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer .footer-section h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #eee0cd;
}

.site-footer .footer-nav ul,
.site-footer .footer-inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer .footer-section .social-links {
  margin: 0;
}

.site-footer a,
.site-footer p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #f1e8dd;
}

@media (max-width: 700px) {
  .trading-card {
    min-height: 300px;
  }

  .site-footer .footer-sections {
    justify-content: flex-start;
    gap: 1rem;
  }

  .site-footer .footer-nav ul,
  .site-footer .footer-inline-list {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* ===== Home page modern redesign ===== */
.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero.hero-modern {
  position: relative;
  margin: 0;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: left;
  align-items: center;
  padding: 2rem 0 1.5rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #d9d0c2;
}

.hero-modern h1 {
  margin: 0.35rem 0 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
  color: #fff3df;
}

.hero-modern .hero-text {
  max-width: 60ch;
  color: #d8d3cc;
  font-size: 1.03rem;
}

.cta-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a8ad8, #7052b0);
  color: #f8f4ec;
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(223, 217, 206, 0.22);
}

.cta-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.hero-media {
  display: grid;
  gap: 1rem;
}

.mission-graphic-wrap,
.mission-graphic-wrap {
  margin: 0;
}

.headshot-slot {
  z-index: 10;
}

.mission-graphic {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.3);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mission-graphic:hover {
  opacity: 1;
  transform: scale(1.05);
}

.headshot-image {
  width: 100%;
  max-height: min(55vh, 480px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  border: 2px solid rgba(147, 131, 216, 0.5);
  box-shadow: 
    0 0 40px rgba(147, 131, 216, 0.3),
    0 20px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.4s ease;
}

.headshot-image:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 0 60px rgba(147, 131, 216, 0.45),
    0 30px 70px rgba(0, 0, 0, 0.7);
  border-color: #fff;
}

.quick-projects {
  margin-top: 2rem;
}

.quick-projects h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9d0c2;
}

.quick-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.project-tile {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3ecdf;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-tile:hover {
  transform: translateY(-2px);
  background: rgba(154, 138, 216, 0.25);
}

@media (max-width: 920px) {
  .hero.hero-modern {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    padding-top: 1rem;
  }
}

.mission-patch-image {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Added styles for images and media requested in notes.txt */
.hero-video-container {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-soft);
  margin: 1.5rem 0;
}

.hero-video-container video {
  width: 100%;
  display: block;
}

.boot-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.site-footer .footer-section {
  align-items: flex-start;
}

.site-footer .footer-nav {
  width: 100%;
}

.site-footer .footer-nav ul {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
}

@media (max-width: 700px) {
  .mission-patch {
    font-size: 0.72rem;
  }
}

/* ===== follow-up: denser twinkling starfield + strict left footer alignment ===== */
@keyframes starsTwinkle {
  0%, 100% { opacity: 0.4; }
  25% { opacity: 0.75; }
  50% { opacity: 0.55; }
  75% { opacity: 0.9; }
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 4% 8%, rgba(255,255,255,0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 9% 21%, rgba(255,255,255,0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 13% 44%, rgba(255,255,255,0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 70%, rgba(255,255,255,0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 25% 86%, rgba(255,255,255,0.15) 0 1px, transparent 2px),
    radial-gradient(circle at 31% 12%, rgba(255,255,255,0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 28%, rgba(255,255,255,0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 57%, rgba(255,255,255,0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 74%, rgba(255,255,255,0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 18%, rgba(255,255,255,0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 67% 40%, rgba(255,255,255,0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 73% 62%, rgba(255,255,255,0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 81% 29%, rgba(255,255,255,0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 53%, rgba(255,255,255,0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 94% 82%, rgba(255,255,255,0.2) 0 2px, transparent 3px);
  opacity: 0.75;
  animation: starsTwinkle 7.5s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(circle at 7% 32%, rgba(255,255,255,0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 16% 55%, rgba(255,255,255,0.24) 0 1.5px, transparent 3px),
    radial-gradient(circle at 24% 9%, rgba(255,255,255,0.32) 0 1px, transparent 2px),
    radial-gradient(circle at 33% 37%, rgba(255,255,255,0.28) 0 1.5px, transparent 3px),
    radial-gradient(circle at 41% 80%, rgba(255,255,255,0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 49% 22%, rgba(255,255,255,0.3) 0 1.5px, transparent 3px),
    radial-gradient(circle at 58% 48%, rgba(255,255,255,0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 72%, rgba(255,255,255,0.24) 0 1.5px, transparent 3px),
    radial-gradient(circle at 75% 10%, rgba(255,255,255,0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 34%, rgba(255,255,255,0.3) 0 1.5px, transparent 3px),
    radial-gradient(circle at 92% 61%, rgba(255,255,255,0.26) 0 1px, transparent 2px);
  opacity: 0.45;
  animation: starsTwinkle 4.8s ease-in-out infinite reverse;
}

.site-footer .footer-content {
  text-align: left;
}

.site-footer .footer-sections {
  justify-content: flex-start;
}

.site-footer .footer-section,
.site-footer .footer-section h4,
.site-footer .footer-nav,
.site-footer .footer-nav ul,
.site-footer .footer-inline-list {
  text-align: left;
}



/* Projects tab: Magnolia card */
.card-magnolia {
  background: radial-gradient(circle at 78% 15%, rgba(214, 80, 80, 0.32), transparent 35%), url('../assets/images/magnolia.jpg'), linear-gradient(135deg, #151322, #2b1b28, #150f20);
}
.card-hestia {
  background: radial-gradient(circle at 30% 20%, rgba(255, 140, 0, 0.35), transparent 40%), url('../assets/images/hestia.jpg'), linear-gradient(135deg, #1a1a2e, #2a1a35, #150f20);
  background-position: center 20%;
}

/* Home hero media guardrails (prevents oversized image rendering) */
.hero-media {
  width: 100%;
  max-width: 430px;
  justify-self: center;
}

.mission-graphic-wrap {
  width: 100%;
  max-width: 430px;
}

.mission-graphic {
  max-height: min(52vh, 430px);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
}

/* Header nav centering on desktop: center page links relative to viewport */
@media (min-width: 921px) {
  .site-header .nav-drawer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
  }

  .site-header .navbar {
    grid-column: 2;
    justify-self: center;
    flex: initial;
  }

  .site-header .header-right {
    grid-column: 3;
    justify-self: end;
  }
}
