:root {
  --bg-color: #0d0d0d;
  --text-color: #e0e0e0;
  --primary-color: #3b82f6; /* Blue */
  --secondary-color: #8b5cf6; /* Purple */
  --accent-color: #06b6d4; /* Cyan */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--text-color);
  margin-left: 15px;
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--primary-color);
}

/* Header */
header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

header .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 55px; /* Increased from 40px */
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center; /* Vertically align menu items with the button */
}

.nav-link.btn.btn-primary {
  color: white !important; /* Force white text for contact button */
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #a0a0a0;
}

.nav-link:hover {
  color: white;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
}

/* Refactored Hero for 2 columns */
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
}

.floating-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
  animation: float-img 6s ease-in-out infinite;
  mix-blend-mode: screen; /* Blends black background away */
}

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

.hero-eyebrow {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 40px;
  max-width: 500px;
}

/* Background Gradients/Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.4;
  animation: float 10s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary-color);
  bottom: 0;
  left: -50px;
  animation-delay: 5s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 30px);
  }
}

/* Services */
.services {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

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

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(139, 92, 246, 0.2)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-card p {
  color: #a0a0a0;
  font-size: 0.95rem;
}

/* About Section */
.about {
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(59, 130, 246, 0.05),
    transparent
  );
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.about-text p {
  color: #b0b0b0;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  background: var(--glass-bg);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--glass-border);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.9rem;
  color: #a0a0a0;
}

/* Footer */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #888;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  color: #666;
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-wrapper {
    flex-direction: column-reverse; /* Text on top, image below */
    text-align: center;
    gap: 50px;
    padding-top: 100px; /* Increased from 60px */
  }

  .hero-content {
    margin: 0 auto;
    width: 100%;
  }

  .hero-btns {
    width: 100%;
    margin-top: 10px;
    flex-direction: column;
    gap: 15px;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
    margin: 0 !important; /* Reset margins */
    display: block;
  }

  /* Mobile Menu */
  .mobile-toggle {
    display: block; /* Show hamburger */
    margin-left: auto; /* Push to right */
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    border-top: 1px solid var(--glass-border);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 20px 0;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  /* Grids */
  .projects-wrapper,
  .services-grid,
  .reviews-grid,
  .project-showcase {
    grid-template-columns: 1fr;
  }

  /* Visuals Scaledown */
  .tech-hologram {
    transform: scale(0.85); /* Increased scale */
    transform-origin: center center;
    margin: 0 auto;
    left: -20px; /* Slight adjustment to center visually if needed due to 3D rotation */
  }

  .hero-image {
    overflow: visible;
    height: 420px; /* Increased height to fit larger scale */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .network-viz {
    transform: scale(0.6);
  }

  .project-card {
    height: auto;
    min-height: 350px;
  }
}

.about-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.2));
  animation: pulse-glow 4s infinite alternate;
  mix-blend-mode: screen; /* Blends black background away */
}

@keyframes pulse-glow {
  0% {
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.2));
  }
  100% {
    filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.4));
  }
}

/* Tech Hologram (Hero) */
.tech-hologram {
  position: relative;
  width: 500px; /* Increased from 400px */
  height: 400px; /* Increased from 320px */
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.glass-card {
  width: 400px; /* Increased from 320px */
  height: 280px; /* Increased from 220px */
  background: rgba(255, 255, 255, 0.05); /* Slightly more visible */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 30px rgba(59, 130, 246, 0.1); /* Blue glow */
  padding: 30px;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
  animation: float-card 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: rotateY(0) rotateX(0) scale(1.02);
  box-shadow: 0 25px 60px rgba(59, 130, 246, 0.15);
}

.card-header {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.code-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.code-block {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.w-80 {
  width: 80%;
}
.w-70 {
  width: 70%;
}
.w-60 {
  width: 60%;
}
.w-50 {
  width: 50%;
}
.w-40 {
  width: 40%;
}
.w-30 {
  width: 30%;
}

.color-1 {
  background: rgba(59, 130, 246, 0.4);
} /* Blueish */
.color-2 {
  background: rgba(139, 92, 246, 0.4);
} /* Purpleish */
.color-3 {
  background: rgba(6, 182, 212, 0.4);
} /* Cyanish */

.glass-reflection {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: skewX(-25deg);
  pointer-events: none;
  animation: reflection-shine 5s infinite linear;
}

@keyframes reflection-shine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.1);
  }
  50% {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-20px);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(59, 130, 246, 0.2);
  }
}

/* Floating Icons */
.float-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  animation: float-icon 5s ease-in-out infinite;
}

.icon-android {
  top: -20px;
  right: -20px;
  color: #3ddc84;
  animation-delay: 0s;
}

