:root {
  --red: #c51d34;
  --dark-gray: #2e2e30;
  --gray: #808080;
  --light-gray: #f5f5f5;
  --cream-white: #fdfbf7;
  --white: #ffffff;
  --accent-blue: #4285f4;
  --approach-gap: 170px; /* horizontal gap from center to step columns */
}

/* Custom Scrollbar Styles */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #c51d34;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a01829;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #c51d34 #000000;
}

body {
  font-family: "Inter", -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--cream-white);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(197, 29, 52, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 29, 52, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 3s linear infinite;
  pointer-events: none;
  z-index: 0;
}

section,
footer,
.container {
  position: relative;
  z-index: 1;
}

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

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-30px) translateX(10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

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

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

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes morphShape {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(40px);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Testimonial Animations */
@keyframes testimonialFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes testimonialFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes starPop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes avatarPop {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  60% {
    transform: scale(1.15) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes floatTech {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

@keyframes floatTechSlow {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(20px, -20px) rotate(120deg);
  }
  66% {
    transform: translate(-10px, -30px) rotate(240deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

a {
  color: var(--red);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(197, 29, 52, 0.08);
}

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
  overflow: visible; /* Ensure nav-actions are not cut off */
}

.logo {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark-gray);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  justify-self: start;
}

.logo:hover {
  transform: translateX(5px);
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
  filter: drop-shadow(0 3px 6px rgba(197, 29, 52, 0.25));
}

.logo:hover .logo-img {
  transform: rotate(-5deg) scale(1.05);
}

.logo .logo-text {
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
  justify-self: center;
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow: visible;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: var(--dark-gray);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0.25rem;
  display: inline-block;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-links li a:hover {
  color: var(--red);
  transform: translateY(-2px);
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex !important;
  gap: 1rem;
  align-items: center;
  justify-self: end;
  flex-wrap: nowrap;
  min-width: fit-content; /* Ensure nav-actions has enough space */
  overflow: visible; /* Ensure buttons are not cut off */
}

.nav-actions .header-profile-link {
  flex-shrink: 0;
}

.nav-actions .btn {
  flex-shrink: 0 !important;
  display: inline-flex !important; /* Ensure button is always visible */
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important; /* Ensure proper stacking */
  z-index: 1 !important; /* Ensure button is above other elements */
  padding: 0.7rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: fit-content;
}

/* Specifically target logout button for team members */
.nav-actions .btn.btn-secondary,
.nav-actions a.btn.btn-secondary {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: var(--dark-gray) !important;
  color: var(--white) !important;
  text-decoration: none !important;
}

/* Header Profile Image for Team Members */
.header-profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(197, 29, 52, 0.5);
  box-shadow: 0 0 15px rgba(197, 29, 52, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.header-profile-link:hover {
  border-color: var(--red);
  box-shadow: 0 0 25px rgba(197, 29, 52, 0.6);
  transform: scale(1.05);
}

.header-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.mobile-user-menu-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

/* Adding button hover animation with ripple effect */
.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

.btn-primary {
  background-color: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #a01828;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 29, 52, 0.4);
}

.btn-secondary {
  background-color: var(--dark-gray);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #1a1a1b;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}

.btn-outline:hover {
  background-color: var(--red);
  color: var(--white);
}

/* Updated hero section to use cream background with subtle gradient instead of dark */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--cream-white) 0%, #fff5f0 50%, var(--cream-white) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-error {
  padding: 2rem 0 2rem;
  min-height: auto;
}

.error-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: rgba(197, 29, 52, 0.12);
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 8px 24px rgba(197, 29, 52, 0.2);
}

.error-illustration {
  position: relative;
  width: min(300px, 70vw);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.error-illustration img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 45px rgba(197, 29, 52, 0.25));
}

.error-glow {
  display: none;
}

.error-copy {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.error-copy .error-actions {
  margin-top: -0.5rem;
}

.error-copy h1 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
  color: var(--dark-gray);
  text-shadow: 0 8px 30px rgba(197, 29, 52, 0.12);
  line-height: 1.2;
}

.error-copy p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 0;
}

.error-actions {
  margin-top: 0.5rem;
}

/* Removed dark grid overlay from hero since it's now on body */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(197, 29, 52, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(66, 133, 244, 0.05) 0%, transparent 50%);
  z-index: 1;
}

/* Removed dark gradient overlay */
.hero::after {
  display: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-content h1,
.hero-content p {
  text-align: left;
}

.hero-content .hero-buttons {
  justify-content: flex-start;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Flying Tech Icons Animation */
.flying-tech-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.flying-tech-icons i {
  position: absolute;
  font-size: 2.5rem;
  color: var(--red);
  opacity: 0;
  left: -100px;
  animation: flyLeftToRight 12s linear infinite, glowBlink 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(197, 29, 52, 0.3));
}

/* Stagger the icons with different delays and vertical positions */
.flying-tech-icons i:nth-child(1) { top: 10%; animation-delay: 0s, 0s; }
.flying-tech-icons i:nth-child(2) { top: 20%; animation-delay: 2s, 0.3s; }
.flying-tech-icons i:nth-child(3) { top: 35%; animation-delay: 4s, 0.6s; }
.flying-tech-icons i:nth-child(4) { top: 50%; animation-delay: 1s, 0.9s; }
.flying-tech-icons i:nth-child(5) { top: 65%; animation-delay: 3s, 1.2s; }
.flying-tech-icons i:nth-child(6) { top: 80%; animation-delay: 5s, 1.5s; }
.flying-tech-icons i:nth-child(7) { top: 15%; animation-delay: 6s, 0.2s; }
.flying-tech-icons i:nth-child(8) { top: 45%; animation-delay: 7s, 0.5s; }
.flying-tech-icons i:nth-child(9) { top: 70%; animation-delay: 2.5s, 0.8s; }
.flying-tech-icons i:nth-child(10) { top: 25%; animation-delay: 4.5s, 1.1s; }
.flying-tech-icons i:nth-child(11) { top: 55%; animation-delay: 1.5s, 1.4s; }
.flying-tech-icons i:nth-child(12) { top: 85%; animation-delay: 3.5s, 1.7s; }
.flying-tech-icons i:nth-child(13) { top: 12%; animation-delay: 5.5s, 0.4s; }
.flying-tech-icons i:nth-child(14) { top: 40%; animation-delay: 7.5s, 0.7s; }
.flying-tech-icons i:nth-child(15) { top: 60%; animation-delay: 0.5s, 1s; }
.flying-tech-icons i:nth-child(16) { top: 75%; animation-delay: 2.8s, 1.3s; }
.flying-tech-icons i:nth-child(17) { top: 30%; animation-delay: 4.8s, 1.6s; }
.flying-tech-icons i:nth-child(18) { top: 48%; animation-delay: 6.8s, 1.9s; }
.flying-tech-icons i:nth-child(19) { top: 18%; animation-delay: 8s, 0.1s; }
.flying-tech-icons i:nth-child(20) { top: 90%; animation-delay: 1.8s, 0.3s; }

/* Alternate colors for variety */
.flying-tech-icons i:nth-child(odd) {
  color: var(--red);
  filter: drop-shadow(0 0 10px rgba(197, 29, 52, 0.3));
}

.flying-tech-icons i:nth-child(even) {
  color: var(--accent-blue);
  filter: drop-shadow(0 0 10px rgba(66, 133, 244, 0.3));
}

@keyframes flyLeftToRight {
  0% {
    left: -100px;
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }
  10% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.35;
    transform: translateY(-20px) rotate(180deg);
  }
  90% {
    opacity: 0.25;
  }
  100% {
    left: calc(100% + 100px);
    opacity: 0;
    transform: translateY(0) rotate(360deg);
  }
}

@keyframes glowBlink {
  0%, 100% {
    filter: drop-shadow(0 0 5px currentColor) brightness(1);
  }
  50% {
    filter: drop-shadow(0 0 20px currentColor) brightness(1.5);
  }
}

/* Hide flying tech icons on mobile */
@media (max-width: 768px) {
  .flying-tech-icons {
    display: none;
  }
}

/* Hero Image Styling */
.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInRight 1s ease-out;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 40px rgba(197, 29, 52, 0.2));
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(197, 29, 52, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  /* Changed text color back to dark gray for cream background */
  color: var(--dark-gray);
  animation: slideInUp 0.8s ease-out;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero .highlight {
  color: var(--red);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 30px rgba(197, 29, 52, 0.5);
}

.hero .highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(197, 29, 52, 0.8);
  animation: slideInLeft 1s ease-out 0.3s both;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  /* Changed text color back to gray for cream background */
  color: var(--gray);
  animation: slideInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

/* About Us Section */
.about-us-section {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
}

.section-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: slideInUp 0.6s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(197, 29, 52, 0.05);
  border-radius: 50px;
  width: auto;
}

.section-label i {
  font-size: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.about-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.about-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.highlight-text {
  color: var(--red);
  position: relative;
}

.about-header p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-feature-card {
  background: linear-gradient(135deg, var(--cream-white) 0%, var(--white) 100%);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  animation: scaleIn 0.6s ease-out both;
  position: relative;
  overflow: hidden;
}

.about-feature-card:nth-child(1) {
  animation-delay: 0.3s;
}

.about-feature-card:nth-child(2) {
  animation-delay: 0.4s;
}

.about-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(197, 29, 52, 0.05), transparent);
  transition: left 0.5s ease;
}

.about-feature-card:hover::before {
  left: 100%;
}

.about-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(197, 29, 52, 0.15);
  border-color: rgba(197, 29, 52, 0.2);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--red), #d93850);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(197, 29, 52, 0.3);
  transition: all 0.3s ease;
}

.about-feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(197, 29, 52, 0.4);
}

.feature-icon-wrapper i {
  font-size: 2.5rem;
  color: var(--white);
}

.about-feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.about-feature-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray);
  margin: 0;
}

/* Why Choose Section */
.why-choose-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--cream-white) 0%, #fff5f0 50%, var(--cream-white) 100%);
  position: relative;
  overflow: hidden;
}

.why-choose-section .section-header {
  margin-bottom: 5rem;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.why-item {
  position: relative;
  padding: 2.5rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.6s ease-out both;
}

.why-item:nth-child(1) {
  animation-delay: 0.1s;
}

.why-item:nth-child(2) {
  animation-delay: 0.2s;
}

.why-item:nth-child(3) {
  animation-delay: 0.3s;
}

.why-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(197, 29, 52, 0.2);
}

/* Icon positioning - Top Left floating */
.why-item-left {
  display: flex;
  flex-direction: column;
  padding-top: 4rem;
  position: relative;
}

.why-icon-left {
  position: absolute;
  top: -30px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--red), #d93850);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(197, 29, 52, 0.4);
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

/* Icon positioning - Center bottom */
.why-item-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.why-icon-center {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-blue), #5a9cf8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4);
  animation: float 4s ease-in-out infinite 1s;
  margin-top: 1.5rem;
  position: relative;
  bottom: -20px;
}

/* Icon positioning - Top right */
.why-item-right {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 4rem;
}

.why-icon-right {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
  animation: float 4s ease-in-out infinite 2s;
  z-index: 2;
}

.why-icon i {
  font-size: 2.5rem;
  color: var(--white);
}

.why-item:hover .why-icon-left,
.why-item:hover .why-icon-center,
.why-item:hover .why-icon-right {
  transform: scale(1.1) rotate(5deg);
  animation-play-state: paused;
}

