:root {
  --c-glass: #ffffff;
  --c-light: #fff;
  --c-dark: #121212; /* Rich black */
  --c-grey-light: #f8f9fa; /* Subtle grey */
  --c-grey-mid: #e9ecef;
  --c-content: #1e293b;
  --c-action: #000000; /* Primary action is now Black for premium look */
  --c-bg: #f5f7f9; /* Premium light grey background */
  --transition: 400ms cubic-bezier(1, 0.0, 0.4, 1);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
}

html, body {
  background-color: var(--c-bg) !important;
  background: var(--c-bg) !important;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100vw;
}


body {
  font-family: 'DM Sans', sans-serif;
  color: var(--c-content);
  transition: color var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  box-shadow: none !important;
  filter: none !important;
}

body::before, body::after, html::before, html::after {
  display: none !important;
  content: none !important;
  box-shadow: none !important;
  background: none !important;
}

section {
  background-color: var(--c-bg) !important;
}

h1, h2, h3, h4, .logo {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background Blobs */
/* Background Blobs Removed */
.bg-blobs, .blob, .blob-1, .blob-2, .blob-3 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Navigation & Switcher */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(245, 247, 249, 0.85); /* Greyish glass */
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  padding: 0 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 2000;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--c-dark);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


.nav-links .btn-liquid {
  padding: 10px 24px;
  min-width: 110px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  color: var(--c-content);
  backdrop-filter: blur(10px);
}

