/* Premium Modern Redesign - Refined Light Mode */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --accent-primary: #046BD2;
  --accent-secondary: #26B7CD;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --accent-gradient-hover: linear-gradient(135deg, #0558aa, #1f98aa);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass-border: 1px solid rgba(255, 255, 255, 0.8);
  --glass-border-darker: 1px solid rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark) !important;
  color: var(--text-main) !important;
  font-family: var(--font-body) !important;
  line-height: 1.7;
}

/* Background Grid Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(rgba(4, 107, 210, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 107, 210, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -2;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6, .title-left, .title-a, .w-title {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.02em;
}

/* Override existing backgrounds */
.bg-white, section.bg-white, section {
  background-color: transparent !important;
}

/* Glassmorphism Navbar */
.navbar-b {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: var(--glass-border-darker);
  box-shadow: 0 4px 30px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 15px 0;
}
.navbar-b.navbar-reduce {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.9) !important;
}

.navbar-b .nav-link {
  color: var(--text-muted) !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  position: relative;
  transition: color 0.3s ease;
}

.navbar-b .nav-link:hover, .navbar-b .nav-link.active {
  color: var(--accent-primary) !important;
}

.navbar-b .nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-b .nav-link:hover::after, .navbar-b .nav-link.active::after {
  width: 20px;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.7rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

/* Hero Section */
.intro.bg-image {
  background-image: none !important;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Animated Orbs */
.intro::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(38,183,205,0.15) 0%, rgba(255,255,255,0) 60%);
  border-radius: 50%;
  animation: floatOrb 12s infinite alternate ease-in-out;
  z-index: -1;
  filter: blur(40px);
}
.intro::after {
  content: "";
  position: absolute;
  bottom: 0%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(4,107,210,0.12) 0%, rgba(255,255,255,0) 60%);
  border-radius: 50%;
  animation: floatOrbReverse 15s infinite alternate ease-in-out;
  z-index: -1;
  filter: blur(40px);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.1); }
}
@keyframes floatOrbReverse {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, -40px) scale(1.05); }
}

.intro .overlay-itro {
  display: none !important;
}

.intro-content {
  position: relative;
  z-index: 1;
}

/* Animated Gradient Title */
.intro-title {
  font-size: 5rem !important;
  font-weight: 900 !important;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.intro-subtitle {
  font-size: 1.6rem;
  color: var(--text-muted);
  font-weight: 400;
}

.text-slider {
  color: var(--text-main);
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: var(--accent-gradient) !important;
  border: none !important;
  padding: 14px 35px !important;
  border-radius: 50px !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 25px rgba(4, 107, 210, 0.25), inset 0 2px 0 rgba(255,255,255,0.2) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent-gradient-hover);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(4, 107, 210, 0.35), inset 0 2px 0 rgba(255,255,255,0.2) !important;
}
.btn-primary:hover::before {
  opacity: 1;
}

/* Glassmorphic Cards */
.box-shadow-full, .service-box, .work-box {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  color: var(--text-main);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  padding: 2.5rem !important;
}
.work-box {
  padding: 0 !important;
}

.box-shadow-full:hover, .service-box:hover, .work-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(4, 107, 210, 0.12);
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Service Box Enhancements */
.service-box .ico-circle {
  background: rgba(4, 107, 210, 0.05);
  box-shadow: none;
  border: none;
  color: var(--accent-primary);
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}
.service-box:hover .ico-circle {
  background: var(--accent-gradient);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(4, 107, 210, 0.3);
}

.service-box .s-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.service-box .s-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* About Section Enhancements */
.about-mf .title-s {
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.about-img img {
  border-radius: 28px;
  border: 8px solid rgba(255,255,255,0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
}
.about-img img:hover {
  transform: scale(1.03);
}

.skill-mf .hability-content h4 {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
}
.skill-mf .icon-check {
  color: var(--accent-primary);
  background: rgba(4, 107, 210, 0.1);
  border-radius: 50%;
  padding: 4px;
  margin-right: 8px;
}



/* Portfolio & Experience Enhancements */
.work-img {
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  position: relative;
}
.work-img img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}
.work-box:hover .work-img img {
  transform: scale(1.08);
}
/* Style the placeholders beautifully */
.work-img[style*="min-height"] {
  background: linear-gradient(135deg, rgba(4,107,210,0.05), rgba(38,183,205,0.05)) !important;
  position: relative;
  overflow: hidden;
}
.work-img[style*="min-height"]::after {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  100% { left: 200%; }
}
.work-img span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary) !important;
  opacity: 0.6;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
  position: relative;
}

.work-content {
  background: transparent !important;
  border-top: none;
  padding: 2.5rem !important;
}
.w-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

/* Modern Pill Tags for Tech Stack */
.use_tech {
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  margin-bottom: 15px;
}
.work-content ul {
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-content ul li {
  list-style: none;
  background: rgba(4, 107, 210, 0.08);
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.work-content ul li::before {
  display: none !important;
}
.work-box:hover .work-content ul li {
  background: var(--accent-primary);
  color: #fff;
}

/* Title Boxes */
.title-box {
  margin-bottom: 4rem;
}
.title-a {
  font-size: 3rem;
  font-weight: 900;
}
.line-mf {
  background: var(--accent-gradient) !important;
  height: 6px;
  border-radius: 6px;
  width: 80px;
  margin: 1rem auto 0;
}
.title-box-2 .title-left::before {
  background: var(--accent-gradient) !important;
  height: 6px;
  border-radius: 6px;
  width: 60px;
}

/* Contact Footer */
.footer-paralax.bg-image {
  background-image: none !important;
  background: transparent;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.socials ul li a span {
  background: rgba(4, 107, 210, 0.05);
  border: none;
  color: var(--accent-primary);
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.socials ul li a:hover span {
  background: var(--accent-gradient);
  color: #ffffff;
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 10px 20px rgba(4, 107, 210, 0.25);
}

/* Typography elements */
p.lead {
  color: var(--text-muted) !important;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  border: 3px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}
