/* ===================================
   GitHub-Inspired Portfolio - CSS Variables
   =================================== */

:root {
  /* GitHub Light Theme Colors */
  --gh-canvas-default: #ffffff;
  --gh-canvas-subtle: #f6f8fa;
  --gh-border-default: #d0d7de;
  --gh-border-muted: #d8dee4;

  --gh-fg-default: #1f2328;
  --gh-fg-muted: #656d76;
  --gh-fg-subtle: #6e7781;

  --gh-accent-fg: #0969da;
  --gh-accent-emphasis: #0969da;
  --gh-accent-secondary: #0a7ea4;
  --gh-success-fg: #1a7f37;
  --gh-success-emphasis: #2da44e;
  --gh-warning-fg: #d4a72c;
  --gh-warning-emphasis: #fbbf24;
  --gh-coral-fg: #f78166;
  --gh-purple-fg: #d2a8ff;

  /* Enhanced shadows for depth */
  --gh-shadow-small: 0 1px 0 rgba(27, 31, 36, 0.04);
  --gh-shadow-medium: 0 3px 6px rgba(140, 149, 159, 0.15);
  --gh-shadow-large: 0 8px 24px rgba(140, 149, 159, 0.2);
  --gh-shadow-glow: 0 0 20px rgba(47, 129, 247, 0.3);
  --gh-shadow-success: 0 0 20px rgba(46, 160, 67, 0.3);

  /* Font System */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;
  --space-12: 128px;
  --space-20: 200px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* GitHub Dark Theme */
[data-theme="dark"] {
  --gh-canvas-default: #0d1117;
  --gh-canvas-subtle: #161b22;
  --gh-border-default: #30363d;
  --gh-border-muted: #21262d;

  --gh-fg-default: #e6edf3;
  --gh-fg-muted: #7d8590;
  --gh-fg-subtle: #6e7681;

  --gh-accent-fg: #2f81f7;
  --gh-accent-emphasis: #1f6feb;
  --gh-accent-secondary: #0891b2;
  --gh-success-fg: #3fb950;
  --gh-success-emphasis: #238636;
  --gh-warning-fg: #eab308;
  --gh-warning-emphasis: #fbbf24;
  --gh-coral-fg: #ff8a73;
  --gh-purple-fg: #d2a8ff;

  --gh-shadow-small: 0 0 transparent;
  --gh-shadow-medium: 0 3px 6px #010409;
  --gh-shadow-large: 0 8px 24px #010409;
  --gh-shadow-glow: 0 0 30px rgba(47, 129, 247, 0.4);
  --gh-shadow-success: 0 0 30px rgba(63, 185, 80, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--gh-canvas-default);
  color: var(--gh-fg-default);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--gh-fg-default);
}

a {
  text-decoration: none;
  color: var(--gh-accent-fg);
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.2em 0.4em;
  background: var(--gh-canvas-subtle);
  border-radius: var(--radius-sm);
}

/* ===================================
   Utilities
   =================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-5);
  }
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  position: sticky;
  top: var(--space-2);
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--gh-border-default);
  border-radius: 10px;
  z-index: 100;
  transition: all var(--transition);
  backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.04);
  left: 0;
  right: 0;
}

[data-theme="dark"] .header {
  background: rgba(13, 17, 23, 0.85);
  box-shadow: 0 1px 0 rgba(240, 246, 252, 0.06);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  gap: var(--space-3);
}

.nav__logo {
  display: flex;
  align-items: center;
  color: var(--gh-fg-default);
  transition: all var(--transition-bounce);
  position: relative;
}

.nav__logo img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.nav__logo:hover {
  transform: scale(1.05) rotate(-5deg);
  text-decoration: none;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: var(--space-4);
  align-items: center;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gh-fg-default);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gh-success-fg), var(--gh-accent-fg));
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--gh-success-fg);
  text-decoration: none;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--gh-canvas-subtle);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gh-fg-default);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--gh-canvas-default);
  border-color: var(--gh-accent-fg);
  transform: scale(1.1) rotate(10deg);
  box-shadow: var(--gh-shadow-medium);
}

.theme-icon {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
  animation: rotateIn 0.3s ease;
}

@keyframes rotateIn {
  from {
    transform: rotate(-180deg) scale(0);
  }
  to {
    transform: rotate(0) scale(1);
  }
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  background: var(--gh-fg-default);
  transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  padding: var(--space-12) 0 var(--space-10);
  position: relative;
  overflow: hidden;
}

.hero__content {
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.hero__greeting {
  font-size: 17px;
  color: var(--gh-success-fg);
  font-family: var(--font-mono);
  margin-bottom: var(--space-2);
  font-weight: 500;
  display: inline-block;
  animation: slideInLeft 0.6s ease, glow 2s ease-in-out infinite alternate;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Added glow animation to greeting */
