/* Import component styles (topbar & footer) */
@import url('/global.css');

/* Basic CSS Reset & General Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a; /* Dark theme to match your footer */
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Keeps the footer pushed to the bottom if page content is short */
#topbar {
  width: 100%;
}

#footer {
  width: 100%;
  margin-top: auto; /* Magic layout rule: pushes footer to bottom */
}

/* Main Content Area (Optional styling for main body text/sections) */
main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ==========================================================================
   HERO SECTION STYLES & ANIMATIONS
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 90px);
  padding: 4rem 1.5rem 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Subtitle (H1 small size) */
.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color, #4fffd2);
  letter-spacing: 2.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  animation: fadeInDown 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Main Big Title */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  
  /* Gradient Text Effect */
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color, #4fffd2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Subtle glow behind the gradient text */
  filter: drop-shadow(0 0 15px rgba(79, 255, 210, 0.2));

  /* Entrance Animation */
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
  opacity: 0;
}

/* Hero Description */
.hero-description {
  max-width: 650px;
  font-size: 0.95rem;
  color: var(--text-muted, #a0a0a0);
  line-height: 1.6;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
  opacity: 0;
}

/* Still Learning Badge */
.hero-badge-container {
  margin-bottom: 3.5rem;
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
  opacity: 0;
}

.hero-badge {
  position: relative;
  z-index: 2; /* Keeps badge text crisp and above the background glow */
  display: inline-block;
  padding: 0.5rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color, #4fffd2);
  border: 1px solid var(--accent-color, #4fffd2);
  border-radius: var(--radius-btn, 30px);
  background: var(--bg-dark, #000000); /* Dark center background to mask inner glow */
  text-transform: uppercase;
  transition: var(--transition-smooth, all 0.35s ease);
}

/* Pseudo-element that handles ONLY the breathing glow behind the border */
.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  border-radius: var(--radius-btn, 30px);
  box-shadow: 0 0 15px var(--accent-color, #4fffd2);
  opacity: 0.3;
  animation: borderGlowBreathe 3s ease-in-out infinite;
}

/* Keyframes for the glowing background breath */
@keyframes borderGlowBreathe {
  0%, 100% {
    opacity: 0.25;
    box-shadow: 0 0 10px 1px var(--accent-glow, rgba(79, 255, 210, 0.35));
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 0 25px 4px var(--accent-color, #4fffd2); /* Expands the outer ambient light */
  }
}

/* Stat Cards Grid */
.stats-grid {
  display: flex;
  flex-direction: row;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  width: 100%;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
  opacity: 0;
}

/* Individual Stat Card */
/* Individual Stat Card */
.stat-card {
  background: var(--glass-bg, rgba(20, 20, 20, 0.65));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-card, 16px);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  
  /* Reset link styles */
  text-decoration: none;
  cursor: pointer;
  
  transition: var(--transition-smooth, all 0.35s cubic-bezier(0.25, 1, 0.5, 1));
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-hover-border, rgba(79, 255, 210, 0.4));
  box-shadow: 0 10px 30px -10px var(--accent-glow, rgba(79, 255, 210, 0.3));
}

/* Card Number Header */
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-color, #4fffd2);
  letter-spacing: 1px;
}

/* Card Label Subtitle */
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #a0a0a0);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Keyframe Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   ABOUT ME SECTION STYLES
   ========================================================================== */
.about-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

/* Section Title Outside Card */
.about-section .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-main, #ffffff);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: left;
}

/* Glassmorphic Main Card */
.about-card {
  background: var(--glass-bg, rgba(20, 20, 20, 0.65));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-card, 16px);
  padding: 3rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
  transition: border-color var(--transition-fast, 0.2s ease);
}

.about-card:hover {
  border-color: var(--glass-hover-border, rgba(79, 255, 210, 0.2));
}

/* Square Image Frame */
/* Image Frame Container */
.about-me-picture {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-card, 16px);
  border: 2px solid var(--accent-color, #4fffd2);
  box-shadow: 0 0 20px var(--accent-glow, rgba(79, 255, 210, 0.35));
  overflow: hidden;
  transition: transform var(--transition-smooth, 0.35s ease), box-shadow var(--transition-smooth, 0.35s ease);
}

