/* ===== CSS RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --text-muted: #8b9cb5;
  --accent-primary: #A5B68D;
  --accent-secondary: #C1CFA1;
  --accent-tertiary: #FCDC94;
  --hover-color: #E8B86D;
  --border-color: #2a2a3e;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --navbar-bg: rgba(10, 10, 15, 0.95);
  --card-bg: rgba(26, 26, 46, 0.8);
  --blob-gradient: linear-gradient(45deg, #A5B68D, #C1CFA1);
  --cursor-color: #A5B68D;
}

/* Light Theme */
.light-mode {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f5;
  --text-primary: #2c2c2c;
  --text-secondary: #4a4a4a;
  --text-muted: #666666;
  --accent-primary: #6b7c5a;
  --accent-secondary: #8fa374;
  --accent-tertiary: #d4a853;
  --hover-color: #c19a4b;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.9);
  --blob-gradient: linear-gradient(45deg, #A5B68D, #C1CFA1);
  --cursor-color: #6b7c5a;
}

/* ===== BODY & TYPOGRAPHY ===== */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 0.3s ease;
  cursor: none;
}

.light-mode body {
  cursor: auto;
}

/* Custom Cursor */
.cursor-inner {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--cursor-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.cursor-outer {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid var(--cursor-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-inner.hover {
  width: 16px;
  height: 16px;
}

.cursor-outer.hover {
  width: 50px;
  height: 50px;
  opacity: 0.3;
}

/* Hide cursors on mobile */
@media (max-width: 768px) {
  .cursor-inner,
  .cursor-outer {
    display: none;
  }

  body {
    cursor: auto !important;
  }
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

#preloader::before {
  content: '';
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hey {
  font-family: 'Dancing Script', cursive;
  font-size: 1.2rem;
  color: var(--accent-primary);
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hey.popup {
  opacity: 1;
  transform: scale(1);
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: scale(1); }
  40%, 43% { transform: scale(1.1); }
  70% { transform: scale(1.05); }
}

.logo {
  cursor: pointer;
}

.logo-top img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  transition: transform 0.3s ease;
}

.logo-top img:hover {
  transform: rotate(360deg) scale(1.1);
}

.navbar-tabs-ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.navbar-tabs-ul li {
  position: relative;
}

.navbar-tabs-ul li a {
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.navbar-tabs-ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.navbar-tabs-ul li a:hover,
.navbar-tabs-ul li.activeThistab a {
  color: var(--accent-primary);
}

.navbar-tabs-ul li a:hover::after,
.navbar-tabs-ul li.activeThistab a::after {
  width: 100%;
}

/* ===== FIXED LIGHT/DARK MODE TOGGLE BUTTON ===== */
.light-mode-toggle {
  position: relative;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  width: 50px;
  height: 26px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 999;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.light-mode-toggle:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 5px 15px var(--shadow-color);
  transform: scale(1.05);
}

.light-mode-toggle:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.light-mode-toggle svg {
  width: 16px;
  height: 16px;
  fill: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  pointer-events: none;
}

/* FIXED: Default state - Dark mode (moon visible, sun hidden) */
.light-mode-toggle .sun {
  opacity: 0;
  transform: rotate(180deg) scale(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode-toggle .moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FIXED: Light mode states (sun visible, moon hidden) */
.light-mode .light-mode-toggle .sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode .light-mode-toggle .moon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MOBILE NAVIGATION ===== */
.hamburger {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1002;
}

.hamburgerbase {
  padding: 10px;
}

#hamburger-button {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.burger-bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-animation1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-animation2 {
  opacity: 0;
}

.hamburger-animation3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobiletogglemenu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 5rem 2rem 2rem;
}

.mobiletogglemenu.show-toggle-menu {
  right: 0;
}

.mobile-navbar-tabs-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-navbar-tabs-ul li a {
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-navbar-tabs-ul li a:hover,
.mobile-navbar-tabs-ul li.activeThismobiletab a {
  color: var(--accent-primary);
  transform: translateX(10px);
}

.stopscrolling {
  overflow: hidden;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  .navbar-tabs {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .navbar {
    padding: 1rem;
    position: relative;
  }

  .light-mode-toggle {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    width: 40px;
    height: 22px;
    z-index: 1001;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }

  .light-mode-toggle svg {
    width: 12px;
    height: 12px;
  }

  .light-mode-toggle * {
    user-select: none;
    -webkit-user-select: none;
  }

  /* FIXED: Mobile-specific theme toggle states */
  .light-mode-toggle:active {
    transform: translateY(-50%) scale(0.9);
  }
}

/* ===== MAIN CONTENT ===== */
main {
  min-height: 100vh;
}

/* ===== LANDING PAGE ===== */
.landing-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 2rem;
  overflow: hidden;
}

.blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: var(--blob-gradient);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  transform: translate(-50%, -50%);
  animation: blob-move 20s infinite;
  z-index: -1;
}

@keyframes blob-move {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  25% { transform: translate(-40%, -60%) scale(1.1); }
  50% { transform: translate(-60%, -40%) scale(0.9); }
  75% { transform: translate(-30%, -50%) scale(1.05); }
}

.text-content {
  max-width: 800px;
  text-align: left;
  z-index: 1;
}

.hello-friend {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.name-container {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.work-container {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.work-line {
  margin-bottom: 0.5rem;
}

/* Jello Animation */
.jello {
  display: inline-block;
  animation: jello 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
}

@keyframes jello {
  11.1% { transform: skewX(-12.5deg) skewY(-12.5deg); }
  22.2% { transform: skewX(6.25deg) skewY(6.25deg); }
  33.3% { transform: skewX(-3.125deg) skewY(-3.125deg); }
  44.4% { transform: skewX(1.5625deg) skewY(1.5625deg); }
  55.5% { transform: skewX(-0.78125deg) skewY(-0.78125deg); }
  66.6% { transform: skewX(0.390625deg) skewY(0.390625deg); }
  77.7% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); }
  88.8% { transform: skewX(0.09765625deg) skewY(0.09765625deg); }
  100% { transform: skewX(0deg) skewY(0deg); }
}

#info-para {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Contact Button */
.letsTalkBtn {
  position: relative;
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.letsTalkBtn:hover {
  color: var(--bg-primary);
  box-shadow: 0 10px 30px rgba(165, 182, 141, 0.3);
  transform: translateY(-2px);
}

.letsTalkBtn-BG {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.letsTalkBtn:hover .letsTalkBtn-BG {
  left: 0;
}

/* ===== SECTIONS ===== */
.about-section-container,
.skills-section-container,
.certifications-section-container,
.projects-section-container {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading-article {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.sectionHeadingP {
  width: 100px;
  height: 3px;
  background: var(--accent-primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.info-dp-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.resume-btn:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.resume-btn .sign svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dp img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 20px 50px var(--shadow-color);
  transition: transform 0.3s ease;
}

.dp img:hover {
  transform: scale(1.05) rotate(2deg);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-details {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.experience-company {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.experience-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.experience-duration {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.experience-points {
  list-style: none;
  padding: 0;
}

.experience-points li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.experience-points li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 0.8rem;
}

.experience-points li strong {
  color: var(--text-primary);
}

/* ===== SKILLS SECTION ===== */
.frontend-dev-heading {
  text-align: center;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
  font-weight: 600;
}

.tech-stack-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.tech-stack-box {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-stack-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--accent-primary);
}

.tech-stack-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.tech-stack-box:hover .tech-stack-logo {
  transform: scale(1.1) rotate(5deg);
}

.needtobeinvert {
  filter: invert(1);
}

.light-mode .needtobeinvert {
  filter: invert(0);
}

.tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--bg-secondary);
}

.tech-stack-box:hover .tooltip {
  opacity: 1;
  bottom: -45px;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications-section {
  max-width: 1000px;
  margin: 0 auto;
}

.certification-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.certification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(165, 182, 141, 0.1), transparent);
  transition: left 0.5s ease;
}

.certification-card:hover::before {
  left: 100%;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--shadow-color);
  border-color: var(--accent-primary);
}

.cert-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-primary);
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-right: 60px;
}

.cert-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 1rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.cert-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-tertiary);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-link:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(165, 182, 141, 0.3);
}

/* Certificate Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10001;
}

.close:hover,
.close:focus {
  color: var(--accent-primary);
  text-decoration: none;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ===== PROJECTS SECTION ===== */
.project-boxes-div {
  display: grid;
  gap: 3rem;
}

.project-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(165, 182, 141, 0.05), transparent);
  transition: left 0.5s ease;
}

.project-box:hover::before {
  left: 100%;
}

.project-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--shadow-color);
  border-color: var(--accent-primary);
}

