@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #5b21b6; /* Purple */
  --secondary: #2563eb; /* Blue */
  --accent: #d06416; /* Orange accent */
  --bg-dark: #050505;
  --bg-card: rgba(255, 255, 255, 0.06);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --glass-border: rgba(255, 255, 255, 0.15);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-name {
  font-family: 'Outfit', sans-serif;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 1rem;
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
  padding: 1.5rem 0;
  background-color: transparent !important;
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 1rem;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: calc(100% - 2rem);
}

.nav-link:hover, .nav-link.active {
  color: #3b82f6 !important;
}

.navbar-toggler {
  border-color: var(--glass-border);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

/* Animated gradient background for Hero */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(91, 33, 182, 0.15) 0%, transparent 50%);
  z-index: -1;
  animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Base image for hero */
.hero-image {
  display: none;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-main);
  border-radius: 50px;
  padding: 10px 30px;
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--bg-dark);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.feature-card {
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #3b82f6;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--glass-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-dark);
  border: 4px solid #3b82f6;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }

.right::after {
  left: -10px;
}

/* Tech Stack */
.tech-logo {
  font-size: 3rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  margin: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tech-logo span {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.tech-logo:hover {
  color: #3b82f6;
  transform: translateY(-5px);
}

.tech-logo:hover span {
  opacity: 1;
}

/* Portfolio */
.portfolio-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 30px;
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 5, 5, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
}

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

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Stats */
.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #3b82f6;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-card {
  padding: 2rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Form */
.form-control, .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.8rem 1.2rem;
  border-radius: 0.5rem;
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #3b82f6;
  color: var(--text-main);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-select option {
  background: var(--bg-dark);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 4rem;
  background-color: rgba(0, 0, 0, 0.3);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #3b82f6;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-right: 0.5rem;
}

.social-icon:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-3px);
}

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

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Dropdown */
.dropdown-menu {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.dropdown-item {
  color: var(--text-muted);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #3b82f6;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
  .timeline::after { left: 31px; }
  .timeline-container { width: 100%; padding-left: 70px; padding-right: 25px; }
  .left::after, .right::after { left: 21px; }
  .right { left: 0%; }
  .hero-title { font-size: 2.5rem; }
}

@media screen and (max-width: 991px) {
  .navbar-collapse {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    margin-top: 1rem;
  }
}