.why-content h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.why-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray);
  margin: 0;
}

/* Brands Section */
.brands-section {
  padding: 5rem 0;
  background: var(--white);
  position: relative;
}

.brands-section .section-header {
  margin-bottom: 4rem;
}

.brands-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
  width: 100%;
}

/* Responsive grid based on brand count */
.brands-grid[data-brand-count="1"] {
  grid-template-columns: 1fr;
  max-width: 400px;
}

.brands-grid[data-brand-count="2"] {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
}

.brands-grid[data-brand-count="3"] {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

.brands-grid[data-brand-count="4"],
.brands-grid[data-brand-count="5"] {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
}

.brands-grid[data-brand-count="6"] {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

.brands-grid[data-brand-count="7"],
.brands-grid[data-brand-count="8"] {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
}

.brands-grid[data-brand-count="9"] {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

.brands-grid[data-brand-count="10"] {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1200px;
}

.brand-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 160px;
  animation: scaleIn 0.6s ease-out both;
  position: relative;
  overflow: hidden;
}

.brand-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.03) 0%, rgba(197, 29, 52, 0.01) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.brand-item:hover::before {
  opacity: 1;
}

.brand-item-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-item:nth-child(1) { animation-delay: 0.1s; }
.brand-item:nth-child(2) { animation-delay: 0.15s; }
.brand-item:nth-child(3) { animation-delay: 0.2s; }
.brand-item:nth-child(4) { animation-delay: 0.25s; }
.brand-item:nth-child(5) { animation-delay: 0.3s; }
.brand-item:nth-child(6) { animation-delay: 0.35s; }
.brand-item:nth-child(7) { animation-delay: 0.4s; }
.brand-item:nth-child(8) { animation-delay: 0.45s; }
.brand-item:nth-child(9) { animation-delay: 0.5s; }

.brand-item img {
  max-width: 100%;
  max-height: 85px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 48px rgba(197, 29, 52, 0.2);
  border-color: rgba(197, 29, 52, 0.2);
}

.brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  position: relative;
  min-height: calc(100vh - 80px);
}

.services-list-section {
  padding: 5rem 0;
  background: var(--white);
}

.service-icon-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.service-icon-wrapper .service-icon img {
  width: 100%;
  height: 100%;
  max-width: 4.5rem;
  max-height: 4.5rem;
  object-fit: contain;
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: slideInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Adding staggered animation */
  animation: scaleIn 0.6s ease-out both;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}
.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Adding animated gradient overlay on hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(197, 29, 52, 0.05), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 40px rgba(197, 29, 52, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  /* Adding icon animation */
  display: inline-block;
  transition: transform 0.4s ease;
}

.service-icon img {
  width: 100%;
  height: 100%;
  max-width: 4.5rem;
  max-height: 4.5rem;
  object-fit: contain;
  display: block;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  animation: pulse 1s ease-in-out infinite;
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.service-card p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  /* Adding animation */
  animation: slideInUp 0.6s ease-out both;
  position: relative;
  border: 1px solid rgba(197, 29, 52, 0.08);
  cursor: pointer;
}

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

.team-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 50px rgba(197, 29, 52, 0.2);
  border-color: rgba(197, 29, 52, 0.3);
}

/* Removed duplicate - using the one in team-card-image-wrapper section */

.team-card-content {
  padding: 1.5rem 1.25rem;
}

.team-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-gray) !important;
}

.team-card .bio-text {
  color: var(--gray) !important;
}

.nickname-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.12), rgba(66, 133, 244, 0.12));
  color: var(--red);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  border: 1px solid rgba(197, 29, 52, 0.15);
}

.team-card .position {
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--gray);
}

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

.social-links a {
  color: var(--gray);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--red);
}

/* Auth Pages */
.auth-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.auth-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 100%;
  position: relative;
  z-index: 1;
  /* Adding entrance animation */
  animation: scaleIn 0.6s ease-out;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem;
  border: 2px solid var(--light-gray);
  background: var(--white);
  color: var(--dark-gray);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-oauth:hover {
  border-color: var(--red);
  background: var(--cream-white);
}

.btn-google:hover {
  border-color: #4285f4;
}
.btn-facebook:hover {
  border-color: #1877f2;
}
.btn-github:hover {
  border-color: #333;
}

/* Dashboard */
.dashboard {
  padding: 3rem 0;
  min-height: 80vh;
}

.dashboard-header {
  margin-bottom: 3rem;
  animation: slideInUp 0.6s ease-out;
}

.dashboard-header h1 {
  margin-bottom: 0.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.dashboard-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  /* Adding staggered animation */
  animation: slideInUp 0.6s ease-out both;
}

.dashboard-card:nth-child(1) {
  animation-delay: 0.1s;
}
.dashboard-card:nth-child(2) {
  animation-delay: 0.2s;
}
.dashboard-card:nth-child(3) {
  animation-delay: 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dashboard-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--gray);
  font-weight: 600;
}

.dashboard-card .stat {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  /* Adding animation */
  animation: slideInLeft 0.5s ease-out both;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  /* Adding glow effect on focus */
  box-shadow: 0 0 0 3px rgba(197, 29, 52, 0.1);
  transform: translateY(-2px);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  /* Adding entrance animation */
  animation: slideInUp 0.5s ease-out;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a1b 0%, var(--dark-gray) 50%, #1f1f21 100%);
  color: var(--white);
  padding: 4rem 0 1.5rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

/* Adding animated background pattern */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--accent-blue), var(--red));
  background-size: 200% 100%;
  animation: slideInLeft 3s linear infinite;
}

/* Adding subtle grid pattern to footer */
footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

footer .container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 0 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-links-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-section {
  animation: slideInUp 0.6s ease-out both;
  animation-play-state: paused;
  opacity: 0;
  transform: translateY(30px);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-brand:hover {
  color: var(--red);
}

.footer-brand:hover span {
  color: var(--red);
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Social Media Links */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  max-width: 200px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.footer-social a:hover {
  background: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 29, 52, 0.4);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* Footer CTA Card */
.footer-cta-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-cta-card {
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.15), rgba(66, 133, 244, 0.1));
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.footer-cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(197, 29, 52, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.footer-cta-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: 0 10px 30px rgba(197, 29, 52, 0.3);
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--red);
  border-radius: 50%;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.cta-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-cta-card h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.footer-cta-card h4::after {
  display: none;
}

.footer-cta-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.footer-cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.3);
}

.footer-cta-btn:hover {
  background: #a01828;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.5);
  color: var(--white);
}

/* Footer Contact Info */
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--red);
  text-decoration: none;
}

/* Footer Navigation Links */
.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-right: 20px;
}

.footer-section ul li a::after {
  content: "→";
  position: absolute;
  right: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--red);
  text-decoration: none;
}

.footer-section ul li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--red);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom strong {
  color: var(--white);
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--red);
}

/* Footer Large Screen Optimizations */
@media (min-width: 1920px) {
  footer .container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 clamp(80px, 8vw, 120px);
  }

  .footer-content {
    gap: clamp(4rem, 5vw, 6rem);
    margin-bottom: clamp(3rem, 4vh, 4rem);
  }

  .footer-links-wrapper {
    gap: clamp(3rem, 4vw, 4.5rem);
  }

  .footer-brand {
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  }

  .footer-logo-img {
    width: clamp(32px, 2vw, 40px);
    height: clamp(32px, 2vw, 40px);
  }

  .footer-info p {
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.7;
  }

  .footer-social {
    gap: clamp(1rem, 1.2vw, 1.5rem);
    max-width: 100%;
  }

  .footer-social a {
    width: clamp(40px, 2.5vw, 48px);
    height: clamp(40px, 2.5vw, 48px);
  }

  .footer-social svg {
    width: clamp(18px, 1.2vw, 22px);
    height: clamp(18px, 1.2vw, 22px);
  }

  .footer-section h4 {
    font-size: clamp(1.1rem, 1.3vw, 1.35rem);
    margin-bottom: clamp(1.25rem, 1.5vh, 1.5rem);
  }

  .footer-section p,
  .footer-section a {
    font-size: clamp(0.9rem, 1vw, 1rem);
  }

  .footer-cta-card {
    padding: clamp(2rem, 2.5vh, 2.5rem) clamp(1.5rem, 2vw, 2rem);
  }

  .footer-cta-card h4 {
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  }

  .footer-cta-card p {
    font-size: clamp(0.9rem, 1vw, 1rem);
  }

  .cta-icon {
    width: clamp(50px, 3vw, 60px);
    height: clamp(50px, 3vw, 60px);
  }

  .footer-cta-btn {
    padding: clamp(0.75rem, 1vh, 0.9rem) clamp(2rem, 2.5vw, 2.5rem);
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  }

  .footer-contact p {
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  }

  .footer-bottom {
    padding-top: clamp(2rem, 2.5vh, 2.5rem);
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  }
}

@media (min-width: 2560px) {
  footer .container {
    max-width: 2400px;
    padding: 0 clamp(100px, 10vw, 150px);
  }

  .footer-content {
    gap: clamp(5rem, 6vw, 7rem);
    margin-bottom: clamp(4rem, 5vh, 5rem);
  }

  .footer-links-wrapper {
    gap: clamp(4rem, 5vw, 5rem);
  }

  .footer-brand {
    font-size: clamp(1.5rem, 1.8vw, 1.75rem);
  }

  .footer-logo-img {
    width: clamp(40px, 2.5vw, 48px);
    height: clamp(40px, 2.5vw, 48px);
  }

  .footer-info p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
  }

  .footer-social a {
    width: clamp(48px, 3vw, 56px);
    height: clamp(48px, 3vw, 56px);
  }

  .footer-social svg {
    width: clamp(22px, 1.4vw, 26px);
    height: clamp(22px, 1.4vw, 26px);
  }

  .footer-section h4 {
    font-size: clamp(1.35rem, 1.6vw, 1.5rem);
  }

  .footer-section p,
  .footer-section a {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
  }

  .footer-cta-card {
    padding: clamp(2.5rem, 3vh, 3rem) clamp(2rem, 2.5vw, 2.5rem);
  }

  .footer-cta-card h4 {
    font-size: clamp(1.5rem, 1.8vw, 1.75rem);
  }

  .footer-cta-card p {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
  }

  .cta-icon {
    width: clamp(60px, 3.5vw, 70px);
    height: clamp(60px, 3.5vw, 70px);
  }

  .footer-cta-btn {
    padding: clamp(0.9rem, 1.2vh, 1rem) clamp(2.5rem, 3vw, 3rem);
    font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  }

  .footer-contact p {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  }

  .footer-bottom {
    padding-top: clamp(2.5rem, 3vh, 3rem);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  }
}

.footer-bottom-links span {
  color: rgba(255, 255, 255, 0.3);
}

/* Adding scroll-triggered animations utility class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pause all animations by default, play only when section is visible */
.service-card,
.brand-item,
.testimonial-card,
.about-feature-card,
.why-item,
.team-card,
.approach-step,
.info-card,
.feature-item,
.detail-card,
.dashboard-card,
.form-group,
.section-header,
.section-label,
.about-header,
.footer-section,
.dashboard-header,
.contact-form-wrapper,
.service-hero-icon,
.auth-card {
  animation-play-state: paused;
}

