/* Base Styles */
:root {
  /* Light Theme (Default) */
  --primary-color: #b9102c;
  --primary-dark: #9a0e25;
  --primary-light: #e63e5c;
  --secondary-color: #f9fafb;
  --dark-color: #1f2937;
  --light-color: #ffffff;
  --text-color: #374151;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
  --body-bg: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --header-bg: rgba(255, 255, 255, 0.95);
  --skill-bar-bg: #e5e7eb;
  --tag-bg: #f9fafb;
  --tag-text: #6b7280;
  --footer-bg: #1f2937;
  --footer-text: #9ca3af;
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --code-keyword: #93c5fd;
  --code-variable: #c4b5fd;
  --code-string: #86efac;
  --code-property: #f9a8d4;
  --code-boolean: #fcd34d;
  --terminal-bg: #1e1e2e;
  --terminal-header: #313244;
  --terminal-text: #cdd6f4;
  --terminal-prompt: #89b4fa;

  /* Theme Toggle Variables */
  --light-bg: #7dd3fc;
  --dark-bg: #0f172a;
  --sun-color: #fde047;
  --moon-color: #e2e8f0;
  --cloud-color: white;
  --star-color: white;
  --crater-color: #cbd5e1;
  --transition-duration: 0.5s;

  /* Technology Colors */
  --html-color: #e34f26;
  --appwrite-color: #fd3c72;
  --css-color: #1572b6;
  --javascript-color: #f7df1e;
  --python-color: #3776ab;
  --react-color: #61dafb;
  --nodejs-color: #339933;
  --tailwind-color: #06b6d4;
  --bootstrap-color: #7952b3;
  --mongodb-color: #47a248;

  /* Upwork Color */
  --upwork-color: #6fda44;
  --upwork-dark: #5dc937;
}

/* Dark Theme */
html.dark-mode {
  --secondary-color: #1e1e1e;
  --dark-color: #f5f5f5;
  --light-color: #121212;
  --text-color: #e0e0e0;
  --text-light: #a0a0a0;
  --border-color: #2a2a2a;
  --card-bg: #1a1a1a;
  --body-bg: #121212;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --header-bg: rgba(18, 18, 18, 0.95);
  --skill-bar-bg: #2a2a2a;
  --tag-bg: #2a2a2a;
  --tag-text: #a0a0a0;
  --footer-bg: #0a0a0a;
  --footer-text: #a0a0a0;
  --code-bg: #0f172a;
  --terminal-bg: #11111b;
  --terminal-header: #181825;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--body-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--dark-color);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--primary-color);
  opacity: 0.2;
  z-index: -1;
  border-radius: 4px;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--primary-color);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Enhanced Animated Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  height: 50px;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: 1;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-5px);
}

.btn:active {
  transform: translateY(0);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px) scale(1.2);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 6px rgba(185, 16, 44, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 25px rgba(185, 16, 44, 0.4), 0 0 20px rgba(185, 16, 44, 0.3);
  animation: pulse-glow 2s infinite;
}

.btn-primary:hover .btn-text {
  animation: text-bounce 0.6s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(8px) scale(1.3) rotate(15deg);
  animation: icon-bounce 0.8s ease;
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: var(--shadow);
}

.btn-dark {
  background-color: var(--dark-color);
  color: var(--light-color);
}

.btn-dark:hover {
  opacity: 0.9;
  box-shadow: var(--shadow);
}

.btn-full {
  width: 100%;
}

/* Add Upwork button style */
.btn-upwork {
  background-color: var(--upwork-color);
  color: white;
  box-shadow: 0 4px 6px rgba(111, 218, 68, 0.2);
}

.btn-upwork:hover {
  background-color: var(--upwork-dark);
  box-shadow: 0 6px 15px rgba(111, 218, 68, 0.3);
}

.btn-upwork i {
  font-size: 1.2rem;
  margin-right: 8px;
}

.btn-upwork:hover i {
  transform: scale(1.2);
}

/* Enhanced Work With Me Button Animations */
.work-with-me-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-with-me-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.work-with-me-btn:hover::after {
  left: 100%;
}

.work-with-me-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 25px rgba(185, 16, 44, 0.4), 0 0 20px rgba(185, 16, 44, 0.3);
  animation: pulse-glow 2s infinite;
}

.work-with-me-btn:hover .btn-text {
  animation: text-bounce 0.6s ease;
}

.work-with-me-btn:hover .btn-icon {
  transform: translateX(8px) scale(1.3) rotate(15deg);
  animation: icon-bounce 0.8s ease;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(185, 16, 44, 0.4),
      0 0 20px rgba(185, 16, 44, 0.3);
  }
  50% {
    box-shadow: 0 12px 35px rgba(185, 16, 44, 0.5),
      0 0 30px rgba(185, 16, 44, 0.4);
  }
}

@keyframes text-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes icon-bounce {
  0%,
  100% {
    transform: translateX(8px) scale(1.3) rotate(15deg);
  }
  25% {
    transform: translateX(10px) scale(1.4) rotate(20deg);
  }
  75% {
    transform: translateX(6px) scale(1.2) rotate(10deg);
  }
}

