/* ============================================
   SumerTec — Premium Digital Solutions
   Custom Stylesheet
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
  --sumer-50: #f0f4ff;
  --sumer-100: #dbe4ff;
  --sumer-200: #bac8ff;
  --sumer-300: #91a7ff;
  --sumer-400: #748ffc;
  --sumer-500: #5c7cfa;
  --sumer-600: #4c6ef5;
  --sumer-700: #4263eb;
  --sumer-800: #3b5bdb;
  --sumer-900: #364fc7;
  --sumer-950: #1e3a8a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --dark-50: #f8fafc;
  --dark-100: #f1f5f9;
  --dark-200: #e2e8f0;
  --dark-300: #cbd5e1;
  --dark-400: #94a3b8;
  --dark-500: #64748b;
  --dark-600: #475569;
  --dark-700: #334155;
  --dark-800: #1e293b;
  --dark-900: #0f172a;
  --dark-950: #020617;
}

/* ── Reset & Base ── */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ── Keyframes ── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(76, 110, 245, 0.3); }
  50% { box-shadow: 0 0 60px rgba(76, 110, 245, 0.6), 0 0 100px rgba(76, 110, 245, 0.2); }
}

@keyframes gradientX {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes borderFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 40% / 30% 50% 70% 60%; }
  75% { border-radius: 40% 30% 60% 70% / 60% 40% 30% 50%; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.08; }
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ── Background & Overlay Utilities ── */
.grid-bg {
  background-image: 
    linear-gradient(rgba(76, 110, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 110, 245, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 4s ease-in-out infinite;
}

.hero-bg-image {
  background-image: url('../images/sumer.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.85) 0%,
    rgba(2, 6, 23, 0.65) 40%,
    rgba(2, 6, 23, 0.75) 70%,
    rgba(2, 6, 23, 0.95) 100%
  );
}

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.text-gradient {
  background: linear-gradient(135deg, #4c6ef5 0%, #748ffc 30%, #fbbf24 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradientX 6s ease infinite;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #4263eb 0%, #748ffc 50%, #91a7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-premium {
  background: linear-gradient(135deg, #020617 0%, #0f172a 25%, #1e293b 50%, #0f172a 75%, #020617 100%);
  background-size: 300% 300%;
  animation: gradientX 15s ease infinite;
}

.border-gradient {
  border-image: linear-gradient(135deg, #4c6ef5, #fbbf24, #4c6ef5) 1;
}

/* ── Card Effects ── */
.card-hover {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(76, 110, 245, 0.15), 0 0 40px rgba(76, 110, 245, 0.1);
}

/* ── Glow & Border Effects ── */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #4c6ef5, #fbbf24, #4c6ef5, #748ffc);
  background-size: 300% 300%;
  animation: borderFlow 3s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.glow-border:hover::before {
  opacity: 1;
}

/* ── Line Decoration ── */
.line-decoration {
  position: relative;
}

.line-decoration::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4c6ef5, #fbbf24);
  transition: width 0.4s ease;
}

.line-decoration:hover::after {
  width: 100%;
}

/* ── Parallax ── */
.parallax-layer {
  will-change: transform;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4c6ef5, #3b5bdb);
  border-radius: 10px;
}

/* ── Selection ── */
::selection {
  background: rgba(76, 110, 245, 0.3);
  color: #fff;
}

/* ── Particle ── */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(76, 110, 245, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Magnetic Button ── */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Counter Glow ── */
.counter-glow {
  text-shadow: 0 0 40px rgba(76, 110, 245, 0.5);
}

/* ── Service Icon ── */
.service-icon-wrapper {
  position: relative;
}

.service-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 110, 245, 0.15) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ── Marquee ── */
.marquee {
  display: flex;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  animation: scroll 30s linear infinite;
}

/* ── Animation Delays ── */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ── Mesh Gradient ── */
.mesh-gradient {
  background: 
    radial-gradient(at 20% 20%, rgba(76, 110, 245, 0.15) 0%, transparent 50%),
    radial-gradient(at 80% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(at 50% 80%, rgba(76, 110, 245, 0.1) 0%, transparent 50%),
    radial-gradient(at 80% 80%, rgba(116, 143, 252, 0.08) 0%, transparent 50%);
}

/* ── Project Card Overlay ── */
.project-card-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.4) 40%, rgba(2, 6, 23, 0.95) 100%);
}

/* ── Sticky Header ── */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.sticky-header.scrolled {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Hero Background Animation ── */
.hero-bg-animate {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .hero-heading-main {
    font-size: clamp(2.5rem, 8vw, 4rem) !important;
  }
  
  .hero-heading-sub {
    font-size: clamp(2rem, 7vw, 3.5rem) !important;
  }
  
  .hero-subtitle {
    font-size: 0.95rem !important;
    padding: 0 1rem;
  }
  
  .hero-badge {
    font-size: 0.75rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  .hero-stats {
    gap: 1.5rem !important;
  }
  
  .section-title {
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
  }
  
  .card-grid {
    grid-template-columns: 1fr !important;
  }
  
  .cta-buttons {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  .hero-heading-main {
    font-size: clamp(2rem, 7vw, 3rem) !important;
  }
  
  .hero-heading-sub {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
  }
  
  .nav-desktop {
    display: none !important;
  }
}
