/* ===== Variables ===== */
:root {
  /* Updated colors to match the MowiLabs logo - bright blue and black */
  --primary-color: #00bfff;
  --primary-dark: #0099cc;
  --primary-light: #66d9ff;
  --secondary-color: #000000;
  --text-color: #1a1a1a;
  --text-light: #4a4a4a;
  --text-lighter: #777777;
  --light-text: #ffffff;
  --background-color: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --border-color: #dee2e6;
  --accent-color: #ff6b35;

  /* Updated gradients with new brand colors */
  --primary-gradient: linear-gradient(135deg, #00bfff, #0099cc);
  --text-gradient: linear-gradient(135deg, #00bfff, #0099cc);
  --hero-gradient: linear-gradient(135deg, #00bfff 0%, #0099cc 50%, #000000 100%);

  /* Shadows */
  --box-shadow-sm: 0 2px 10px rgba(0, 191, 255, 0.1);
  --box-shadow: 0 10px 30px rgba(0, 191, 255, 0.15);
  --box-shadow-lg: 0 15px 40px rgba(0, 191, 255, 0.2);
  --box-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-primary: "Outfit", sans-serif;
  --font-secondary: "Montserrat", sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 0 20px;

  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Text Colors */
  --text-dark: #1a1a1a;
  --text-muted: #64748b;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Enhanced typography with better hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* ===== Utility Classes ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

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

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: 700;
}

/* Enhanced button styles with modern design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: -1;
}

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

.btn-primary {
  background: var(--primary-gradient);
  color: var(--light-text);
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

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

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

.btn-block {
  width: 100%;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.logo-animation {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.logo-petals {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.petal {
  position: absolute;
  width: 30px;
  height: 50px;
  background: var(--light-text);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform-origin: bottom center;
}

.petal-1 {
  left: 10px;
  transform: rotate(-30deg);
  animation: petalFloat 2s ease-in-out infinite;
}

.petal-2 {
  left: 25px;
  top: -10px;
  animation: petalFloat 2s ease-in-out infinite 0.3s;
}

.petal-3 {
  right: 10px;
  transform: rotate(30deg);
  animation: petalFloat 2s ease-in-out infinite 0.6s;
}

.logo-text {
  font-family: var(--font-secondary);
  font-size: 2rem;
  font-weight: 800;
  color: var(--light-text);
}

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

.labs {
  color: var(--light-text);
  opacity: 0.8;
}

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

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 191, 255, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--box-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img {
  height: 80px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

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

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

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--hero-gradient);
  color: var(--light-text);
  overflow: hidden;
}

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

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

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--light-text);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #66d9ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.hero-blob {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-tech-icons {
  position: absolute;
  width: 100%;
  height: 100%;
}

.tech-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--light-text);
  animation: orbit 20s linear infinite;
  animation-delay: var(--delay);
}

.tech-icon:nth-child(1) {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}
.tech-icon:nth-child(2) {
  top: 30%;
  right: 10%;
}
.tech-icon:nth-child(3) {
  bottom: 30%;
  right: 10%;
}
.tech-icon:nth-child(4) {
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}
.tech-icon:nth-child(5) {
  top: 30%;
  left: 10%;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 2;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

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

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(150px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(150px) rotate(-360deg);
  }
}

/* ===== About Section ===== */
.about {
  padding: var(--section-padding);
  position: relative;
  background: var(--light-gray);
}

.about-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), transparent);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

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

.about-image-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.about-tech-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--primary-color);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}

.orbit-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  font-size: 1.2rem;
  box-shadow: var(--box-shadow);
  animation: counterRotate 30s linear infinite;
  transform: rotate(var(--angle)) translateX(150px);
}

.about-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about-title:first-of-type {
  margin-top: 0;
}

.about-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

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

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

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

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

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

@keyframes counterRotate {
  from {
    transform: rotate(var(--angle)) translateX(150px) rotate(0deg);
  }
  to {
    transform: rotate(var(--angle)) translateX(150px) rotate(-360deg);
  }
}