@keyframes glow {
  from {
    text-shadow: 0 0 5px rgba(63, 185, 80, 0.5), 0 0 10px rgba(63, 185, 80, 0.3);
  }
  to {
    text-shadow: 0 0 10px rgba(63, 185, 80, 0.8), 0 0 20px rgba(63, 185, 80, 0.4);
  }
}

.hero__name {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: var(--gh-fg-default);
  line-height: 1.1;
  animation: slideInUp 0.6s ease 0.1s backwards, float 3s ease-in-out infinite;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Added floating animation to hero name */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero__tagline {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gh-fg-muted) 0%, var(--gh-fg-subtle) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
  line-height: 1.1;
  animation: slideInUp 0.6s ease 0.2s backwards, gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

/* Added animated gradient shift to tagline */
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero__description {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--gh-fg-muted);
  margin-bottom: var(--space-5);
  animation: slideInUp 0.6s ease 0.3s backwards;
}

.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  animation: slideInUp 0.6s ease 0.4s backwards;
}

.hero__decorations {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background-image: linear-gradient(var(--gh-border-muted) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--gh-border-muted) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: 0.4;
  pointer-events: none;
  animation: gridFloat 20s ease-in-out infinite, gridPulse 4s ease-in-out infinite;
}

/* Added pulsing effect to grid */
@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes gridFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-10px, 10px) rotate(1deg);
  }
}

.hero__blob {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gh-success-fg) 0%, transparent 70%);
  opacity: 0.08;
  filter: blur(60px);
  animation: blobFloat 8s ease-in-out infinite, blobMorph 10s ease-in-out infinite;
}

/* Added morphing animation to blob */
@keyframes blobMorph {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

/* Added floating particles to hero */
.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gh-success-fg);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-delay: 2s;
  animation-duration: 15s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-delay: 4s;
  animation-duration: 18s;
}

.particle:nth-child(4) {
  left: 60%;
  animation-delay: 1s;
  animation-duration: 14s;
}

.particle:nth-child(5) {
  left: 80%;
  animation-delay: 3s;
  animation-duration: 16s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Added ripple effect on click */
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.8s, height 0.8s, opacity 0.8s;
  opacity: 0;
}

.btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 0.3;
  transition: 0s;
}

.btn-primary {
  background: var(--gh-success-emphasis);
  color: #ffffff;
  border-color: var(--gh-success-emphasis);
  box-shadow: 0 4px 12px rgba(46, 160, 67, 0.3);
  animation: buttonPulse 2s ease-in-out infinite;
}

/* Added subtle pulse animation to primary button */
@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(46, 160, 67, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(46, 160, 67, 0.5);
  }
}

.btn-primary:hover {
  background: var(--gh-success-fg);
  border-color: var(--gh-success-fg);
  text-decoration: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(46, 160, 67, 0.4), var(--gh-shadow-success);
  animation: none;
}

.btn-secondary {
  background: transparent;
  color: var(--gh-fg-default);
  border-color: var(--gh-border-default);
}

.btn-secondary:hover {
  background: var(--gh-canvas-subtle);
  border-color: var(--gh-accent-fg);
  color: var(--gh-accent-fg);
  text-decoration: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--gh-shadow-medium);
}

/* ===================================
   Section Styling
   =================================== */
section {
  padding: var(--space-10) 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--gh-success-fg);
  text-shadow: 0 0 20px rgba(63, 185, 80, 0.3);
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--gh-fg-default);
  flex-shrink: 0;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gh-border-default), transparent);
  margin-left: var(--space-3);
}

/* ===================================
   About Section
   =================================== */
.about {
  background: var(--gh-canvas-default);
}

.about__content {
  display: grid;
  gap: var(--space-7);
}

.about__text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gh-fg-muted);
  margin-bottom: var(--space-3);
}

