:root {
  --primary-color: #6e44ff;
  --secondary-color: #ff44aa;
  --accent-color: #44ddff;
  --background-dark: #0a0a0c;
  --text-light: #f5f5f7;
  --text-muted-light: #c5c5c7;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-alt: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  --font-primary: 'Space Grotesk', sans-serif;
  --easing: cubic-bezier(0.6, 0.01, 0.05, 0.95);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.25);
  --container-width: 1440px;
  --container-padding: 5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

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

/* Remove theme toggle button */
.theme-toggle {
  display: none !important;
}

/* Force dark theme on header */
header {
  background-color: transparent;
  color: var(--text-light);
}

header.scrolled {
  background-color: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(10px);
}

/* Force dark theme on sections */
.section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

/* Force dark theme on cards */
.value-card, .tech-item, .about-card, .card-front, .card-back {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Force dark theme on loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--background-dark);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s var(--easing);
}

.loader-subtitle {
  color: var(--text-light);
}

.loader-progress {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Remove all light mode related styles */
.light-mode,
.light-mode *,
html.light-mode,
body.light-mode,
.mac,
html.mac,
body.mac {
  background-color: var(--background-dark) !important;
  color: var(--text-light) !important;
}

/* Force dark theme on all media queries */
@media screen and (max-width: 1024px), 
       screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
  body {
    background-color: var(--background-dark) !important;
    color: var(--text-light) !important;
  }
  
  .loader {
    background-color: var(--background-dark) !important;
  }
  
  .loader-subtitle {
    color: var(--text-light) !important;
  }
}

/* Loader */
.loader-content {
  text-align: center;
}

.loader-title {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulse 2s var(--easing) infinite;
}

.loader-progress {
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.loader-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  animation: loading 2s var(--easing) forwards;
}

.loaded .loader {
  opacity: 0;
  visibility: hidden;
}

@keyframes loading {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* Cursor */
.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s var(--easing), height 0.3s var(--easing), opacity 0.3s var(--easing);
  display: block; /* Show by default */
}

/* Hide cursor follower on mobile */
@media (max-width: 1023px) {
  .cursor-follower {
    display: none;
  }
}

.cursor-follower.active {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  opacity: 0.4;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.5s var(--easing);
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 1rem 0;
}

.logo img {
  height: 100%;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--text-light);
  transition: color 0.5s var(--easing);
}

nav ul {
  display: flex;
  gap: 2.5rem;
  height: 100%;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s var(--easing);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
  background-color: var(--background-dark);
  color: var(--text-light);
  transition: background-color 0.5s var(--easing), color 0.5s var(--easing);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: 8rem;
  font-weight: 700;
  letter-spacing: 1rem;
  margin-bottom: 2rem;
  line-height: 1;
  animation: fadeUp 1s var(--easing) forwards;
  opacity: 0;
  animation-delay: 0.5s;
  color: var(--text-light);
  transition: color 0.5s var(--easing);
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s var(--easing) forwards;
  animation-delay: 0.7s;
  color: var(--text-light);
  transition: color 0.5s var(--easing);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--easing) forwards;
  animation-delay: 0.9s;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  color: var(--text-light);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -2px 0 var(--secondary-color);
  animation: glitch-1 2s linear infinite alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: 2px 0 var(--accent-color);
  animation: glitch-2 3s linear infinite alternate-reverse;
}

@keyframes glitch-1 {
  0%, 30%, 50%, 70%, 100% { clip-path: inset(0 0 0 0); }
  20% { clip-path: inset(8% 0 13% 0); }
  40% { clip-path: inset(43% 0 36% 0); }
  60% { clip-path: inset(25% 0 58% 0); }
  80% { clip-path: inset(71% 0 22% 0); }
}

@keyframes glitch-2 {
  0%, 25%, 45%, 65%, 100% { clip-path: inset(0 0 0 0); }
  15% { clip-path: inset(13% 0 28% 0); }
  35% { clip-path: inset(56% 0 23% 0); }
  55% { clip-path: inset(31% 0 46% 0); }
  75% { clip-path: inset(67% 0 9% 0); }
}

/* Button Styles */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1rem;
  border-radius: 30px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--easing);
  z-index: 1;
  line-height: 1;
  text-align: center;
}

.primary-btn {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.3);
}

.secondary-btn {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-alt);
  transition: width 0.3s var(--easing);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.primary-btn:hover {
  box-shadow: 0 7px 20px rgba(255, 68, 170, 0.4);
}