.work-with-me-btn:active {
  transform: translateY(-3px) scale(1.02);
  transition: all 0.1s ease;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow);
  transform: translateY(-100%);
}

header.visible {
  transform: translateY(0);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Professional Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-5deg);
  background-color: var(--primary-dark);
}

.logo-letter {
  position: relative;
  z-index: 2;
}

.logo-bracket {
  position: absolute;
  width: 10px;
  height: 24px;
  border: 2px solid white;
  border-left: none;
  right: 4px;
  border-radius: 0 4px 4px 0;
  opacity: 0.7;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: var(--dark-color);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

/* Theme Toggle - Enhanced with animated clouds and stars */
.theme-toggle {
  position: relative;
  width: 96px;
  height: 40px;
  border-radius: 20px;
  border: none;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: transform 0.2s;
  margin-left: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.toggle-background {
  position: absolute;
  inset: 0;
  background-color: var(--light-bg);
  transition: background-color var(--transition-duration);
}

html.dark-mode .toggle-background {
  background-color: var(--dark-bg);
}

/* Animated Clouds */
.cloud {
  position: absolute;
  opacity: 1;
  transition: opacity var(--transition-duration);
  animation: cloudFloat 20s linear infinite;
}

.cloud-part {
  position: absolute;
  background-color: var(--cloud-color);
  border-radius: 50%;
}

/* Cloud 1 */
.cloud-1 {
  top: 15px;
  left: 15px;
  width: 30px;
  height: 10px;
  animation-delay: 0s;
}

.cloud-1 .cloud-part:nth-child(1) {
  width: 16px;
  height: 16px;
  top: -10px;
  left: 0;
}

.cloud-1 .cloud-part:nth-child(2) {
  width: 20px;
  height: 20px;
  top: -14px;
  left: 10px;
}

.cloud-1 .cloud-part:nth-child(3) {
  width: 14px;
  height: 14px;
  top: -8px;
  left: 22px;
}

/* Cloud 2 */
.cloud-2 {
  top: 22px;
  left: 50px;
  width: 24px;
  height: 8px;
  animation-delay: 3s;
  animation-duration: 24s;
}

.cloud-2 .cloud-part:nth-child(1) {
  width: 14px;
  height: 14px;
  top: -8px;
  left: 0;
}

.cloud-2 .cloud-part:nth-child(2) {
  width: 16px;
  height: 16px;
  top: -10px;
  left: 8px;
}

/* Cloud 3 */
.cloud-3 {
  top: 10px;
  left: 35px;
  width: 20px;
  height: 6px;
  animation-delay: 6s;
  animation-duration: 28s;
}

.cloud-3 .cloud-part:nth-child(1) {
  width: 10px;
  height: 10px;
  top: -6px;
  left: 0;
}

.cloud-3 .cloud-part:nth-child(2) {
  width: 12px;
  height: 12px;
  top: -8px;
  left: 6px;
}

.cloud-3 .cloud-part:nth-child(3) {
  width: 8px;
  height: 8px;
  top: -5px;
  left: 14px;
}

@keyframes cloudFloat {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100px);
  }
}

html.dark-mode .cloud {
  opacity: 0;
}

/* Enhanced Stars with twinkling */
.star {
  position: absolute;
  background-color: var(--star-color);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-duration);
  animation: twinkle 5s infinite;
}

.star-1 {
  top: 10px;
  left: 15px;
  width: 2px;
  height: 2px;
}
.star-2 {
  top: 25px;
  left: 25px;
  width: 3px;
  height: 3px;
  animation-delay: 0.5s;
  animation-duration: 4s;
}
.star-3 {
  top: 15px;
  left: 40px;
  width: 2px;
  height: 2px;
  animation-delay: 1s;
  animation-duration: 6s;
}
.star-4 {
  top: 8px;
  left: 55px;
  width: 1px;
  height: 1px;
  animation-delay: 1.5s;
}
.star-5 {
  top: 30px;
  left: 65px;
  width: 2px;
  height: 2px;
  animation-delay: 0s;
  animation-duration: 4s;
}
.star-6 {
  top: 20px;
  left: 75px;
  width: 1px;
  height: 1px;
  animation-delay: 0.5s;
}
.star-7 {
  top: 12px;
  left: 85px;
  width: 2px;
  height: 2px;
  animation-delay: 1s;
  animation-duration: 6s;
}
.star-8 {
  top: 28px;
  left: 10px;
  width: 1px;
  height: 1px;
  animation-delay: 1.5s;
  animation-duration: 4s;
}
.star-9 {
  top: 32px;
  left: 35px;
  width: 2px;
  height: 2px;
  animation-delay: 0s;
}
.star-10 {
  top: 5px;
  left: 30px;
  width: 1px;
  height: 1px;
  animation-delay: 0.5s;
  animation-duration: 4s;
}
.star-11 {
  top: 22px;
  left: 50px;
  width: 2px;
  height: 2px;
  animation-delay: 1s;
  animation-duration: 6s;
}
.star-12 {
  top: 15px;
  left: 70px;
  width: 1px;
  height: 1px;
  animation-delay: 1.5s;
}
.star-13 {
  top: 8px;
  left: 80px;
  width: 2px;
  height: 2px;
  animation-delay: 0s;
  animation-duration: 4s;
}
.star-14 {
  top: 35px;
  left: 45px;
  width: 1px;
  height: 1px;
  animation-delay: 0.5s;
}
.star-15 {
  top: 18px;
  left: 60px;
  width: 2px;
  height: 2px;
  animation-delay: 1s;
  animation-duration: 6s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

html.dark-mode .star {
  opacity: 0.2;
}

/* Sun/Moon - MAXIMIZED SIZE */
.celestial-body {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  background-color: var(--sun-color);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(253, 224, 71, 0.7);
  transition: left var(--transition-duration),
    background-color var(--transition-duration),
    width var(--transition-duration), height var(--transition-duration),
    box-shadow var(--transition-duration);
  animation: sunPulse 4s infinite;
  z-index: 10;
}

@keyframes sunPulse {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(253, 224, 71, 0.7);
  }
  50% {
    box-shadow: 0 0 25px rgba(253, 224, 71, 0.9);
  }
}