.about__text strong {
  color: var(--gh-fg-default);
  font-weight: 700;
}

.about__tech {
  margin-top: var(--space-5);
}

.about__tech p {
  margin-bottom: var(--space-3);
  font-size: 16px;
  font-weight: 600;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  list-style: none;
  font-family: var(--font-mono);
  font-size: 14px;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gh-fg-muted);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s ease forwards;
}

.tech-list li:nth-child(1) {
  animation-delay: 0.1s;
}
.tech-list li:nth-child(2) {
  animation-delay: 0.15s;
}
.tech-list li:nth-child(3) {
  animation-delay: 0.2s;
}
.tech-list li:nth-child(4) {
  animation-delay: 0.25s;
}
.tech-list li:nth-child(5) {
  animation-delay: 0.3s;
}
.tech-list li:nth-child(6) {
  animation-delay: 0.35s;
}

.tech-list li:hover {
  background: var(--gh-canvas-subtle);
  transform: translateX(4px);
  color: var(--gh-success-fg);
}

.tech-list li::before {
  content: "▹";
  color: var(--gh-success-fg);
  font-size: 20px;
  transition: var(--transition);
}

.tech-list li:hover::before {
  transform: translateX(3px);
}

.about__image {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gh-border-default);
  transition: all var(--transition);
}

.image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gh-success-fg) 0%, var(--gh-accent-fg) 100%);
  opacity: 0.1;
  z-index: 1;
  transition: var(--transition);
}

.image-wrapper:hover::before {
  opacity: 0.15;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(30%);
  transition: var(--transition);
}

.image-wrapper:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.image-border {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--gh-success-fg);
  border-radius: var(--radius-lg);
  z-index: -1;
  transition: all var(--transition);
}

.image-wrapper:hover .image-border {
  top: 12px;
  left: 12px;
  border-color: var(--gh-accent-fg);
}

@media (min-width: 768px) {
  .about__content {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-9);
  }

  .tech-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   Projects Section
   =================================== */
.projects {
  background: var(--gh-canvas-default);
  padding-bottom: var(--space-8);
  padding-top: var(--space-8);
}

/* Added fade-in animations for all sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for child elements */
.fade-in-section.is-visible > * {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-section.is-visible > *:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-section.is-visible > *:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-section.is-visible > *:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in-section.is-visible > *:nth-child(4) {
  animation-delay: 0.4s;
}
.fade-in-section.is-visible > *:nth-child(5) {
  animation-delay: 0.5s;
}

/* Added accordion-based project layout with expandable sections */
.projects__accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Enhanced project accordion with better image styling and colors */
.project-accordion {
  background: var(--gh-canvas-default);
  border: 2px solid var(--gh-border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-accordion:nth-child(1) {
  animation-delay: 0.1s;
}
.project-accordion:nth-child(2) {
  animation-delay: 0.2s;
}
.project-accordion:nth-child(3) {
  animation-delay: 0.3s;
}
.project-accordion:nth-child(4) {
  animation-delay: 0.4s;
}

.project-accordion::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 10;
  pointer-events: none;
}

.project-accordion:hover {
  border-color: var(--gh-accent-emphasis);
  box-shadow: 0 12px 40px rgba(31, 111, 235, 0.15), 0 0 0 1px var(--gh-accent-emphasis);
  transform: translateY(-6px);
}

.project-accordion:hover::before {
  left: 100%;
}

.project-accordion.active {
  border-color: var(--gh-success-fg);
  box-shadow: 0 20px 60px rgba(46, 160, 67, 0.25), 0 0 0 2px var(--gh-success-fg), var(--gh-shadow-success);
}

.project-accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
  gap: var(--space-3);
  flex-wrap: wrap;
  background: var(--gh-canvas-subtle);
}

.project-accordion__header:hover {
  background: var(--gh-canvas-default);
}

.project-accordion__title-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 200px;
}

.project-accordion__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--gh-fg-muted);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: var(--gh-canvas-default);
  border-radius: var(--radius-sm);
}

.project-accordion.active .project-accordion__icon {
  transform: rotate(90deg);
  color: var(--gh-success-fg);
  background: rgba(63, 185, 80, 0.1);
}

.project-accordion__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gh-fg-default);
  margin: 0;
  transition: var(--transition);
}

.project-accordion__header:hover .project-accordion__title {
  color: var(--gh-accent-fg);
}

