@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@100..900&display=swap");

/* ===== UI/UX DESIGN THEME ===== */
.uiux-theme .design-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(20, 1fr);
  opacity: 0.05;
}

.design-grid .grid-item {
  border: 1px solid var(--primary);
  animation: gridPulse 4s ease-in-out infinite;
}

.grid-item:nth-child(odd) {
  animation-delay: 0.5s;
}

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

/* ===== RESPONSIVE UPDATES FOR NEW SHOWCASES ===== */
@media (max-width: 768px) {
  .design-project-stack {
    max-width: 300px;
    height: 280px;
  }

  .main-project-image {
    height: 220px;
  }

  .secondary-project-image {
    top: 50px;
    right: -20px;
    width: 65%;
    height: 160px;
  }

  .design-tools-floating {
    flex-wrap: wrap;
    justify-content: center;
  }

  .design-tools-floating .tool-item {
    min-width: 70px;
    padding: 0.8rem;
  }

  .video-showcase {
    height: 280px;
  }

  .d3-tools {
    flex-direction: column;
    align-items: center;
  }

  .tool-badge {
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .design-project-stack {
    max-width: 280px;
    height: 250px;
  }

  .main-project-image {
    height: 200px;
  }

  .secondary-project-image {
    top: 40px;
    right: -15px;
    width: 60%;
    height: 140px;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-type {
    font-size: 0.8rem;
  }

  .design-tools-floating .tool-item {
    min-width: 60px;
    padding: 0.6rem;
  }

  .design-tools-floating .tool-item i {
    font-size: 1.5rem;
  }

  .design-tools-floating .tool-item span {
    font-size: 0.7rem;
  }

  .video-showcase {
    height: 250px;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-button i {
    font-size: 1.5rem;
  }

  .video-info h4 {
    font-size: 1.1rem;
  }

  .video-info p {
    font-size: 0.8rem;
  }

  .tool-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

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

/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #f59e0b;
  --accent: #ec4899;
  --dark: #010102;
  --light: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(0, 0, 0, 0.1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans Georgian", sans-serif;
}

html {
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
  background: var(--light);
}

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

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 1rem;
  text-align: center;
  gap: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--light);
  padding: 1rem 2rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.header.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.header.hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 25px;
  z-index: -1;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scale(1);
}

.nav-link:hover,
.nav-link.active {
  color: white;
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  display: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 10px;
}

.mobile-toggle span {
  width: 30px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    #1e293b 50%,
    var(--dark) 100%
  );
  overflow: hidden;
}

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

.floating-element {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay);
  left: var(--x);
  top: var(--y);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 140px;
}

.hero-text {
  color: white;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(100px);
  animation: slideUp 0.8s ease forwards;
  padding: 5px;
}

.title-line:nth-child(1) {
  animation-delay: 0.2s;
}
.title-line:nth-child(2) {
  animation-delay: 0.4s;
}
.title-line:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
}

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

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 1s forwards;
}

/* ===== CODING CONTAINER ===== */
.coding-container {
  position: relative;
  animation: containerFloat 4s ease-in-out infinite;
}

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

.macbook-image {
  width: 600px;
  height: 400px;
  position: relative;
}