html.dark-mode .celestial-body {
  left: 75%;
  background-color: var(--moon-color);
  width: 28px;
  height: 28px;
  box-shadow: none;
  animation: moonGlow 4s infinite;
}

@keyframes moonGlow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(226, 232, 240, 0.3);
  }
  50% {
    box-shadow: 0 0 10px rgba(226, 232, 240, 0.5);
  }
}

/* Moon craters */
.moon-crater {
  position: absolute;
  background-color: var(--crater-color);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-duration),
    width var(--transition-duration), height var(--transition-duration),
    left var(--transition-duration);
  z-index: 11;
}

.moon-crater-1 {
  width: 0;
  height: 0;
  top: 12px;
  left: 25%;
}

.moon-crater-2 {
  width: 0;
  height: 0;
  top: 20px;
  left: 25%;
}

html.dark-mode .moon-crater-1 {
  width: 8px;
  height: 8px;
  left: 75%;
  opacity: 0.5;
}

html.dark-mode .moon-crater-2 {
  width: 5px;
  height: 5px;
  left: 70%;
  opacity: 0.4;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu - Hidden on desktop */
.mobile-menu {
  display: none;
}

/* Hero Section */
.hero {
  padding: 5rem 0 0;
  text-align: center;
  background: linear-gradient(
    to bottom,
    var(--body-bg),
    var(--secondary-color)
  );
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

.hero-text {
  text-align: left;
  flex: 1;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-wave {
  position: relative;
  width: 100%;
  height: 150px;
}

.hero-wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: var(--secondary-color);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Design Showcase Styles */
.design-showcase {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 400px;
  margin: 0 auto;
  perspective: 1000px;
  transition: all 0.5s ease;
}

.design-showcase.mobile .device-mockup {
  width: 220px;
  height: 450px;
  border-radius: 30px;
}

.design-showcase.mobile .device-screen {
  width: 200px;
  height: 400px;
  border-radius: 20px;
}

.device-mockup {
  position: relative;
  width: 450px;
  height: 300px;
  background-color: #333;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  transition: transform 0.5s ease, width 0.5s ease, height 0.5s ease;
  margin: 0 auto;
  z-index: 2;
}

.device-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #111;
  border-radius: 15px;
  padding: 10px;
  box-sizing: border-box;
}

.device-screen {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.screen-content {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.website-mockup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  height: 60px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.mockup-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mockup-logo {
  width: 100px;
  height: 30px;
  background-color: var(--primary-color);
  border-radius: 5px;
}

.mockup-menu {
  display: flex;
  gap: 5px;
}

.mockup-menu span {
  width: 20px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
}

.mockup-hero {
  height: 150px;
  background-color: var(--secondary-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.mockup-headline {
  width: 70%;
  height: 20px;
  background-color: var(--dark-color);
  border-radius: 5px;
}

.mockup-subheadline {
  width: 50%;
  height: 10px;
  background-color: var(--text-light);
  border-radius: 3px;
}

.mockup-cta {
  width: 120px;
  height: 35px;
  background-color: var(--primary-color);
  border-radius: 5px;
  margin-top: 10px;
}

.mockup-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 15px;
  background-color: var(--body-bg);
}

.mockup-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
  height: 10px;
  background-color: var(--text-light);
  opacity: 0.3;
  border-radius: 3px;
}

.device-home {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: #555;
  border-radius: 2px;
}

.device-shadow {
  position: absolute;
  bottom: -20px;
  left: 5%;
  width: 90%;
  height: 20px;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(10px);
  border-radius: 50%;
  z-index: -1;
}

.design-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.design-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-light)
  );
  opacity: 0.1;
  animation: float 10s ease-in-out infinite;
}

.element-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: -40px;
}