.project-box:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.project-box:nth-child(even) .info-div {
  order: 2;
}

.project-box:nth-child(even) .image-div {
  order: 1;
}

.ProjectHeading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.ProjectDescription {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.tech-stack-heading {
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.tech-stack {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.project-buttons {
  display: flex;
  gap: 1rem;
}

.github-redirect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.github-redirect:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(165, 182, 141, 0.3);
}

.github-redirect img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(64%) sepia(14%) saturate(1186%) hue-rotate(58deg) brightness(94%) contrast(87%);
  transition: filter 0.3s ease;
}

.github-redirect:hover img {
  filter: brightness(0) saturate(100%) invert(8%) sepia(8%) saturate(1035%) hue-rotate(314deg) brightness(100%) contrast(97%);
}

.github-redirect svg {
  width: 15px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.github-redirect:hover svg {
  transform: translateX(5px);
}

.image-div {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.image-div img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.image-div:hover img {
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.footer-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: var(--blob-gradient);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.2;
  transform: translate(-50%, -50%);
  animation: blob-move 25s infinite reverse;
}

.footer-foreground {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 2rem;
}

#backtotopbutton {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none;
  opacity: 0;
}

#backtotopbutton:hover {
  background: var(--hover-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

#backtotopbutton article {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}

.footercontainer {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.two-words {
  margin-bottom: 2rem;
}

.two-words article {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  font-style: italic;
}

.getintouch-heading {
  margin-bottom: 2rem;
}

.getintouch-heading article {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: var(--accent-primary);
  font-weight: 600;
}

/* Social Media Icons Styling */
.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.SocialHandle {
  width: 35px;
  height: 35px;
  fill: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
}

.SocialHandle:hover {
  fill: var(--accent-primary);
  transform: translateY(-5px) scale(1.1);
}

/* Custom Icons for special platforms */
.codelio-icon {
  width: 35px;
  height: 35px;
  background: var(--text-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: var(--bg-primary);
}

.codelio-icon::before {
  content: '</>';
}

.codelio-icon:hover {
  background: var(--accent-primary);
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 8px 25px rgba(165, 182, 141, 0.4);
}

.letterboxd-icon {
  width: 35px;
  height: 35px;
  background: var(--text-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-size: 18px;
  color: var(--bg-primary);
}

.letterboxd-icon::before {
  content: '🎬';
}

.letterboxd-icon:hover {
  background: var(--accent-primary);
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 8px 25px rgba(165, 182, 141, 0.4);
}

.copyright {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.copyright article {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .info-dp-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .project-box {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .project-box:nth-child(even) .info-div,
  .project-box:nth-child(even) .image-div {
    order: initial;
  }

  .tech-stack-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .landing-page-container {
    padding: 4rem 1rem 2rem;
    text-align: center;
  }

  .about-section-container,
  .skills-section-container,
  .certifications-section-container,
  .projects-section-container {
    padding: 3rem 1rem;
  }

  .section-heading-article {
    font-size: 2rem;
  }

  .name-container {
    font-size: 3rem;
  }

  .work-container {
    font-size: 1.5rem;
  }

  .hello-friend {
    font-size: 1.2rem;
  }

  #info-para {
    font-size: 1rem;
  }

  .certification-card {
    padding: 1.5rem;
  }

  .cert-header {
    flex-direction: column;
    gap: 1rem;
    padding-right: 0;
    text-align: center;
  }

  .cert-badge {
    position: static;
    margin: 0 auto 1rem;
  }

  .project-box {
    padding: 1.5rem;
  }

  .tech-stack-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
  }

  .tech-stack-box {
    padding: 1.5rem 1rem;
  }

  .tech-stack-logo {
    width: 40px;
    height: 40px;
  }

  .logos {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .SocialHandle {
    width: 32px;
    height: 32px;
  }

  .codelio-icon,
  .letterboxd-icon {
    width: 32px;
    height: 32px;
  }

  .social-icon-wrapper {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .social-icon-wrapper:hover {
    transform: translateY(-8px) scale(1.15);
  }

  #backtotopbutton {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .modal-content {
    width: 95%;
  }

  .close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .name-container {
    font-size: 2.5rem;
  }

  .work-container {
    font-size: 1.2rem;
  }

  .section-heading-article {
    font-size: 1.8rem;
  }

  .certification-card,
  .project-box,
  .experience-details {
    padding: 1rem;
  }

  .cert-title {
    font-size: 1.2rem;
  }

  .ProjectHeading {
    font-size: 1.5rem;
  }

  .tech-stack-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }

  .blob {
    width: 400px;
    height: 400px;
  }

  .mobiletogglemenu {
    width: 100%;
    right: -100%;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .blob {
    animation: none;
  }

  .jello {
    animation: none;
  }
}

/* Focus styles for better accessibility */
button:focus,
a:focus,
[tabindex]:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-color: rgba(0, 0, 0, 0.8);
    --border-color: var(--text-primary);
  }

  .light-mode {
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: var(--text-primary);
  }
}

/* Print styles */
@media print {
  .hamburger,
  .light-mode-toggle,
  #backtotopbutton,
  .navbar {
    display: none !important;
  }

  .landing-page-container {
    padding-top: 2rem;
  }

  .blob,
  .footer-blob {
    display: none;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
