/* --------------------------------------------------
   🔥 EXTREME MODERN UI — GLOBAL DESIGN SYSTEM
   Includes:
   - Glass effects
   - Neon glow hover
   - Animated borders
   - Soft shadows
   - Smooth transitions
   - Responsive typography
   - Card hover lifts
   - Navbar animations
-------------------------------------------------- */

/* ----- Global styling ----- */
:root {
  --brand: #0d6efd;
  --brand-dark: #084298;
  --brand-2: #6610f2;
  --text-dark: #0a1a2b;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --card-bg: #ffffff;
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(13,110,253,0.18);
  --glow: 0 0 20px rgba(13,110,253,0.45);
  --glow-strong: 0 0 30px rgba(102,16,242,0.55);
  --radius: 14px;
  --radius-lg: 20px;
  --transition-fast: .25s ease;
  --transition-smooth: .35s cubic-bezier(.2,.9,.3,1);
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------
   Navbar (Modern)
-------------------------------------------------- */
.navbar {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 14px 0;
  transition: all .30s ease;
}

.navbar.shrink {
  padding: 6px 0;
  box-shadow: 0 4px 22px rgba(0,0,0,0.12);
}

.nav-link {
  position: relative;
  padding: 10px 16px !important;
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 40px;
  transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
  color: var(--brand) !important;
  text-shadow: var(--glow);
}

/* --------------------------------------------------
   HERO SECTION (Soft Glow + Glass Layer)
-------------------------------------------------- */
.hero {
  background: linear-gradient(90deg, rgba(13,110,253,0.08), rgba(102,16,242,0.06));
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  top: -120px;
  left: -180px;
  background: radial-gradient(circle, rgba(13,110,253,0.20), transparent 70%);
  filter: blur(60px);
  animation: floatGlow 14s infinite ease-in-out;
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  bottom: -120px;
  right: -160px;
  background: radial-gradient(circle, rgba(102,16,242,0.20), transparent 70%);
  filter: blur(70px);
  animation: floatGlow2 16s infinite ease-in-out;
}

@keyframes floatGlow {
  0% { transform: translateY(0);}
  50% { transform: translateY(30px);}
  100% { transform: translateY(0);}
}

@keyframes floatGlow2 {
  0% { transform: translateY(10px);}
  50% { transform: translateY(-25px);}
  100% { transform: translateY(10px);}
}

/* --------------------------------------------------
   Page header
-------------------------------------------------- */
.page-header {
  padding: 70px 0;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-dark);
}

/* --------------------------------------------------
   CARD SYSTEM (Services + Projects)
-------------------------------------------------- */
.service-card,
.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg,
      rgba(13,110,253,0.18),
      rgba(102,16,242,0.18)
  );
  opacity: 0;
  filter: blur(24px);
  transition: var(--transition-smooth);
}

.service-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* ------ Glowing Border Animation ------ */
.service-card:hover,
.project-card:hover {
  box-shadow: 0 0 22px rgba(13,110,253,0.20),
              0 0 35px rgba(102,16,242,0.15);
}

/* --------------------------------------------------
   Buttons — Neon Glow Buttons
-------------------------------------------------- */
.btn-primary,
.btn-brand,
.btn-gradient {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border: 0;
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(13,110,253,0.2);
  transition: var(--transition-smooth);
}

.btn-primary:hover,
.btn-gradient:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 30px rgba(13,110,253,0.50),
              0 0 40px rgba(102,16,242,0.45);
}

/* --------------------------------------------------
   Input Fields (Glass Modern)
-------------------------------------------------- */
input,
textarea {
  border-radius: 12px !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  transition: var(--transition-fast);
}

input:focus,
textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(13,110,253,0.18);
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
footer {
  background: #fff;
  border-top: 1px solid #e9ecef;
  padding: 30px 0;
  font-size: 14px;
  color: var(--text-muted);
}

footer a:hover {
  color: var(--brand);
  text-shadow: var(--glow);
}

/* --------------------------------------------------
   RESPONSIVE TYPOGRAPHY
-------------------------------------------------- */
@media (max-width: 992px) {
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.9rem; }
}

@media (max-width: 768px) {
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 1.6rem; }
  .page-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.35rem; }
  .service-card, .project-card { padding: 18px; }
}