.project-accordion__badge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  position: relative;
}

.project-accordion__badge.featured {
  background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(46, 160, 67, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(46, 160, 67, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(46, 160, 67, 0.6);
  }
}

.project-accordion__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.project-accordion__status {
  font-size: 13px;
  font-family: var(--font-mono);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1.5px solid;
}

.project-accordion__status.completed {
  background: rgba(46, 160, 67, 0.12);
  border-color: var(--gh-success-fg);
  color: var(--gh-success-fg);
}

.project-accordion__status.progress {
  background: rgba(31, 111, 235, 0.12);
  border-color: var(--gh-accent-fg);
  color: var(--gh-accent-fg);
}

.project-accordion__year {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--gh-fg-muted);
  font-weight: 500;
}

/* Accordion content with smooth expand/collapse animations */
.project-accordion__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-accordion.active .project-accordion__content {
  max-height: 3000px;
  opacity: 1;
  padding: 0 var(--space-5) var(--space-6);
}

.project-accordion__grid {
  display: grid;
  gap: var(--space-7);
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .project-accordion__grid {
    grid-template-columns: 1fr 1.3fr;
  }
}

.project-accordion__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.project-accordion__subtitle {
  font-size: 17px;
  font-weight: 700;
  color: var(--gh-fg-default);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.project-accordion__subtitle::before {
  content: "▸";
  color: var(--gh-success-fg);
  font-size: 22px;
}

.project-accordion__description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gh-fg-muted);
  margin: 0;
}

/* Client requirements list with checkmark icons and hover effects */
.project-accordion__requirements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-accordion__requirements li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gh-fg-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

.project-accordion__requirements li:hover {
  background: var(--gh-canvas-subtle);
  color: var(--gh-fg-default);
  transform: translateX(6px);
  border-left-color: var(--gh-success-fg);
}

.project-accordion__requirements li svg {
  color: var(--gh-success-fg);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Enhanced tech tags with GitHub language colors */
.project-accordion__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  border: 1.5px solid;
}

.tech-tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.tech-tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Language-specific colors */
.tech-tag.html {
  background: rgba(213, 99, 45, 0.12);
  color: #d5632d;
  border-color: rgba(213, 99, 45, 0.4);
}

.tech-tag.css {
  background: rgba(62, 157, 215, 0.12);
  color: #3e9dd7;
  border-color: rgba(62, 157, 215, 0.4);
}

.tech-tag.javascript {
  background: rgba(253, 219, 68, 0.12);
  color: #fddb44;
  border-color: rgba(253, 219, 68, 0.4);
}

.tech-tag.emailjs {
  background: rgba(252, 166, 90, 0.12);
  color: #fca65a;
  border-color: rgba(252, 166, 90, 0.4);
}

.tech-tag.react {
  background: rgba(12, 169, 210, 0.12);
  color: #0ca9d2;
  border-color: rgba(12, 169, 210, 0.4);
}

.tech-tag.shopify {
  background: rgba(32, 31, 166, 0.12);
  color: #201fa6;
  border-color: rgba(32, 31, 166, 0.4);
}

.tech-tag.typescript {
  background: rgba(49, 120, 198, 0.12);
  color: #3178c6;
  border-color: rgba(49, 120, 198, 0.4);
}

.tech-tag.node {
  background: rgba(104, 160, 99, 0.12);
  color: #68a063;
  border-color: rgba(104, 160, 99, 0.4);
}

.tech-tag.style,
.tech-tag.database,
.tech-tag.payment,
.tech-tag.pagefly {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.tech-tag.firebase,
.tech-tag.redux {
  background: rgba(255, 152, 67, 0.12);
  color: #ff9843;
  border-color: rgba(255, 152, 67, 0.4);
}

/* Enhanced project links */
.project-accordion__links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  background: var(--gh-canvas-subtle);
  border: 1.5px solid var(--gh-border-default);
  border-radius: var(--radius-md);
  color: var(--gh-fg-default);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.project-link:hover {
  background: var(--gh-accent-emphasis);
  border-color: var(--gh-accent-emphasis);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 129, 247, 0.3);
  text-decoration: none;
}

.project-link svg {
  transition: var(--transition);
}

.project-link:hover svg {
  transform: scale(1.1);
}