.icon-code {
  bottom: -10px;
  right: 40px;
  color: #3b82f6;
  animation-delay: 1.5s;
}

.icon-shield {
  bottom: 30px;
  left: -30px;
  color: #8b5cf6;
  animation-delay: 2.5s;
}

@keyframes float-icon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Network Node (About Section) */
.network-viz {
  width: 600px;
  height: 600px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.core-node {
  width: 160px;
  height: 160px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
  z-index: 10;
  position: relative;
  animation: core-pulse 3s infinite alternate;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.ring-1 {
  width: 360px;
  height: 360px;
  border-color: rgba(59, 130, 246, 0.2);
  animation: spin 15s linear infinite;
}

.ring-2 {
  width: 560px;
  height: 560px;
  border-color: rgba(139, 92, 246, 0.15);
  animation: spin-reverse 20s linear infinite;
}

.satellite-node {
  position: absolute;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px white;
}

.ring-1::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-color);
}

.ring-2::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--secondary-color);
}

@keyframes core-pulse {
  0% {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.6);
    transform: scale(1.1);
  }
}

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

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

/* Projects Section */
.projects {
  padding: 100px 0;
  position: relative;
}

.projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-content {
  padding: 30px;
  z-index: 2;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-content p {
  font-size: 0.95rem;
  color: #a0a0a0;
  margin-bottom: 20px;
}

.tech-tags {
  display: flex;
  gap: 10px;
}

.tech-tags span {
  font-size: 0.75rem;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-visual {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 8rem;
  opacity: 0.1;
  transform: rotate(-15deg);
  transition: all 0.5s ease;
}

.project-card:hover .project-visual {
  opacity: 0.2;
  transform: rotate(0) scale(1.1);
}

.color-1-glow {
  color: var(--primary-color);
  filter: drop-shadow(0 0 20px var(--primary-color));
}
.color-2-glow {
  color: var(--secondary-color);
  filter: drop-shadow(0 0 20px var(--secondary-color));
}

.color-3-glow {
  color: var(--accent-color);
  filter: drop-shadow(0 0 20px var(--accent-color));
}

.projects-cta {
  text-align: center;
  margin-top: 20px;
}

.projects-cta p {
  color: #a0a0a0;
  margin-bottom: 20px;
}

/* Reviews Section */
.reviews {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.02), transparent);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 20px;
  transition: 0.3s;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
}

.client-info h4 {
  font-size: 1rem;
  line-height: 1.2;
}

.client-info span {
  font-size: 0.8rem;
  color: #888;
}

.stars {
  margin-left: auto;
  color: #ffbd2e;
  font-size: 0.8rem;
}

.review-text {
  font-style: italic;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Optimization Base */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 900px) {
  /* Header & Navigation */
  header .container {
    padding: 0 20px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    border-left: 1px solid var(--glass-border);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  /* Hero adjustments for smaller tablets */
  .hero-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: 50px;
    justify-content: center;
  }

  .hero-content {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 20px;
  }

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

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

  .tech-hologram {
    transform: scale(0.85);
  }
}

