/* 
   Premium Modular Tech Portfolio Theme
   Features: Layered surfaces, ambient mesh gradients, mouse-reactive lighting
*/

:root {
  /* Colors - Lighter Dark Theme (Zinc/Slate base) */
  --bg-primary: #09090b;
  /* Base dark */
  --surface-1: rgba(24, 24, 27, 0.6);
  /* Level 1 card */
  --surface-2: rgba(39, 39, 42, 0.7);
  /* Level 2 card */
  --surface-3: rgba(63, 63, 70, 0.8);
  /* Highlight/Hover */

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-glow: rgba(255, 255, 255, 0.1);
  --accent-color: #38bdf8;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-highlight: rgba(255, 255, 255, 0.15);

  /* Elevations & Shadows */
  --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.02);
  --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Mesh Gradient */
.scroll-indicator {
  display: none;
}

.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary);
}

.ambient-blob {
  position: absolute;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 40%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.05) 0%, transparent 70%);
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(5%, 5%) scale(1.1);
  }
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-secondary);
}

/* Layout */
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 600;
}

header h1 a {
  display: inline-block;
  transition: transform var(--transition-normal), color var(--transition-fast);
}

header h1 a:hover {
  transform: scale(1.05) rotate(-2deg);
  color: var(--accent-color) !important;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface-1);
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-inner);
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0.5rem;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #18181b;
  min-width: 220px;
  box-shadow: var(--shadow-float);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
  z-index: 1000;
  margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease;
}

.nav-dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: left;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-content a:hover {
  background-color: var(--surface-2);
  color: var(--text-primary);
}

#themeToggle {
  display: none;
}

/* Hero */
#hero {
  padding-top: 14rem;
  padding-bottom: 8rem;
  text-align: center;
  position: relative;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-inner);
  animation: floatBadge 6s ease-in-out infinite alternate;
}

.badge:nth-child(2) {
  animation-delay: -2s;
}

.badge:nth-child(3) {
  animation-delay: -4s;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10px);
  }
}

#hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom right, #FFFFFF, #A1A1AA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

/* Mouse Reactive Cards */
.card {
  background: var(--surface-1);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-inner), 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

/* Inner card layers for extra depth */
.card-inner-layer {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}



.project-card:has(.project-content.collapsed) {
  padding: 1.25rem 1.5rem;
}

.project-card:has(.project-content.collapsed) .product-header {
  margin-bottom: 0;
}

.cert-card h4 {
  margin-bottom: 0.75rem;
}

/* Mouse Spotlight Effects */
.card::before,
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Border Glow */
.card::before {
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      var(--border-highlight),
      transparent 40%);
  z-index: 3;
}

/* Inner Surface Glow */
.card::after {
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(255, 255, 255, 0.03),
      transparent 40%);
  z-index: 1;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-float), var(--shadow-inner);
}

.card>* {
  z-index: 2;
  position: relative;
}

/* Products/Projects Override */
.product-showcase {
  margin-bottom: 3rem;
}

.product-showcase .card {
  padding: 3rem;
}

.project-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

/* Grid Animation for Project Lists */
.project-list-wrapper {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 1;
}

.project-list-wrapper.collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.project-group:has(.project-list-wrapper.collapsed) {
  margin-bottom: 1rem;
}

.project-group:has(.project-list-wrapper.collapsed) .project-subsection-title {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.project-list-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


.project-subsection-title {
  font-size: 1.5rem;
  margin: 3rem 0 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-highlight);
  color: var(--text-primary);
  display: inline-block;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.product-title,
.project-title {
  display: flex;
  flex-direction: column;
}

.product-title h4,
.project-title h4 {
  margin-bottom: 0;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-metrics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.metric {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  min-width: 120px;
  text-align: center;
  flex: 1;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.2rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Pills */

.project-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-highlight);
}

.project-pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}




/* Grid Animation for Project Content */
.project-content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin 0.35s ease;
  opacity: 1;
  margin-top: 1.5rem;
}

.project-content.collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.content-inner {
  overflow: hidden;
}

.project-pill-imd {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.project-pill-mysphere {
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.project-pill-vit {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

/* Timeline Experience inside Cards */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-subtle) 10%, var(--border-subtle) 90%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.35rem;
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--surface-1);
  border: 2px solid var(--text-secondary);
  transition: var(--transition-normal);
  z-index: 2;
}

.timeline-dot.dot-imd {
  border-color: #38bdf8;
}

.timeline-dot.dot-mysphere {
  border-color: #a78bfa;
}

.timeline-item:hover .timeline-dot {
  background: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.timeline-item:hover .timeline-dot.dot-imd {
  background: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.timeline-item:hover .timeline-dot.dot-mysphere {
  background: #a78bfa;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: monospace;
}

.timeline-content h4 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.timeline-content p,
.timeline-content ul li {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Tech Stacks */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-tag {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.tech-tag:hover {
  background: var(--surface-3);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-grid,
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-card {
  flex: 1 1 300px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition-normal);
  text-align: center;
}

.contact-card-wide {
  grid-column: 1 / -1;
}

.cert-card-wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .cert-card-wide {
    grid-column: span 2;
  }
}

.toggle-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 0.3s ease, background 0.2s ease;
  flex-shrink: 0;
}

.toggle-btn:hover {
  background: var(--surface-3);
}



.mini-project h5 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.mini-project h5 span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Dashboard Resume */
.dashboard-resume {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.resume-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.resume-stat-card {
  background: var(--surface-2);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.resume-stat-card h3 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.resume-stat-card p {
  font-size: 0.85rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.download-btn {
  width: 100%;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 1.25rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  margin-top: 1rem;
}

.download-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.2);
}

ul {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.75rem;
}

/* Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggering for grids */
.grid-2 .reveal-up:nth-child(1) {
  transition-delay: 0.1s;
}

.grid-2 .reveal-up:nth-child(2) {
  transition-delay: 0.2s;
}

.grid-3 .reveal-up:nth-child(1) {
  transition-delay: 0.1s;
}

.grid-3 .reveal-up:nth-child(2) {
  transition-delay: 0.2s;
}

.grid-3 .reveal-up:nth-child(3) {
  transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  #hero h1 {
    font-size: 3rem;
  }

  .grid-2,
  .grid-3,
  .dashboard-resume {
    grid-template-columns: 1fr;
  }

  .product-header {
    flex-direction: column;
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .contact-card {
    flex: 1 1 100%;
  }
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Custom Context Menu */
.custom-context-menu {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7), var(--shadow-inner);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  transform: scale(0.95);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.custom-context-menu.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.context-menu-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.context-menu-item:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

/* Back to Top FAB */
.fab-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.fab-back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-back-to-top:hover {
  background: var(--surface-3);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), var(--shadow-inner);
}

/* Premium Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-brand h3 a,
.footer-bottom p a {
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.footer-brand h3 a:hover,
.footer-bottom p a:hover {
  color: var(--text-primary) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 4rem;
  justify-content: flex-end;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
/* Toggle Button Rotation Animations */
.project-section-heading .toggle-btn[data-action="expand"],
.project-subsection-title .toggle-btn[data-action="expand"] {
  transform: rotate(180deg);
}

.project-header .toggle-btn[data-action="collapse"] {
  transform: rotate(180deg);
}