.secondary-btn:hover {
  color: white;
  border-color: transparent;
}

/* Section Styles */
.section {
  padding: 120px 10%;
  position: relative;
  padding-top: 100px;
  background-color: var(--background-dark);
  color: var(--text-light);
  transition: background-color 0.5s var(--easing), color 0.5s var(--easing);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-line {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto;
}

/* Adjust individual section padding for better scroll positioning */
#services {
  padding-top: 80px;
}

#process {
  padding-top: 90px;
}

#portfolio {
  padding-top: 80px;
}

#pricing {
  padding-top: 80px;
}

#about {
  padding-top: 80px;
}

#values {
  padding-top: 80px;
}

#technologies {
  padding-top: 80px;
}

/* Contact section (already updated) */
#contact {
  padding-top: 80px;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-visual {
  display: flex;
  gap: 2rem;
  perspective: 1000px;
}

.about-card {
  width: 100%;
  height: 300px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--easing);
  transform-style: preserve-3d;
}

.about-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-front {
  background: linear-gradient(rgba(110, 68, 255, 0.1), rgba(255, 68, 170, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.card-back {
  background: linear-gradient(rgba(255, 68, 170, 0.1), rgba(68, 221, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotateY(180deg);
  backdrop-filter: blur(5px);
}

.card-front h3 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
}

.card-back p {
  font-size: 1.1rem;
  text-align: center;
}

/* Values Section */
.values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 3rem 2rem;
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-dark);
}

.value-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: hue-rotate(0deg);
  transition: filter 0.3s var(--easing);
}

.value-card:hover .value-icon {
  filter: hue-rotate(90deg);
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
}

.value-card p {
  font-size: 1rem;
  color: var(--text-muted-light);
}

.innovation {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/%3E%3C/svg%3E");
}

.user-centric {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.quality {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.transparency {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

.growth {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M16,6L16,6c1.1,0,2,0.9,2,2l0,0c0,1.1-0.9,2-2,2l0,0c-1.1,0-2-0.9-2-2l0,0C14,6.9,14.9,6,16,6z M16,2L16,2 c2.8,0,5,2.2,5,5v11c0,2.2-1.8,4-4,4h-5c-1.5,0-2.9-0.8-3.6-2.1C8.2,19.9,8,19.5,8,19v-1H4c-1.1,0-2-0.9-2-2v-3c0-1.1,0.9-2,2-2h4 c1.1,0,2,0.9,2,2v7h5c1.1,0,2-0.9,2-2V7C17,4.2,14.8,2,12,2H8v5H4V2H16z'/%3E%3C/svg%3E");
}

.impact {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M19.77 5.03l1.4 1.4L8.43 19.17l-5.6-5.6 1.4-1.4 4.2 4.2L19.77 5.03m0-2.83L8.43 13.54l-4.2-4.2L0 13.57 8.43 22 24 6.43 19.77 2.2z'/%3E%3C/svg%3E");
}

/* More CSS will follow in another file due to length limitation */

#about .section-header {
  margin-bottom: 2rem;
}

.mission-vision-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 4rem;
  perspective: 1000px;
}

.mission-vision-container .about-card {
  width: 300px;
  height: 200px;
}

/* Tech Stack Section */
.tech-stack-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s var(--easing);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.tech-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-dark);
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(110, 68, 255, 0.1), rgba(255, 68, 170, 0.1));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s var(--easing);
}

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

.tech-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s var(--easing);
  filter: hue-rotate(0deg);
}

.tech-item:hover .tech-icon {
  transform: scale(1.1) rotate(5deg);
  filter: hue-rotate(90deg);
}

.tech-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
}

.tech-item p {
  font-size: 1rem;
  color: var(--text-muted-light);
}

/* Tech Stack Icons */
.html5-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M12 2L2 19.7778H22L12 2ZM12 6.5L18.5 19.7778H5.5L12 6.5Z'/%3E%3C/svg%3E");
}

.css3-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M12 2L2 19.7778H22L12 2ZM12 6.5L18.5 19.7778H5.5L12 6.5Z'/%3E%3C/svg%3E");
}

.react-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M12 2L2 19.7778H22L12 2ZM12 6.5L18.5 19.7778H5.5L12 6.5Z'/%3E%3C/svg%3E");
}

.node-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236e44ff'%3E%3Cpath d='M12 2L2 19.7778H22L12 2ZM12 6.5L18.5 19.7778H5.5L12 6.5Z'/%3E%3C/svg%3E");
}

.mission-vision-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.mission-vision-row .about-card {
  width: 260px;
  height: 230px;
}