.element-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: -30px;
  animation-delay: 2s;
}

.element-3 {
  width: 40px;
  height: 40px;
  bottom: 20%;
  left: 10%;
  animation-delay: 1s;
}

.element-4 {
  width: 100px;
  height: 100px;
  top: -50px;
  right: 20%;
  animation-delay: 3s;
}

.element-5 {
  width: 50px;
  height: 50px;
  bottom: -25px;
  left: 40%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.design-controls {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background-color: var(--card-bg);
  padding: 10px 15px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  z-index: 3;
}

.control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--secondary-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.control-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.color-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.color-preview.red {
  background-color: var(--primary-color);
}

.color-preview.blue {
  background-color: #4285f4;
}

.color-preview.green {
  background-color: #34a853;
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--body-bg);
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.about-headline {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark-color);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 1;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(185, 16, 44, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.about-card:hover .about-card-icon {
  transform: scale(1.1) rotate(10deg);
  background-color: rgba(185, 16, 44, 0.15);
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.about-card p {
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.about-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background-color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.services-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.services-intro p {
  font-size: 1.2rem;
  color: var(--text-light);
}

.services-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(185, 16, 44, 0.1);
  color: var(--primary-color);
  font-size: 2.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.service-item:hover .service-icon {
  background-color: var(--primary-color);
  color: white;
}

.service-content {
  padding: 2.5rem 3rem;
  flex-grow: 1;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  position: relative;
  display: inline-block;
  line-height: 1.3;
}

.service-content h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.service-item:hover .service-content h3::after {
  width: 100%;
}

.service-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
  background-color: var(--tag-bg);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.service-features li i {
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.service-item:hover .service-features li {
  background-color: rgba(185, 16, 44, 0.1);
  transform: translateY(-3px);
}

.service-item:hover .service-features li i {
  transform: scale(1.2);
}

/* Services CTA Section */
.services-cta {
  margin-top: 4rem;
  padding: 3rem 0;
  background: linear-gradient(
    135deg,
    rgba(185, 16, 44, 0.05) 0%,
    rgba(185, 16, 44, 0.1) 100%
  );
  border-radius: 20px;
  border: 1px solid rgba(185, 16, 44, 0.1);
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(185, 16, 44, 0.05) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

.services-cta:hover::before {
  opacity: 1;
}

.services-cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.services-cta-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-cta-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(185, 16, 44, 0.2),
    0 0 0 1px rgba(185, 16, 44, 0.1);
}

.btn-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(185, 16, 44, 0.3),
    0 0 0 1px rgba(185, 16, 44, 0.2);
}

.btn-large .btn-icon {
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
}

.btn-large:hover .btn-icon {
  transform: translateX(5px);
}

/* Enhanced Projects Section */
/* Professional Projects Section */
.projects {
  padding: 6rem 0;
  background-color: var(--secondary-color);
  position: relative;
}

.projects-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 4rem;
  font-style: italic;
}

/* Clean Projects Container */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Professional Projects Grid */
.projects-slider {
  position: relative;
  width: 100%;
}

/* Professional Navigation Controls */
.projects-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.nav-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.nav-btn:disabled:hover {
  background: var(--card-bg);
  color: var(--text-color);
  border-color: var(--border-color);
}

.nav-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.current-page {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hide navigation on mobile (use native scroll) */
@media (max-width: 768px) {
  .projects-navigation {
    display: none;
  }
}

/* Professional Projects Track */
.projects-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

/* Desktop: 2 columns for larger screens */
@media (min-width: 769px) {
  .projects-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: Single column with horizontal scroll */
@media (max-width: 768px) {
  .projects-slider {
    margin: 0;
    padding: 0;
  }

  .projects-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 0 2rem 1rem 2rem;
    -webkit-overflow-scrolling: touch;
  }

  .project-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
  }

  .project-img-container {
    height: 200px;
  }
}

/* Smartphone: Centered cards */
@media (max-width: 480px) {
  .projects-container {
    padding: 0 1.5rem;
  }

  .projects-slider {
    margin: 0;
    padding: 0;
  }

  .projects-track {
    gap: 1.5rem;
    padding: 0 1.5rem;
    justify-content: flex-start;
  }

  .project-card {
    flex: 0 0 calc(100vw - 6rem);
    max-width: 280px;
    margin: 0 auto;
  }

  .project-img-container {
    height: 180px;
  }

  .project-hover-overlay {
    position: static;
    background: var(--card-bg);
    color: var(--text-color);
    transform: none;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
  }

  .project-info h3 {
    color: var(--dark-color);
  }

  .project-tech {
    color: var(--text-light);
  }
}

/* Professional Project Cards - New Design */
.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Clean Project Card Hover */
.project-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
  border-color: var(--primary-color) !important;
}

/* Professional Project Image Container */
.project-img-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

/* Clean Project Image */
.project-image-frame {
  width: 100%;
  height: 100%;
  position: relative;
}

.project-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image-frame img {
  transform: scale(1.05) !important;
}

/* Professional Project Info Overlay */
.project-hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-card:hover .project-hover-overlay {
  transform: translateY(0);
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.project-tech {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.project-actions {
  display: flex;
  gap: 1rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.project-card:hover {
  transform: translateY(-15px) scale(1.03) rotateX(5deg);
  z-index: 10;
}

/* Enhanced Creative Image Container with Morphing */
.project-img-container {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #f0f0f0, #cacaca);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-img-container:hover {
  transform: perspective(1000px) rotateY(10deg) rotateX(-5deg) scale(1.05);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(185, 16, 44, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-radius: 25px;
}

/* Creative Morphing Border Effect */
.project-img-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    #b9102c,
    #ff6b6b,
    #b9102c,
    #ff9999,
    #b9102c
  );
  background-size: 400% 400%;
  opacity: 0;
  z-index: -1;
  border-radius: 22px;
  transition: opacity 0.6s ease;
  animation: gradient-flow 4s ease infinite;
}

.project-img-container:hover::before {
  opacity: 1;
  animation: gradient-flow 2s ease infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced Image Frame with 3D Effect */
.project-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  transform: translateZ(20px);
}

.project-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
  will-change: transform, filter;
}

.project-card:hover .project-image-frame img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.3) contrast(1.15) saturate(1.3) hue-rotate(5deg);
}

/* Project Link Styling */
.project-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-link:hover {
  text-decoration: none;
  color: inherit;
}

.project-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 16px;
}