/* Enhanced project preview section */
.project-accordion__preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.project-accordion__image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--gh-shadow-large);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.project-accordion__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.3) 0%, rgba(31, 111, 235, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.project-accordion__image::after {
  content: "🔍 Ver detalles";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
  pointer-events: none;
}

.project-accordion__image:hover::before {
  opacity: 1;
}

.project-accordion__image:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.project-accordion__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-accordion__image:hover img {
  transform: scale(1.15);
}

/* Added fade transitions for image gallery */
.project-accordion__image.fade-out {
  opacity: 0.3;
  transform: scale(0.95);
}

.project-accordion__image.fade-in {
  animation: imageReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes imageReveal {
  0% {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.project-accordion__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.project-accordion__gallery img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gh-border-default);
  cursor: pointer;
  transition: all var(--transition);
}

.project-accordion__gallery img:hover {
  border-color: var(--gh-accent-fg);
  transform: scale(1.05);
  box-shadow: var(--gh-shadow-medium);
}

/* ===================================
   Technologies Section
   =================================== */
.technologies {
  background: var(--gh-canvas-default);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.technologies__intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gh-fg-muted);
  margin-bottom: var(--space-7);
  max-width: 800px;
}

.tech-category {
  margin-bottom: var(--space-8);
  margin-top: var(--space-8);
}

.tech-category:last-child {
  margin-bottom: 0;
}

.tech-category__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 22px;
  font-weight: 700;
  color: var(--gh-fg-default);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gh-border-default);
}

.tech-category__title svg {
  color: var(--gh-success-fg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

/* Tech card hover effects */
.tech-card {
  background: var(--gh-canvas-default);
  border: 2px solid var(--gh-border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: var(--gh-success-fg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tech-card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gh-success-fg);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.tech-card:hover .tech-card__icon {
  transform: scale(1.1);
}

.tech-card__name,
.tech-card__desc {
  position: relative;
  z-index: 2;
}

.tech-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--gh-fg-default);
  transition: all 0.3s ease;
}

.tech-card:hover .tech-card__name {
  color: var(--gh-success-fg);
  text-shadow: 0 0 10px rgba(63, 185, 80, 0.5);
}

.tech-card__desc {
  font-size: 14px;
  color: var(--gh-fg-muted);
  line-height: 1.5;
  transition: all 0.3s ease;
}

.tech-card:hover .tech-card__desc {
  color: var(--gh-fg-default);
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .tech-card {
    padding: var(--space-4);
  }

  .tech-card__icon {
    width: 48px;
    height: 48px;
  }

  .tech-card__icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ===================================
   Experience Section
   =================================== */
.experience {
  background: var(--gh-canvas-subtle);
  padding-bottom: var(--space-8);
  padding-top: var(--space-8);
}

.experience__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.experience__tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--gh-border-default);
  position: relative;
}

.tab-button {
  padding: var(--space-3);
  background: transparent;
  border: none;
  text-align: left;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--gh-fg-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tab-button:hover {
  background: var(--gh-canvas-subtle);
  color: var(--gh-success-fg);
}

.tab-button.active {
  color: var(--gh-success-fg);
}

.tab-button::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--gh-success-fg);
  opacity: 0;
  transition: var(--transition);
}

.tab-button.active::before {
  opacity: 1;
}

.tab-indicator {
  position: absolute;
  left: -2px;
  width: 2px;
  height: 42px;
  background: var(--gh-success-fg);
  transition: transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.experience__panels {
  flex: 1;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel h3 {
  font-size: 22px;
  margin-bottom: var(--space-1);
  color: var(--gh-fg-default);
}

.company {
  color: var(--gh-success-fg);
  font-weight: 600;
}

.job-duration {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gh-fg-muted);
  margin-bottom: var(--space-4);
}

.job-description {
  list-style: none;
  margin-bottom: var(--space-4);
}

.job-description li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--gh-fg-muted);
  line-height: 1.6;
}

.job-description li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--gh-success-fg);
  font-size: 18px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 8px;
  background: var(--gh-canvas-default);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--radius-sm);
  color: var(--gh-success-fg);
}

@media (min-width: 768px) {
  .experience__content {
    flex-direction: row;
    gap: var(--space-7);
  }

  .experience__tabs {
    flex-direction: column;
    min-width: 200px;
  }
}
/* ====================================
   TESTIMONIALS SECTION - DOCK STYLE
==================================== */
.testimonials-section {
  padding: 100px 0;
  background: var(--gh-canvas-default);
  transition: background-color 0.3s ease;
}