/* Play animations when parent section or footer is visible */
section.visible .service-card,
section.visible .brand-item,
section.visible .testimonial-card,
section.visible .about-feature-card,
section.visible .why-item,
section.visible .team-card,
section.visible .info-card,
section.visible .feature-item,
section.visible .detail-card,
section.visible .dashboard-card,
section.visible .form-group,
section.visible .section-header,
section.visible .section-label,
section.visible .about-header,
section.visible .dashboard-header,
section.visible .contact-form-wrapper,
section.visible .service-hero-icon,
section.visible .auth-card,
.approach-section.animate-active .approach-step,
footer.visible .footer-section {
  animation-play-state: running;
  opacity: 1;
  transform: translateY(0);
}

footer.visible {
  animation-play-state: running;
}

/* ========================================
   TECH ELEMENTS & ENHANCEMENTS
   ======================================== */

/* Circuit Pattern Background */
.circuit-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: 
    radial-gradient(circle at 20% 50%, var(--red) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, var(--red) 2px, transparent 2px),
    radial-gradient(circle at 40% 20%, var(--accent-blue) 2px, transparent 2px);
  background-size: 100px 100px, 150px 150px, 120px 120px;
  background-position: 0 0, 40px 60px, 80px 30px;
  z-index: 0;
}

/* Animated Tech Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particles span {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  border-radius: 50%;
  animation: particleFloat 15s linear infinite;
  opacity: 0.6;
}

.particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 20%; animation-delay: 2s; }
.particles span:nth-child(3) { left: 30%; animation-delay: 4s; }
.particles span:nth-child(4) { left: 40%; animation-delay: 1s; }
.particles span:nth-child(5) { left: 50%; animation-delay: 3s; }
.particles span:nth-child(6) { left: 60%; animation-delay: 5s; }
.particles span:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.particles span:nth-child(8) { left: 80%; animation-delay: 4.5s; }
.particles span:nth-child(9) { left: 90%; animation-delay: 1.5s; }
.particles span:nth-child(10) { left: 95%; animation-delay: 3.5s; }

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

/* Hero Stats Section */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 3rem 0 0 0;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(197, 29, 52, 0.2);
}

.stat-icon {
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* Testimonials Section - Bento Grid */
.testimonials-section {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
}

.testimonials-section .section-header {
  margin-bottom: 4rem;
}

.testimonials-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: #2a2a2e;
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: testimonialFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Add subtle floating animation after entrance */
.testimonials-section.visible .testimonial-card {
  animation: testimonialFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both,
             testimonialFloat 6s ease-in-out infinite;
}

.testimonials-section.visible .testimonial-card:nth-child(1) {
  animation-delay: 0.1s, 0.9s;
  animation-duration: 0.8s, 6s;
}

.testimonials-section.visible .testimonial-card:nth-child(2) {
  animation-delay: 0.15s, 0.95s;
  animation-duration: 0.8s, 6.2s;
}

.testimonials-section.visible .testimonial-card:nth-child(3) {
  animation-delay: 0.2s, 1s;
  animation-duration: 0.8s, 5.8s;
}

.testimonials-section.visible .testimonial-card:nth-child(4) {
  animation-delay: 0.25s, 1.05s;
  animation-duration: 0.8s, 6.1s;
}

.testimonials-section.visible .testimonial-card:nth-child(5) {
  animation-delay: 0.3s, 1.1s;
  animation-duration: 0.8s, 5.9s;
}

.testimonials-section.visible .testimonial-card:nth-child(6) {
  animation-delay: 0.35s, 1.15s;
  animation-duration: 0.8s, 6.3s;
}

.testimonials-section.visible .testimonial-card:nth-child(7) {
  animation-delay: 0.4s, 1.2s;
  animation-duration: 0.8s, 6s;
}

/* Bento grid layout variations - Perfect rectangle for 7 cards */
/* Layout: 3 columns × 3 rows, all cards arranged to form perfect rectangle */
/* Visual layout:
   Row 1: [Card 1 (wide 2 cols)] [Card 2 (tall 2 rows)]
   Row 2: [Card 3] [Card 4]      [Card 2 cont.]
   Row 3: [Card 5] [Card 6]      [Card 7]
*/
.testimonial-card:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

.testimonial-card:nth-child(2) {
  grid-column: 3;
  grid-row: 1 / 3;
}

.testimonial-card:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.testimonial-card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.testimonial-card:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}

.testimonial-card:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
}

.testimonial-card:nth-child(7) {
  grid-column: 3;
  grid-row: 3;
}

/* Featured testimonial with beautiful enhanced gradient - Subtle version */
.testimonial-featured {
  background: linear-gradient(135deg, #c51d34 0%, #d93850 30%, #c51d34 60%, #d93850 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  position: relative;
  box-shadow: 
    0 15px 40px rgba(197, 29, 52, 0.3),
    0 0 20px rgba(197, 29, 52, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: scale(1.01);
  z-index: 2;
}

.testimonial-featured::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    #c51d34 0%, 
    #d93850 30%, 
    #c51d34 60%, 
    #d93850 100%);
  background-size: 250% 250%;
  animation: gradientShift 6s ease infinite;
  border-radius: 21px;
  z-index: -1;
  opacity: 0.5;
  filter: blur(6px);
}

.testimonial-featured::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent);
  animation: shimmer 4s ease-in-out infinite;
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.testimonial-featured .testimonial-content {
  position: relative;
  z-index: 2;
}

.testimonial-featured .testimonial-text,
.testimonial-featured .author-info h4,
.testimonial-featured .author-info p {
  color: var(--white) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.testimonial-featured .testimonial-text {
  font-weight: 500;
}

.testimonial-featured .testimonial-rating i {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.5));
}

.testimonial-featured .testimonial-author img {
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 
      0 15px 40px rgba(197, 29, 52, 0.3),
      0 0 20px rgba(197, 29, 52, 0.15),
      inset 0 0 20px rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow: 
      0 18px 45px rgba(197, 29, 52, 0.4),
      0 0 25px rgba(197, 29, 52, 0.2),
      inset 0 0 25px rgba(255, 255, 255, 0.08);
  }
}

.testimonial-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(197, 29, 52, 0.1);
  animation-play-state: paused;
}

.testimonial-card:hover .testimonial-text {
  transform: translateY(0);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(197, 29, 52, 0.05) 0%, 
    transparent 50%, 
    rgba(197, 29, 52, 0.05) 100%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.testimonial-featured:hover {
  transform: scale(1.03) translateY(-8px) rotateX(2deg) rotateY(-1deg);
  box-shadow: 
    0 25px 60px rgba(197, 29, 52, 0.4),
    0 0 35px rgba(197, 29, 52, 0.25),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
  animation: gradientShift 6s ease infinite, pulseGlow 3s ease-in-out infinite;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: contentFadeIn 0.6s ease-out 0.3s both;
}

.testimonials-section.visible .testimonial-content {
  opacity: 1;
  animation: contentFadeIn 0.6s ease-out both;
}

.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-content {
  animation-delay: 0.4s;
}

.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-content {
  animation-delay: 0.45s;
}

.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-content {
  animation-delay: 0.5s;
}

.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-content {
  animation-delay: 0.55s;
}

.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-content {
  animation-delay: 0.6s;
}

.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-content {
  animation-delay: 0.65s;
}

.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-content {
  animation-delay: 0.7s;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
  transform: translateY(10px);
  opacity: 0;
  animation: slideUpFade 0.5s ease-out 0.4s both;
}

.testimonials-section.visible .testimonial-text {
  animation: slideUpFade 0.5s ease-out both;
}

.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-text {
  animation-delay: 0.5s;
}

.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-text {
  animation-delay: 0.55s;
}

.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-text {
  animation-delay: 0.6s;
}

.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-text {
  animation-delay: 0.65s;
}

.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-text {
  animation-delay: 0.7s;
}

.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-text {
  animation-delay: 0.75s;
}

.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-text {
  animation-delay: 0.8s;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  transform: translateY(10px);
  opacity: 0;
  animation: slideUpFade 0.5s ease-out 0.5s both;
}

.testimonials-section.visible .testimonial-rating {
  animation: slideUpFade 0.5s ease-out both;
}

.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-rating {
  animation-delay: 0.6s;
}

.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-rating {
  animation-delay: 0.65s;
}

.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-rating {
  animation-delay: 0.7s;
}

.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-rating {
  animation-delay: 0.75s;
}

.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-rating {
  animation-delay: 0.8s;
}

.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-rating {
  animation-delay: 0.85s;
}

.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-rating {
  animation-delay: 0.9s;
}

.testimonial-rating i {
  font-size: 1rem;
  color: #fbbf24;
  transition: transform 0.3s ease, filter 0.3s ease;
  opacity: 0;
  transform: scale(0.3) rotate(-180deg);
  animation: starPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.testimonials-section.visible .testimonial-rating i {
  animation: starPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-rating i { animation-delay: 0.7s; }
.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-rating i { animation-delay: 0.75s; }
.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-rating i { animation-delay: 0.8s; }
.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-rating i { animation-delay: 0.85s; }
.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-rating i { animation-delay: 0.9s; }
.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-rating i { animation-delay: 0.95s; }
.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-rating i { animation-delay: 1s; }

/* Stagger individual stars within each rating for a wave effect */
.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-rating i:nth-child(1) { animation-delay: 0.7s; }
.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-rating i:nth-child(2) { animation-delay: 0.75s; }
.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-rating i:nth-child(3) { animation-delay: 0.8s; }
.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-rating i:nth-child(4) { animation-delay: 0.85s; }
.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-rating i:nth-child(5) { animation-delay: 0.9s; }

.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-rating i:nth-child(1) { animation-delay: 0.75s; }
.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-rating i:nth-child(2) { animation-delay: 0.8s; }
.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-rating i:nth-child(3) { animation-delay: 0.85s; }
.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-rating i:nth-child(4) { animation-delay: 0.9s; }
.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-rating i:nth-child(5) { animation-delay: 0.95s; }

.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-rating i:nth-child(1) { animation-delay: 0.8s; }
.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-rating i:nth-child(2) { animation-delay: 0.85s; }
.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-rating i:nth-child(3) { animation-delay: 0.9s; }
.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-rating i:nth-child(4) { animation-delay: 0.95s; }
.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-rating i:nth-child(5) { animation-delay: 1s; }

.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-rating i:nth-child(1) { animation-delay: 0.85s; }
.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-rating i:nth-child(2) { animation-delay: 0.9s; }
.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-rating i:nth-child(3) { animation-delay: 0.95s; }
.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-rating i:nth-child(4) { animation-delay: 1s; }
.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-rating i:nth-child(5) { animation-delay: 1.05s; }

.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-rating i:nth-child(1) { animation-delay: 0.9s; }
.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-rating i:nth-child(2) { animation-delay: 0.95s; }
.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-rating i:nth-child(3) { animation-delay: 1s; }
.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-rating i:nth-child(4) { animation-delay: 1.05s; }
.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-rating i:nth-child(5) { animation-delay: 1.1s; }

.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-rating i:nth-child(1) { animation-delay: 0.95s; }
.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-rating i:nth-child(2) { animation-delay: 1s; }
.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-rating i:nth-child(3) { animation-delay: 1.05s; }
.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-rating i:nth-child(4) { animation-delay: 1.1s; }
.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-rating i:nth-child(5) { animation-delay: 1.15s; }

.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-rating i:nth-child(1) { animation-delay: 1s; }
.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-rating i:nth-child(2) { animation-delay: 1.05s; }
.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-rating i:nth-child(3) { animation-delay: 1.1s; }
.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-rating i:nth-child(4) { animation-delay: 1.15s; }
.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-rating i:nth-child(5) { animation-delay: 1.2s; }

.testimonial-card:hover .testimonial-rating i {
  transform: scale(1.1) rotate(0deg);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  transform: translateY(10px);
  opacity: 0;
  animation: slideUpFade 0.5s ease-out 0.6s both;
}

.testimonials-section.visible .testimonial-author {
  animation: slideUpFade 0.5s ease-out both;
}

.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-author {
  animation-delay: 0.7s;
}

.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-author {
  animation-delay: 0.75s;
}

.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-author {
  animation-delay: 0.8s;
}

.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-author {
  animation-delay: 0.85s;
}

.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-author {
  animation-delay: 0.9s;
}

.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-author {
  animation-delay: 0.95s;
}

.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-author {
  animation-delay: 1s;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  transform: scale(0.9);
  animation: avatarPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.testimonials-section.visible .testimonial-author img {
  animation: avatarPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.testimonials-section.visible .testimonial-card:nth-child(1) .testimonial-author img { animation-delay: 0.8s; }
.testimonials-section.visible .testimonial-card:nth-child(2) .testimonial-author img { animation-delay: 0.85s; }
.testimonials-section.visible .testimonial-card:nth-child(3) .testimonial-author img { animation-delay: 0.9s; }
.testimonials-section.visible .testimonial-card:nth-child(4) .testimonial-author img { animation-delay: 0.95s; }
.testimonials-section.visible .testimonial-card:nth-child(5) .testimonial-author img { animation-delay: 1s; }
.testimonials-section.visible .testimonial-card:nth-child(6) .testimonial-author img { animation-delay: 1.05s; }
.testimonials-section.visible .testimonial-card:nth-child(7) .testimonial-author img { animation-delay: 1.1s; }

.testimonial-card:hover .testimonial-author img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(197, 29, 52, 0.4);
  border-color: rgba(197, 29, 52, 0.5);
}

.author-info h4 {
  font-size: 1rem;
  margin: 0;
  color: var(--white);
  font-weight: 600;
}

.author-info p {
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Our 4 Step Approach Section */
.approach-section {
  padding: 8rem 0 10rem 0;
  background: linear-gradient(135deg, var(--cream-white) 0%, #fff5f0 50%, var(--cream-white) 100%);
  position: relative;
  overflow: hidden;
}

.approach-section .section-header {
  margin-bottom: 5rem;
}

.approach-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.backpack-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.backpack-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(197, 29, 52, 0.4) 0%, rgba(197, 29, 52, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlowRed 3s ease-in-out infinite;
  z-index: 1;
}

.backpack-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(197, 29, 52, 0.3) 0%, transparent 60%);
  border-radius: 50%;
  animation: pulseGlowRed 4s ease-in-out infinite 0.5s;
}

@keyframes pulseGlowRed {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.backpack-image {
  position: relative;
  z-index: 2;
  width: 180px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(197, 29, 52, 0.3));
  animation: floatBackpack 4s ease-in-out infinite;
}

@keyframes floatBackpack {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.approach-steps {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 500px;
}

.approach-steps-left {
  position: absolute;
  right: calc(50% + var(--approach-gap));
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
}

.approach-steps-right {
  position: absolute;
  left: calc(50% + var(--approach-gap));
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
}

.approach-step {
  position: relative;
  animation: slideInUp 0.8s ease-out both;
}

.approach-step-1 {
  animation-delay: 0.2s;
  top: -80px;
}

.approach-step-2 {
  animation-delay: 0.3s;
  top: -80px;
}

.approach-step-3 {
  animation-delay: 0.4s;
  top: 80px;
}

.approach-step-4 {
  animation-delay: 0.5s;
  top: 80px;
}

.step-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.step-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 50px rgba(197, 29, 52, 0.25);
  border-color: rgba(197, 29, 52, 0.3);
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--red), #d93850);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(197, 29, 52, 0.3);
  transition: all 0.3s ease;
}

.step-card:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(197, 29, 52, 0.4);
}

.step-icon i {
  font-size: 2rem;
  color: var(--white);
}

.step-number {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.4);
  border: 3px solid var(--white);
}

.step-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--dark-gray);
  line-height: 1.4;
  font-weight: 600;
}