/* Enhanced Creative Image Overlay Effects */
.image-overlay-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* Enhanced Shimmer Effect with Multiple Layers */
.shimmer-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: shimmer-pulse 3s ease-in-out infinite;
}

@keyframes shimmer-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.project-card:hover .shimmer-effect {
  transform: translateX(100%) translateY(100%) rotate(45deg);
  animation: shimmer-sweep 0.8s ease-out;
}

@keyframes shimmer-sweep {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Enhanced Color Splash with Pulsing Animation */
.color-splash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(185, 16, 44, 0.3) 0%,
    rgba(185, 16, 44, 0.15) 40%,
    transparent 80%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .color-splash {
  width: 400px;
  height: 400px;
  animation: color-splash-pulse 2s ease-in-out infinite;
}

@keyframes color-splash-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
}

/* Enhanced Geometric Overlay with Rotation */
.geometric-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      45deg,
      transparent 25%,
      rgba(185, 16, 44, 0.08) 25%
    ),
    linear-gradient(-45deg, transparent 25%, rgba(185, 16, 44, 0.08) 25%);
  background-size: 20px 20px;
  opacity: 0;
  transition: all 0.6s ease;
  transform: scale(0.8) rotate(-5deg);
}

.project-card:hover .geometric-overlay {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: geometric-shift 3s ease-in-out infinite;
}

@keyframes geometric-shift {
  0%,
  100% {
    background-position: 0 0, 10px 10px;
  }
  50% {
    background-position: 10px 10px, 0 0;
  }
}

/* Shimmer Effect */
.shimmer-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.8s ease;
}

.project-card:hover .shimmer-effect {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Color Splash Effect */
.color-splash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(185, 16, 44, 0.2) 0%,
    rgba(185, 16, 44, 0.1) 30%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.project-card:hover .color-splash {
  width: 300px;
  height: 300px;
}

/* Geometric Overlay */
.geometric-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      45deg,
      transparent 25%,
      rgba(185, 16, 44, 0.05) 25%
    ),
    linear-gradient(-45deg, transparent 25%, rgba(185, 16, 44, 0.05) 25%);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .geometric-overlay {
  opacity: 1;
}

/* Enhanced Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  border: none;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 25px rgba(185, 16, 44, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.slider-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
  z-index: 1;
}

.slider-btn:hover::after {
  left: 100%;
}

.btn-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(185, 16, 44, 0.3), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(10px);
  z-index: -1;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(185, 16, 44, 0.4), 0 0 20px rgba(185, 16, 44, 0.3);
  animation: pulse-glow 2s infinite;
}

.slider-btn:hover .btn-glow {
  opacity: 1;
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: 15px;
}

.slider-next {
  right: 15px;
}

.slider-btn i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.slider-btn:hover i {
  transform: scale(1.2);
}

/* Enhanced Dot Indicators */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: linear-gradient(145deg, transparent, rgba(185, 16, 44, 0.1));
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dot:hover {
  transform: scale(1.3);
  border-color: var(--primary-light);
  box-shadow: 0 0 20px rgba(185, 16, 44, 0.4);
}

.dot.active {
  background: linear-gradient(
    145deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-color: var(--primary-light);
  box-shadow: 0 0 25px rgba(185, 16, 44, 0.6), 0 0 0 4px rgba(185, 16, 44, 0.2);
  transform: scale(1.2);
}

.dot.active::before {
  width: 8px;
  height: 8px;
  background: white;
}

/* Enhanced Dot Ripple Effect */
.dot-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(185, 16, 44, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: dot-ripple-expand 0.6s ease-out;
  pointer-events: none;
}

@keyframes dot-ripple-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}

