/* ============================================
   WEB TIME - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary: #FF6B35;
  --primary-light: #FF8C5A;
  --primary-dark: #E55A2B;
  --dark: #0A0A0A;
  --dark-light: #1A1A1A;
  --dark-lighter: #2A2A2A;
  --light: #FFFFFF;
  --gray: #888888;
  --success: #00D9A5;
}

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

body {
  font-family: 'Cairo', 'Poppins', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

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

/* Floating Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  opacity: 0.1;
  top: -200px;
  right: -200px;
  animation: float1 15s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--success);
  opacity: 0.08;
  bottom: -100px;
  left: -100px;
  animation: float2 20s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  opacity: 0.06;
  top: 50%;
  left: 50%;
  animation: float3 25s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 100px) scale(1.1); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -50px) scale(1.2); }
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-30%, -70%) scale(0.8); }
}

/* ============================================
   NAVIGATION - Desktop
   ============================================ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 50px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.main-nav.scrolled {
  padding: 10px 50px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 60px;
  width: auto;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-links li a:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
}

/* CTA Button */
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--light);
  margin: 5px 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   MOBILE NAVIGATION - Full Screen Overlay
   ============================================ */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 100px 30px 40px;
  overflow-y: auto;
}

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

.mobile-nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--light);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 20px 24px;
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.3s ease;
  transform: translateX(-30px);
  opacity: 0;
}

.mobile-nav-overlay.active .mobile-nav-link {
  transform: translateX(0);
  opacity: 1;
}

.mobile-nav-overlay.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 107, 53, 0.15);
  color: var(--primary);
}

.mobile-nav-link i {
  font-size: 28px;
  color: var(--primary);
  width: 40px;
  text-align: center;
}

.mobile-nav-cta {
  background: var(--primary);
  color: white !important;
  justify-content: center;
  margin-top: 16px;
}

.mobile-nav-cta:hover,
.mobile-nav-cta:active {
  background: var(--primary-light);
  color: white !important;
}

.mobile-nav-cta i {
  color: white;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.35s;
}

.mobile-nav-overlay.active .mobile-nav-footer {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.mobile-nav-social a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  transition: all 0.3s ease;
}

.mobile-nav-social a:hover,
.mobile-nav-social a:active {
  background: var(--primary);
  transform: translateY(-3px);
}

.mobile-nav-contact {
  color: var(--gray);
  font-size: 14px;
}

.mobile-nav-contact a {
  color: var(--primary);
  text-decoration: none;
}

/* ============================================
   RESPONSIVE NAVIGATION
   ============================================ */
@media (max-width: 1024px) {
  .main-nav {
    padding: 12px 30px;
  }

  .main-nav.scrolled {
    padding: 10px 30px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-logo img {
    height: 50px;
  }
}

@media (max-width: 600px) {
  .main-nav {
    padding: 10px 16px;
  }

  .main-nav.scrolled {
    padding: 8px 16px;
  }

  .nav-logo img {
    height: 42px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 8px;
  }

  .mobile-nav-overlay {
    padding: 90px 20px 30px;
  }

  .mobile-nav-link {
    font-size: 1.25rem;
    padding: 16px 20px;
    gap: 14px;
  }

  .mobile-nav-link i {
    font-size: 24px;
    width: 36px;
  }

  .mobile-nav-social a {
    width: 46px;
    height: 46px;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 25px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* Buttons */
.btn-glow {
  background: var(--primary) !important;
  border-radius: 50px !important;
  padding: 0 40px;
  height: 56px;
  line-height: 56px;
  font-weight: 600;
  font-size: 16px;
  text-transform: none;
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(255, 107, 53, 0.5);
}

.btn-outline {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50px !important;
  padding: 0 40px;
  height: 56px;
  line-height: 52px;
  font-weight: 600;
  font-size: 16px;
  text-transform: none;
  color: var(--light) !important;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: rgba(255, 107, 53, 0.1) !important;
}

/* Hero Visual - 3D Card Stack */
.hero-visual {
  position: relative;
  height: 500px;
  animation: fadeInRight 1s ease 0.4s both;
}

.floating-card {
  position: absolute;
  background: var(--dark-light);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 107, 53, 0.3);
}

.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-1 {
  width: 280px;
  height: 200px;
  top: 0;
  right: 0;
  animation: cardFloat1 6s ease-in-out infinite;
}

.card-2 {
  width: 250px;
  height: 180px;
  top: 150px;
  right: 200px;
  animation: cardFloat2 8s ease-in-out infinite;
}

.card-3 {
  width: 220px;
  height: 160px;
  top: 280px;
  right: 50px;
  animation: cardFloat3 7s ease-in-out infinite;
}

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

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

@keyframes cardFloat3 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-25px) rotate(3deg); }
}

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

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

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--dark-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--gray);
  font-size: 14px;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: linear-gradient(145deg, var(--dark-light) 0%, var(--dark-lighter) 100%);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 107, 53, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 32px;
  color: white;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

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