@media (max-width: 768px) {
  /* Section Spacing */
  section {
    padding: 60px 0 !important; /* Force tighter padding */
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* Projects - Stack cards */
  .project-showcase {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }

  .project-card {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: auto;
    padding-bottom: 20px;
  }

  .tech-tags {
    flex-wrap: wrap;
    margin-bottom: 15px;
  }

  .project-content {
    padding: 25px;
  }

  .project-visual {
    opacity: 0.15;
    font-size: 6rem;
  }

  /* Reviews - Carousel or Stack */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 25px;
  }

  /* About */
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

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

  .stats-grid {
    gap: 15px;
  }

  .network-viz {
    transform: scale(0.6);
    width: 100%; /* Prevent overflow */
  }

  /* Visual Elements resizing */
  .tech-hologram {
    transform: scale(0.65);
    width: 100%;
    height: 350px;
  }

  .glass-card {
    width: 90%;
    height: 240px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 30px;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Very small screens */
  .hero h1 {
    font-size: 2.2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .tech-hologram {
    transform: scale(0.55);
    height: 300px;
  }

  .about-visual {
    overflow: hidden; /* Cut off oversized animations */
  }

  .network-viz {
    transform: scale(0.5);
  }

  /* Adjust project card for tiny screens */
  .project-card {
    min-height: auto;
    height: auto;
    padding-bottom: 60px; /* Space for visual */
  }

  .tech-tags {
    flex-wrap: wrap;
  }
}

/* Contact Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.modal-body {
  display: flex;
  min-height: 500px;
}

/* Modal Form Section */
.modal-form-section {
  flex: 1.2;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-form-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.modal-form-section p {
  color: #a0a0a0;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-row {
  display: flex;
  gap: 20px;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 15px 15px 45px;
  border-radius: 12px;
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: 0.3s;
  outline: none;
}

.input-group textarea {
  resize: none;
  padding-top: 15px; /* Alignment for icon */
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1.1rem;
  transition: 0.3s;
  pointer-events: none;
}

.textarea-icon {
  top: 25px; /* Adjust for textarea */
}

.input-group input:focus + .input-icon,
.input-group textarea:focus + .input-icon {
  color: var(--primary-color);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Modal Visual Section */
.modal-visual-section {
  flex: 0.8;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid var(--glass-border);
}

/* Hologram Animation in Modal */
.hologram-container {
  position: relative;
  width: 260px;
  height: 320px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.holo-card {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2),
    inset 0 0 20px rgba(59, 130, 246, 0.1);
  animation: float-modal 6s ease-in-out infinite;
  transform: rotateY(-10deg);
}

.holo-header {
  display: flex;
  gap: 8px;
}

.holo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.holo-dot.red {
  background: #ff5f56;
}
.holo-dot.yellow {
  background: #ffbd2e;
}
.holo-dot.green {
  background: #27c93f;
}

.holo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.holo-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 0 20px var(--primary-color);
  animation: pulse-avatar 3s infinite;
}

.holo-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.line {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.l-100 {
  width: 100%;
}
.l-80 {
  width: 80%;
}
.l-60 {
  width: 60%;
}

.holo-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: hologram-sweep 4s infinite linear;
  pointer-events: none;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-el {
  position: absolute;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: float-el 5s infinite ease-in-out;
}

.el-1 {
  top: -10%;
  left: -10%;
  animation-delay: 0s;
  color: #25d366;
}
.el-2 {
  bottom: -5%;
  right: -10%;
  animation-delay: 2s;
  color: var(--accent-color);
}

@keyframes float-modal {
  0%,
  100% {
    transform: rotateY(-10deg) translateY(0);
  }
  50% {
    transform: rotateY(-5deg) translateY(-15px);
  }
}

@keyframes pulse-avatar {
  0%,
  100% {
    box-shadow: 0 0 20px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 40px var(--primary-color), 0 0 10px white;
  }
}

@keyframes hologram-sweep {
  0% {
    transform: translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(200%) rotate(45deg);
    opacity: 0;
  }
}

@keyframes float-el {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 0;
    border-radius: 15px;
    max-height: 90vh; /* Use max-height instead of fixed height */
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Main container hidden, body scrollable */
  }

  /* Close button easier to hit */
  .modal-close {
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 35px;
    height: 35px;
  }

  .modal-body {
    flex-direction: column-reverse;
    overflow-y: auto;
    max-height: calc(90vh - 60px); /* Adjust for header/close button area if needed */
  }

  /* Reduce visual section size or hide if screen is very small */
  .modal-visual-section {
    padding: 20px;
    flex: 0 0 150px; /* Smaller height for visual */
    border-left: none;
    border-bottom: 1px solid var(--glass-border);
    min-height: 150px;
  }

  .hologram-container {
    transform: scale(0.6);
    height: 180px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .holo-card {
     width: 200px; /* Fixed width for better scaling */
  }

  .modal-form-section {
    padding: 25px 20px;
    flex: 1; /* Take remaining space */
  }
  
  .modal-form-section h2 {
      font-size: 1.5rem; /* Smaller title */
  }

  .modal-form-section p {
      font-size: 0.9rem;
      margin-bottom: 20px;
  }

  .input-row {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Ensure inputs are easy to tap */
  .input-group input, 
  .input-group textarea {
      padding: 12px 12px 12px 40px;
      font-size: 16px; /* Avoid zoom on iOS */
  }
}

/* Status Modal Styles */
.status-content {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.modal-overlay.active .status-content {
  transform: scale(1);
}

.status-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}

.status-icon-box.success {
  color: #27c93f;
  box-shadow: 0 0 30px rgba(39, 201, 63, 0.3);
  border-color: rgba(39, 201, 63, 0.3);
}

.status-icon-box.error {
  color: #ff5f56;
  box-shadow: 0 0 30px rgba(255, 95, 86, 0.3);
  border-color: rgba(255, 95, 86, 0.3);
}

.status-content h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.status-content p {
  color: #a0a0a0;
  margin-bottom: 10px;
  font-size: 1rem;
}

@media (max-width: 480px) {
    /* Hide visual section on very small screens to prioritize form */
    .modal-visual-section {
        display: none;
    }
    
    .modal-content {
        height: auto;
        max-height: 85vh; /* slightly less on small phones */
    }
}
