/* Base Theme & Variables */
:root {
  --bg: #0b0b0f;
  --bg-2: #111218;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e9e9ee;
  --muted: #9aa0ad;
  /* Dhriti's Signature Gradient: Deep Blue to Vibrant Purple */
  --grad: linear-gradient(135deg, #3a86ff, #8338ec 60%, #ff006e);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(1000px 500px at 80% 10%, rgba(58, 134, 255, 0.15), transparent),
              var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Navbar */
.blur-nav {
  backdrop-filter: blur(12px);
  background: rgba(11, 11, 15, 0.7);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 11, 15, 0.95);
  border-bottom-color: var(--border);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-title .stroke {
  -webkit-text-stroke: 1px #fff;
  color: transparent;
}

.profile-image {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border);
  box-shadow: 0 0 30px rgba(58, 134, 255, 0.3);
  transition: transform 0.5s ease;
}

.profile-image:hover {
  transform: scale(1.03) rotate(2deg);
  border-color: #8338ec;
}

/* Cards & Glassmorphism */
.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.project.card {
  border: none;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.project.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(58, 134, 255, 0.5);
}

/* Buttons */
.btn-gradient {
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(131, 56, 236, 0.4);
}

/* Skills Progress */
.progress {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 10px;
}

.progress-bar {
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

.bg-dark-2 { background-color: var(--bg-2); }
.section-padding { padding: 100px 0; }

/* Certification Icon Styling */
#certifications .bi {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(131, 56, 236, 0.3));
}

/* Coding Profile Button Hover */
.btn-outline-light:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

/* Adjusting Card heights for uniformity */
#certifications .glass {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

#certifications .glass:hover {
  transform: scale(1.02);
  border-color: #8338ec;
}
.reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

  .nav-link {
  color: var(--text) !important;
  margin: 0 10px;
}

/* Project Image Styling */
.project.card .card-img-top {
  height: 200px; /* Fixed height for uniformity */
  object-fit: cover; /* Prevents stretching */
  filter: grayscale(20%) brightness(0.8); /* Blends with dark theme */
  transition: all 0.5s ease;
  border-bottom: 1px solid var(--border);
}

/* Hover Effect for Project Images */
.project.card:hover .card-img-top {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

/* Fix for Profile Image Border */
.profile-image {
  border: 4px solid var(--border); 
  box-shadow: 0 0 30px rgba(58, 134, 255, 0.3); 
}