/* AR Web Solutions - WordPress Developer - Professional Color Theme */

/* ====== GLOBAL STYLES ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0f172a;
  color: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-x: hidden;
  padding-top: 130px;
}

/* ====== SVG ICON BASE STYLES ====== */
svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* Hero section icons */
.hero-stats svg {
  width: 44px;
  height: 44px;
}

/* Service icons */
.service-icon svg {
  width: 40px;
  height: 40px;
}

/* Feature list icons */
.feature-item svg {
  width: 24px;
  height: 24px;
}

/* Rating stars - INCREASED SIZE */
.rating svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  color: #ffffff;
}

.stars svg {
  width: 48px;
  height: 48px;
  fill: #ffffff;
  color: #ffffff;
}

/* Badge icons */
.badge svg {
  width: 40px;
  height: 40px;
}

/* Stat card icons */
.stat-card svg {
  width: 40px;
  height: 40px;
}

/* Testimonial quote icons */
.testimonial-card svg:first-child {
  width: 48px;
  height: 48px;
}

/* Form icons */
.form-header svg {
  width: 40px;
  height: 40px;
}

.form-group svg {
  width: 20px;
  height: 20px;
}

/* Social media icons */
.social-links svg {
  width: 24px;
  height: 24px;
}

/* Contact info icons */
.contact-item svg {
  width: 24px;
  height: 24px;
}

/* Carousel arrows */
.carousel-arrow svg {
  width: 28px;
  height: 28px;
}

/* Button icons */
.btn-primary svg,
.btn-outline svg {
  width: 24px;
  height: 24px;
}

/* Scroll to top */
.scroll-top-btn svg {
  width: 24px;
  height: 24px;
}

/* Special offer icons */
.special-offer svg {
  width: 24px;
  height: 24px;
}

/* ====== CONTAINERS ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* ====== HEADER & NAVIGATION ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 0;
  width: 100vw;
  max-width: 100%;
  box-sizing: border-box;
}

.header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #06b6d4, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #06b6d4;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-contact {
  background: transparent;
  color: #06b6d4;
  border: 2px solid #06b6d4;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-consultation {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-contact:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.2);
}

.btn-consultation:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #06b6d4;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

/* ====== HERO SECTION ====== */
.hero-section {
  margin-top: -50px !important;
  position: relative;
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0f172a 0%, #1a237e 50%, #0f172a 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAxMCAwIEwgMCAwIDAgMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzRmNDZlNSIgc3Ryb2tlLW9wYWNpdHk9IjAuMDUiIHN0cm9rZS13aWR0aD0iMSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmlkKSIvPjwvc3ZnPg==");
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.special-offer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
  font-weight: bold;
  font-size: 1.125rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #4f46e5, #06b6d4, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 100%;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-outline {
  border: 2px solid #06b6d4;
  color: #06b6d4;
  background: transparent;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.3);
  background: linear-gradient(135deg, #4338ca, #0891b2);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.2);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content:center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-weight: 500;
}

.stat-item svg {
  color: #06b6d4;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid #06b6d4;
  border-radius: 9999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}

