/* =============================================
   VARIABLES
   ============================================= */

/* Dark mode default */
:root {
  --glass-bg: rgba(255,255,255,0.14);
  --glass-border: rgba(255,255,255,0.22);
  --text-color: rgba(255,255,255,0.95);
  --body-bg: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.1)), linear-gradient(135deg, #2a4620, #3a3444);
  --input-bg: rgba(255,255,255,0.1);
  --input-border: rgba(255,255,255,0.2);
  --placeholder-color: rgba(255,255,255,0.6);
  --btn-light-bg: rgba(255,255,255,0.9);
  --btn-light-color: #000;
  --accent-color: #fff;
}

/* Light mode overrides */
body.light-mode {
  --glass-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(0,0,0,0.15);
  --text-color: rgba(0,0,0,0.9);
  --body-bg: linear-gradient(135deg, rgb(184, 177, 177), #cfdef3);
  --input-bg: rgba(255,255,255,0.95);
  --input-border: rgba(0,0,0,0.2);
  --placeholder-color: rgba(0,0,0,0.5);
  --btn-light-bg: #fff;
  --btn-light-color: #000;
  --accent-color: #c06121;
}

/* =============================================
   BODY
   ============================================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--body-bg);
  background-attachment: fixed;
  color: var(--text-color);
  transition: background 0.5s, color 0.5s;
  padding: 0;
}

/* =============================================


/* =============================================
   NAVBAR
   ============================================= */
.glass-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: 0.6rem 0;
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.5s, border-color 0.5s;
}

.navbar {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.navbar .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  color: var(--text-color);
  transition: color 0.3s, text-shadow 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent-color);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.3s;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-outline-light {
  border-color: var(--glass-border);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-outline-light:hover {
  background: var(--accent-color);
  color: var(--btn-light-color);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  min-height: 55vh; /* smaller height */
  padding-top: 20px !important;
  padding-bottom: 20px;
  margin-top: -20px;
  text-align: center;
}




.typing {
  font-size: 1.2rem;
  font-weight: 600;
  min-height: 28px;
  color: var(--text-color);
}

.text-highlight {
  color: var(--accent-color);
  text-shadow: 0 0 12px rgba(255,255,255,0.5);
}

/* =============================================
   GLASS CARDS
   ============================================= */
.glass-card {
  backdrop-filter: blur(16px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: background 0.5s, border-color 0.5s, color 0.5s;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: 0.3s ease;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-image {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
}

/* =============================================
   BADGES
   ============================================= */
.badge-card {
  background: rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-color);
  transition: background 0.5s, color 0.5s;
}




/* =============================================
   FORMS
   ============================================= */
#contactForm .form-control {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-color);
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}

#contactForm .form-control::placeholder {
  color: var(--placeholder-color);
}

#contactForm .btn-light {
  background: var(--btn-light-bg);
  color: var(--btn-light-color);
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

#contactForm .btn-light:hover {
  background: #e0e0e0;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: transparent;
  border-top: 1px solid var(--glass-border);
  color: var(--text-color);
  transition: background 0.5s, color 0.5s;
}

footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 6px rgba(0,0,0,0.2);
}

footer ul li {
  margin-bottom: 0.5rem;
}

/* =============================================
   SCROLL UP BUTTON
   ============================================= */
#scrollUp {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 40px;
  width: 40px;
  height: 40px;
  background: var(--btn-light-bg);
  color: var(--btn-light-color);
  font-size: 1.2rem;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.3s, opacity 0.3s;
}

#scrollUp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width: 767px) {
  .about-image {
    width: 180px;
    height: 180px;
  }
  .glass-card {
    padding: 1.25rem !important;
  }
}
/* Override text-light in light mode */
body.light-mode .text-light {
  color: var(--text-color) !important;
}

/* Optional: also handle text-accent in light mode */
body.light-mode .text-accent {
  color: var(--accent-color) !important;
}
/* Override text-white in light mode */
body.light-mode .text-white {
  color: var(--text-color) !important;
}




a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
}


/* Hide phone, date, country, LinkedIn on mobile */
@media (max-width: 768px) {
  .topbar .phone,          /* phone container */
  #date,
  #user-country,
  .topbar a[href*="linkedin.com"] {
    display: none !important;
  }

  /* Show only email in topbar left */
  .topbar .email {
    display: flex;
    align-items: center;
  }

  /* Theme toggle on right */
  #themeToggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1050;
  }
}