.approach-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.approach-line {
  stroke-dashoffset: 1000;
  animation: drawLine 2.5s ease-out forwards;
}

.line-1 {
  animation-delay: 0.6s;
}

.line-2 {
  animation-delay: 0.7s;
}

.line-3 {
  animation-delay: 0.8s;
}

.line-4 {
  animation-delay: 0.9s;
}

/* Approach Section - Show as ordered cards up to 1199px */
@media (max-width: 1199px) {
  .approach-container {
    min-height: auto;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    display: block;
  }

  /* Hide backpack and lines on screens up to 1200px */
  .approach-center {
    display: none;
  }

  .approach-lines {
    display: none;
  }

  .approach-steps {
    position: relative;
    min-height: auto;
    width: 100%;
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
  }

  .approach-steps-left,
  .approach-steps-right {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    display: contents;
  }

  /* Order cards sequentially: 1, 2, 3, 4 with spacing */
  .approach-step-1 {
    order: 1;
    top: 0;
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .approach-step-2 {
    order: 2;
    top: 0;
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .approach-step-3 {
    order: 3;
    top: 0;
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .approach-step-4 {
    order: 4;
    top: 0;
    position: relative;
    margin-bottom: 0;
  }

  .step-card {
    padding: 2rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
  }

  .step-icon {
    width: 70px;
    height: 70px;
  }

  .step-icon i {
    font-size: 2rem;
  }

  .step-card h3 {
    font-size: 1.1rem;
  }
}

/* Approach Section - Tablet/Medium screens (769px - 1199px) - Larger card spacing */
@media (min-width: 769px) and (max-width: 1199px) {
  .approach-section {
    padding: 6rem 0;
  }

  .approach-section .section-header {
    margin-bottom: 3.5rem;
  }

  .step-card {
    padding: 2.5rem 2rem;
    max-width: 550px;
  }

  .step-card h3 {
    font-size: 1.15rem;
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* CTA Animation Elements */
.cta-title {
  animation: ctaZoomIn 0.8s ease-out both;
  animation-play-state: paused;
}

.cta-subtitle {
  animation: slideInUp 0.8s ease-out 0.2s both;
  animation-play-state: paused;
}

.cta-button {
  animation: ctaBounceIn 1s ease-out 0.4s both;
  animation-play-state: paused;
  position: relative;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 0 0 rgba(197, 29, 52, 0.7);
  animation: ctaPulse 2s infinite;
  z-index: -1;
  opacity: 0;
}

section.visible .cta-title,
section.visible .cta-subtitle,
section.visible .cta-button {
  animation-play-state: running;
}

section.visible .cta-button::after {
  animation: ctaPulse 2s infinite 1.4s;
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 29, 52, 0.7);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 20px rgba(197, 29, 52, 0);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 29, 52, 0);
    opacity: 0;
  }
}

@keyframes ctaZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ctaBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  50% {
    transform: scale(1.1) translateY(-5px);
  }
  70% {
    transform: scale(0.95) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tech-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(197, 29, 52, 0.1) 2px, transparent 2px),
    linear-gradient(90deg, rgba(197, 29, 52, 0.1) 2px, transparent 2px);
  background-size: 50px 50px;
  animation: gridPulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
}

/* Tech Icons Display */
.tech-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.tech-icon-item {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 2rem;
  color: var(--white);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  animation: techIconPop 0.6s ease-out both;
  animation-play-state: paused;
}

section.visible .tech-icon-item {
  animation-play-state: running;
}

/* Staggered animation delays for tech icons */
section.visible .tech-icon-item:nth-child(1) { animation-delay: 0.6s; }
section.visible .tech-icon-item:nth-child(2) { animation-delay: 0.7s; }
section.visible .tech-icon-item:nth-child(3) { animation-delay: 0.8s; }
section.visible .tech-icon-item:nth-child(4) { animation-delay: 0.9s; }
section.visible .tech-icon-item:nth-child(5) { animation-delay: 1s; }
section.visible .tech-icon-item:nth-child(6) { animation-delay: 1.1s; }
section.visible .tech-icon-item:nth-child(7) { animation-delay: 1.2s; }
section.visible .tech-icon-item:nth-child(8) { animation-delay: 1.3s; }
section.visible .tech-icon-item:nth-child(9) { animation-delay: 1.4s; }
section.visible .tech-icon-item:nth-child(10) { animation-delay: 1.5s; }
section.visible .tech-icon-item:nth-child(11) { animation-delay: 1.6s; }
section.visible .tech-icon-item:nth-child(12) { animation-delay: 1.7s; }

@keyframes techIconPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.tech-icon-item:hover {
  transform: translateY(-5px) scale(1.1);
  background: rgba(197, 29, 52, 0.8);
  box-shadow: 0 10px 30px rgba(197, 29, 52, 0.5);
}

/* Projects Page Styles */
.projects-hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.05) 0%, rgba(66, 133, 244, 0.05) 100%);
  position: relative;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.projects-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 29, 52, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.projects-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatSlow 6s ease-in-out infinite;
}

.projects-section {
  padding: 5rem 0 6rem;
  background: linear-gradient(to bottom, var(--white), var(--cream-white));
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(197, 29, 52, 0.02), transparent);
  pointer-events: none;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  color: var(--dark-gray);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  animation: filterBtnPop 0.6s ease-out both;
  animation-play-state: paused;
}

section.visible .filter-btn {
  animation-play-state: running;
}

section.visible .filter-btn:nth-child(1) { animation-delay: 0.1s; }
section.visible .filter-btn:nth-child(2) { animation-delay: 0.2s; }
section.visible .filter-btn:nth-child(3) { animation-delay: 0.3s; }
section.visible .filter-btn:nth-child(4) { animation-delay: 0.4s; }
section.visible .filter-btn:nth-child(5) { animation-delay: 0.5s; }

@keyframes filterBtnPop {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--red), #ff4757);
  border-color: transparent;
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(197, 29, 52, 0.35), 0 0 0 3px rgba(197, 29, 52, 0.1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: projectCardSlide 0.6s ease-out both;
  animation-play-state: paused;
  opacity: 1;
  position: relative;
  border: 1px solid rgba(197, 29, 52, 0.08);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff4757, var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

section.visible .project-card {
  animation-play-state: running;
}

section.visible .project-card:nth-child(1) { animation-delay: 0.1s; }
section.visible .project-card:nth-child(2) { animation-delay: 0.2s; }
section.visible .project-card:nth-child(3) { animation-delay: 0.3s; }
section.visible .project-card:nth-child(4) { animation-delay: 0.4s; }
section.visible .project-card:nth-child(5) { animation-delay: 0.5s; }
section.visible .project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes projectCardSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(197, 29, 52, 0.2);
}

