:root {
  /* Colors - Custom Theme */
  --bg-dark: #0d1b2a;
  /* Deepest Navy */
  --bg-card: rgba(27, 38, 59, 0.7);
  /* Dark Blue Glass */
  --text-main: #e0e1dd;
  /* Off-white */
  --text-muted: #778da9;
  /* Muted Blue */
  --accent-primary: #778da9;
  /* Lighter Blue */
  --accent-secondary: #415a77;
  /* Slate Blue */
  --accent-glow: rgba(119, 141, 169, 0.5);
  /* Blue Glow */

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #415a77 0%, #778da9 100%);
  --gradient-text: linear-gradient(to right, #778da9, #e0e1dd);

  /* Fonts */
  --font-main: 'Outfit', sans-serif;
  /* Modern, geometric */
  --font-mono: 'JetBrains Mono', monospace;
  /* For code snippets */

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-lg: 16px;
  --radius-md: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #415a77;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #778da9;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  line-height: 1.1;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  max-width: 65ch;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* =========================================
   3. UTILITIES & ANIMATIONS
   ========================================= */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-full {
  width: 100%;
  max-width: 100%;
  padding: 0 5%;
}

.section-padding {
  padding: 120px 0;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(27, 38, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

/* Specific styling for stronger links */
.nav-link-bold {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.nav-link-bold:hover {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Remove old underline */
.nav-link::after {
  display: none;
}

/* Header Right Group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: -10px;
  /* Offset spacing */
}

.header-socials i {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.header-socials i:hover {
  color: var(--text-main);
}

.btn-primary {
  padding: 12px 32px;
  background: var(--gradient-main);
  color: #0d1b2a;
  border-radius: 8px;
  /* No pill */
  font-weight: 700;
  /* Bolder */
  font-size: 1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(119, 141, 169, 0.2);
}

.btn-outline {
  padding: 12px 32px;
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  /* No pill */
  font-weight: 700;
  /* Bolder */
  font-size: 1rem;
  transition: all var(--transition-fast);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Background Abstract Shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: 50%;
  transform: translateX(50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(119, 141, 169, 0.15) 0%, rgba(13, 27, 42, 0) 70%);
  filter: blur(80px);
  z-index: -1;
}

.hero::after {
  display: none;
}

.hero-text {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(119, 141, 169, 0.1);
  border: 1px solid rgba(119, 141, 169, 0.2);
  border-radius: 50px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 32px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 60ch;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.8s;
  margin-bottom: 60px;
  /* Space for terminal below */
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.8;
}

.skill-item:hover .skill-name {
  color: var(--text-main);
  opacity: 1;
}

.skills-icons-grid i {
  font-size: 4rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  /* Devicons are colored by default */
}

.skill-item:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

/* Hero Label Animation */
/* Hero Label Animation (New) */
.hero-label {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(119, 141, 169, 0.1);
  border: 1px solid rgba(119, 141, 169, 0.2);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-primary);
  overflow: hidden;
  height: 46px;
  /* Fixed height to prevent layout shift */
  min-width: 240px;
  /* Width to accommodate longest text */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;

  /* Initial Reveal */
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.label-text {
  position: absolute;
  /* Stack them on top of each other */
  white-space: nowrap;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.6s ease;
  opacity: 0;
  transform: translateY(100%);
}

.label-text.active {
  opacity: 1;
  transform: translateY(0);
}

.label-text.inactive {
  opacity: 0;
  transform: translateY(-100%);
}



.hero-desc {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 65ch;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.8s;
}

/* Terminal Styles */
.terminal-wrapper {
  width: 100%;
  max-width: 500px;
  height: 320px;
  background: rgba(10, 10, 14, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  /* Initial state for reveal animation */
  opacity: 0;
  transform: translateY(30px);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 8px;
  margin-right: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #fff;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.output-line {
  line-height: 1.5;
  word-break: break-word;
}

.input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt {
  color: var(--accent-primary);
  font-weight: 700;
  white-space: nowrap;
}

.cmd-keyword {
  color: var(--accent-secondary);
  font-weight: 700;
}

#terminal-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex: 1;
  outline: none;
  caret-color: var(--accent-primary);
}

/* Scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
  width: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  padding: 10px 24px;
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(224, 225, 221, 0.1);
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(224, 225, 221, 0.05);
}

/* =========================================
   MARQUEE BANNER
   ========================================= */
.marquee-strip {
  width: 100%;
  padding: 32px 0;
  /* Increased from 16px */
  background: var(--gradient-main);
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: scrollText 20s linear infinite;
  font-weight: 800;
  font-size: 1.5rem;
  /* Increased from 1.1rem */
  color: var(--text-main);
  letter-spacing: 2px;
}

.marquee-content i {
  font-size: 0.5rem;
  opacity: 0.6;
}

@keyframes scrollText {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================
   6. SKILLS SECTION
   ========================================= */




.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.skills-intro {
  /* Removed padding/bg for clean text look */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.arsenal-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-icons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.skills-icons-grid i {
  font-size: 3.5rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  filter: grayscale(100%) opacity(0.7);
}

.skills-icons-grid i:hover,
.skills-icons-grid i.active {
  transform: scale(1.2);
  filter: grayscale(0%) opacity(1);
}



@media (max-width: 768px) {
  .skills-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   8. ABOUT SECTION
   ========================================= */
.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.about-intro {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: max-content;
}

.about-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
}

.about-content p {
  margin-bottom: 24px;
  max-width: 50ch;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-intro {
    position: static;
    margin-bottom: 40px;
  }
}

.skill-pill i {
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.skill-pill:hover {
  background: rgba(119, 141, 169, 0.1);
  border-color: rgba(119, 141, 169, 0.3);
  color: var(--text-main);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(119, 141, 169, 0.15);
}

/* =========================================
   7. PROJECTS SECTION
   ========================================= */
.projects-layout {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.projects-intro {
  /* Title on top */
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (max-width: 1024px) {
  .projects-layout {
    grid-template-columns: 1fr;
  }

  .projects-intro {
    position: static;
    margin-bottom: 40px;
  }
}

/* Backend Card Specifics */
.backend-card {
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all var(--transition-smooth);
}

.backend-card:hover {
  background: rgba(27, 38, 59, 0.8);
  border-color: rgba(119, 141, 169, 0.3);
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.backend-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.project-details p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.code-preview {
  background: #000;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a9b7c6;
  overflow: hidden;
  position: relative;
}

.code-preview::before {
  content: "src/main.go";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  padding: 4px 12px;
  color: rgba(255, 255, 255, 0.6);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: auto;
}

.metric-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .backend-content {
    grid-template-columns: 1fr;
  }
}

.project-image {
  width: 100%;
  height: 240px;
  background: #1b263b;
  /* Placeholder color */
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 30px;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.project-link {
  margin-top: 20px;
  display: inline-block;
  font-weight: 600;
  color: var(--accent-primary);
}

.project-link:hover {
  color: var(--accent-secondary);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 80px;
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--text-main);
  color: var(--bg-dark);
}

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--text-main);
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 5, 7, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-nav-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-content {
    text-align: center;
    padding: 0 20px;
  }

  .hero-actions {
    justify-content: center;
  }

  .section-padding {
    padding: 80px 0;
  }

  .container {
    width: 90%;
    padding: 0 16px;
  }

  /* Project Card Adjustments */
  .project-image {
    height: 200px;
  }

  /* Hero Grid Reset for Mobile */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .terminal-wrapper {
    display: none;
  }
}

/* Contact Section (Redesign) */
.contact-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /* Bottom align */
  gap: 60px;
  flex-wrap: wrap;
}

.contact-title-wrapper {
  flex: 1;
}

.contact-title {
  font-family: var(--font-main);
  font-size: 8rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--text-main);
  text-transform: uppercase;
}

.contact-info-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* Right align as per ref */
  gap: 30px;
}

.contact-email {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  text-decoration: none;
}

.contact-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}

.contact-email:hover::after {
  background: var(--text-main);
}

.contact-socials {
  display: flex;
  /* Fix stacking */
  gap: 20px;
}

.contact-socials .social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-socials .social-link i {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.contact-socials .social-link:hover {
  background: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(-5px);
}

.contact-socials .social-link:hover i {
  color: var(--bg-dark);
}

@media (max-width: 768px) {
  .contact-title {
    font-size: 4rem;
  }

  .contact-info-wrapper {
    align-items: flex-start;
  }

  .contact-email {
    font-size: 1.5rem;
  }

  .contact-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Integrated Footer Styles */
.contact-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* =========================================
   PROJECT CARDS (Refined)
   ========================================= */
.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.project-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

.project-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  background: rgba(119, 141, 169, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(119, 141, 169, 0.15);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.project-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Loading Spinner */
.loader-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(119, 141, 169, 0.2);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: var(--accent-primary);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* =========================================
   SKELETON LOADER
   ========================================= */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.skeleton-pulse {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite linear;
}

@keyframes skeletonPulse {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-tags {
  display: flex;
  gap: 8px;
}

.skeleton-tag {
  width: 60px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-title {
  width: 80%;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-desc {
  width: 100%;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-desc.short {
  width: 60%;
}