/* Enhanced Project Track Animations */
.projects-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 200%; /* 4 projects in 2 slides = 200% */
  gap: 2rem;
  transform-style: preserve-3d;
}

/* Enhanced Project Card Animations */
.project-card {
  flex: 0 0 calc(25% - 1rem);
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, opacity;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.03) rotateX(5deg);
  z-index: 10;
}

/* Enhanced Animation States */
.project-card.animating {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card.slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card.slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100px) rotateY(-20deg) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100px) rotateY(20deg) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
}

/* Enhanced Slider Button Animations */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  border: none;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 25px rgba(185, 16, 44, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.slider-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
  z-index: 1;
}

.slider-btn:hover::after {
  left: 100%;
}

.btn-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(185, 16, 44, 0.3), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(10px);
  z-index: -1;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(185, 16, 44, 0.4), 0 0 20px rgba(185, 16, 44, 0.3);
  animation: pulse-glow 2s infinite;
}

.slider-btn:hover .btn-glow {
  opacity: 1;
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Enhanced Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .projects-track,
  .slider-btn,
  .dot {
    transition: none !important;
    animation: none !important;
  }

  .dot-ripple {
    display: none;
  }
}

/* Project Type Specific Styling */
.project-card[data-project="movie"] .color-splash {
  background: radial-gradient(
    circle,
    rgba(255, 193, 7, 0.3) 0%,
    rgba(255, 193, 7, 0.1) 30%,
    transparent 70%
  );
}

.project-card[data-project="nike"] .color-splash {
  background: radial-gradient(
    circle,
    rgba(255, 87, 34, 0.3) 0%,
    rgba(255, 87, 34, 0.1) 30%,
    transparent 70%
  );
}

.project-card[data-project="coach"] .color-splash {
  background: radial-gradient(
    circle,
    rgba(76, 175, 80, 0.3) 0%,
    rgba(76, 175, 80, 0.1) 30%,
    transparent 70%
  );
}

.project-card[data-project="copywriter"] .color-splash {
  background: radial-gradient(
    circle,
    rgba(156, 39, 176, 0.3) 0%,
    rgba(156, 39, 176, 0.1) 30%,
    transparent 70%
  );
}

.project-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.project-btn:hover::before {
  left: 100%;
}

.project-btn:hover {
  transform: translateY(-3px) scale(1.05) translateZ(40px);
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.project-btn i {
  transition: transform 0.3s ease;
}

.project-btn:hover i {
  transform: translateX(3px) scale(1.2);
}

/* Enhanced Project Glow Effect with Rotating Gradient */
.project-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(185, 16, 44, 0.4),
    transparent,
    rgba(255, 107, 107, 0.3),
    transparent,
    rgba(185, 16, 44, 0.4),
    transparent
  );
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.6s ease;
  z-index: -1;
  border-radius: 15px;
  animation: glow-rotate 4s linear infinite;
}

.project-card:hover .project-glow {
  opacity: 1;
  animation: glow-rotate 2s linear infinite,
    glow-pulse 1.8s ease-in-out infinite;
}

@keyframes glow-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    filter: blur(15px);
    transform: rotate(var(--rotation, 0deg)) scale(0.95);
  }
  50% {
    filter: blur(25px);
    transform: rotate(var(--rotation, 180deg)) scale(1.05);
  }
}

/* Enhanced Floating Particles Animation */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, #b9102c, #ff6b6b);
  border-radius: 50%;
  animation: enhanced-float-particle 4s infinite ease-in-out;
  box-shadow: 0 0 15px rgba(185, 16, 44, 0.6), 0 0 30px rgba(185, 16, 44, 0.3);
  opacity: 0;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 3s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 4s;
}

.particle:nth-child(3) {
  top: 80%;
  left: 30%;
  animation-delay: 2s;
  animation-duration: 3.5s;
}

@keyframes enhanced-float-particle {
  0% {
    transform: translateY(20px) translateX(0px) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  25% {
    transform: translateY(10px) translateX(15px) scale(0.8) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) translateX(25px) scale(1.2) rotate(180deg);
    opacity: 1;
  }
  75% {
    transform: translateY(-25px) translateX(10px) scale(1) rotate(270deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-40px) translateX(-5px) scale(0.3) rotate(360deg);
    opacity: 0;
  }
}

.project-card:hover .particle {
  animation-play-state: running;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(185, 16, 44, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(185, 16, 44, 0.4);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: 10px; /* Inside the frame */
}

.slider-next {
  right: 10px; /* Inside the frame */
}

/* Dot Indicators */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(185, 16, 44, 0.2);
}

.dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dot.active::after {
  opacity: 1;
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    padding: 0 2rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .services-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .project-card {
    flex: 0 0 calc(50% - 2rem);
  }

  .about-grid {
    gap: 3rem;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  /* Center hero graphic and show only on mobile if present */
  .hero-visual,
  .design-showcase {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem auto;
    max-width: 90vw;
    width: 100%;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-text .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-headline {
    font-size: 1.3rem;
  }

  /* More efficient spacing for services section */
  .services {
    padding: 3rem 0 2rem 0;
  }
  .services-container {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 3rem;
    margin-top: 2rem;
    padding: 0 1rem;
  }
  .service-item {
    padding: 3rem 2.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    flex-direction: column;
    text-align: center;
  }
  .service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 600;
  }
  .service-item p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    color: var(--text-light);
  }

  /* Improve service features spacing on mobile */
  .service-item .service-features {
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .service-item .service-features li {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 25px;
  }

  /* Adjust service icon for mobile */
  .service-item .service-icon {
    width: 80px !important;
    height: 80px;
    margin: 0 auto 2rem auto;
    flex-shrink: 0;
  }

  /* Improve service content spacing on mobile */
  .service-item .service-content {
    padding: 0;
    text-align: center;
  }

  .services-cta-content h2 {
    font-size: 1.75rem;
  }

  .project-img-container {
    height: 200px;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .slider-dots {
    display: none !important;
  }

  .projects-track {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }
  .project-card {
    scroll-snap-align: center;
    min-width: 100%;
    max-width: 100vw;
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s;
  }

  /* Ensure theme toggle animations work properly on mobile */
  .theme-toggle .star {
    animation-name: twinkle !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: ease-in-out !important;
  }

  .theme-toggle .cloud {
    animation-name: cloudFloat !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: linear !important;
  }
}

/* Enhanced Mobile Performance Optimizations */
@media (max-width: 768px) {
  /* Base Mobile Fixes */
  .container {
    padding: 0 1rem;
  }

  /* Header Mobile Fixes */
  header {
    padding: 1rem 0;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 10000;
    position: relative;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
    border-radius: 2px;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Mobile Menu */
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: left 0.3s ease;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
  }

  .mobile-menu.active {
    left: 0;
  }

  .mobile-menu-content {
    width: 100%;
    text-align: center;
    padding: 2rem;
  }

  .mobile-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu-content li {
    margin: 2.5rem 0;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.3s ease forwards;
  }

  .mobile-menu.active .mobile-menu-content li:nth-child(1) {
    animation-delay: 0.1s;
  }

  .mobile-menu.active .mobile-menu-content li:nth-child(2) {
    animation-delay: 0.2s;
  }

  .mobile-menu.active .mobile-menu-content li:nth-child(3) {
    animation-delay: 0.3s;
  }

  .mobile-menu.active .mobile-menu-content li:nth-child(4) {
    animation-delay: 0.4s;
  }

  .mobile-menu-content a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 1rem;
    display: block;
    border-radius: 8px;
  }

  .mobile-menu-content a:hover {
    color: var(--primary-color);
    background: var(--bg-color);
    transform: scale(1.05);
  }

  @keyframes slideInUp {
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .theme-toggle {
    width: 60px;
    height: 30px;
  }

  .theme-toggle .toggle-background {
    width: 60px;
    height: 30px;
  }

  .theme-toggle .sun,
  .theme-toggle .moon {
    width: 24px;
    height: 24px;
  }

  .theme-toggle .sun {
    left: 3px;
    top: 3px;
  }

  .theme-toggle .moon {
    right: 3px;
    top: 3px;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-text .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-visual {
    max-width: 100%;
    margin-top: 2rem;
  }

  .design-showcase {
    transform: scale(0.8);
  }

  /* About Section Mobile */
  .about {
    padding: 4rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-headline {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  /* Services Section Mobile */
  .services {
    padding: 4rem 0;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .service-item {
    padding: 3rem 2.5rem;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
  }

  .service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
      90deg,
      var(--primary-color),
      var(--primary-light)
    );
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: left;
  }

  .service-item:hover::before {
    transform: scaleX(1);
  }

  .service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
  }

  .service-item .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--primary-light)
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.6s ease;
  }

  .service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
  }

  .service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.6s ease;
    line-height: 1.3;
  }

  .service-item:hover h3 {
    color: var(--primary-color);
  }

  .service-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
  }

  /* Projects Section Mobile */
  .projects {
    padding: 4rem 0;
  }

  .projects-slider {
    margin: 0 -1rem;
    position: relative;
  }

  .projects-track {
    gap: 1.5rem;
    padding: 0 1rem;
    scroll-behavior: smooth;
  }

  .project-card {
    flex: 0 0 calc(100% - 2rem);
    margin: 0 1rem;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    position: relative;
  }

  .project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      var(--primary-color) 10,
      transparent 50%
    );
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
  }

  .project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }

  .project-card:hover::before {
    opacity: 1;
  }

  .project-img-container {
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
  }

  .project-image-frame {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }

  .project-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .project-card:hover .project-image-frame img {
    transform: scale(1.08);
  }

  .project-info {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
  }

  .project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.8s ease;
  }

  .project-card:hover .project-info h3 {
    color: var(--primary-color);
  }

  .project-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 1.5rem;
  }

  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .project-tag {
    padding: 0.3rem 0.8rem;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.8s ease;
  }

  .project-card:hover .project-tag {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
  }

  .project-img-container {
    height: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .project-img-container:hover {
    transform: scale(1.02);
  }

  /* Simplify animations for touch devices */
  .project-image-frame img {
    transition: transform 0.3s ease;
  }

  .project-card:hover .project-image-frame img {
    transform: scale(1.05);
  }

  /* Mobile Navigation Controls */
  .slider-btn {
    width: 50px;
    height: 50px;
    min-height: 50px;
    min-width: 50px;
    touch-action: manipulation;
    font-size: 1.2rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.6s ease;
    backdrop-filter: blur(10px);
  }

  .slider-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
  }

  .slider-prev {
    left: 15px;
  }

  .slider-next {
    right: 15px;
  }

  .slider-dots {
    margin-top: 2.5rem;
    gap: 1rem;
    padding: 1.5rem;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
  }

  .dot {
    width: 14px;
    height: 14px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    background: var(--card-bg);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: all 0.6s ease;
  }

  .dot::before {
    width: 14px;
    height: 14px;
    background: var(--text-light);
    border-radius: 50%;
    transition: all 0.6s ease;
  }

  .dot.active::before {
    background: var(--primary-color);
    transform: scale(1.2);
  }

  .dot:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
  }

  /* Contact/CTA Section Mobile */
  .services-cta-section {
    padding: 4rem 0;
  }

  .services-cta {
    margin-top: 0;
    padding: 2rem;
  }

  .services-cta-content {
    padding: 1rem;
  }

  .services-cta-content h2 {
    font-size: 2rem;
  }

  .services-cta-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  /* Footer Mobile */
  footer {
    padding: 2rem 0;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  /* Button Mobile Optimizations */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
    touch-action: manipulation;
  }

  .work-with-me-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Typography Mobile Adjustments */
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  /* Match desktop animation speeds on mobile */
  .btn,
  .btn *,
  .project-card,
  .project-card *,
  .about-card,
  .about-card *,
  .service-item,
  .service-item * {
    animation-duration: inherit !important;
    transition-duration: inherit !important;
  }

  /* Ensure button animations match desktop */
  .btn-primary:hover .btn-text,
  .work-with-me-btn:hover .btn-text {
    animation: text-bounce 0.6s ease !important;
  }

  .btn-primary:hover .btn-icon,
  .work-with-me-btn:hover .btn-icon {
    animation: icon-bounce 0.8s ease !important;
  }

  .btn-primary:hover,
  .work-with-me-btn:hover {
    animation: pulse-glow 2s infinite !important;
  }

  /* Keep navigation elements responsive */
  .hamburger,
  .hamburger span,
  .mobile-menu {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }

  /* Optimize scrolling */
  html {
    scroll-behavior: smooth;
  }
}