.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.9), rgba(139, 92, 246, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-link {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.project-card:hover .project-link {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .project-link:nth-child(1) {
  transition-delay: 0.1s;
}

.project-card:hover .project-link:nth-child(2) {
  transition-delay: 0.2s;
}

.project-link:hover {
  background: var(--red);
  color: var(--white);
  transform: scale(1.1) translateY(0);
}

.project-content {
  padding: 2rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-date {
  font-size: 0.875rem;
  color: var(--gray);
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.project-content p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tags .tag {
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.1), rgba(66, 133, 244, 0.1));
  color: var(--dark-gray);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-tags .tag:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* Enhanced Project Card Styles */
.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--red), #ff4757);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.3);
  z-index: 2;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.project-card:hover .project-badge {
  opacity: 1;
  transform: translateY(0);
}

.project-stats {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--gray);
}

/* Empty State Styles */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeIn 0.5s ease;
}

.empty-state-content {
  max-width: 600px;
  margin: 0 auto;
}

.empty-state-image {
  margin-bottom: 2rem;
}

.empty-state-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.empty-state h3 {
  font-size: 2rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  font-weight: 700;
}

.empty-state p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.empty-state-cta {
  font-size: 1.2rem;
  margin: 2rem 0;
}

.empty-state-cta strong {
  color: var(--red);
  font-weight: 700;
}

.empty-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--red), #ff4757);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 8px 25px rgba(197, 29, 52, 0.3);
}

.empty-state-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(197, 29, 52, 0.4);
  background: linear-gradient(135deg, #a01628, var(--red));
}

.empty-state-btn i {
  font-size: 1.2rem;
}

.fade-in {
  animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Enhanced Filter Buttons */
.filter-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(197, 29, 52, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.filter-btn:hover::before {
  width: 200%;
  height: 200%;
}

.filter-btn i {
  transition: transform 0.3s ease;
}

.filter-btn:hover i {
  transform: scale(1.2);
}

.filter-btn.active {
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.25);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .empty-state-image img {
    max-width: 300px;
  }
  
  .empty-state h3 {
    font-size: 1.5rem;
  }
  
  .empty-state p {
    font-size: 1rem;
  }
  
  .empty-state-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Project Gallery Section */
.project-gallery-section {
  margin: 4rem 0;
}

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

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(197, 29, 52, 0.2);
}

.gallery-link {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
}

.gallery-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-link img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.8), rgba(139, 92, 246, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 2rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* Project Detail Header */
.project-detail-header {
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.project-detail-center {
  text-align: center;
  flex: 1;
  padding: 0 200px;
}

/* Back Button */
.back-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--red), #ff4757);
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.3);
  z-index: 10;
}

.back-button:hover {
  background: linear-gradient(135deg, #a01628, var(--red));
  transform: translateY(-50%) translateX(-5px);
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.4);
}

.back-button i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.back-button:hover i {
  transform: translateX(-3px);
}

.service-detail-description {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .project-detail-center {
    padding: 0 180px;
  }
}

@media (max-width: 768px) {
  .project-detail-header {
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .project-detail-center {
    padding: 0;
    text-align: left;
    width: 100%;
  }

  .back-button {
    position: static;
    transform: none;
    margin-bottom: 1.5rem;
    display: inline-flex;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    gap: 0.6rem;
  }
  
  .back-button:hover {
    transform: translateX(-5px);
  }
  
  .back-button i {
    font-size: 0.875rem;
  }
}

/* Image Lightbox Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 35px;
  z-index: 10002;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: grab;
}

.modal-content img:active {
  cursor: grabbing;
}

.modal-close {
  position: static;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  user-select: none;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.modal-zoom-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.zoom-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover,
.zoom-btn:active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.zoom-btn i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.modal-counter {
  position: static;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}


/* Projects Stats Section */
.projects-stats-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.stat-box {
  text-align: center;
  padding: 2rem;
  animation: statBoxFloat 0.8s ease-out both;
  animation-play-state: paused;
}

section.visible .stat-box {
  animation-play-state: running;
}

section.visible .stat-box:nth-child(1) { animation-delay: 0.1s; }
section.visible .stat-box:nth-child(2) { animation-delay: 0.2s; }
section.visible .stat-box:nth-child(3) { animation-delay: 0.3s; }
section.visible .stat-box:nth-child(4) { animation-delay: 0.4s; }

@keyframes statBoxFloat {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--red), #d93850);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(197, 29, 52, 0.4);
  transition: all 0.3s ease;
}

.stat-box:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(197, 29, 52, 0.6);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Page Specific Styles */
.about-hero,
.contact-hero,
.services-hero,
.service-detail-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.05) 0%, rgba(66, 133, 244, 0.05) 100%);
  position: relative;
}

.about-content,
.contact-section,
.services-list-section,
.service-detail-content {
  padding: 5rem 0;
  background: var(--white);
}

/* Info Cards */
.info-card {
  display: flex;
  gap: 2rem;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out both;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }

.info-card:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(197, 29, 52, 0.15);
}

.card-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), #d93850);
  color: var(--white);
  font-size: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.3);
}

.card-content h3 {
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
}

.card-content p {
  color: var(--gray);
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s ease;
  animation: scaleIn 0.6s ease-out both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(197, 29, 52, 0.15);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}

.feature-item h4 {
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Team Page Enhancements */
.team-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.05) 0%, rgba(66, 133, 244, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.team-hero .container {
  position: relative;
  z-index: 2;
}

.team-section {
  padding: 5rem 0;
  background: var(--white);
}

.team-card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.03), rgba(66, 133, 244, 0.03));
}

.team-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card-image-wrapper:hover .team-card-image {
  transform: scale(1.05);
}

.team-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.95), rgba(197, 29, 52, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.view-profile-btn {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--red);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.team-card:hover .view-profile-btn {
  transform: translateY(0);
  opacity: 1;
}

.view-profile-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(0) scale(1.05);
}

/* Hide overlay on mobile devices */
@media (max-width: 768px) {
  .team-card-overlay {
    display: none !important;
  }
}

.bio-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--gray);
  height: 3.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.team-social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 29, 52, 0.08);
  justify-content: center;
}

.team-social-link {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.08), rgba(66, 133, 244, 0.08));
  color: var(--dark-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(197, 29, 52, 0.1);
}

.team-social-link:hover {
  background: linear-gradient(135deg, var(--red), rgba(139, 92, 246, 0.9));
  color: var(--white);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.3);
  border-color: transparent;
}

/* Team Detail Page */
.team-detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}

.team-detail-sidebar {
  position: sticky;
  top: 100px;
}

.member-image-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 1;
}

.member-detail-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-main-image {
  opacity: 1;
  z-index: 2;
}

.member-alter-ego-image {
  opacity: 0;
  z-index: 1;
  filter: grayscale(0.2) contrast(1.15) brightness(1.05);
  transform: scale(1.1) rotate(2deg);
}

.member-image-wrapper:hover .member-main-image {
  opacity: 0;
  transform: scale(0.9) rotate(-2deg);
  filter: blur(3px);
}

.member-image-wrapper:hover .member-alter-ego-image {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: grayscale(0) contrast(1.1) brightness(1);
}

.member-nickname-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--red), #ff4757);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(197, 29, 52, 0.4);
  backdrop-filter: blur(10px);
  z-index: 10;
  pointer-events: none;
}

.member-nickname-badge i {
  font-size: 1rem;
}

.social-links-detail {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-link-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.1), rgba(66, 133, 244, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(197, 29, 52, 0.3);
  border-color: var(--red);
}

.team-detail-content {
  padding: 1rem 0;
}

.member-name {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark-gray);
  font-weight: 800;
}

.member-position {
  font-size: 1.35rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-position i {
  font-size: 1.25rem;
}

.tech-badges-with-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech-badge-icon {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.08), rgba(66, 133, 244, 0.08));
  color: var(--dark-gray);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
}

.tech-badge-icon i {
  font-size: 1.1rem;
  color: var(--red);
}

.tech-badge-icon:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.3);
  border-color: var(--red);
}

.tech-badge-icon:hover i {
  color: var(--white);
}

/* Devicon styling */
.tech-badge-icon i[class*="devicon-"] {
  font-size: 1.25rem;
  color: var(--red);
}

.tech-badge-icon:hover i[class*="devicon-"] {
  color: var(--white);
}

.back-to-team {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--light-gray);
}

.back-to-team-sticky {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  animation: slideInUp 0.8s ease-out;
}

.empty-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.1), rgba(66, 133, 244, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--red);
}

.empty-state h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.empty-state p {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
}

/* Contact Page Enhancements */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  animation: slideInLeft 0.8s ease-out both;
  animation-play-state: paused;
}

section.visible .contact-info {
  animation-play-state: running;
}

.contact-info-header {
  margin-bottom: 2rem;
}

.contact-info-header h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.contact-info-header p {
  font-size: 1.125rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-detail-item {
  display: flex;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  animation: contactItemSlide 0.6s ease-out both;
  animation-play-state: paused;
}

section.visible .contact-detail-item {
  animation-play-state: running;
}

section.visible .contact-detail-item:nth-child(1) { animation-delay: 0.1s; }
section.visible .contact-detail-item:nth-child(2) { animation-delay: 0.2s; }
section.visible .contact-detail-item:nth-child(3) { animation-delay: 0.3s; }
section.visible .contact-detail-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes contactItemSlide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-detail-item:hover {
  transform: translateX(10px);
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.15);
}

.contact-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--red), #d93850);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.3);
  transition: all 0.3s ease;
}

.contact-detail-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.4);
}

.contact-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--dark-gray);
}

.contact-text p {
  font-size: 0.95rem;
  color: var(--gray);
  margin: 0;
}

.contact-social {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.05), rgba(66, 133, 244, 0.05));
  border-radius: 12px;
  animation: slideInLeft 0.8s ease-out 0.5s both;
  animation-play-state: paused;
}

section.visible .contact-social {
  animation-play-state: running;
}

.contact-social h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

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

.contact-social-btn {
  width: 45px;
  height: 45px;
  background: var(--white);
  color: var(--dark-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-social-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.3);
}

.contact-form-card {
  animation: slideInRight 0.8s ease-out both;
  animation-play-state: paused;
}

section.visible .contact-form-card {
  animation-play-state: running;
}

.contact-form-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.form-subtitle {
  color: var(--gray);
  margin-bottom: 2rem;
}

.contact-form .form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.contact-form .form-group label i {
  color: var(--red);
}

.submit-btn {
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* Contact Page Styles */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.contact-info > p {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.contact-detail-item:hover {
  transform: translateX(10px);
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.15);
}

.contact-detail-item i {
  font-size: 1.5rem;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-detail-item h4 {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.contact-detail-item p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

.contact-form-wrapper {
  animation: slideInRight 0.8s ease-out;
}

.contact-form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.alert-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  animation: slideInUp 0.5s ease-out;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Service Detail Styles */
.service-hero-icon {
  display: inline-block;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--red), #d93850);
  color: var(--white);
  font-size: 3rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 40px rgba(197, 29, 52, 0.3);
  animation: float 3s ease-in-out infinite;
  overflow: hidden;
}

.service-hero-icon img {
  width: 100%;
  height: 100%;
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  display: block;
  padding: 5px;
}

.service-detail-title {
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.service-detail-description {
  animation: slideInUp 0.8s ease-out 0.4s both;
}

/* Process Section */
.service-process-section {
  margin: 5rem 0;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.03) 0%, rgba(66, 133, 244, 0.03) 100%);
  border-radius: 20px;
  animation: slideInUp 0.8s ease-out both;
  animation-play-state: paused;
}

section.visible .service-process-section {
  animation-play-state: running;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  animation: processStepPop 0.6s ease-out both;
  animation-play-state: paused;
}

section.visible .process-step {
  animation-play-state: running;
}

section.visible .process-step:nth-child(1) { animation-delay: 0.1s; }
section.visible .process-step:nth-child(2) { animation-delay: 0.2s; }
section.visible .process-step:nth-child(3) { animation-delay: 0.3s; }
section.visible .process-step:nth-child(4) { animation-delay: 0.4s; }

@keyframes processStepPop {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(197, 29, 52, 0.15);
}

.process-number {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.4);
  border: 3px solid var(--white);
}

