/* E-Devs Advanced UI/UX - Modern Navy Theme */

:root {
  /* Primary Palette - Navy Blue */
  --navy-900: #0a1628;
  --navy-800: #0f2137;
  --navy-700: #152d4a;
  --navy-600: #1e3a5f;
  --navy-500: #2a4a73;
  --navy-400: #3d6a99;
  --navy-300: #5a8bc2;
  --navy-200: #8bb3db;
  --navy-100: #c5d9ed;
  --navy-50: #e8f1f8;
  
  /* Accent Colors */
  --accent-cyan: #00d4ff;
  --accent-blue: #4facfe;
  --accent-purple: #667eea;
  --accent-teal: #38b2ac;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 50%, var(--navy-500) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10, 22, 40, 0.97) 0%, rgba(30, 58, 95, 0.92) 50%, rgba(42, 74, 115, 0.88) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.16);
  --shadow-xl: 0 16px 60px rgba(10, 22, 40, 0.2);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
  
  /* Bootstrap overrides */
  --bs-primary: var(--navy-600);
  --bs-primary-rgb: 30, 58, 95;
  --bs-link-color: var(--navy-600);
  --bs-link-hover-color: var(--navy-800);
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--navy-800);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy-800);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVIGATION
   ============================================ */
#mainNav {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
  background: transparent;
}

#mainNav.navbar-shrink {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#mainNav .navbar-brand {
  font-weight: 700;
  color: var(--navy-800);
  transition: color 0.3s ease;
}

#mainNav.navbar-shrink .navbar-brand {
  color: #fff;
}

#mainNav .nav-link {
  color: var(--navy-700);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#mainNav .nav-link:hover {
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.1);
}

#mainNav.navbar-shrink .nav-link {
  color: #fff;
}

#mainNav.navbar-shrink .nav-link:hover {
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.15);
}

#mainNav .nav-link.active {
  color: var(--accent-cyan) !important;
  background: rgba(0, 212, 255, 0.1);
}

#mainNav.navbar-shrink .nav-link.active {
  color: var(--accent-cyan) !important;
  background: rgba(0, 212, 255, 0.2);
}

/* ============================================
   HERO / MASTHEAD
   ============================================ */
.masthead {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-hero), 
              url('https://images.unsplash.com/photo-1639322537228-f710d846310a?w=1920&q=80') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.masthead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(79, 172, 254, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.masthead h1 {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .masthead h1 {
    font-size: 2.2rem;
  }
}

.masthead .text-white-75 {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.25rem;
  line-height: 1.8;
}

/* Hero Divider */
.masthead hr.divider {
  width: 100px;
  height: 4px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 2px;
  margin: 1.5rem auto;
  opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-600) 0%, var(--navy-400) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 212, 255, 0.2);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy-700);
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-light {
  background: #fff;
  color: var(--navy-700);
  border: none;
}

.btn-light:hover {
  background: var(--navy-50);
  color: var(--navy-800);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.bg-primary {
  background: var(--gradient-primary) !important;
  position: relative;
  overflow: hidden;
}

.bg-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.bg-primary::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

#about h2 {
  color: #fff;
}

#about .text-white-75 {
  color: rgba(255, 255, 255, 0.85) !important;
}

#about hr.divider-light {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 2px;
  opacity: 1;
}

/* Stats Cards */
#about .col-md-4 {
  position: relative;
}

#about .display-4 {
  font-size: 3.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services {
  background: linear-gradient(180deg, #fff 0%, var(--navy-50) 100%);
  position: relative;
}

#services h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

#services hr.divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 2px;
  margin: 1.5rem auto 3rem;
  opacity: 1;
}

.service-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 24px;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.service-icon:hover::before {
  left: 100%;
}

.service-icon:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-radius: 28px;
}

#services .col-lg-3 {
  margin-bottom: 2rem;
}

#services h3 {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 1.1rem;
}

#services .text-muted {
  color: var(--navy-500) !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
#techstack {
  background: var(--navy-50);
  position: relative;
}

#techstack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy-200), transparent);
}

#techstack h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

#techstack hr.divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 2px;
  margin: 1.5rem auto 2rem;
  opacity: 1;
}

.tech-item {
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1.5rem;
  border: 1px solid var(--navy-100);
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tech-item:hover::before {
  transform: scaleX(1);
}

.tech-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.tech-icon {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon {
  transform: scale(1.1);
}

.tech-item h6 {
  color: var(--navy-700);
  font-weight: 600;
  margin: 0;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
#portfolio {
  background: #fff;
}

#portfolio h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

#portfolio hr.divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 2px;
  margin: 1.5rem auto 2rem;
  opacity: 1;
}

.portfolio-box {
  position: relative;
  display: block;
  overflow: hidden;
}

.portfolio-box img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-box .portfolio-box-caption {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.95) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.portfolio-box:hover .portfolio-box-caption {
  opacity: 1;
}

.portfolio-box .project-category {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.portfolio-box .project-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
}

.cta-section .text-white-75 {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.1rem;
  position: relative;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
  background: linear-gradient(180deg, var(--navy-50) 0%, #fff 100%);
}

#contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

#contact hr.divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 2px;
  margin: 1.5rem auto 2rem;
  opacity: 1;
}

#contact .form-control {
  border: 2px solid var(--navy-100);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

#contact .form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

#contact .form-floating > label {
  padding: 1rem 1.25rem;
  color: var(--navy-400);
}

#contact .btn-primary {
  width: 100%;
  padding: 1rem 2rem;
}

/* Contact Info Cards */
#contact .service-icon {
  width: 70px;
  height: 70px;
  font-size: 1.5rem;
  border-radius: 20px;
}

#contact h5 {
  color: var(--navy-800);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy-900) !important;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy-600), transparent);
}

footer h5 {
  color: #fff;
  font-weight: 600;
}

footer .text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
  transition: color 0.3s ease;
}

footer a.text-white-50:hover {
  color: var(--accent-cyan) !important;
}

footer .bi {
  transition: all 0.3s ease;
}

footer a:hover .bi {
  color: var(--accent-cyan) !important;
  transform: translateY(-3px);
}

footer hr {
  border-color: var(--navy-700);
  opacity: 0.5;
}

/* ============================================
   PAGE SECTIONS
   ============================================ */
.page-section {
  padding: 7rem 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.5); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
  .page-section {
    padding: 5rem 0;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    border-radius: 18px;
  }
  
  #services h3 {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .masthead h1 {
    font-size: 2rem;
  }
  
  .btn-xl {
    padding: 0.875rem 1.75rem;
    font-size: 0.85rem;
  }
  
  .page-section {
    padding: 4rem 0;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

/* Selection color */
::selection {
  background: var(--accent-cyan);
  color: var(--navy-900);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--navy-400);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-600);
}