.nav-links .btn-liquid.active {
  background: var(--c-dark) !important;
  color: #fff !important;
  border-color: var(--c-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-links .btn-liquid.primary {
  background: var(--c-dark);
  color: #fff;
  border: none;
}

::selection {
  background: var(--c-action);
  color: #fff;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--c-content);
}

.logo span { color: var(--c-action); }



/* Liquid Glass Cards */
.glass-card {
  background: #ffffff !important;
  border-radius: 32px;
  padding: 50px;
  border: 1px solid rgba(0, 0, 0, 0.08); /* Slightly more defined border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important; /* Extremely subtle shadow */
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

@media (max-width: 768px) {
  .glass-card {
    padding: 25px;
    border-radius: 20px;
  }
}


.contact-card-grid {
  display: grid !important;
  grid-template-columns: 1fr 1.5fr !important;
  gap: 60px !important;
  align-items: start !important;
}

@media (max-width: 992px) {
  .contact-card-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* Liquid Buttons with Advanced Glass Effect */
.btn-liquid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 99em;
  background-color: #ffffff;
  color: var(--c-content);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  border: 2px solid #000000;
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  cursor: pointer;
  white-space: nowrap;
}

.btn-liquid:hover {
  background-color: var(--c-dark);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-liquid.active {
  background-color: var(--c-dark) !important;
  color: #fff !important;
  border-color: var(--c-dark);
}

.btn-liquid.primary {
  background-color: var(--c-action);
  color: #fff;
  border: 2px solid #000000;
}

.btn-liquid.primary:hover {
  background-color: #333;
}

.btn-liquid::after {
  display: none; /* Removing shine effect to stop flickering */
}

/* Section Styling */
.section-padding { padding: 100px 0; }

.hero {
  min-height: 80vh;
  padding-top: 120px; /* Account for fixed nav with a bit of breathing room */
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--c-content);
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 0.9;
}

.hero-image {
  position: relative;
}

.image-canvas {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: #ffffff;
  filter: url(#liquid-glass-filter);
  animation: morph 10s infinite alternate;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.02); 
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.image-canvas:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.image-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Grid Layouts */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-item {
  text-align: center;
}

.skill-item i {
  font-size: 3rem;
  color: var(--c-action);
  margin-bottom: 20px;
}

.experience-item {
  margin-bottom: 40px;
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--c-action);
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* SVG Filter Library */
.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Utilities */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.section-title .underline {
  width: 80px;
  height: 6px;
  background: var(--c-action);
  margin: 0 auto;
  border-radius: 3px;
}

/* Responsive */
/* Mobile Responsive Refinements */
@media (max-width: 900px) {
  .navbar-inner {
    padding: 0 30px;
    height: 80px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    transform: translateX(100%);
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1500;
    padding: 40px;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
  }


  .nav-links .btn-liquid {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.1rem;
    box-shadow: none;
  }

  /* Hero Mobile */
  .hero {
    padding-top: 140px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .hero-btns .btn-liquid {
    margin-left: 0 !important;
  }

  .image-canvas {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Section Padding */
  .section-padding {
    padding: 80px 0;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  /* About Grid */
  #about .container > .glass-card > div {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Achievements Grid */
  .achievements .grid-cards {
    grid-template-columns: 1fr;
  }

  /* Contact Grid */
  #contact div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 50px !important;
  }

  .contact-left {
    text-align: center;
  }

  .contact-left p {
    margin: 0 auto 40px;
  }

  .contact-left div[style*="flex-direction: column"] {
    align-items: center;
  }

  .contact-social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .navbar-inner {
    padding: 0 20px;
  }
}

/* E-commerce Quick View Popup Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.75); /* Dark overlay */
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
}

.lightbox-modal,
.lightbox-modal *,
.quickview-card,
.quickview-card * {
  box-sizing: border-box !important;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Quickview Dialog Card */
.quickview-card {
  background: #ffffff;
  width: 100%;
  max-width: 960px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.lightbox-modal.active .quickview-card {
  transform: scale(1);
}

/* Close Button */
.quickview-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #121212;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-family: Arial, sans-serif;
  line-height: 1;
}

.quickview-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.08) rotate(90deg);
}

/* Split-screen Grid */
.quickview-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 520px;
}

@media (max-width: 860px) {
  .quickview-grid {
    grid-template-columns: 1fr;
  }
  .quickview-image-container {
    height: 300px !important;
  }
  .quickview-details {
    padding: 35px 25px !important;
  }
  .quickview-card {
    max-height: 85vh;
    overflow-y: auto;
    width: 100%;
    margin: 0;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 576px) {
  .lightbox-modal {
    padding: 16px;
  }
  .quickview-card {
    max-height: 80vh;
    width: 100%;
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  .quickview-image-container {
    height: 220px !important;
  }
  .quickview-details {
    padding: 25px 20px !important;
  }
  .quickview-title {
    font-size: 1.6rem !important;
    margin-bottom: 12px !important;
  }
  .quickview-desc {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  .quickview-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #121212 !important;
  }
}

/* Left Image Section */
.quickview-image-container {
  background: #f1f3f5; /* Premium soft neutral background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.quickview-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Do not crop the image, fit it completely */
  object-position: center center;
  padding: 20px; /* Elegant border breathing room */
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  user-select: none;
}

.quickview-image.dragging {
  transition: none; /* No delay during dragging/panning */
}

/* Floating Zoom Controls */
.quickview-zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 15;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  user-select: none;
}

.zoom-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-level {
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 45px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Right Details Section */
.quickview-details {
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.quickview-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #868e96;
  margin-bottom: 12px;
  display: inline-block;
  font-family: 'Outfit', sans-serif;
}

.quickview-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  line-height: 1.25;
  color: #121212;
  margin: 0 0 16px 0;
  font-weight: 700;
}

.quickview-divider {
  width: 50px;
  height: 4px;
  background: #121212;
  margin-bottom: 24px;
  border-radius: 2px;
}

.quickview-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #495057;
  margin: 0;
}

/* Fullscreen Hero Image Modal */
.hero-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.95);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.hero-modal.active {
  opacity: 1;
  visibility: visible;
}

.hero-modal-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-modal.active .hero-modal-content {
  transform: scale(1);
}

.hero-modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-family: Arial, sans-serif;
  line-height: 1;
}

.hero-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1) rotate(90deg);
}