.process-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.1), rgba(66, 133, 244, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--red);
  transition: all 0.3s ease;
}

.process-step:hover .process-icon {
  background: linear-gradient(135deg, var(--red), #d93850);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(197, 29, 52, 0.3);
}

.process-step h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark-gray);
}

.process-step p {
  font-size: 0.95rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* Enhanced Service CTA */
.service-cta {
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(197, 29, 52, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 4s ease-in-out infinite;
  z-index: 0;
}

.service-cta h2,
.service-cta p,
.service-cta a {
  position: relative;
  z-index: 1;
}

.cta-btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(197, 29, 52, 0.3);
  transition: all 0.3s ease;
}

.cta-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(197, 29, 52, 0.5);
}

.service-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.detail-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: slideInUp 0.6s ease-out both;
}

.detail-card:nth-child(1) { animation-delay: 0.1s; }
.detail-card:nth-child(2) { animation-delay: 0.2s; }

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

.detail-card-header i {
  font-size: 1.75rem;
  color: var(--red);
}

.detail-card-header h3 {
  margin: 0;
  color: var(--dark-gray);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--gray);
  border-bottom: 1px solid var(--light-gray);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list i {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(197, 29, 52, 0.1), rgba(66, 133, 244, 0.1));
  color: var(--dark-gray);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  transform: translateY(-2px);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.3);
}

.service-cta {
  text-align: center;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 24px;
  animation: slideInUp 0.8s ease-out 0.3s both;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--red), #ff4757);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 30px rgba(197, 29, 52, 0.4);
  animation: floatIcon 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.service-cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--red), #ff4757, var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

.service-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.cta-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.particle:nth-child(3) {
  top: 40%;
  left: 10%;
  animation-delay: 2s;
  animation-duration: 8s;
}

.particle:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 3s;
  animation-duration: 9s;
}

.particle:nth-child(5) {
  top: 10%;
  left: 50%;
  animation-delay: 1.5s;
  animation-duration: 7.5s;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) translateX(20px);
  }
}

/* Team Page Enhancements */
.team-grid {
  animation: slideInUp 0.6s ease-out;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 0.5rem 0;
  border-top: 2px solid rgba(197, 29, 52, 0.1);
}

.mobile-bottom-nav {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  color: var(--gray);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  position: relative;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.mobile-nav-item span {
  font-weight: 500;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--red);
}

.mobile-nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
}

/* Mobile User Menu Button */
.mobile-user-menu-btn {
  display: none;
  background: var(--red);
  border: none;
  color: white;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  justify-self: end;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid rgba(197, 29, 52, 0.5);
  box-shadow: 0 0 15px rgba(197, 29, 52, 0.4);
  position: relative;
  align-items: center;
  justify-content: center;
}

.mobile-user-menu-btn i {
  font-size: 1.5rem;
  z-index: 1;
  position: relative;
}

.mobile-user-menu-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.mobile-user-menu-btn:hover {
  transform: scale(1.05);
  border-color: var(--red);
  box-shadow: 0 0 25px rgba(197, 29, 52, 0.6);
}

.mobile-user-menu-btn:has(img) {
  background: transparent;
}

.mobile-user-menu-btn:has(img):hover {
  background: transparent;
}

/* Mobile User Menu Dropdown */
.mobile-user-menu {
  display: none;
  position: fixed;
  top: 70px;
  right: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1001;
  min-width: 200px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-user-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--dark-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--light-gray);
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-item:hover {
  background: var(--cream-white);
  color: var(--red);
}