.mission-vision-row .about-card .card-front,
.mission-vision-row .about-card .card-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-top: 0;
}

.mission-vision-row .about-card .card-front h3 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mission-vision-row .about-card .card-back p {
  font-size: 1rem;
  text-align: center;
}

.mission-vision-row .about-card .card-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  text-align: center;
  padding: 2rem;
}

.mission-vision-row .about-card .card-back p {
  margin: 0;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-align: center;
}

.about-svg-visual {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 32px rgba(110,68,255,0.10));
}

.about-svg-visual.web-animated-svg {
  width: 100%;
  max-width: 480px;
  min-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 1;
  filter: drop-shadow(0 4px 32px rgba(110,68,255,0.10));
}

/* Animate rectangles (content blocks) */
.svg-rect-1 {
  animation: rectMove1 2.5s ease-in-out infinite alternate;
}
.svg-rect-2 {
  animation: rectMove2 2.5s 0.5s ease-in-out infinite alternate;
}
.svg-rect-3 {
  animation: rectFade 2.5s 1s ease-in-out infinite alternate;
}
.svg-rect-4 {
  animation: rectFade 2.5s 1.5s ease-in-out infinite alternate;
}
.svg-rect-5 {
  animation: rectFade 2.5s 2s ease-in-out infinite alternate;
}

@keyframes rectMove1 {
  0% { x: 70px; }
  100% { x: 90px; }
}
@keyframes rectMove2 {
  0% { x: 210px; }
  100% { x: 230px; }
}
@keyframes rectFade {
  0% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Animate cursor group */
.svg-cursor {
  animation: cursorMove 2.5s ease-in-out infinite alternate;
}
@keyframes cursorMove {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(18px) scale(1.08); }
}

.about-tools-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  min-height: 340px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.tool-icon {
  width: 70px;
  height: 70px;
  transition: transform 0.4s cubic-bezier(0.6,0.01,0.05,0.95);
  filter: drop-shadow(0 2px 12px rgba(110,68,255,0.10));
  opacity: 0.95;
}
.html5-tool {
  animation: float1 3.2s ease-in-out infinite alternate;
}
.css3-tool {
  animation: float2 3.5s 0.3s ease-in-out infinite alternate;
}
.js-tool {
  animation: float3 3.1s 0.6s ease-in-out infinite alternate;
}
.react-tool {
  animation: float4 3.7s 0.2s ease-in-out infinite alternate, rotateReact 6s linear infinite;
}
.node-tool {
  animation: float5 3.3s 0.5s ease-in-out infinite alternate;
}
@keyframes float1 {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-18px) scale(1.08); }
}
@keyframes float2 {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(12px) scale(1.06); }
}
@keyframes float3 {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.04); }
}
@keyframes float4 {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(16px) scale(1.09); }
}
@keyframes float5 {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-14px) scale(1.07); }
}
@keyframes rotateReact {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Invert dark icons in dark mode */
.tool-icon[data-icon="logos:apple"],
.tool-icon[data-icon="logos:github-icon"],
.tool-icon[data-icon="logos:nextjs-icon"] {
  transition: filter 0.3s;
}
:not(.light-mode) .tool-icon[data-icon="logos:apple"],
:not(.light-mode) .tool-icon[data-icon="logos:github-icon"],
:not(.light-mode) .tool-icon[data-icon="logos:nextjs-icon"] {
  filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.1);
}

.tech-stack-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 32px rgba(110,68,255,0.10);
}

.about-tools-visual, .about-visual {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Hide theme toggle on mobile and Apple devices */
@media screen and (max-width: 1024px), 
       screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
  .theme-toggle {
    display: none !important;
  }
}

/* Hide theme toggle on Apple devices specifically */
.mac .theme-toggle,
html.mac .theme-toggle,
body.mac .theme-toggle {
  display: none !important;
}

/* Light theme loader for mobile and Apple devices */
@media screen and (max-width: 1024px), 
       screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
  .loader {
    background-color: var(--background-light);
  }
  
  .loader-subtitle {
    color: var(--text-dark);
  }
  
  .loader-progress {
    background-color: rgba(0, 0, 0, 0.1);
  }
}

/* Light theme loader for Apple devices */
.mac .loader,
html.mac .loader,
body.mac .loader {
  background-color: var(--background-light);
}

.mac .loader-subtitle,
html.mac .loader-subtitle,
body.mac .loader-subtitle {
  color: var(--text-dark);
}