/* Contact Form Styles */
.contact-form {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-container {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  transition: var(--transition);
  background-color: var(--card-bg);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(185, 16, 44, 0.2);
}

.contact-direct {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.contact-direct h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: var(--primary-color);
}

.contact-links i {
  color: var(--primary-color);
}

/* Button full width style */
.btn-full {
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 2rem 0;
  transition: background-color 0.3s ease;
}

.projects-container {
  padding: 0 10px;
}

.projects-slider {
  padding: 1rem 50px;
  border-radius: 12px;
}

.project-card {
  height: 250px;
}

.project-img-container {
  height: 250px;
}

.project-title {
  font-size: 1.1rem;
}

.project-tech {
  font-size: 0.75rem;
}

.project-btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.slider-prev {
  left: 5px;
}

.slider-next {
  right: 5px;
}

.slider-dots {
  margin-top: 1.5rem;
  gap: 0.5rem;
  padding: 0.8rem;
}

.dot {
  width: 10px;
  height: 10px;
}

/* Notification Popup Styles */
.notification-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.notification-popup.show {
  opacity: 1;
  visibility: visible;
}

.notification-content {
  background: var(--card-bg);
  color: var(--text-color);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.notification-popup.show .notification-content {
  transform: scale(1);
}

.notification-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
  animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.notification-message h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.notification-message p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.notification-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  transform: scale(1.1);
}

/* Dark theme adjustments for notification */
[data-theme="dark"] .notification-content {
  background: #1f2937;
  color: #f9fafb;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Contact Section as CTA */
.services-cta-section {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--body-bg) 0%,
    rgba(185, 16, 44, 0.02) 100%
  );
  position: relative;
  overflow: hidden;
}

.services-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(185, 16, 44, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(185, 16, 44, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.services-cta-section .services-cta {
  margin-top: 0;
  padding: 4rem 0;
  background: linear-gradient(
    135deg,
    rgba(185, 16, 44, 0.08) 0%,
    rgba(185, 16, 44, 0.12) 100%
  );
  border: 2px solid rgba(185, 16, 44, 0.15);
  position: relative;
  z-index: 2;
}

.services-cta-section .section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