/* ===== Projects Section ===== */
.projects {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.projects::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="%2300bfff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

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

.project-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 191, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 191, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card.featured {
  grid-column: span 2;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 48px rgba(0, 191, 255, 0.15);
  border-color: rgba(0, 191, 255, 0.3);
}

.project-image {
  height: 220px;
  background: linear-gradient(135deg, var(--project-color), rgba(0, 191, 255, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.project-tech-stack {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 3;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--project-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.project-icon {
  font-size: 3.5rem;
  color: white;
  z-index: 2;
  position: relative;
  transition: var(--transition);
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 4;
}

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

.project-actions {
  display: flex;
  gap: 1rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.project-card:hover .project-actions {
  transform: translateY(0);
}

.project-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

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

.project-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}

.project-status {
  flex-shrink: 0;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-badge.active {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.status-badge.beta {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.project-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-metrics {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 191, 255, 0.1);
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.projects-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ===== Contact Section ===== */
.contact {
  padding: var(--section-padding);
  background: var(--light-gray);
  position: relative;
}

.contact-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), transparent);
  border-radius: 50%;
  opacity: 0.05;
  z-index: 1;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.contact-card {
  background: var(--background-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
  height: fit-content;
}

.contact-card-header h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-card-header p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.contact-text p {
  color: var(--text-light);
  margin: 0;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-social-link {
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.contact-social-link:hover {
  background: var(--primary-color);
  color: var(--light-text);
  transform: translateY(-2px);
}

/* ===== Social Media Contact Component ===== */
.social-media-contact {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-media-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.1);
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
}

.social-media-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e4405f, #0077b5, #000000);
  border-radius: 20px 20px 0 0;
}

.social-media-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.social-media-header h3 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #00bfff, #1e293b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-media-header p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

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

.social-btn {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.social-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

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

.social-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.social-btn-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.social-btn-content {
  flex: 1;
}

.social-btn-title {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.social-btn-subtitle {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

.social-btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.social-btn:hover .social-btn-arrow {
  transform: translateX(5px);
}

.social-btn:hover .social-btn-icon {
  transform: rotate(5deg) scale(1.1);
}

/* Instagram Button */
.instagram-btn {
  background: linear-gradient(135deg, #e4405f, #c13584);
  color: white;
}

.instagram-btn .social-btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.instagram-btn:hover {
  box-shadow: 0 15px 35px rgba(228, 64, 95, 0.4);
}

/* LinkedIn Button */
.linkedin-btn {
  background: linear-gradient(135deg, #0077b5, #005885);
  color: white;
}

.linkedin-btn .social-btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.linkedin-btn:hover {
  box-shadow: 0 15px 35px rgba(0, 119, 181, 0.4);
}

/* TikTok Button */
.tiktok-btn {
  background: linear-gradient(135deg, #000000, #333333);
  color: white;
}

.tiktok-btn .social-btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.tiktok-btn:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.social-media-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 191, 255, 0.1);
}

.social-media-footer p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.social-media-footer strong {
  color: #00bfff;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .social-media-card {
    padding: 2rem;
  }

  .social-btn {
    padding: 1rem 1.25rem;
  }

  .social-btn-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .social-media-header h3 {
    font-size: 1.3rem;
  }

  .logo img {
    height: 70px;
  }

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

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

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

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

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-image {
    height: 180px;
  }

  .project-content {
    padding: 1.5rem;
  }

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

  .project-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 20px;
  }

  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .logo img {
    height: 65px;
  }

  .header-inner {
    padding: 0.75rem 0;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 80vh;
    text-align: center;
    padding-top: 120px;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .tech-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .project-card {
    margin-bottom: 0;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px 0;
    --container-padding: 0 15px;
  }

  .container {
    padding: 0 15px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .logo img {
    height: 55px;
  }

  .header-inner {
    padding: 0.5rem 0;
  }

  .hero {
    min-height: 70vh;
    padding-top: 100px;
    padding-bottom: 2rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 15px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 10px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 2rem;
    line-height: 1.5;
  }

  .hero-image {
    display: none;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 2rem;
  }

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

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0;
  }

  .project-card {
    max-width: 100%;
    margin: 0 auto 1.5rem;
  }

  .project-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .project-metrics {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .project-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

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

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

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-image {
    height: 180px;
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px 0;
    --container-padding: 0 10px;
  }

  .container {
    padding: 0 10px;
    max-width: 100%;
  }

  .logo img {
    height: 45px;
  }

  .hero {
    min-height: 60vh;
    padding-top: 80px;
  }

  .hero-content {
    padding: 0 5px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: clamp(0.8rem, 4vw, 1rem);
    line-height: 1.4;
  }

  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    margin-bottom: 1.5rem;
  }

  .projects-grid {
    gap: 1rem;
  }

  .project-card {
    margin-bottom: 1rem;
  }

  .project-content {
    padding: 1rem;
  }

  .project-image {
    height: 120px;
  }

  .project-icon {
    font-size: 1.8rem;
  }

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

  .project-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .tech-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .project-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .social-media-card {
    padding: 1rem;
  }

  .social-btn {
    padding: 0.75rem 0.8rem;
    font-size: 0.85rem;
  }

  .social-btn-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .social-btn-title {
    font-size: 0.9rem;
  }

  .social-btn-subtitle {
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .logo img {
    height: 40px;
  }

  .hero-title {
    font-size: clamp(1.3rem, 8vw, 1.7rem);
  }

  .hero-subtitle {
    font-size: clamp(0.75rem, 4vw, 0.9rem);
  }

  .section-title {
    font-size: clamp(1.2rem, 7vw, 1.5rem);
  }

  .projects-grid {
    gap: 0.75rem;
  }

  .project-card {
    margin-bottom: 0.75rem;
  }

  .project-content {
    padding: 0.75rem;
  }

  .project-image {
    height: 100px;
  }

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

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

  .tech-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }

  .project-metrics {
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
  }

  .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
  }

  .project-btn {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }

  .social-btn {
    padding: 0.6rem;
  }

  .social-btn-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/* ===== Clients Section ===== */
.clients {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.clients::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="%2300BFFF" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.client-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 191, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-logo-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 191, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 191, 255, 0.1);
}

.client-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00bfff 0%, #0099cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.client-logo-circle::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.client-logo-item:hover .client-logo-circle::before {
  opacity: 1;
  animation: shine 0.6s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.client-initials {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
  position: relative;
}

.client-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.client-logo-item:hover .client-name {
  color: #00bfff;
}

/* Responsive adjustments for clients section */
@media (max-width: 768px) {
  .clients {
    padding: 60px 0;
  }

  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .client-logo-item {
    padding: 1rem;
  }

  .client-logo-circle {
    width: 60px;
    height: 60px;
  }

  .client-initials {
    font-size: 1.2rem;
  }

  .client-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .clients-logos {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .client-logo-item {
    flex-direction: row;
    text-align: left;
    padding: 1rem;
  }

  .client-logo-circle {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    margin-right: 1rem;
    flex-shrink: 0;
  }

  .client-initials {
    font-size: 1rem;
  }

  .client-name {
    font-size: 0.9rem;
    margin-top: 0;
  }
}

/* ===== Footer ===== */
.footer-bottom {
    background: #000;
    border-top: 1px solid #1e293b;
    padding: 2rem 0;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Logo: más grande, centrado, con color azul visible */
.footer-logo-img {
    height: 120px; /* Tamaño adecuado */
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); /* Sombra sutil */
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

/* Animación opcional: pulso suave */
@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.9; transform: scale(1.02); }
}

.footer-logo-img {
    animation: pulse 3s infinite alternate;
}

/* Texto legal */
.footer-copyright {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #3b82f6;
}

/* ===== Social Float ===== */
.social-float {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 1000;
}

.social-float-toggle {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.social-float-toggle:hover {
  transform: scale(1.1);
}

.social-float-buttons {
  position: absolute;
  bottom: 80px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.social-float.active .social-float-buttons {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.social-float-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--background-color);
  color: var(--text-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  white-space: nowrap;
}

.social-float-btn:hover {
  transform: translateX(-5px);
}

.social-float-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--light-text);
}

.social-float-btn.linkedin {
  background-color: #0077b5;
  color: var(--light-text);
}

.social-float-btn.whatsapp {
  background-color: #25d366;
  color: var(--light-text);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

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

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

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--background-color);
  box-shadow: var(--box-shadow-lg);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

.mobile-nav {
  padding: 2rem;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-list li {
  margin-bottom: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--primary-color);
}

.mobile-menu-footer {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
}

.mobile-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mobile-social-link {
  width: 45px;
  height: 45px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.mobile-social-link:hover {
  background: var(--primary-color);
  color: var(--light-text);
}

.mobile-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.mobile-contact i {
  color: var(--primary-color);
}

/* ===== Animation Classes ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== Loading States ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
  animation: loading 1.5s infinite;
}

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

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .social-float,
  .back-to-top,
  .mobile-menu {
    display: none !important;
  }

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

  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
  .projects-section {
    padding: 4rem 0;
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
}

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

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.project-card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-image {
    height: 180px;
    background: var(--project-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.project-tech-stack {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.project-icon {
    font-size: 3rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-btn.primary {
    background: white;
    color: #0f172a;
}

.project-btn.secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

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

.project-content {
    padding: 1.5rem;
}

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

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.status-badge.active {
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.project-description {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.metric-value {
    font-weight: 700;
    color: #fff;
}

.metric-label {
    color: #64748b;
    font-size: 0.85rem;
}
  
}
