/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-dark-custom: #0f172a; /* Slate 900 */
  --bg-darker: #020617; /* Slate 950 */
  --primary-custom: #3b82f6; /* Blue 500 */
  --primary-hover: #2563eb; /* Blue 600 */
  --text-muted: #94a3b8; /* Slate 400 */
  --text-light: #e2e8f0; /* Slate 200 */
  --text-white: #ffffff;
  --navbar-bg: rgba(2, 6, 23, 0.8);
  --glass-bg: rgba(59, 130, 246, 0.1);
  --glass-border: rgba(59, 130, 246, 0.3);
  --card-bg: #020617;
  --border-color: rgba(255, 255, 255, 0.05);
  --shadow-custom: 0 10px 30px rgba(0, 0, 0, 0.3);
  --hero-glow-1: rgba(59, 130, 246, 0.1);
  --hero-glow-2: rgba(59, 130, 246, 0.05);
}

[data-theme="light"] {
  --bg-dark-custom: #ffffff; /* pure white */
  --bg-darker: #f8fafc; /* slate 50 */
  --primary-custom: #4f46e5; /* Indigo 600 */
  --primary-hover: #4338ca; /* Indigo 700 */
  --text-muted: #475569; /* Slate 600 */
  --text-light: #1e293b; /* Slate 800 */
  --text-white: #020617; /* Slate 950 */
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --glass-bg: rgba(79, 70, 229, 0.05);
  --glass-border: rgba(79, 70, 229, 0.2);
  --card-bg: #ffffff;
  --border-color: rgba(15, 23, 42, 0.1);
  --shadow-custom: 0 10px 30px rgba(15, 23, 42, 0.08);
  --hero-glow-1: rgba(79, 70, 229, 0.08);
  --hero-glow-2: rgba(79, 70, 229, 0.05);
}

/* General Styles */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark-custom);
  color: var(--text-light);
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Global Overrides for Theme Classes */
.text-white {
  color: var(--text-white) !important;
}

.text-light {
  color: var(--text-light) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.lead {
  color: var(--text-light);
}

html {
  scroll-behavior: smooth;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-white);
  font-weight: 700;
}

.text-primary-custom {
  color: var(--primary-custom) !important;
}

.text-white {
  color: var(--text-white) !important;
}

.text-light {
  color: var(--text-light) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-dark-custom {
  background-color: var(--bg-dark-custom) !important;
}

.bg-darker {
  background-color: var(--bg-darker) !important;
}

/* Navbar */
.navbar {
  background-color: var(--navbar-bg) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--text-white) !important;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 10px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

/* Animated Underline */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-custom);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--primary-custom);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-custom);
  border-color: var(--primary-custom);
  color: white;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-custom);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 80px; /* Navbar height compensation */
  background:
    radial-gradient(circle at top right, var(--hero-glow-1), transparent 40%),
    radial-gradient(circle at bottom left, var(--hero-glow-2), transparent 40%);
}

.text-gradient {
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Service Cards */
.service-card {
  background-color: var(--card-bg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid var(--border-color) !important;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-custom);
  border-color: var(--primary-custom) !important;
}

.icon-box {
  height: 80px;
  width: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  transition: background 0.3s ease;
}

.service-card:hover .icon-box {
  background: var(--glass-border);
}

/* Experience Badges */
.badge {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Social Icons */
.social-item {
  transition: transform 0.3s ease;
}

.social-item:hover {
  transform: translateY(-5px);
}

.social-item span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem;
  }

  .section-padding {
    padding: 60px 0;
  }

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

  .hero {
    text-align: center;
    padding-top: 100px;
  }
}

/* Portfolio Projects */
.project-card {
  background-color: var(--card-bg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-custom);
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-img-wrapper img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navbar-bg); /* Use navbar-bg for a matching glass effect */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Hero Image Animation */
/* Hero Image Animation */
.hero-img-frame {
  position: relative;
  padding: 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  display: inline-block;
  box-shadow: var(--shadow-custom);
}

.hero-img {
  height: 450px;
  width: 350px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Hero Role Badges */
.role-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--primary-custom);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.role-badge:hover {
  background: var(--primary-custom);
  border-color: var(--primary-custom);
  box-shadow: 0 0 15px var(--glass-border);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Process Timeline */
.process-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  border-width: 2px !important;
}

.process-step:hover .process-icon {
  background-color: var(--primary-custom) !important;
  color: white !important;
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--glass-border);
}

.process-line-bg {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.floating-anim {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Floating WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

/* Scroll Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, visibility;
}

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

/* Theme Toggle Button */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--primary-custom);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.theme-toggle:hover {
  background: var(--primary-custom);
  color: white;
  transform: rotate(15deg);
}

[data-theme="light"] .hero {
  background:
    radial-gradient(
      circle at top right,
      rgba(99, 102, 241, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(99, 102, 241, 0.05),
      transparent 40%
    );
}

/* Tech Tags - Professional look */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--primary-custom);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  margin-bottom: 5px;
  margin-right: 5px;
}

.tech-tag i {
  font-size: 0.85rem;
}

.tech-tag:hover {
  background: var(--primary-custom);
  color: #ffffff !important;
  border-color: var(--primary-custom);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .tech-tag {
  background: rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.1);
}