.scroll-arrow::after {
  content: '';
  width: 0.375rem;
  height: 0.75rem;
  background: #06b6d4;
  border-radius: 9999px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ====== SECTION STYLES ====== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.divider {
  width: 6rem;
  height: 0.25rem;
  background: linear-gradient(135deg, #4f46e5, #06b6d4, #10b981);
  margin: 0 auto 1.5rem auto;
  border-radius: 9999px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.8;
}

/* ====== PROFILE SECTION ====== */
.profile-section {
  padding: 5rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid rgba(79, 70, 229, 0.1);
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: 1rem;
  filter: blur(2rem);
  opacity: 0.2;
}

.profile-img {
  position: relative;
  border-radius: 1rem;
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.badge-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #06b6d4;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.rating-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-left: 0.5rem;
}

.profile-description {
  font-size: 1.125rem;
  color: #cbd5e1;
  line-height: 1.75;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(6, 182, 212, 0.2));
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.stat-number {
  font-size: 1.875rem;
  font-weight: bold;
  color: white;
  margin: 0.5rem 0;
}

.stat-label {
  color: #94a3b8;
  font-size: 0.875rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 1rem;
}

.feature-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* ====== SERVICES SECTION ====== */
.services-section {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), #0f172a);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Service icon gradients */
.wordpress-gradient { 
  background: linear-gradient(135deg, #21759b, #46b450); 
}
.fix-gradient { 
  background: linear-gradient(135deg, #4f46e5, #06b6d4); 
}
.security-gradient { 
  background: linear-gradient(135deg, #dc2626, #b91c1c); 
}
.migration-gradient { 
  background: linear-gradient(135deg, #4f46e5, #10b981); 
}
.speed-gradient { 
  background: linear-gradient(135deg, #f59e0b, #d97706); 
}
.design-gradient { 
  background: linear-gradient(135deg, #7c3aed, #4f46e5); 
}
.seo-gradient { 
  background: linear-gradient(135deg, #10b981, #059669); 
}
.maintenance-gradient { 
  background: linear-gradient(135deg, #4f46e5, #1e40af); 
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.service-card p {
  color: #cbd5e1;
  line-height: 1.625;
}

/* ====== PORTFOLIO SECTION ====== */
.portfolio-section {
  padding: 5rem 1rem;
  background: #0f172a;
  border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.portfolio-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.portfolio-carousel-wrapper {
  flex: 1;
  overflow: hidden;
}

.portfolio-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
}

.portfolio-carousel-item {
  flex: 0 0 calc(50% - 1rem);
  min-width: calc(50% - 1rem);
  background: rgba(30, 41, 59, 0.7);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-carousel-item:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2);
}

.portfolio-mockup {
  position: relative;
  width: 100%;
  height: auto;
}

.device-mockup {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .device-mockup {
    height: 400px;
  }
}

.desktop-mockup {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
}

/* FIXED: Portfolio images fill whole container */
.desktop-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  border: 1px solid rgba(79, 70, 229, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.project-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.portfolio-content{
    
    padding-top:30px;
}

.portfolio-content h3 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: bold;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.portfolio-content p {
  font-size: 1.125rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.project-tags span {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 0.375rem;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.portfolio-actions {
  padding-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

/* Carousel Arrows */
.carousel-arrow {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
  flex-shrink: 0;
}

.carousel-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
  background: linear-gradient(135deg, #4338ca, #0891b2);
}

.carousel-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #64748b;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  transform: scale(1.2);
}

/* ====== TESTIMONIALS SECTION ====== */
.testimonials-section {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom, #0f172a, rgba(15, 23, 42, 0.7));
  border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.testimonials-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.testimonials-carousel-wrapper {
  flex: 1;
  overflow: hidden;
}

.testimonials-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
}

.testimonials-carousel .testimonial-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  min-width: calc(33.333% - 1.33rem);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.testimonials-carousel .testimonial-card:nth-child(2) {
  animation-delay: 0.1s;
}

.testimonials-carousel .testimonial-card:nth-child(3) {
  animation-delay: 0.2s;
}

.testimonial-card {
  position: relative;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.testimonial-card svg:first-child {
  color: rgba(6, 182, 212, 0.3);
  margin-bottom: 1rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.stars svg {
  color: #ffffff;
  fill: #ffffff;
}

.testimonial-text {
  color: #cbd5e1;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  padding-top: 1rem;
}

.author-name {
  font-weight: 600;
  color: white;
}

.author-role {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* ====== FORMS SECTION ====== */
.forms-section {
  padding: 4rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.forms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .forms-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card:nth-child(even) {
  transform: translateX(50px);
}

.form-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.form-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-header svg {
  color: #10b981;
}

.form-header h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.form-description {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  display: flex;
  align-items: center;
}

.form-group svg {
  margin-right: 0.5rem;
  color: #10b981;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.full-width {
  width: 100%;
}

.btn-danger {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
  background: linear-gradient(135deg, #4338ca, #0891b2);
}

/* ====== FOOTER ====== */
.footer {
  background: #0f172a;
  border-top: 1px solid rgba(79, 70, 229, 0.3);
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 1rem;
}

.footer-description {
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #94a3b8;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.social-links a:hover {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  display: block;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

.footer-nav a:hover {
  color: #06b6d4;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item svg {
  color: #06b6d4;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-item p {
  color: #94a3b8;
  font-size: 0.875rem;
}

.contact-item a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #06b6d4;
}

.footer-bottom {
  border-top: 1px solid rgba(79, 70, 229, 0.3);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
}

/* ====== TOAST SYSTEM ====== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
}

.toast {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 70, 229, 0.3);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  animation: toastSlideIn 0.3s ease-out;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(6, 78, 59, 0.95);
}

.toast.destructive {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(127, 29, 29, 0.95);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.toast-description {
  color: #cbd5e1;
  font-size: 0.875rem;
}

.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
}

.toast-close:hover {
  color: white;
}

/* ====== SCROLL TO TOP BUTTON ====== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #4338ca, #0891b2);
}

/* ====== MOBILE RESPONSIVENESS ====== */
@media (max-width: 1024px) {
  .portfolio-carousel-item {
    flex: 0 0 calc(100% - 1rem);
    min-width: calc(100% - 1rem);
  }
  
  .testimonials-carousel .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
    min-width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .profile-img {
    height: 300px;
  }
  
  .device-mockup {
    height: 250px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid rgba(79, 70, 229, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    width: 100vw;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 100%;
  }

  .header-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .btn-contact,
  .btn-consultation {
    width: 100%;
    text-align: center;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .portfolio-carousel-container,
  .testimonials-carousel-container {
    gap: 0.5rem;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }

  .portfolio-carousel-item,
  .testimonials-carousel .testimonial-card {
    flex: 0 0 calc(100% - 1rem);
    min-width: calc(100% - 1rem);
    padding: 1.5rem;
  }

  .carousel-indicators {
    margin-top: 1.5rem;
  }

  .portfolio-actions {
    flex-direction: column;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons button {
    width: 100%;
  }
}

/* ====== PERFORMANCE OPTIMIZATIONS ====== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Section backgrounds */
section {
  position: relative;
  background: inherit;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Animation classes */
.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}




/* Add to your existing CSS */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Form Notification Styles */
.inline-notification {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    animation: notificationSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid;
    transition: all 0.3s ease;
}

.inline-notification.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #065f46;
}

.inline-notification.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
    color: #7f1d1d;
}

/* Notification Content */
.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.notification-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 0.6s ease;
}

.inline-notification.success .notification-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.inline-notification.error .notification-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.notification-icon svg {
    width: 0.875rem;
    height: 0.875rem;
    stroke-width: 2.5;
}

.inline-notification.success .notification-icon svg {
    color: white;
}

.inline-notification.error .notification-icon svg {
    color: white;
}

.notification-message {
    flex: 1;
    padding-top: 0.125rem;
    font-weight: 500;
}

.notification-message p {
    margin: 0;
}

/* Close button for notifications */
.notification-close {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    margin-left: auto;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.inline-notification.success .notification-close:hover {
    background: rgba(16, 185, 129, 0.1);
}

.inline-notification.error .notification-close:hover {
    background: rgba(239, 68, 68, 0.1);
}

.notification-close svg {
    width: 0.75rem;
    height: 0.75rem;
    color: currentColor;
}

/* Form validation styles */
.form-field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: fieldErrorShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.form-field-success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.error-message {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    animation: fadeInUp 0.3s ease;
}

.error-message::before {
    content: "⚠";
    font-size: 0.75rem;
}

/* Button loading state */
.button-loading {
    position: relative;
    color: transparent !important;
}

.button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.25rem;
    height: 1.25rem;
    margin: -0.625rem 0 0 -0.625rem;
    border: 2px solid;
    border-radius: 50%;
    border-top-color: transparent;
    animation: buttonSpin 0.8s linear infinite;
}

.button-loading.btn-primary::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

.button-loading.btn-danger::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

/* Form notification container */
.form-notification-container {
    min-height: 4.5rem;
    position: relative;
}

/* Animations */
@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fieldErrorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

@keyframes buttonSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Auto-dismiss animation */
.notification-exiting {
    animation: fadeOutDown 0.3s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .inline-notification {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .notification-content {
        gap: 0.75rem;
    }
    
    .notification-icon {
        width: 1.375rem;
        height: 1.375rem;
    }
    
    .notification-icon svg {
        width: 0.75rem;
        height: 0.75rem;
    }
}

/* Smooth transitions for form interactions */
.form-group input,
.form-group textarea,
.form-group select {
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Success state for submitted fields */
.form-submitted input:valid,
.form-submitted textarea:valid,
.form-submitted select:valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}