.service-card p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
}

.service-features li {
  color: var(--gray);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li i {
  color: var(--success);
  font-size: 18px;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
  margin-top: 50px;
}

.portfolio-item {
  background: var(--dark-light);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: scale(1.02);
  border-color: rgba(255, 107, 53, 0.3);
  z-index: 10;
}

.portfolio-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-item.tall {
  grid-row: span 2;
}

.portfolio-item.wide {
  grid-column: span 2;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.portfolio-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 15px;
}

.portfolio-overlay h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-overlay p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 15px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.portfolio-tag {
  background: rgba(255, 107, 53, 0.2);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 107, 53, 0.1);
  padding: 10px 20px;
  border-radius: 8px;
}

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

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--dark-light);
}

.testimonial-card {
  background: var(--dark);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
}

.testimonial-stars {
  color: #FFD700;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--light);
  margin-bottom: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-info h5 {
  font-weight: 600;
  margin: 0;
}

.testimonial-info span {
  color: var(--gray);
  font-size: 14px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
}

.contact-card {
  background: var(--dark-lighter);
  border-radius: 30px;
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(80px);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-text h5 {
  font-weight: 600;
  margin: 0 0 5px 0;
}

.contact-info-text span {
  color: var(--gray);
}

/* Form Styling */
.input-field input,
.input-field textarea {
  background: var(--dark) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 15px 20px !important;
  color: var(--light) !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.input-field input:focus,
.input-field textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary) !important;
}

.input-field label {
  color: var(--gray) !important;
  right: 20px !important;
  left: auto !important;
}

.input-field label.active {
  transform: translateY(-25px) scale(0.8);
  color: var(--primary) !important;
}

.input-field .helper-text {
  color: var(--gray);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--gray);
  max-width: 300px;
  line-height: 1.8;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--light);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray);
  transition: color 0.3s ease;
}

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

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

.social-link {
  width: 45px;
  height: 45px;
  background: var(--dark-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  margin-top: 50px;
  text-align: center;
  color: var(--gray);
}

.footer-newsletter {
  display: flex;
  gap: 10px;
}

.footer-newsletter input {
  flex: 1;
  background: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  color: white;
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--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;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--dark-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
  .hero-visual {
    display: none;
  }

  .contact-card {
    padding: 30px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .portfolio-item.large,
  .portfolio-item.wide {
    grid-column: span 2;
  }

  section {
    padding: 80px 0;
  }

  .stats-bar {
    padding: 30px 0;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 20px;
  }

  .portfolio-item {
    border-radius: 16px;
    display: flex;
    flex-direction: column;
  }

  .portfolio-item.large,
  .portfolio-item.wide,
  .portfolio-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .portfolio-image {
    height: 180px;
    border-radius: 16px 16px 0 0;
  }

  .portfolio-item:hover .portfolio-image {
    transform: none;
  }

  .portfolio-overlay {
    position: relative;
    inset: auto;
    opacity: 1;
    background: var(--dark-light);
    padding: 20px;
    border-radius: 0 0 16px 16px;
  }

  .portfolio-logo {
    display: none;
  }

  .portfolio-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .portfolio-overlay p {
    font-size: 13px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .portfolio-tags {
    margin-bottom: 12px;
  }

  .portfolio-tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  .portfolio-link {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
  }

  .portfolio-link:hover {
    background: var(--primary-light);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 30px;
  }

  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 80px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-glow, .btn-outline {
    width: 100%;
    text-align: center;
  }

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

  .contact-card {
    padding: 20px;
    border-radius: 20px;
  }

  .contact-info-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .contact-info-icon {
    width: 50px;
    height: 50px;
  }

  .stat-item {
    padding: 15px 10px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 12px;
  }

  .footer-newsletter {
    flex-direction: column;
  }

  .footer-newsletter input {
    width: 100%;
  }
}

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

  .bg-grid, .orb, .floating-card {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .mobile-nav-link {
    transform: none;
    opacity: 1;
  }

  .mobile-nav-footer {
    transform: none;
    opacity: 1;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  .nav-toggle:hover {
    background: none;
  }

  .mobile-nav-link:hover {
    background: none;
  }

  .mobile-nav-link:active {
    background: rgba(255, 107, 53, 0.15);
  }

  .portfolio-item:hover {
    transform: none;
  }

  .portfolio-item:hover .portfolio-image {
    transform: none;
  }

  .service-card:hover {
    transform: none;
  }

  .social-link:hover {
    transform: none;
  }
}