.mobile-menu-item i {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1060px) {
  /* Add padding to body to account for bottom nav */
  body {
    padding-bottom: 70px;
  }

  /* Show mobile navigation */
  .mobile-bottom-nav {
    display: grid;
  }

  .mobile-user-menu {
    display: block;
  }

  .mobile-user-menu-btn {
    display: flex;
  }

  .navbar {
    grid-template-columns: auto 1fr auto;
    padding: 0.75rem 0;
    gap: 1rem;
  }

  .logo {
    font-size: 1.5rem;
    gap: 0.5rem;
  }

  .logo-img {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    display: none;
  }

  /* Hide desktop nav actions on mobile */
  .nav-actions {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Hide all buttons in nav-actions on mobile */
  .nav-actions .btn,
  .nav-actions .btn.btn-secondary,
  .nav-actions a.btn.btn-secondary,
  .nav-actions .header-profile-link {
    display: none !important;
    visibility: hidden !important;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-error {
    padding: 2rem 0 1.5rem;
    min-height: auto;
  }

  .error-container {
    gap: 1rem;
  }

  .error-illustration {
    width: min(250px, 65vw);
    margin-bottom: 0.5rem;
  }

  .error-copy h1 {
    font-size: 1.75rem;
  }

  .error-copy p {
    font-size: 0.9rem;
  }

  .error-badge {
    font-size: 0.75rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1,
  .hero-content p {
    text-align: center;
  }

  .hero-content .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Adjusting animated shapes for mobile */
  .hero::before,
  .hero::after {
    width: 300px;
    height: 300px;
  }

  /* Adjust flying icons for mobile */
  .flying-tech-icons i {
    font-size: 1.8rem;
  }
  
  /* Adjust image on mobile */
  .hero-image img {
    max-width: 100%;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .about-header h2 {
    font-size: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-feature-card {
    padding: 2rem;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-item-left,
  .why-item-center,
  .why-item-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-top: 2rem;
  }

  .why-icon-left,
  .why-icon-center,
  .why-icon-right {
    position: static;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin-bottom: 1.5rem;
    margin-top: 0;
  }

  /* Mobile responsive brands grid */
  .brands-grid {
    gap: 1.25rem;
  }

  /* 1 brand - centered */
  .brands-grid[data-brand-count="1"] {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* 2 brands - 2 columns */
  .brands-grid[data-brand-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  /* 3 brands - 3 columns */
  .brands-grid[data-brand-count="3"] {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

  /* 4-5 brands - 2 columns */
  .brands-grid[data-brand-count="4"],
  .brands-grid[data-brand-count="5"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  /* 6 brands - 3 columns */
  .brands-grid[data-brand-count="6"] {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

  /* 7-8 brands - 2 columns */
  .brands-grid[data-brand-count="7"],
  .brands-grid[data-brand-count="8"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  /* 9 brands - 3 columns */
  .brands-grid[data-brand-count="9"] {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

  .brand-item {
    padding: 1.5rem;
    min-height: 120px;
    border-radius: 16px;
  }

  .brand-item img {
    max-height: 60px;
  }

  /* Very small screens - adjust for better spacing */
  @media (max-width: 480px) {
    .brands-section {
      padding: 3rem 0;
    }

    .brands-section .section-header {
      margin-bottom: 2.5rem;
    }

    .brands-grid {
      gap: 1rem;
    }

    /* On very small screens, reduce columns for better readability */
    .brands-grid[data-brand-count="3"],
    .brands-grid[data-brand-count="6"],
    .brands-grid[data-brand-count="9"] {
      grid-template-columns: repeat(2, 1fr);
    }

    .brand-item {
      padding: 1.25rem;
      min-height: 100px;
      border-radius: 12px;
    }

    .brand-item img {
      max-height: 50px;
    }
  }

  .testimonials-bento {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card:nth-child(1),
  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(3),
  .testimonial-card:nth-child(4),
  .testimonial-card:nth-child(5),
  .testimonial-card:nth-child(6),
  .testimonial-card:nth-child(7) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .testimonial-card {
    padding: 2rem;
  }

  /* Approach Section Responsive */
  .approach-section {
    padding: 4rem 0;
  }

  .approach-section .section-header {
    margin-bottom: 2.5rem;
  }

  .approach-container {
    min-height: auto;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    display: block;
  }

  /* Hide backpack on mobile */
  .approach-center {
    display: none;
  }

  .approach-steps {
    position: relative;
    min-height: auto;
    width: 100%;
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
  }

  .approach-steps-left,
  .approach-steps-right {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    display: contents;
  }

  /* Order cards sequentially: 1, 2, 3, 4 with spacing */
  .approach-step-1 {
    order: 1;
    top: 0;
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .approach-step-2 {
    order: 2;
    top: 0;
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .approach-step-3 {
    order: 3;
    top: 0;
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .approach-step-4 {
    order: 4;
    top: 0;
    position: relative;
    margin-bottom: 0;
  }

  .approach-lines {
    display: none;
  }

  .step-card {
    padding: 1.5rem;
    max-width: 300px;
    margin: 0 auto;
  }

  .step-icon {
    width: 60px;
    height: 60px;
  }

  .step-icon i {
    font-size: 1.5rem;
  }

  .step-card h3 {
    font-size: 1rem;
  }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 2rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-details-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 2rem auto 0;
  }

  .info-card {
    flex-direction: column;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .tech-icons {
    gap: 1rem;
  }

  .tech-icon-item {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* Team detail page responsive */
  .team-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-detail-sidebar {
    position: relative;
    top: 0;
  }

  .member-name {
    font-size: 2rem;
  }

  .member-position {
    font-size: 1.15rem;
  }

  .tech-badge-icon {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }

  .services-section .container > div[style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Projects Page Mobile Styles */
  .projects-hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

  .projects-hero::before,
  .projects-hero::after {
    width: 400px;
    height: 400px;
  }

  .projects-hero .section-header h2 {
    font-size: 1.75rem;
  }

  .projects-hero .hero-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .section-label {
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .section-label i {
    font-size: 0.875rem;
  }

  .projects-section {
    padding: 3rem 0 4rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .project-filters {
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }

  .filter-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    gap: 0.4rem;
  }

  .filter-btn i {
    font-size: 0.875rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card {
    border-radius: 16px;
    /* Improve touch targets on mobile */
    margin-bottom: 0.5rem;
  }

  .project-card:active {
    transform: scale(0.98);
  }

  .project-image {
    height: 220px;
  }

  .project-overlay {
    /* Always show overlay on mobile for better UX */
    opacity: 0.9;
  }

  .project-link {
    /* Larger touch target */
    width: 55px;
    height: 55px;
    font-size: 1.25rem;
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .project-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .project-tags {
    gap: 0.4rem;
  }

  .project-tags .tag {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }

  .empty-state {
    padding: 3rem 1rem;
  }

  .empty-state-image img {
    max-width: 280px;
  }

  .empty-state h3 {
    font-size: 1.5rem;
  }

  .empty-state p {
    font-size: 0.95rem;
  }

  .empty-state-cta {
    font-size: 1.05rem;
  }

  .empty-state-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  /* Project Detail Page Mobile Styles */
  .service-detail-hero {
    padding: 5rem 0 3rem;
  }

  .project-detail-header,
  .project-detail-center {
    padding: 0 1rem;
  }

  .service-detail-title {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .detail-card {
    padding: 1.5rem;
  }

  .detail-card-header h3 {
    font-size: 1.25rem;
  }

  .tech-badges {
    gap: 0.5rem;
  }

  .tech-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .project-gallery-section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-item {
    border-radius: 12px;
  }

  .service-cta {
    padding: 2.5rem 1.25rem 3rem;
    border-radius: 16px;
    margin: 0 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }

  .cta-icon {
    width: 70px;
    height: 70px;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 25px rgba(197, 29, 52, 0.5);
  }

  .service-cta h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .gradient-text {
    display: block;
    margin-top: 0.25rem;
  }

  .service-cta p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    line-height: 1.6;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.875rem;
    padding: 0 0.5rem;
  }

  .cta-btn-large {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(197, 29, 52, 0.4);
  }

  .btn-secondary.cta-btn-large {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  }

  .cta-glow {
    width: 200px;
    height: 200px;
  }

  .particle {
    width: 3px;
    height: 3px;
  }

  /* Image Modal Mobile */
  .image-modal {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    justify-content: flex-start;
  }

  .modal-header {
    padding: 10px 15px;
    flex-shrink: 0;
    width: 100%;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.75rem;
  }

  .modal-counter {
    font-size: 0.875rem;
    padding: 8px 14px;
  }

  /* Hide arrow buttons on mobile - use swipe instead */
  .modal-prev,
  .modal-next {
    display: none;
  }

  .image-modal .modal-content {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-content img {
    max-height: calc(100vh - 160px);
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .modal-zoom-controls {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 15px auto;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
  }

  .zoom-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-width: 1.5px;
  }
  
  .zoom-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
  }

  /* Footer responsive */
  footer .container {
    padding: 0 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-links-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-social {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-cta-card {
    padding: 1.5rem 1rem;
  }

  .cta-icon {
    width: 45px;
    height: 45px;
  }

  .footer-cta-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .error-illustration {
    width: min(200px, 60vw);
  }

  .error-copy h1 {
    font-size: 1.5rem;
  }

  .error-copy p {
    font-size: 0.85rem;
  }

  .hero-buttons.error-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-buttons.error-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Enhanced CTA for small mobile */
  .service-cta {
    padding: 2rem 1rem 2.5rem;
    margin: 0 0.25rem;
  }

  .cta-icon {
    width: 65px;
    height: 65px;
    font-size: 2rem;
  }

  .service-cta h2 {
    font-size: 1.35rem;
  }

  .service-cta p {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }

  .cta-btn-large {
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1060px) {
  /* Hide mobile user menu button on desktop */
  .mobile-user-menu-btn {
    display: none !important;
  }

  /* Ensure nav-actions and logout button are visible on desktop */
  .nav-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .nav-actions .btn,
  .nav-actions .btn.btn-secondary,
  .nav-actions a.btn.btn-secondary,
  .nav-actions .header-profile-link {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
  }
  
  /* Ensure navbar doesn't cut off nav-actions */
  .navbar {
    grid-template-columns: auto 1fr auto !important;
  }
  
  .nav-actions {
    min-width: fit-content !important;
    max-width: none !important;
  }
}

@media (min-width: 1060px) and (max-width: 1200px) {
  .hero-container {
    gap: 3rem;
  }

  .hero-image img {
    max-width: 450px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  /* Ensure logout button is visible on tablet screens */
  .nav-actions {
    gap: 0.75rem; /* Slightly reduce gap on tablets */
  }
  
  .nav-actions .btn {
    padding: 0.65rem 1.5rem; /* Slightly smaller padding on tablets */
    font-size: 0.95rem;
  }

  /* Projects Page Tablet Styles */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .project-filters {
    gap: 0.875rem;
  }

  .filter-btn {
    padding: 0.7rem 1.35rem;
    font-size: 0.9rem;
  }

  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Team Page Tablet Styles */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .testimonials-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card:nth-child(1),
  .testimonial-card:nth-child(4) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .testimonial-card:nth-child(5),
  .testimonial-card:nth-child(6),
  .testimonial-card:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-links-wrapper {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Dashboard Sidebar Styles - Dark Theme with Red Accents */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--cream-white);
}

.dashboard-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border-right: 1px solid rgba(197, 29, 52, 0.2);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 8px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(197, 29, 52, 0.6), rgba(197, 29, 52, 0.4));
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(197, 29, 52, 0.8), rgba(197, 29, 52, 0.6));
  border-color: rgba(197, 29, 52, 0.3);
}

/* Firefox scrollbar */
.dashboard-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 29, 52, 0.6) rgba(0, 0, 0, 0.2);
}

.dashboard-main {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
}

/* Sidebar Header */
.sidebar-header {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(197, 29, 52, 0.2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.sidebar-logo:hover {
  transform: translateX(5px);
}

.sidebar-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(197, 29, 52, 0.6));
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.sidebar-logo:hover .sidebar-logo-img {
  filter: drop-shadow(0 0 12px rgba(197, 29, 52, 1));
  transform: rotate(5deg);
}

.sidebar-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(197, 29, 52, 0.5);
  position: relative;
  z-index: 1;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 29, 52, 0.6) rgba(0, 0, 0, 0.2);
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(197, 29, 52, 0.6), rgba(197, 29, 52, 0.4));
  border-radius: 3px;
  transition: all 0.3s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(197, 29, 52, 0.8), rgba(197, 29, 52, 0.6));
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin: 0.125rem 0.5rem;
  border-radius: 10px;
  overflow: visible;
}

.nav-item-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(197, 29, 52, 0);
  transition: all 0.3s ease;
  border-radius: 12px;
}

.sidebar-nav-item:hover .nav-item-bg {
  background: rgba(197, 29, 52, 0.15);
}

.sidebar-nav-item.active .nav-item-bg {
  background: rgba(197, 29, 52, 0.25);
  box-shadow: 0 0 20px rgba(197, 29, 52, 0.3);
}

.sidebar-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.sidebar-nav-item:hover i {
  transform: scale(1.2);
  color: var(--red);
}

.sidebar-nav-item span {
  position: relative;
  z-index: 1;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.sidebar-nav-item:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.sidebar-nav-item.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-item-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--red);
  border-radius: 0 4px 4px 0;
  transition: height 0.3s ease;
  box-shadow: 0 0 10px var(--red);
}

.sidebar-nav-item.active .nav-item-indicator {
  height: 60%;
  animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
  0%, 100% { box-shadow: 0 0 10px var(--red); }
  50% { box-shadow: 0 0 20px var(--red); }
}

/* 300 Year Old Gamer Easter Egg */
.games-easter-egg-trigger {
  position: relative;
  overflow: visible;
}

/* CSS fallback for hover (backup if JS fails) */
.games-easter-egg-trigger:hover .thiccgob-easter-egg {
  opacity: 1 !important;
  visibility: visible !important;
}

.thiccgob-easter-egg {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 99999;
  white-space: nowrap;
  transform: translateY(-50%) scale(0.8);
  will-change: opacity, transform;
  left: 0;
  top: 0;
}

/* Ensure easter egg content is visible when parent is visible */
.thiccgob-easter-egg[style*="opacity: 1"],
.games-easter-egg-trigger:hover .thiccgob-easter-egg {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Easter egg visibility is now controlled by JavaScript */

.easter-egg-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 3px solid #4a4a4a;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 
    0 0 0 2px #000,
    0 8px 32px rgba(0, 0, 0, 0.8),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
  position: relative;
  min-width: 200px;
  animation: easterEggPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  z-index: 1;
}

/* Thunder/Lightning Background Effect */
.thunder-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
  overflow: hidden;
}

.thunder-background::before,
.thunder-background::after {
  content: '';
  position: absolute;
  width: 5px;
  opacity: 0;
  transform-origin: top center;
  background: linear-gradient(to bottom, 
    transparent 0%,
    rgba(150, 200, 255, 1) 5%,
    rgba(100, 180, 255, 1) 15%,
    rgba(150, 200, 255, 1) 25%,
    rgba(100, 180, 255, 1) 35%,
    rgba(150, 200, 255, 1) 45%,
    rgba(100, 180, 255, 1) 55%,
    rgba(150, 200, 255, 1) 65%,
    rgba(100, 180, 255, 1) 75%,
    rgba(150, 200, 255, 1) 85%,
    transparent 100%);
  box-shadow: 
    0 0 12px rgba(100, 180, 255, 1),
    0 0 20px rgba(150, 200, 255, 1),
    0 0 30px rgba(100, 180, 255, 0.8),
    0 0 40px rgba(150, 200, 255, 0.6);
  clip-path: polygon(
    40% 0%,
    75% 8%,
    25% 16%,
    70% 24%,
    30% 32%,
    65% 40%,
    35% 48%,
    70% 56%,
    30% 64%,
    65% 72%,
    35% 80%,
    70% 88%,
    40% 100%
  );
}

.thunder-background::before {
  left: 25%;
  height: 70%;
  top: 5%;
  transform: translateX(-50%) rotate(-8deg);
  animation: lightning1 4s ease-in-out infinite;
}

.thunder-background::after {
  right: 28%;
  height: 80%;
  top: 2%;
  transform: translateX(50%) rotate(12deg);
  animation: lightning2 4.5s ease-in-out infinite;
}

@keyframes lightning1 {
  0%, 100% {
    opacity: 0;
    transform: translateX(-50%) rotate(-8deg) scaleY(0);
  }
  8% {
    opacity: 0;
  }
  8.1% {
    opacity: 1;
    transform: translateX(-50%) rotate(-8deg) scaleY(1);
  }
  8.3% {
    opacity: 0.95;
  }
  8.5% {
    opacity: 0;
  }
  24% {
    opacity: 0;
  }
  24.1% {
    opacity: 1;
    transform: translateX(-50%) rotate(-8deg) scaleY(1);
  }
  24.2% {
    opacity: 0;
  }
  48% {
    opacity: 0;
  }
  48.1% {
    opacity: 1;
    transform: translateX(-50%) rotate(-8deg) scaleY(1);
  }
  48.3% {
    opacity: 0.9;
  }
  48.5% {
    opacity: 0;
  }
}

@keyframes lightning2 {
  0%, 100% {
    opacity: 0;
    transform: translateX(50%) rotate(18deg) scaleY(0);
  }
  12% {
    opacity: 0;
  }
  12.1% {
    opacity: 1;
    transform: translateX(50%) rotate(18deg) scaleY(1);
  }
  12.3% {
    opacity: 0;
  }
  30% {
    opacity: 0;
  }
  30.1% {
    opacity: 1;
    transform: translateX(50%) rotate(18deg) scaleY(1);
  }
  30.2% {
    opacity: 0.9;
  }
  30.4% {
    opacity: 0;
  }
  55% {
    opacity: 0;
  }
  55.1% {
    opacity: 1;
    transform: translateX(50%) rotate(18deg) scaleY(1);
  }
  55.3% {
    opacity: 0.7;
  }
  55.5% {
    opacity: 0;
  }
}

/* 300 Year Old Gamer Name */
.thiccgob-name {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-size: 14px;
  color: #fff;
  text-shadow: 
    3px 3px 0px #000,
    0 0 10px rgba(197, 29, 52, 0.8),
    0 0 20px rgba(197, 29, 52, 0.6),
    0 0 30px rgba(197, 29, 52, 0.4);
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
  animation: nameGlow 2s ease-in-out infinite alternate;
  position: relative;
  z-index: 3;
}

@keyframes nameGlow {
  0% {
    text-shadow: 
      3px 3px 0px #000,
      0 0 10px rgba(197, 29, 52, 0.8),
      0 0 20px rgba(197, 29, 52, 0.6);
  }
  100% {
    text-shadow: 
      3px 3px 0px #000,
      0 0 15px rgba(197, 29, 52, 1),
      0 0 25px rgba(197, 29, 52, 0.8),
      0 0 35px rgba(197, 29, 52, 0.6),
      0 0 45px rgba(100, 150, 255, 0.4);
  }
}

@keyframes easterEggPop {
  0% {
    transform: scale(0.5) rotate(-5deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.thiccgob-image {
  width: 120px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  animation: thiccgobBounce 2s ease-in-out infinite;
}

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

.game-message-box {
  background: #1a1a1a;
  border: 2px solid #4a4a4a;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  position: relative;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.game-message-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #ffe66d, #ff6b6b);
  background-size: 400% 400%;
  border-radius: 6px;
  z-index: -1;
  animation: borderGlow 3s ease infinite;
  opacity: 0.3;
}

@keyframes borderGlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.game-message-text {
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  margin: 0;
  text-shadow: 
    2px 2px 0px #000,
    0 0 8px rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
  font-weight: bold;
  text-transform: uppercase;
  animation: textGlow 2s ease-in-out infinite alternate;
  position: relative;
}

.game-message-text:first-child {
  margin-bottom: 0.5rem;
}

@keyframes textGlow {
  0% {
    text-shadow: 
      2px 2px 0px #000,
      0 0 8px rgba(255, 255, 255, 0.3);
  }
  100% {
    text-shadow: 
      2px 2px 0px #000,
      0 0 12px rgba(197, 29, 52, 0.6),
      0 0 20px rgba(197, 29, 52, 0.4);
  }
}

/* Pixel font fallback styling */
.game-message-text {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.8;
  position: relative;
  z-index: 3;
}

.typing-text {
  min-height: 1.8em;
}

.typing-text::after {
  content: '|';
  animation: blinkCursor 0.8s infinite;
  color: #fff;
  font-weight: bold;
}

.typing-text.typing-complete::after {
  animation: none;
  opacity: 0;
}

@keyframes blinkCursor {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Responsive adjustments for easter egg */
@media (max-width: 768px) {
  .easter-egg-content {
    min-width: 180px;
    padding: 0.75rem;
  }
  
  .thiccgob-image {
    width: 100px;
  }
  
  .game-message-text {
    font-size: 10px;
  }
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid rgba(197, 29, 52, 0.2);
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(197, 29, 52, 0.2);
}

.sidebar-profile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.375rem;
  margin: -0.375rem -0.375rem 0.375rem -0.375rem;
  cursor: pointer;
  width: calc(100% + 0.75rem);
  position: relative;
  z-index: 10;
}

.sidebar-profile-link:hover {
  background: rgba(197, 29, 52, 0.1);
  transform: translateX(3px);
}

.sidebar-profile-link:hover .sidebar-profile-img {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(197, 29, 52, 0.5);
}

.profile-img-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.profile-pulse {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--red);
  border-radius: 50%;
  animation: profilePulse 2s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes profilePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

.sidebar-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(197, 29, 52, 0.5);
  box-shadow: 0 0 15px rgba(197, 29, 52, 0.4);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.sidebar-profile:hover .sidebar-profile-img {
  border-color: var(--red);
  box-shadow: 0 0 30px rgba(197, 29, 52, 0.6);
  transform: scale(1.05);
}

.sidebar-profile-info {
  flex: 1;
  min-width: 0;
}

.sidebar-profile-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-role {
  font-size: 0.75rem;
  color: rgba(197, 29, 52, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(197, 29, 52, 0.2);
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.sidebar-action-btn::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;
}

.sidebar-action-btn:hover::before {
  left: 100%;
}

.sidebar-action-btn:hover {
  background: rgba(197, 29, 52, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.4);
  border-color: var(--red);
}

.sidebar-action-btn:active {
  transform: translateY(0);
}

.sidebar-action-btn i {
  width: 16px;
  text-align: center;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.sidebar-action-btn:hover i {
  transform: scale(1.2);
}

.sidebar-action-btn.logout-btn {
  background: rgba(197, 29, 52, 0.15);
  color: var(--red);
  border-color: rgba(197, 29, 52, 0.4);
}

.sidebar-action-btn.logout-btn:hover {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 6px 25px rgba(197, 29, 52, 0.6);
}

.btn-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.6s, height 0.6s;
}

.btn-ripple.active {
  width: 300px;
  height: 300px;
}

/* All sidebars use red theme */
.client-sidebar,
.admin-sidebar,
.team-sidebar {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border-right-color: rgba(197, 29, 52, 0.2);
}

/* Profile Picture Upload Styles */
.profile-img-wrapper {
  position: relative;
}

.profile-clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(197, 29, 52, 0.8);
}

/* Profile upload overlay - only for profile pages */
.profile-img-wrapper-large .profile-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.profile-img-wrapper-large:hover .profile-upload-overlay {
  opacity: 1;
}

.profile-upload-overlay i {
  color: var(--red);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.profile-upload-overlay span {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Profile Upload Modal */
.profile-upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.profile-upload-modal.active {
  opacity: 1;
  visibility: visible;
}

.profile-modal-content {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 29, 52, 0.3);
  border: 1px solid rgba(197, 29, 52, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.profile-upload-modal.active .profile-modal-content {
  transform: scale(1);
}

.profile-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(197, 29, 52, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-modal-header h3 {
  color: #ffffff;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.profile-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.profile-modal-close:hover {
  color: var(--red);
  background: rgba(197, 29, 52, 0.2);
  transform: rotate(90deg);
}

.profile-modal-body {
  padding: 1.5rem;
}

.upload-area {
  border: 2px dashed rgba(197, 29, 52, 0.5);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(197, 29, 52, 0.05);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--red);
  background: rgba(197, 29, 52, 0.15);
  transform: translateY(-2px);
}

.upload-area i {
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}

.upload-area p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0;
  font-size: 1rem;
}

.upload-hint {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.875rem !important;
}

.preview-area {
  text-align: center;
  margin-bottom: 1.5rem;
}

.preview-area img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  border: 2px solid rgba(197, 29, 52, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-cancel,
.btn-upload {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
}

/* Custom Notification Toast */
.custom-notification {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  max-width: 500px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 29, 52, 0.3);
  border: 1px solid rgba(197, 29, 52, 0.3);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-notification.show {
  top: 2rem;
  animation: notificationShake 0.5s ease 0.5s;
}

.custom-notification.success {
  border-color: #4caf50;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(76, 175, 80, 0.3);
}

.custom-notification.error {
  border-color: #f44336;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 67, 54, 0.3);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.custom-notification.success .notification-icon {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  animation: successPulse 1s ease infinite;
}

.custom-notification.error .notification-icon {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  animation: errorShake 0.5s ease;
}

.notification-content {
  flex: 1;
}

.notification-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.notification-message {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.4;
}

.notification-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: rotate(90deg);
}

@keyframes notificationShake {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(1deg); }
  75% { transform: translateX(-50%) rotate(-1deg); }
}

@keyframes successPulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
  }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-upload {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.4);
}

.btn-upload:hover {
  background: #a0152a;
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.6);
  transform: translateY(-2px);
}

.btn-upload:active {
  transform: translateY(0);
}

.upload-progress {
  margin-top: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff4757);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(197, 29, 52, 0.5);
}

.progress-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
}

/* Profile Page Styles */
.profile-page-container {
  padding: 3rem 0;
  min-height: 100vh;
  background: var(--cream-white);
}

.profile-page-header {
  margin-bottom: 2.5rem;
  animation: slideInUp 0.6s ease-out;
}

.profile-page-header h1 {
  color: var(--dark-gray);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.profile-page-header p {
  color: var(--gray);
  font-size: 1.125rem;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.profile-section-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-section-card h3 {
  color: var(--dark-gray);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-gray);
}

.profile-picture-section {
  text-align: center;
}

.profile-img-wrapper-large {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.profile-img-large {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(197, 29, 52, 0.3);
  box-shadow: 0 8px 30px rgba(197, 29, 52, 0.3);
  transition: all 0.3s ease;
}

.profile-img-wrapper-large:hover .profile-img-large {
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(197, 29, 52, 0.5);
  transform: scale(1.05);
}

.profile-picture-hint {
  color: var(--gray);
  font-size: 0.875rem;
  margin: 0;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-form .form-group {
  margin-bottom: 0;
}

.profile-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 0.9375rem;
}

.profile-form .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--dark-gray);
  font-family: inherit;
}

.profile-form .form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197, 29, 52, 0.1);
}

.profile-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  color: var(--gray);
  font-size: 0.8125rem;
}

.social-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--light-gray);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-input-group:focus-within {
  background: rgba(197, 29, 52, 0.05);
  border: 2px solid rgba(197, 29, 52, 0.2);
}

.social-input-group i {
  color: var(--red);
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.social-input-group .form-control {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
}

.social-input-group .form-control:focus {
  box-shadow: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
}

.btn-save {
  padding: 0.875rem 2rem;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(197, 29, 52, 0.3);
}

.btn-save:hover {
  background: #a0152a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 29, 52, 0.4);
}

.btn-save:active {
  transform: translateY(0);
}

.btn-cancel {
  padding: 0.875rem 2rem;
  background: var(--light-gray);
  color: var(--dark-gray);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cancel:hover {
  background: var(--white);
  border-color: var(--gray);
  color: var(--dark-gray);
}

@media (max-width: 1024px) {
  .profile-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profile-page-container {
    padding: 2rem 0;
  }

  .profile-page-header h1 {
    font-size: 2rem;
  }

  .profile-section-card {
    padding: 1.5rem;
  }

  .profile-img-large {
    width: 150px;
    height: 150px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-save,
  .btn-cancel {
    width: 100%;
    justify-content: center;
  }
}

/* Hide mobile toggle on desktop */
.sidebar-mobile-toggle {
  display: none;
}

.sidebar-mobile-overlay {
  display: none;
}

/* Responsive Styles for Sidebar */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: 260px;
  }

  .dashboard-main {
    margin-left: 260px;
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .dashboard-sidebar.mobile-open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
  }

  .sidebar-mobile-toggle {
    display: flex;
    position: fixed;
    top: 1rem;
    left: calc(260px + 12px); /* Position with 12px gap from sidebar right edge */
    z-index: 1001;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid rgba(197, 29, 52, 0.5);
    padding: 0.875rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 29, 52, 0.3);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.25rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(0);
    width: 44px;
    height: 44px;
    padding: 0;
  }

  /* Make toggle less intrusive when sidebar is closed - smaller and semi-transparent */
  .sidebar-mobile-toggle.sidebar-closed {
    opacity: 0.6;
    width: 36px;
    height: 36px;
    top: 0.5rem;
    left: 0.5rem;
    transform: translateX(0);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 1rem;
  }

  /* When sidebar is closed, toggle stays at left edge (smaller and less intrusive) */

  .sidebar-mobile-toggle:hover {
    background: var(--red);
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(197, 29, 52, 0.6);
  }

  .sidebar-mobile-toggle:not(.sidebar-closed):hover {
    transform: scale(1.1);
  }

  .sidebar-mobile-toggle.sidebar-closed:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .sidebar-mobile-toggle:active {
    transform: translateX(0) scale(0.95);
  }

  .sidebar-mobile-toggle.sidebar-closed:active {
    transform: scale(0.95);
  }

  /* Swipe zone indicator on left edge when sidebar is closed */
  .swipe-zone-indicator {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 998;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(197, 29, 52, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .swipe-zone-indicator.active {
    opacity: 1;
  }

  .sidebar-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }

  .sidebar-mobile-overlay.active {
    display: block;
  }
}