.about-me-picture:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--accent-glow, rgba(79, 255, 210, 0.6));
}

/* Image Styling */
.about-me-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth, 0.35s ease), filter var(--transition-smooth, 0.35s ease);
}

/* Zoom & slight darken on image when hovered */
.about-me-picture:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

/* Hover Caption Overlay */
.about-me-picture .img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  color: var(--accent-color, #4fffd2);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.8px;
  line-height: 1.4;
  text-transform: uppercase;
  
  /* Initial hidden state */
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--transition-smooth, 0.35s ease), transform var(--transition-smooth, 0.35s ease);
  pointer-events: none;
}

/* Reveal caption on hover */
.about-me-picture:hover .img-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Right Content Layout */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-para {
  color: var(--text-muted, #a0a0a0);
  font-size: 0.95rem;
  line-height: 1.6;
}

.text-accent {
  color: var(--accent-color, #4fffd2);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Side-by-Side Buttons Grid/Flex */
.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-about {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0.75rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
  background-color: var(--accent-color, #4fffd2);
  border: 1.5px solid var(--accent-color, #4fffd2);
  border-radius: var(--radius-btn, 30px);
  text-decoration: none;
  transition: var(--transition-smooth, all 0.35s ease);
}

.btn-about:hover {
  background-color: transparent;
  color: var(--accent-color, #4fffd2);
  box-shadow: 0 0 15px var(--accent-glow, rgba(79, 255, 210, 0.35));
}

/* Secondary Button Style */
.btn-about.btn-secondary {
  background-color: transparent;
  color: var(--text-main, #ffffff);
  border-color: var(--glass-border, rgba(255, 255, 255, 0.2));
}

.btn-about.btn-secondary:hover {
  border-color: var(--accent-color, #4fffd2);
  color: var(--accent-color, #4fffd2);
  box-shadow: 0 0 15px var(--accent-glow, rgba(79, 255, 210, 0.35));
}

/* ==========================================================================
   HERO & STATS RESPONSIVENESS (320px - 600px)
   ========================================================================== */
@media screen and (max-width: 600px) {
  /* Prevent horizontal page scrolling */
  body, html {
    overflow-x: hidden;
  }

  .hero-section {
    padding: 5rem 1rem 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }

  /* Allow cards to fit on small mobile screens */
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
    width: 100%;
  }

  .stat-card {
    padding: 1.5rem 0.8rem;
  }

  .stat-number {
    font-size: 1.2rem;
    text-align: center;
  }

  .stat-label {
    font-size: 0.65rem;
    text-align: center;
  }
}

/* ==========================================================================
   STAT CARDS MOBILE LAYOUT (Galaxy J2 & Small Devices)
   ========================================================================== */
@media screen and (max-width: 600px) {
  .stats-grid {
    /* Forces a clean 2-column layout */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .stat-card {
    padding: 1.25rem 0.6rem !important;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  /* Main Big Numbers / Text */
  .stat-number {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.25rem;
    word-break: normal;
  }

  /* Subtitle Label */
  .stat-label {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
  }
}

/* ==========================================================================
   ABOUT ME SECTION RESPONSIVENESS
   ========================================================================== */
@media screen and (max-width: 768px) {
  .about-section {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .about-section .section-title {
    font-size: 1.8rem !important;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  /* Stack Card Content Vertically */
  .about-card {
    grid-template-columns: 1fr !important; /* Single column layout */
    padding: 1.5rem 1.25rem !important;
    gap: 1.5rem !important;
  }

  /* Center and adjust square image frame */
  .about-me-picture {
    max-width: 240px;
    margin: 0 auto;
  }

  /* Text Adjustments */
  .about-content {
    gap: 1.2rem !important;
  }

  .about-text {
    gap: 1rem !important;
  }

  .about-para {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .text-accent {
    font-size: 0.75rem !important;
  }

  /* Stack Action Buttons Vertically */
  .about-actions {
    flex-direction: column !important;
    width: 100%;
    gap: 0.6rem !important;
  }

  .btn-about {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.65rem 1rem !important;
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-section {
  padding: 60px 8%;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  color: var(--accent-color, #4fffd2);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.section-description {
  color: var(--text-muted, #a0a0a0);
  font-size: 0.95rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   PROJECTS GRID & EXPANDABLE HOVER CARDS
   ========================================================================== */
/* Ensure all grid columns stretch equally and align uniformly */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch; /* Forces equal baseline heights across all cards */
}

.project-card {
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Keeps the card header pinned to the top */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
  height: max-content; /* Keeps collapsed cards identically sized */
}

/* Author Name Accent inside description */
.project-description .author-name {
  color: var(--accent-color, #4fffd2);
  font-weight: 600;
}

/* Hover State - Enlarges Card & Adds Glow */
.project-card:hover {
  background: rgba(25, 25, 25, 0.95);
  border-color: var(--accent-color, #4fffd2);
  box-shadow: 0 10px 30px rgba(79, 255, 210, 0.15);
  transform: translateY(-4px);
}

/* Top Header Bar inside Card */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
}

.site-name {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  transition: color 0.3s ease;
}

.project-card:hover .site-name {
  color: var(--accent-color, #4fffd2);
}

/* Host Badges (Flexible Pill Shape) */
.host-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  
  /* Replace fixed width/height with padding for dynamic text fitting */
  padding: 3px 10px;
  width: auto;
  height: auto;
  border-radius: 12px; /* Smooth pill shape */
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Hidden by default, reveals on card hover */
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.host-netlify {
  background: rgba(32, 194, 203, 0.2);
  color: #20c2cb;
  border: 1px solid #20c2cb;
}

.host-vercel {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid #ffffff;
}

.project-card:hover .host-badge {
  opacity: 1;
  transform: scale(1);
}

/* Expandable Content (Hidden in collapsed state) */
.card-expandable-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

/* Revealed on Hover */
.project-card:hover .card-expandable-content {
  max-height: 400px;
  opacity: 1;
  margin-top: 16px;
}

/* Site Preview Image Frame */
.site-preview {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.site-preview img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Project Description Text */
.project-description {
  font-size: 0.82rem;
  color: var(--text-muted, #a0a0a0);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Tech Style Tags */
.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-color, #4fffd2);
  background: rgba(79, 255, 210, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(79, 255, 210, 0.2);
}

/* ==========================================================================
   RESPONSIVENESS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr; /* Stacks vertically on mobile */
    gap: 16px;
  }

  /* On touch/mobile screens, keep the expanded details visible by default */
  .card-expandable-content {
    max-height: 400px !important;
    opacity: 1 !important;
    margin-top: 14px;
  }

  .host-badge {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  .section-title {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   READ MORE BUTTON STYLING
   ========================================================================== */
.more-btn {
  display: flex;
  justify-content: flex-end; /* Aligns button to the right of the card */
  margin-top: 16px;
  width: 100%;
}

.more-btn button {
  background: rgba(79, 255, 210, 0.08);
  color: var(--accent-color, #4fffd2);
  border: 1px solid rgba(79, 255, 210, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hover & Active States */
.more-btn button:hover {
  background: var(--accent-color, #4fffd2);
  color: var(--bg-dark, #0a0a0a);
  box-shadow: 0 0 12px var(--accent-glow, rgba(79, 255, 210, 0.4));
  transform: translateY(-2px);
}

.more-btn button:active {
  transform: translateY(0);
}

/* Optional Mobile Adjustment */
@media (max-width: 600px) {
  .more-btn {
    justify-content: center; /* Center-align on small screens */
  }

  .more-btn button {
    width: 100%; /* Full width button on touch devices */
    text-align: center;
    padding: 10px 0;
  }
}

/* ==========================================================================
   VIEW MORE PROJECTS BUTTON
   ========================================================================== */
.view-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 45px;
  width: 100%;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: rgba(18, 18, 18, 0.8);
  color: var(--accent-color, #4fffd2);
  border: 1px solid var(--accent-color, #4fffd2);
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  box-shadow: 0 0 10px rgba(79, 255, 210, 0.1);
}

.btn-view-more .arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

/* Hover Effects */
.btn-view-more:hover {
  background: var(--accent-color, #4fffd2);
  color: var(--bg-dark, #0a0a0a);
  box-shadow: 0 0 20px var(--accent-glow, rgba(79, 255, 210, 0.4));
  transform: translateY(-3px);
}

.btn-view-more:hover .arrow {
  transform: translateX(5px); /* Moves arrow slightly to the right */
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .view-more-container {
    margin-top: 30px;
  }

  .btn-view-more {
    padding: 10px 22px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   SOCIALS SECTION STYLING
   ========================================================================== */
.socials-section {
  padding: 60px 8%;
  max-width: 1200px;
  margin: 0 auto;
}

.socials-header {
  text-align: center;
  margin-bottom: 40px;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.social-card {
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 18px 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.social-icon {
  font-size: 1.4rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  margin-left: 16px;
  overflow: hidden;
}

.social-platform {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.social-handle {
  color: var(--text-muted, #a0a0a0);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-arrow {
  font-size: 0.85rem;
  color: var(--text-muted, #a0a0a0);
  opacity: 0.5;
  transition: all 0.3s ease;
}

/* Hover Animations */
.social-card:not(.disabled):hover {
  transform: translateY(-4px);
}

.social-card:not(.disabled):hover .social-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
  color: #ffffff;
}

/* Brand Specific Hover Highlights */
.social-card.github:hover {
  border-color: #ffffff;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}
.social-card.github:hover .social-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.social-card.youtube:hover {
  border-color: #ff0000;
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.25);
}
.social-card.youtube:hover .social-icon {
  background: rgba(255, 0, 0, 0.2);
  color: #ff0000;
}

.social-card.instagram:hover {
  border-color: #e1306c;
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.25);
}
.social-card.instagram:hover .social-icon {
  background: rgba(225, 48, 108, 0.2);
  color: #e1306c;
}

.social-card.tiktok:hover {
  border-color: #00f2fe;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.25);
}
.social-card.tiktok:hover .social-icon {
  background: rgba(0, 242, 254, 0.2);
  color: #00f2fe;
}

.social-card.discord:hover {
  border-color: #5865f2;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.25);
}
.social-card.discord:hover .social-icon {
  background: rgba(88, 101, 242, 0.2);
  color: #5865f2;
}

/* Disabled State for Unreleased Discord Server */
.social-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.badge-soon {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #a0a0a0);
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-card.x-twitter:hover {
  border-color: #ffffff;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.social-card.x-twitter:hover .social-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Responsive Scaling */
@media (max-width: 600px) {
  .socials-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTACT SECTION STYLING
   ========================================================================== */
.contact-section {
  padding: 60px 8%;
  max-width: 900px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 35px;
}

.contact-container {
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 35px 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Input Wrappers & Glass Styling */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted, #a0a0a0);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-wrapper .input-icon {
  top: 14px;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px 12px 40px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 120px;
}

/* Focus and Active States */
.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: var(--accent-color, #4fffd2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 12px rgba(79, 255, 210, 0.15);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper textarea:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--accent-color, #4fffd2);
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-color, #4fffd2);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn-submit:hover {
  box-shadow: 0 0 20px rgba(79, 255, 210, 0.4);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Formspree Notification Banners */
.fs-message {
  display: none; /* Managed by Formspree SDK */
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.success-msg {
  background: rgba(79, 255, 210, 0.15);
  color: var(--accent-color, #4fffd2);
  border: 1px solid rgba(79, 255, 210, 0.3);
}

.error-msg {
  background: rgba(255, 79, 79, 0.15);
  color: #ff4f4f;
  border: 1px solid rgba(255, 79, 79, 0.3);
}

.field-error {
  color: #ff4f4f;
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .contact-container {
    padding: 22px 18px;
  }
}