/* Global Styles & Color Variables */
:root {
  --hmd-dark: #212529; /* Dark background from logos */
  --hmd-light: #f8f9fa; /* Light text */
  --hmd-blue: #0d6efd;   /* A bright blue, similar to your banner text */
  --hmd-pink: #e83e8c;  /* Pink from logo */
  --hmd-orange: #fd7e14; /* Orange from logo */
  
  /* The full gradient from your logo */
  --hmd-gradient: linear-gradient(90deg, var(--hmd-pink) 0%, var(--hmd-blue) 50%, var(--hmd-orange) 100%);
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--hmd-dark) !important;
  color: var(--hmd-light) !important;
  font-family: 'Poppins', sans-serif; /* A clean, modern font */
}

/* Helper class for gradient text */
.gradient-text {
  background: var(--hmd-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Section padding */
section {
  padding: 80px 0;
  overflow: hidden; /* For animations */
}

/* --- Header / Navbar --- */
.navbar {
  transition: background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
  background-color: transparent !important;
  padding-top: 20px;
  padding-bottom: 20px;
}

.navbar.scrolled {
  background-color: var(--hmd-dark) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--hmd-light) !important;
  margin-left: 15px;
  position: relative;
}

.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--hmd-gradient);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.nav-link:hover::after,
.nav-link.active::after { /* Add this for the active state */
  width: 100%;
}

/* --- Hero Section --- */
#home {
  padding: 0;
  height: 100vh; /* Full viewport height */
  position: relative;
  
  /* Use your banner image as the background */
  background-size: cover;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1; /* Layer 1: The very back */
}
/* Dark overlay to make text readable */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

/* --- Custom Button Style --- */
.btn-gradient {
  background: var(--hmd-gradient);
  background-size: 200% 100%;
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.4s ease-in-out;
}

.btn-gradient:hover {
  background-position: 100% 0;
  color: white;
  box-shadow: 0 4px 15px rgba(232, 62, 140, 0.4);
}

/* --- Services & Portfolio Cards --- */
.card {
  background-color: #2c3034; /* Slightly lighter than body */
  border: none;
  border-radius: 15px;
  transition: all 0.3s ease-in-out;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
  color: var(--hmd-blue);
  font-weight: 700;
}
.card-text {
  color: var(--hmd-light); /* Uses the light color variable we already have */
  opacity: 0.8;          /* Makes it slightly softer than pure white */
}
.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  /* Apply the gradient to the icons */
  background: var(--hmd-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Required for gradient to work on <i> */
}

.portfolio-card .card-img-top {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

/* --- Contact Form --- */
.form-control {
  background-color: #2c3034;
  border: 1px solid #444;
  color: var(--hmd-light);
  padding: 12px;
}
.form-control::placeholder {
  color: var(--hmd-light); /* Uses your light grey variable */
  opacity: 0.6;          /* Makes it a bit dimmer than actual text */
}

.form-control:focus {
  background-color: #2c3034;
  border-color: var(--hmd-blue);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  color: var(--hmd-light);
}

/* --- Footer --- */
footer {
  background-color: #1a1d1f;
  padding: 20px 0;
  margin-top: 60px;
}