.mac .loader-progress,
html.mac .loader-progress,
body.mac .loader-progress {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Ensure proper text colors */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  transition: color 0.5s var(--easing);
}

/* Ensure proper background for main content */
main {
  background-color: var(--background-dark);
  transition: background-color 0.5s var(--easing);
}

/* Ensure all text elements transition properly */
p, span, div, a, button, input, textarea {
  transition: color 0.5s var(--easing), background-color 0.5s var(--easing);
}

/* Cards and containers */
.value-card, .tech-item, .about-card, .card-front, .card-back {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  transition: all 0.5s var(--easing);
}

.light-mode .value-card,
.light-mode .tech-item,
.light-mode .about-card,
.light-mode .card-front,
.light-mode .card-back {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-dark);
}

/* Remove device-specific overrides */
@media screen and (max-width: 1024px), 
       screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
  /* Remove forced light theme styles */
  .loader {
    background-color: inherit;
  }
  
  .loader-subtitle {
    color: inherit;
  }
  
  .loader-progress {
    background-color: inherit;
  }
}

/* Remove Apple device specific overrides */
.mac .loader,
html.mac .loader,
body.mac .loader,
.mac .loader-subtitle,
html.mac .loader-subtitle,
body.mac .loader-subtitle,
.mac .loader-progress,
html.mac .loader-progress,
body.mac .loader-progress {
  background-color: inherit;
  color: inherit;
}

/* Footer */
footer {
    background-color: rgba(10, 10, 12, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 4rem 0;
    position: relative;
    z-index: 100;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 1rem;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s var(--easing);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.menu-open .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.3s var(--easing);
        z-index: 1000;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    nav ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.2s var(--easing);
    }

    nav.open ul li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.5rem;
        color: var(--text-light) !important;
        transition: all 0.2s var(--easing);
        padding: 0.5rem 1rem;
        display: inline-block;
    }

    nav ul li a {
        color: var(--text-light) !important;
        font-size: 1.5rem;
        font-weight: 500;
        letter-spacing: 0.1rem;
        transition: all 0.2s var(--easing);
    }

    nav ul li a:hover,
    nav ul li a:active {
        color: var(--primary-color) !important;
        transform: translateY(-2px);
    }

    /* Active state for better touch feedback */
    nav ul li a:active {
        transform: translateY(0);
    }

    /* Ensure menu toggle is visible and responsive */
    .hamburger {
        transition: all 0.2s var(--easing);
    }

    .hamburger span {
        background-color: var(--text-light) !important;
        transition: all 0.2s var(--easing);
    }

    .menu-open .hamburger span {
        transition: all 0.2s var(--easing);
    }

    /* Add active state for touch feedback */
    .nav-link:active {
        transform: translateY(0);
        transition: all 0.1s var(--easing);
    }
}

/* Ensure mobile menu text is visible in all states */
nav.open .nav-link,
nav.open ul li a {
    color: var(--text-light) !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Footer Content */
.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.footer-tagline {
    font-size: 1rem;
    color: var(--text-muted-light);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s var(--easing);
}

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

.footer-copyright {
    color: var(--text-muted-light);
    font-size: 0.9rem;
}

/* Ensure footer stays dark in all browsers */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    footer {
        background-color: rgba(10, 10, 12, 0.95) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* Microsoft Edge specific fix */
@supports (-ms-ime-align: auto) {
    footer {
        background-color: rgb(10, 10, 12) !important;
    }
}

/* Force dark background in Edge */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    footer {
        background-color: rgb(10, 10, 12) !important;
    }
}

/* Contact Form Styles */
.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-dark);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s var(--easing);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: none; /* Prevent resizing */
  min-height: 120px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s var(--easing);
}

.submit-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s var(--easing);
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.3);
}

.email-alternative {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted-light);
  font-size: 0.9rem;
}

.email-alternative a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Contact Info Block */
.contact-info-block {
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.contact-info-company {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-info-address {
  font-style: normal;
  color: var(--text-muted-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-info-phone {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s var(--easing);
}

.contact-info-phone:hover {
  color: var(--secondary-color);
}

/* Footer Contact Info */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.footer-contact-company {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
}

.footer-contact-address {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  text-align: center;
  max-width: 480px;
  line-height: 1.5;
}

.footer-contact-phone {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}

.footer-contact-phone:hover {
  color: var(--secondary-color);
}

/* Responsive Contact Form */
@media screen and (max-width: 768px) {
  .contact-form-container {
    padding: 1rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
  }
  
  .submit-btn {
    width: 100%;
  }
} 