.testimonials-scroll-wrapper {
  position: relative;
  margin-top: 60px;
}

.testimonials-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 10px 30px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.testimonials-container::-webkit-scrollbar {
  height: 8px;
}

.testimonials-container::-webkit-scrollbar-track {
  background: var(--gh-border-muted);
  border-radius: 10px;
}

.testimonials-container::-webkit-scrollbar-thumb {
  background: var(--gh-accent-fg);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.testimonials-container::-webkit-scrollbar-thumb:hover {
  background: var(--gh-accent-emphasis);
}

/* Testimonial Pill Card */
.testimonial-pill {
  min-width: 400px;
  max-width: 400px;
  background: var(--gh-canvas-subtle);
  border: 1px solid var(--gh-border-default);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-snap-align: start;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--gh-shadow-medium);
}

.testimonial-pill:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gh-accent-fg);
  box-shadow: var(--gh-shadow-glow);
}

/* Avatar Section */
.testimonial-avatar-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gh-accent-fg), var(--gh-success-fg));
  transition: transform 0.5s ease;
}

.testimonial-pill:hover .testimonial-avatar-wrapper {
  transform: rotate(360deg) scale(1.1);
}

.testimonial-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--gh-canvas-subtle);
  object-fit: cover;
}

/* Content Section */
.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.testimonial-header {
  text-align: center;
}

.testimonial-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--gh-fg-default);
  margin: 0 0 5px 0;
  transition: color 0.3s ease;
}

.testimonial-role {
  font-size: 14px;
  color: var(--gh-fg-muted);
  margin: 0;
  transition: color 0.3s ease;
}

/* Rating Stars */
.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 10px 0;
}

.testimonial-rating .star {
  color: var(--gh-warning-emphasis);
  font-size: 20px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.testimonial-pill:hover .testimonial-rating .star {
  animation: starBounce 0.6s ease infinite;
}

.testimonial-rating .star:nth-child(1) {
  animation-delay: 0s;
}
.testimonial-rating .star:nth-child(2) {
  animation-delay: 0.1s;
}
.testimonial-rating .star:nth-child(3) {
  animation-delay: 0.2s;
}
.testimonial-rating .star:nth-child(4) {
  animation-delay: 0.3s;
}
.testimonial-rating .star:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes starBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.2);
  }
}

/* Testimonial Text */
.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gh-fg-default);
  text-align: center;
  font-style: italic;
  margin: 0;
  transition: color 0.3s ease;
}

/* Project Tag */
.testimonial-project {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gh-accent-fg);
  font-weight: 500;
  padding: 10px 16px;
  background: rgba(47, 129, 247, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.testimonial-pill:hover .testimonial-project {
  background: var(--gh-accent-fg);
  color: #ffffff;
}

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

.testimonial-pill:hover .project-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--gh-canvas-subtle), var(--gh-canvas-default));
  border: 1px solid var(--gh-border-default);
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.scroll-indicator__content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-indicator__text {
  font-size: 12px;
  font-weight: 500;
  color: var(--gh-fg-muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.scroll-indicator__icon {
  width: 28px;
  height: 28px;
  background: var(--gh-success-fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: slideRight 1.5s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(63, 185, 80, 0.4);
}

@keyframes slideRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

.scroll-indicator:hover {
  background: var(--gh-canvas-subtle);
  border-color: var(--gh-success-fg);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 20px rgba(63, 185, 80, 0.3);
}

.scroll-indicator:hover .scroll-indicator__text {
  color: var(--gh-success-fg);
}

.scroll-indicator:hover .scroll-indicator__icon {
  animation: none;
  transform: translateX(4px);
}

/* Hide scroll indicator on mobile when not needed */
@media (max-width: 768px) {
  .testimonial-pill {
    min-width: 320px;
    max-width: 320px;
    padding: 24px;
  }

  .testimonial-avatar-wrapper {
    width: 70px;
    height: 70px;
  }

  .testimonial-name {
    font-size: 16px;
  }

  .testimonial-text {
    font-size: 14px;
  }
}

/* Responsive for very small screens */
@media (max-width: 480px) {
  .testimonial-pill {
    min-width: 280px;
    max-width: 280px;
    padding: 20px;
  }
}

/* ===================================
   Contact Section
   =================================== */
.contact {
  background: linear-gradient(180deg, var(--gh-canvas-default) 0%, var(--gh-canvas-subtle) 100%);
  border-top: 1px solid var(--gh-border-default);
  padding-bottom: var(--space-8);
  padding-top: var(--space-8);
}

.contact__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-8);
  display: grid;
  gap: var(--space-3);
}

.contact__overline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gh-success-fg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
}