.macbook-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.code-overlay {
  position: absolute;
  top: 6%;
  left: 8%;
  width: 84%;
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.terminal-header {
  height: 40px;
  background: linear-gradient(180deg, #3c3c3c 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid #4a4a4a;
}

.window-buttons {
  display: flex;
  gap: 8px;
}

.btns {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close {
  background: #ff5f57;
}
.minimize {
  background: #ffbd2e;
}
.maximize {
  background: #28ca42;
}

.btns:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.code-editor {
  height: calc(100% - 40px);
  padding: 16px;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-y: auto;
}

.code-line {
  opacity: 0;
  animation: typeLine 0.6s ease-out forwards;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

/* ===== SERVICES INTRO SECTION ===== */
.services-intro {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.services-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.services-intro-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.services-main-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.services-main-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== SERVICE SHOWCASE SECTIONS ===== */
.service-showcase {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.service-showcase:nth-child(even) {
  background: #f8fafc;
}

.service-showcase:nth-child(odd) {
  background: white;
}

.service-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.service-grid.reverse {
  direction: rtl;
}

.service-grid.reverse > * {
  direction: ltr;
}

/* ===== SERVICE INFO ===== */
.service-info {
  position: relative;
}

.service-number {
  font-size: 8rem;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.1);
  line-height: 1;
  margin-bottom: -2rem;
  position: absolute;
  top: -4rem;
  left: -2rem;
  z-index: 0;
}

.service-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.service-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.service-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-tag:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.feature-tag i {
  font-size: 1.2rem;
  color: var(--primary);
}

.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.btn-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

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

.btn-service:hover i {
  transform: translateX(5px);
}

/* ===== SERVICE VISUAL ===== */
.service-visual {
  position: relative;
  height: 500px;
}

.showcase-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== WEB DEVELOPMENT THEME ===== */
.web-dev-theme .floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-shapes .shape {
  position: absolute;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.1;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 70%;
  animation-delay: 4s;
}

.browser-mockup {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.browser-mockup:hover {
  transform: translateY(-10px);
}

.browser-top {
  height: 50px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}

.browser-buttons {
  display: flex;
  gap: 8px;
}

.browser-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-close {
  background: #ff5f57;
}
.btn-minimize {
  background: #ffbd2e;
}
.btn-maximize {
  background: #28ca42;
}

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.browser-content {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.browser-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(99, 102, 241, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.browser-content:hover .hover-overlay {
  opacity: 1;
}

.hover-overlay .overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
}

.hover-overlay i {
  font-size: 2rem;
}

.code-snippet {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1rem;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.code-lines {
  color: #d4d4d4;
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.75rem;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.line-number {
  color: #6b7280;
  width: 15px;
  text-align: right;
}

.code-text .variable {
  color: #9cdcfe;
}

.code-text .string {
  color: #ce9178;
}

.code-text .function {
  color: #dcdcaa;
}

/* ===== UI/UX DESIGN NEW SHOWCASE ===== */
.uiux-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.main-project-image {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  z-index: 2;
  background: white;
}

.main-project-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}

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

.design-tools-floating {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.design-tools-floating .tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-width: 80px;
}

.design-tools-floating .tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.design-tools-floating .tool-item i {
  font-size: 1.8rem;
  color: var(--primary);
}

.design-tools-floating .tool-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== 3D DESIGN NEW SHOWCASE ===== */
.design3d-showcase {
  position: relative;
  max-width: 800px !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-showcase {
  position: relative;
  max-width: 600px;
  width: 100%;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  background: #1a1a1a;
}

.d3-tools {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tool-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.tool-badge i {
  font-size: 1.2rem;
  color: var(--primary);
}

.tool-badge span {
  font-size: 0.9rem;
}

/* ===== 3D DESIGN THEME ===== */
.design3d-theme .geometric-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.cube {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.1;
  animation: rotate3d 8s linear infinite;
}

.cube-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.cube-2 {
  bottom: 30%;
  right: 20%;
  animation-delay: 4s;
  width: 60px;
  height: 60px;
}

.sphere {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--accent), var(--primary));
  border-radius: 50%;
  opacity: 0.1;
  top: 70%;
  left: 70%;
  animation: pulse3d 4s ease-in-out infinite;
}

@keyframes rotate3d {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes pulse3d {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
}

.design3d-showcase {
  width: 100%;
  max-width: 400px;
}

.viewport {
  background: #2d3748;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.viewport-header {
  background: #4a5568;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  font-weight: 600;
}

.viewport-header i {
  color: #63b3ed;
}

.viewport-content {
  height: 300px;
  background: #1a202c;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.d3-object {
  width: 100px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3dObject 8s linear infinite;
}

.face {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.8;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.front {
  transform: rotateY(0deg) translateZ(50px);
}
.back {
  transform: rotateY(180deg) translateZ(50px);
}
.right {
  transform: rotateY(90deg) translateZ(50px);
}
.left {
  transform: rotateY(-90deg) translateZ(50px);
}
.top {
  transform: rotateX(90deg) translateZ(50px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(50px);
}

@keyframes rotate3dObject {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.viewport-controls {
  background: #4a5568;
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
}

.control-btn {
  width: 40px;
  height: 40px;
  background: #2d3748;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn.active,
.control-btn:hover {
  background: var(--primary);
  color: white;
}

/* ===== E-COMMERCE THEME ===== */
.ecommerce-theme .shopping-icons {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shopping-icons i {
  position: absolute;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.1;
  animation: shopFloat 6s ease-in-out infinite;
}

.icon-1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.icon-2 {
  top: 30%;
  right: 15%;
  animation-delay: 1.5s;
}

.icon-3 {
  bottom: 40%;
  left: 15%;
  animation-delay: 3s;
}

.icon-4 {
  bottom: 20%;
  right: 25%;
  animation-delay: 4.5s;
}

@keyframes shopFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
    opacity: 0.2;
  }
}

.ecommerce-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-mockup {
  position: relative;
}

.mobile-frame {
  width: 200px;
  height: 400px;
  background: #1f2937;
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.mobile-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.mobile-header {
  height: 60px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: white;
}

.mobile-status {
  width: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}

.mobile-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.mobile-cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.mobile-content {
  padding: 1rem;
}

.product-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

.product-image {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
}

.product-info {
  flex: 1;
}

.product-title {
  height: 12px;
  background: #d1d5db;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: 80%;
}

.product-price {
  height: 10px;
  background: var(--primary);
  border-radius: 4px;
  width: 40%;
}

.payment-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.payment-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.payment-step.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.payment-step i {
  font-size: 1.5rem;
}

.payment-step span {
  font-size: 0.8rem;
  font-weight: 600;
}

.flow-arrow {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===== PORTFOLIO PREVIEW ===== */
.portfolio-preview {
  padding: 8rem 0;
  background: var(--light);
}

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

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.portfolio-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.mockup-browser {
  width: 100%;
  height: 80%;
  background: red;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mockup-browser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browser-header {
  height: 25px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
}

.browser-dots span:nth-child(1) {
  background: #ff5f57;
}
.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}
.browser-dots span:nth-child(3) {
  background: #28ca42;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.overlay-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.btn-preview {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.btn-preview:hover {
  transform: scale(1.1);
  background: var(--accent);
}

.portfolio-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 8rem 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-features {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(10px);
  background: rgba(99, 102, 241, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.feature-icon i {
  color: white;
  font-size: 1.5rem;
}

.feature-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.feature-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.about-visual {
  position: relative;
  height: 500px;
}

.team-showcase {
  position: relative;
  width: 100%;
  height: 70%;
  background: linear-gradient(135deg, var(--light), #e2e8f0);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.team-member {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow);
  animation: teamFloat 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

.team-member:nth-child(1) {
  top: 20%;
  left: 20%;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.team-member:nth-child(2) {
  top: 20%;
  right: 20%;
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.team-member:nth-child(3) {
  bottom: 30%;
  left: 30%;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.team-member:nth-child(4) {
  bottom: 30%;
  right: 30%;
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.member-role {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

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

.tech-icons {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 20px;
  justify-content: space-around;
  padding: 1rem;
}

.tech-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  animation: techFloat 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.tech-icon i {
  font-size: 1.5rem;
}

.tech-icon:nth-child(1) i {
  color: #e34c26;
}
.tech-icon:nth-child(2) i {
  color: #1572b6;
}
.tech-icon:nth-child(3) i {
  color: #cf649a;
}
.tech-icon:nth-child(4) i {
  color: #f0db4f;
}
.tech-icon:nth-child(5) i {
  color: #dd0031;
}
.tech-icon:nth-child(6) i {
  color: #3776ab;
}
.tech-icon:nth-child(7) i {
  color: #777bb4;
}

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

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 8rem 0;
  background: var(--light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-details p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.social-links {
  margin-top: 2rem;
}

.social-links h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.social-icons a {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: var(--transition);
}

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

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

.form-group textarea + i {
  top: 1rem;
  transform: none;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn.loading {
  pointer-events: none;
}

.submit-btn.loading i {
  animation: spin 1s linear infinite;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

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

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

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

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

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

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--primary);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.98);
  min-width: 240px;
  border-radius: 16px;
  padding: 12px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
  white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition-delay: 0.1s;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.02);
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  white-space: nowrap;
  border-radius: 8px;
  margin: 0 8px;
}

.dropdown-menu li a:hover {
  background: var(--primary);
  color: white;
  transform: translateX(4px);
}

.dropdown-menu li a i {
  margin-right: 12px;
  font-size: 1em;
  width: 18px;
  text-align: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 0.8;
}

.dropdown-menu li a:hover i {
  transform: translateX(3px);
  opacity: 1;
}

/* ===== LOGO STYLES ===== */
.ubazo-logo {
  display: block;
  width: 180px;
  height: auto;
  transition: all 0.3s ease;
}

.ubazo-logo-footer {
  display: block;
  width: 200px !important;
  height: auto;
  transition: all 0.3s ease;
}

/* ===== CODE STYLING ===== */
.line-num {
  width: 30px;
  color: #858585;
  font-size: 11px;
  text-align: right;
  margin-right: 12px;
  user-select: none;
}

.code-content {
  flex: 1;
}

.code-line:nth-child(1) {
  animation-delay: 0.2s;
}
.code-line:nth-child(2) {
  animation-delay: 0.4s;
}
.code-line:nth-child(3) {
  animation-delay: 0.6s;
}
.code-line:nth-child(4) {
  animation-delay: 0.8s;
}
.code-line:nth-child(5) {
  animation-delay: 1s;
}
.code-line:nth-child(6) {
  animation-delay: 1.2s;
}
.code-line:nth-child(7) {
  animation-delay: 1.4s;
}
.code-line:nth-child(8) {
  animation-delay: 1.6s;
}
.code-line:nth-child(9) {
  animation-delay: 1.8s;
}
.code-line:nth-child(10) {
  animation-delay: 2s;
}

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

/* Syntax Highlighting */
.keyword {
  color: #c586c0;
  font-weight: 600;
}
.string {
  color: #ce9178;
}
.function {
  color: #dcdcaa;
}
.comment {
  color: #6a9955;
  font-style: italic;
}
.variable {
  color: #9cdcfe;
}
.number {
  color: #b5cea8;
}
.tag {
  color: #569cd6;
}
.attribute {
  color: #92c5f7;
}

.cursor {
  background: #ffffff;
  color: #1e1e1e;
  animation: blink 1.2s infinite;
  padding: 0 1px;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.code-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: screenGlow 5s infinite;
  pointer-events: none;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

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

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

  .services-main-title {
    font-size: 2.5rem;
  }

  .service-showcase {
    padding: 6rem 0;
    min-height: auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .service-grid.reverse {
    direction: ltr;
  }

  .service-number {
    position: relative;
    top: 0;
    left: 0;
    font-size: 6rem;
    margin-bottom: 1rem;
  }

  .service-title {
    font-size: 2.5rem;
  }

  .service-features-grid {
    grid-template-columns: 1fr;
  }

  .service-visual {
    height: 400px;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .service-grid.reverse {
    flex-direction: column-reverse !important;
    display: flex !important;
    direction: ltr !important;
  }
  .service-grid.reverse > * {
    width: 100%;
  }
}

@media (max-width: 1038px) {
  .nav-container {
    justify-content: space-between;
  }

  .nav-actions {
    display: block;
    z-index: 1000;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 2rem;
  }

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

  .nav-menu .nav-link {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .macbook-image {
    width: 500px;
    height: 333px;
  }

  .code-editor {
    font-size: 10px;
    padding: 12px;
  }

  .contact-form {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .services-intro {
    padding: 6rem 0 3rem;
  }

  .services-main-title {
    font-size: 2rem;
  }

  .services-main-description {
    font-size: 1.1rem;
  }

  .service-showcase {
    padding: 4rem 0;
  }

  .service-grid {
    gap: 3rem;
  }

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

  .service-description {
    font-size: 1rem;
  }

  .feature-tag {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .service-visual {
    height: 300px;
  }

  .browser-mockup {
    max-width: 350px;
  }

  .browser-content {
    height: 250px;
  }

  .code-snippet {
    display: none;
  }

  .design-showcase {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .design-tool,
  .wireframe-preview {
    width: 150px;
  }

  .viewport-content {
    height: 200px;
  }

  .mobile-frame {
    width: 160px;
    height: 320px;
    padding: 15px;
  }
}

@media (max-width: 550px) {
  .container {
    padding: 0 1rem;
  }

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

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

  .macbook-image {
    width: 400px;
    height: 267px;
  }

  .code-editor {
    font-size: 9px;
    padding: 10px;
  }

  .line-num {
    width: 25px;
    margin-right: 8px;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .services-intro {
    padding: 4rem 0 2rem;
  }

  .services-main-title {
    font-size: 1.8rem;
  }

  .service-showcase {
    padding: 3rem 0;
  }

  .service-title {
    font-size: 1.6rem;
  }

  .service-number {
    font-size: 4rem;
  }

  .btn-service {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .browser-mockup {
    max-width: 280px;
  }

  .browser-content {
    height: 200px;
  }

  .design-showcase {
    scale: 0.8;
  }

  .viewport {
    scale: 0.8;
  }

  .mobile-frame {
    width: 140px;
    height: 280px;
    padding: 12px;
  }

  .payment-flow {
    scale: 0.8;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* Spacing utilities */
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 1.5rem;
}
.p-4 {
  padding: 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* AOS Animation Classes */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: var(--transition-slow);
}

[data-aos="fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(30px);
  transition: var(--transition-slow);
}

[data-aos="fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-slow);
}

[data-aos="zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

.demo {
  position: absolute;
  right: 10px;
  top: 3px;
  font-size: 15px;
  font-family: sans-serif;
  font-style: italic;
}
