/* === Global Styles === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('F:/VFTA/bgimage.PNG') no-repeat center center fixed;
  background-size: cover;
  color: #2c2c2c;
  position: relative;
}

/* Overlay Layer */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: -1;
}

/* === Typography Overrides === */
h1, h2, h3 {
  color: #191970; /* Midnight Navy Blue */
}

body,
p,
li,
span,
label,
form input::placeholder,
form textarea::placeholder {
  color: #2c2c2c; /* Dark Off-Grey */
}

::placeholder {
  color: #2c2c2c;
  opacity: 1;
}

/* === Typing Animation === */
.typing {
  border-right: 2px solid #35618a;
  white-space: nowrap;
  overflow: hidden;
  display: inline;
  animation: blink 0.8s steps(1) infinite;
  font-weight: 600;
  color: #5a9bd8;
  margin-left: 0.3rem;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: navy; }
}

/* === Sidebar (Right-Aligned with Animation) === */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  background-color: #191970;
  color: #fff;
  padding: 1rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1050;
  background: linear-gradient(to bottom, #191970, #0a1a3f);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* === Sidebar Logo === */
.sidebar-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

/* === Sidebar Nav Link Hover === */
.sidebar .nav-link {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.sidebar .nav-link:hover {
  font-size: 1.05rem;
  color: #ffcc00 !important;
  transform: scale(1.05);
  font-weight: bold;
}

/* === Animated Gradient Underline === */
.sidebar-underline {
  width: 120px;
  height: 4px;
  margin: 0.5rem auto 1rem;
  border-radius: 2px;
  background: linear-gradient(270deg, #007bff, #00c6ff);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Hamburger Menu (Solid Blue) === */
#openSidebar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1040;
  background-color: #007bff;
  color: white;
  border: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
}

/* === Close Button (Red, Top Right) === */
#closeSidebar {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #dc3545;
  color: white;
  border: none;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
}

/* === Logo Image Styling === */
.profile-img {
  border-radius: 16px;
  object-fit: cover;
  width: 300px;
  height: 300px;
  border: 4px solid navy;
}
/* === Badge Cards === */
.badge-card {
  position: absolute;
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 5, 0.2);
  color: navy;
  font-weight: 500;
  display: flex;
  align-items: center;
  animation: bob 3s ease-in-out infinite;
  will-change: transform;
  z-index: 2;
  border: 2px solid navy;
  cursor: default;
}

/* === Positioning Around 300x300 Logo === */
.top-left {
  top: 40px;
  left: -20px;
}

.top-right {
  top: 40px;
  right: -140px;
}

.bottom-left {
  bottom: 10px;
  left: 10px;
}

.bottom-right {
  bottom: -40px;
  right: -40px;
}

/* Bobbing Animation */
@keyframes bob {
  0%   { transform: translateY(-4px); }
  50%  { transform: translateY(6px); }
  100% { transform: translateY(-4px); }
}

/* Staggered Delays for Alternating Motion */
.badge-1 { animation-delay: 0s; }
.badge-2 { animation-delay: 1.5s; }
.badge-3 { animation-delay: 0.75s; }
.badge-4 { animation-delay: 2.25s; }

/* === Section Styling === */
section {
  padding: 4rem 1rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-weight: bold;
  color: #0a3b85;
}

.section-divider {
  width: 50px;
  height: 4px;
  background-color: #0a3b85;
  margin: 0.5rem 0 1rem;
  height: 4px;
  background-color: #ffc107;
  border-radius: 2px;
}

/* === Contact Form === */
form input,
form textarea {
  border-radius: 6px;
  border: 1px solid #ccc;
}

form button {
  background-color: #0a3b85;
  border: none;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
}

form button:hover {
  background-color: #084298;
}

/* === Footer === */
footer {
  background-color: #0a3b85;
  color: #fff;
  padding: 1rem 0;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
  }

  #openSidebar {
    right: 10px;
  }

  section {
    padding: 2rem 1rem;
  }

  .badge-card {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .top-left, .top-right, .bottom-left, .bottom-right {
    top: 6px;
    bottom: 6px;
    left: 6px;
    right: 6px;
  }
}