.contact__title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  color: var(--gh-fg-default);
}

.contact__description {
  color: var(--gh-fg-muted);
  font-size: 17px;
  line-height: 1.8;
}

.contact__content {
  display: grid;
  gap: var(--space-7);
}

.contact__info {
  display: grid;
  gap: var(--space-4);
}

.contact__info-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--gh-canvas-default);
  border: 2px solid var(--gh-border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--gh-shadow-medium);
  transition: all var(--transition);
}

.contact__info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gh-shadow-large);
  border-color: var(--gh-accent-fg);
}

.contact__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.15), rgba(47, 129, 247, 0.15));
  color: var(--gh-success-fg);
  flex-shrink: 0;
}

.contact__info-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--gh-fg-default);
}

.contact__info-link,
.contact__info-text {
  font-size: 15px;
  color: var(--gh-fg-muted);
}

.contact__info-link {
  text-decoration: none;
  transition: var(--transition);
}

.contact__info-link:hover {
  color: var(--gh-accent-fg);
}

.contact__form {
  background: var(--gh-canvas-default);
  border: 2px solid var(--gh-border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--gh-shadow-medium);
  display: grid;
  gap: var(--space-4);
}

.form__group {
  display: grid;
  gap: var(--space-2);
}

.form__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gh-fg-default);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gh-border-default);
  border-radius: var(--radius-md);
  background: var(--gh-canvas-subtle);
  color: var(--gh-fg-default);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: all var(--transition);
}

.form__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--gh-success-fg);
  background: var(--gh-canvas-default);
  box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--gh-fg-subtle);
}

.form__error {
  display: none;
  font-size: 13px;
  color: #f85149;
  font-family: var(--font-mono);
  font-weight: 500;
}

.form__group.error .form__error {
  display: block;
}

.form__group.error .form__input,
.form__group.error .form__textarea {
  border-color: #f85149;
  box-shadow: 0 0 0 4px rgba(248, 81, 73, 0.15);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-large svg {
  transition: transform var(--transition);
}

.btn-large:hover svg {
  transform: translateX(4px);
}

.form__success {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--gh-success-fg);
  font-family: var(--font-mono);
}

.form__success.is-visible {
  display: inline-flex;
}

@media (min-width: 768px) {
  .contact__content {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-7);
  }

  .contact__info {
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .contact__form {
    padding: var(--space-4);
  }

  .btn-large {
    width: 100%;
  }
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--gh-canvas-default);
  border-top: 1px solid var(--gh-border-default);
  padding: var(--space-7) 0;
}

.footer__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  gap: var(--space-5);
  justify-items: center;
  text-align: center;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--gh-fg-muted);
  background: var(--gh-canvas-subtle);
  border: 2px solid var(--gh-border-default);
  transition: all var(--transition-bounce);
}

.footer__social a:hover {
  color: var(--gh-accent-fg);
  border-color: var(--gh-accent-fg);
  background: var(--gh-canvas-default);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(47, 129, 247, 0.3);
}

.footer__text {
  font-size: 14px;
  color: var(--gh-fg-subtle);
}

/* Scroll to top button */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gh-success-emphasis);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(46, 160, 67, 0.4);
  z-index: 99;
}

#scroll-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(46, 160, 67, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .contact__info-card,
  .footer__social a {
    transition: none;
  }
}

/* Mobile menu animation */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
  }

  .nav__toggle span {
    width: 22px;
    height: 2px;
    background: var(--gh-fg-default);
    transition: var(--transition);
    border-radius: 2px;
  }

  .nav__menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    flex-direction: column;
    background: var(--gh-canvas-default);
    padding: var(--space-5);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--gh-shadow-large);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }

  .nav__menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    font-size: 18px;
    padding: var(--space-3) 0;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .btn,
  #scroll-top {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
