/* ============================================================================
   PROJECT:  Sadat Mahmud - Professional Portfolio & Analytics Platform
   THEME:    Interstellar Cosmic Deep-Space with High-Contrast Layouts
   VERSION:  2.2.1
   AUTHOR:   Sadat Mahmud
   DESIGN:   Artistic Bento Matrix Architecture with Fixed Background Anomaly
   ============================================================================ */

/* ============================================================================
   SECTION 1: STRUCTURAL BASE VARIABLES & LAYOUT ROOT
   ============================================================================ */
:root {
  --bg-deep-space: #030608;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-orange: #f97316;
  --accent-emerald: #10b981;
  --radius-prime: 16px;
  
  /* Dynamic configuration layers managed cleanly from script.js updates */
  --dynamic-nebula-glow: #134e4a;
  --dynamic-aurora-top: #0d9488;
  --dynamic-aurora-bottom: #a855f7;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep-space);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ============================================================================
   SECTION 2: ELEGANT INTERSTELLAR BACKGROUND & FIXED BACKGROUND EFFECTS
   ============================================================================ */
/* Deep base vacuum space container layer holding custom cosmic clouds */
#cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: radial-gradient(circle at bottom left, #050b14 0%, #020406 100%);
  overflow: hidden;
}

/* 🌌 ELEMENT 1: HIGH-DENSITY TWINKLING BACKGROUND STARS */
.ambient-starfield {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 10% 20%, #ffffff 100%, transparent),
    radial-gradient(1.5px 1.5px at 30% 65%, #ffffff 80%, transparent),
    radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,0.7) 100%, transparent),
    radial-gradient(2px 2px at 75% 15%, #ffffff 90%, transparent),
    radial-gradient(1px 1px at 85% 80%, #ffffff 60%, transparent);
  background-size: 400px 400px;
  opacity: 0.45;
  z-index: -3;
}

/* 🌌 ELEMENT 2: CHRONO-BALANCED AURORA BOREALIS LIGHT STRIPS */
.aurora-borealis-ribbon {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 130%;
  height: 65%;
  background: radial-gradient(ellipse at 50% 20%, var(--dynamic-aurora-top) 0%, var(--dynamic-aurora-bottom) 45%, transparent 75%);
  filter: blur(55px);
  opacity: 0.28;
  transform-origin: center top;
  animation: auroraWave 22s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes auroraWave {
  0% { transform: rotate(-2deg) scaleY(0.9); opacity: 0.22; }
  100% { transform: rotate(3deg) scaleY(1.1); opacity: 0.32; }
}

/* 🌌 ELEMENT 3: AMBIENT INTERSTELLAR GAS CLUSTERS (NEBULA) */
.interstellar-nebula-cluster {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--dynamic-nebula-glow) 0%, transparent 70%);
  filter: blur(70px);
  opacity: 0.35;
  animation: nebulaPulse 18s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes nebulaPulse {
  0% { transform: scale(0.95) translate(-20px, 10px); opacity: 0.28; }
  100% { transform: scale(1.05) translate(10px, -20px); opacity: 0.42; }
}

/* 🌌 ELEMENT 4: FIXED BACKDROP GRAVITATIONAL ANOMALY (BLACK HOLE) */
.distant-black-hole {
  position: fixed; 
  top: 18%;
  right: 4%;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate3d(1, 1, 1, -15deg);
  opacity: 0.65; 
  z-index: -3; 
  pointer-events: none; 
}

/* The dark central gravitational core node */
.bh-singularity {
  width: 30px;
  height: 30px;
  background: #000000;
  border-radius: 50%;
  box-shadow: 0 0 24px 8px #000000, 
              0 0 60px 20px rgba(254, 215, 170, 0.15);
  z-index: 3;
  position: relative;
}

/* The horizontal glowing matter disk tracking around the core edge */
.bh-accretion-disk {
  position: absolute;
  width: 160px;
  height: 18px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(254, 215, 170, 0.9) 20%, 
    rgba(234, 88, 12, 1) 50%, 
    rgba(254, 215, 170, 0.9) 80%, 
    transparent 100%
  );
  border-radius: 50%;
  filter: blur(1.5px);
  box-shadow: 0 0 35px rgba(234, 88, 12, 0.85),
              0 0 70px rgba(249, 115, 22, 0.4);
  animation: interstellarWarp 9s linear infinite;
  z-index: 2;
}

/* The Interstellar Time Dilation Animation Loop */
@keyframes interstellarWarp {
  0% { transform: rotate(0deg) scaleX(1) scaleY(1); filter: blur(1.5px); }
  25% { transform: rotate(90deg) scaleX(1.08) scaleY(0.92); filter: blur(2.2px); }
  50% { transform: rotate(180deg) scaleX(0.95) scaleY(1.05); filter: blur(1.8px); }
  75% { transform: rotate(270deg) scaleX(1.05) scaleY(0.95); filter: blur(2.5px); }
  100% { transform: rotate(360deg) scaleX(1) scaleY(1); filter: blur(1.5px); }
}


/* ============================================================================
   SECTION 3: HIGH-CONTRAST GLASSMORPHISM (READABILITY MECHANICS)
   ============================================================================ */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(3, 6, 8, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card, .toolkit-item {
  background: rgba(8, 14, 22, 0.82); 
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-prime);
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.65);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card:hover, .toolkit-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.45);
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 70%, var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-main); 
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  line-height: 1.7;
}


/* ============================================================================
   SECTION 4: ELEMENT BRANDING & CHIPS
   ============================================================================ */
.weather-card {
  background: rgba(4, 10, 15, 0.85) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--accent-emerald);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-left: 10px;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
}

.wc-temp {
  font-size: 3.25rem;
  font-weight: 700;
}

.wc-locate-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.72rem;
  transition: background 0.2s;
}

.wc-locate-btn:hover {
  background: var(--accent-emerald);
}

.btn {
  display: inline-flex;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  background: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
  transition: all 0.2s ease;
  z-index: 10; 
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.4);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--accent-emerald);
  color: #ffffff;
  box-shadow: none;
}

.btn.outline:hover {
  background: var(--accent-emerald);
}


/* ============================================================================
   SECTION 5: METEOROLOGICAL PARTICLE FLUID ENGINE VECTORS
   ============================================================================ */
#weather-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px #ffffff;
  opacity: 0;
  animation: spaceShoot linear infinite;
}

@keyframes spaceShoot {
  0% { transform: translateX(0) translateY(0) scale(1); opacity: 0; }
  8% { opacity: 1; }
  18% { transform: translateX(-350px) translateY(350px) scale(0.2); opacity: 0; }
  100% { transform: translateX(-350px) translateY(350px) scale(0.2); opacity: 0; }
}

.cosmic-rain {
  position: absolute;
  top: -40px;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.5));
  animation: fallDownward linear infinite;
}

@keyframes fallDownward {
  to { transform: translateY(110vh); }
}

.cosmic-snow {
  position: absolute;
  top: -10px;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.6;
  animation: driftSlowly linear infinite;
}

@keyframes driftSlowly {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(50vh) translateX(25px); }
  100% { transform: translateY(110vh) translateX(-15px); }
}

.nebula-lightning {
  position: absolute;
  inset: 0;
  background: rgba(168, 85, 247, 0);
  animation: strobeFlash 7s ease-in-out infinite;
}

@keyframes strobeFlash {
  0%, 93%, 100% { background: rgba(168, 85, 247, 0); }
  95% { background: rgba(168, 85, 247, 0.12); }
  97% { background: rgba(168, 85, 247, 0.04); }
}


/* ============================================================================
   SECTION 6: WRAPPERS, PLACEMENT MATRICES, AND PROFILE IMAGE INTEGRITY
   ============================================================================ */
.hero {
  padding: 6rem 2rem 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Robust Image container wrapper to guarantee clean framing */
.profile-img-container {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid var(--accent-emerald);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25), 
              0 25px 60px rgba(0, 0, 0, 0.95);
  background-color: #04080e; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-img {
  width: 100%;
  height: 100%;
  /* ⚡️ THE PERFECT FIT: 'cover' stretches the portrait to eliminate all black 
     sidebars, while 'center 15%' protects your face from being cut off at the top! */
  object-fit: cover; 
  object-position: center 15%;
}

.profile-img-container:hover {
  transform: scale(1.05);
  border-color: var(--accent-orange);
}

.profile-caption {
  text-align: center;
  margin-top: 1.25rem;
}

.mission-vision, .toolkit {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.wc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 1.25rem;
}

.wc-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
}

.wc-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.wc-stat-value {
  font-weight: 600;
  font-size: 1.15rem;
}

.wc-sun {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin-top: 1.25rem;
  border: 1px solid rgba(255,255,255,0.04);
}

.wc-track {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.08);
  width: 90px;
  border-radius: 2px;
}

.wc-fill {
  height: 100%;
  background: var(--accent-orange);
  width: 0%;
}

.wc-dot {
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
}

.resume-buttons {
  margin-top: 3.5rem;
  display: flex;
  gap: 1.5rem;
  position: relative;
  z-index: 10; 
}

.section {
  max-width: 1200px;
  margin: 8rem auto;
  padding: 0 2rem;
}

.section h2 {
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-emerald);
  padding-left: 1.25rem;
}

.main-footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 6, 8, 0.95);
  font-size: 0.85rem;
  color: var(--text-muted);
}

#schedule-button {
  background: transparent;
  border: 2px solid var(--accent-orange);
  color: #ffffff;
  padding: 0.7rem 1.75rem;
  border-radius: 24px;
  cursor: pointer;
  margin-top: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 10;
}

#schedule-button:hover {
  background: var(--accent-orange);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}


/* ============================================================================
   SECTION 7: SCREEN RE-ARRANGEMENT QUERIES (RESPONSIVE VIEW OVERRIDES)
   ============================================================================ */
@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-text h1 { margin-left: auto; margin-right: auto; }
  .resume-buttons { justify-content: center; }
  .distant-black-hole { 
    position: fixed;
    right: 4%; 
    top: 6%; 
    width: 110px; 
    height: 110px; 
    opacity: 0.4; 
  }
}


/* ============================================================================
   SECTION 8: ULTRA HIGH-CONTRAST SECURE CONTACT MATRIX Styles
   ============================================================================ */
.contact-subtitle {
  color: #ffffff; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #090f18; 
  border: 2px solid rgba(255, 255, 255, 0.18); 
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.contact-details h3 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff; 
  letter-spacing: 0.02em;
}

.contact-details p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1; 
  word-break: break-all;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

/* Custom glow channels */
.email-glow     { color: #f97316; }
.linkedin-glow  { color: #38bdf8; }
.github-glow    { color: #ffffff; }
.whatsapp-glow  { color: #22c55e; }

.contact-card:hover {
  transform: translateY(-5px);
  background: #0d1724;
}

.contact-card:hover:nth-child(1) { border-color: #f97316; box-shadow: 0 15px 30px rgba(249, 115, 22, 0.35); }
.contact-card:hover:nth-child(2) { border-color: #38bdf8; box-shadow: 0 15px 30px rgba(56, 189, 248, 0.35); }
.contact-card:hover:nth-child(3) { border-color: #ffffff; box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25); }
.contact-card:hover:nth-child(4) { border-color: #22c55e; box-shadow: 0 15px 30px rgba(34, 197, 94, 0.35); }

.contact-card:hover .contact-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.12);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.contact-details {
  flex: 1;
  min-width: 0;
}

/* Updated section */
.contact-details p,
.contact-details h3 {
  /* Change these to allow wrapping */
  white-space: normal; 
  overflow: visible;
  text-overflow: clip;
  
  /* Optional: prevents long strings like emails from breaking words awkwardly */
  word-break: break-all; 
}





/* ============================================================================
   SECTION 9: GRAPHICALLY ARTISTIC COSMIC ABOUT SECTION
   ============================================================================ */
.cosmic-about {
  position: relative;
  overflow: visible;
}

.about-header-group {
  margin-bottom: 3.5rem;
}

.quantum-line {
  height: 2px;
  width: 80px;
  background: linear-gradient(90deg, var(--accent-emerald), transparent);
  margin-top: 0.75rem;
}

.about-hero-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.manifesto-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-orange);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.manifesto-heading {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  background: linear-gradient(120deg, #ffffff 40%, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manifesto-body {
  color: var(--text-main); 
  line-height: 1.7;
  font-size: 0.95rem;
}

.impact-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.telemetry-counter-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.counter-card {
  background: linear-gradient(135deg, rgba(8, 14, 22, 0.75) 0%, rgba(4, 8, 12, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3.5px solid var(--accent-emerald);
  padding: 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.counter-card:hover {
  transform: translateX(6px);
  background: rgba(12, 22, 34, 0.75);
  border-left-color: var(--accent-orange);
}

.counter-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  font-family: monospace;
}

.counter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subsection-title {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.cosmic-timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 6rem;
}

.timeline-line {
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-emerald) 0%, var(--accent-orange) 50%, rgba(255,255,255,0.05) 100%);
}

.timeline-node {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-node:last-child {
  margin-bottom: 0;
}

.node-marker {
  position: absolute;
  left: calc(-2rem - 2px);
  top: 6px;
  width: 14px;
  height: 14px;
  background: #030712;
  border: 3px solid var(--accent-emerald);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-node:hover .node-marker {
  background: var(--accent-orange);
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--accent-orange);
}

.node-meta {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.25rem;
}

.node-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.node-content p {
  color: var(--text-main); 
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 850px;
}

.bento-lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-box {
  position: relative;
  background: rgba(6, 11, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.bento-box.wide {
  grid-column: span 2;
}

.bento-inner {
  position: relative;
  z-index: 2;
}

.bento-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}

.text-orange { color: var(--accent-orange); }
.text-emerald { color: var(--accent-emerald); }
.text-blue { color: #38bdf8; }

.bento-box h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.bento-box p {
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.6;
}

.bento-glow-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle 140px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.04), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-box:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.2);
}

.bento-box:hover .bento-glow-overlay {
  opacity: 1;
}

.venture-box:hover { box-shadow: 0 15px 40px rgba(249, 115, 22, 0.1); }
.culinary-box:hover { box-shadow: 0 15px 40px rgba(16, 185, 129, 0.1); }
.intelligence-box:hover { box-shadow: 0 15px 40px rgba(56, 189, 248, 0.1); }

@media (max-width: 968deg) {
  .about-hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .bento-lifestyle-grid {
    grid-template-columns: 1fr;
  }
  .bento-box.wide {
    grid-column: span 1;
  }
}


### 3. Optimized Logic Script

This contains the unified navigation interceptors and mouse cursor coordinate tracking engine to feed the interactive bento lighting effects.

```javascript
// ============================================================================
// SECTION 1: GLOBAL SITE NAV AND TIME ZONE TARGETING
// ============================================================================
// Manages smooth scrolling behaviors across various section wrapper tags safely.

document.querySelectorAll(".nav-link").forEach((btn) => {
  btn.addEventListener("click", (e) => {
    const target = btn.getAttribute("data-target");
    
    // 💡 THE ESSENTIAL FIX: Only intercept the click if data-target exists!
    if (target) {
      e.preventDefault(); // Prevents default jumping bugs
      const el = document.querySelector(target);
      if (el) {
        el.scrollIntoView({ behavior: "smooth", block: "start" });
      }
    }
  });
});

document.getElementById("home-btn").addEventListener("click", () => {
  window.scrollTo({ top: 0, behavior: "smooth" });
});

// Automatically keeps your footer year perfectly up to date
document.getElementById("year").textContent = new Date().getFullYear();


// ============================================================================
// SECTION 2: TELEMETRY ENGINE (WEATHER REST INGESTION)
// ============================================================================
// Queries external API channels to retrieve local weather data safely.

const weatherStatusEl = document.getElementById("weather-status");

async function getWeatherData(query = "Dortmund") {
  // Your authenticated WeatherAPI system key access credential
  const myApiKey = "4604fcaa116446e1846170509260806";
  const url = `https://api.weatherapi.com/v1/forecast.json?key=${myApiKey}&q=${encodeURIComponent(query)}&days=1&aqi=no`;
  
  try {
    const res = await fetch(url);
    if (!res.ok) throw new Error("Network response encountered operational fault");
    const data = await res.json();
    
    const code = data.current.condition.code;
    let type = "clear";
    
    // Simplifies structural code nodes down into our semantic weather style buckets
    if ([1000].includes(code)) type = "clear";
    else if ([1003, 1006, 1009].includes(code)) type = "clouds";
    else if ([1030, 1135, 1147].includes(code)) type = "mist";
    else if ([1063, 1180, 1183, 1186, 1189, 1192, 1195, 1240, 1243, 1246].includes(code)) type = "rain";
    else if ([1066, 1114, 1210, 1213, 1216, 1219, 1222, 1225, 1255, 1258].includes(code)) type = "snow";
    else if ([1087, 1273, 1276, 1279, 1282].includes(code)) type = "thunderstorm";

    return {
      condition: type,
      description: data.current.condition.text,
      temp: Math.round(data.current.temp_c),
      feels: Math.round(data.current.feelslike_c),
      humidity: data.current.humidity,
      wind: Math.round(data.current.wind_kph),
      sunrise: data.forecast.forecastday[0].astro.sunrise,
      sunset: data.forecast.forecastday[0].astro.sunset,
      isDay: data.current.is_day === 1,
      city: data.location.name,
      country: data.location.country
    };
  } catch (e) {
    console.error("Telemetry Pipeline Interrupted gracefully:", e);
    return null;
  }
}


// ============================================================================
// SECTION 3: WEB SYSTEM RENDER FORWARDER
// ============================================================================
// Dispatches async metrics payloads across independent DOM tracking nodes.

async function loadWeatherSystem(query) {
  const weather = await getWeatherData(query);
  if (!weather) return;

  const cityEl = document.getElementById("wc-city");
  if (cityEl) cityEl.textContent = `📍 ${weather.city}, ${weather.country}`;

  updateCosmicThemeColors(weather.condition, weather.isDay);
  updateWeatherCardData(weather);
  generateWeatherAtmosphereEffects(weather.condition);
  updateNarrativeMoodText(weather.condition, weather.description, weather.isDay);
}


// ============================================================================
// SECTION 4: COSMIC CANVAS COLOUR ENGINE
// ============================================================================
// Smoothly updates variable palettes based on the weather conditions of the target city.

function updateCosmicThemeColors(condition, isDay) {
  const root = document.documentElement;
  
  const shifts = {
    clear:        { nebula: "#134e4a", auroraTop: "#0d9488", auroraBottom: "#a855f7" }, // Teal to Vivid Violet
    clouds:       { nebula: "#1e1b4b", auroraTop: "#4338ca", auroraBottom: "#6366f1" }, // Moody Indigo Velvet
    rain:         { nebula: "#06201b", auroraTop: "#0f766e", auroraBottom: "#475569" }, // Dark Sage and Charcoal Storm
    snow:         { nebula: "#0f172a", auroraTop: "#115e59", auroraBottom: "#cbd5e1" }, // Ice Glacier Mint Core
    mist:         { nebula: "#020617", auroraTop: "#312e81", auroraBottom: "#1e1b4b" }, // Absolute Midnight Fog
    thunderstorm: { nebula: "#172554", auroraTop: "#581c87", auroraBottom: "#b45309" }  // Volatile Dark Electric Amber
  };

  const current = shifts[condition] || shifts.clear;
  
  root.style.setProperty("--dynamic-nebula-glow", current.nebula);
  root.style.setProperty("--dynamic-aurora-top", current.auroraTop);
  root.style.setProperty("--dynamic-aurora-bottom", current.auroraBottom);
}


// ============================================================================
// SECTION 5: INTERSTELLAR ATMOSPHERIC PARTICLES CONSTRUCTOR
// ============================================================================
// Spawns rich background physics particles (rain, snow, shooting stars) over the design layout.

function generateWeatherAtmosphereEffects(condition) {
  const fx = document.getElementById("weather-fx");
  if (!fx) return;
  fx.innerHTML = ""; // Flushes old HTML loops out to keep memory clear

  // 🌠 HIGH DENSITY SHOOTING STARS: Spawns constant aesthetic cascades across all weather states
  const starCount = condition === "clear" ? 18 : 8;
  for (let i = 0; i < starCount; i++) {
    const star = document.createElement("div");
    star.className = "shooting-star";
    star.style.top = Math.random() * 45 + "vh";
    star.style.left = Math.random() * 85 + "vw";
    star.style.animationDelay = Math.random() * 7 + "s";
    star.style.animationDuration = 1.2 + Math.random() * 1.8 + "s";
    fx.appendChild(star);
  }

  // Spawns custom secondary weather overlays depending on the current state
  if (condition === "rain") {
    for (let i = 0; i < 45; i++) {
      const drop = document.createElement("div");
      drop.className = "cosmic-rain";
      drop.style.left = Math.random() * 100 + "vw";
      drop.style.animationDelay = Math.random() * 1.5 + "s";
      drop.style.animationDuration = 0.4 + Math.random() * 0.4 + "s";
      fx.appendChild(drop);
    }
  } else if (condition === "thunderstorm") {
    const flash = document.createElement("div");
    flash.className = "nebula-lightning";
    fx.appendChild(flash);
  } else if (condition === "snow") {
    for (let i = 0; i < 30; i++) {
      const flake = document.createElement("div");
      flake.className = "cosmic-snow";
      flake.style.left = Math.random() * 100 + "vw";
      flake.style.animationDelay = Math.random() * 3 + "s";
      flake.style.animationDuration = 3.5 + Math.random() * 3.5 + "s";
      fx.appendChild(flake);
    }
  }
}


// ============================================================================
// SECTION 6: DATA MAPPING LOGIC LAYER
// ============================================================================
// Securely inputs normalized telemetry items directly into target card elements.

function updateWeatherCardData(weather) {
  const tempEl = document.getElementById("wc-temp");
  const condEl = document.getElementById("wc-condition");
  if (tempEl) tempEl.textContent = weather.temp + "°C";
  if (condEl) condEl.textContent = weather.description;

  if (document.getElementById("wc-humidity")) document.getElementById("wc-humidity").textContent = weather.humidity;
  if (document.getElementById("wc-wind")) document.getElementById("wc-wind").textContent = weather.wind;
  if (document.getElementById("wc-feels")) document.getElementById("wc-feels").textContent = weather.feels;
  
  if (document.getElementById("wc-sunrise")) document.getElementById("wc-sunrise").textContent = weather.sunrise;
  if (document.getElementById("wc-sunset")) document.getElementById("wc-sunset").textContent = weather.sunset;

  const fillEl = document.getElementById("wc-fill");
  const dotEl = document.getElementById("wc-dot");
  if (fillEl && dotEl) {
    fillEl.style.width = weather.isDay ? "65%" : "0%";
    dotEl.style.left = weather.isDay ? "65%" : "0%";
  }

  const updEl = document.getElementById("wc-updated");
  if (updEl) {
    updEl.textContent = "Synced: " + new Date().toLocaleTimeString("de-DE", { hour: "2-digit", minute: "2-digit" });
  }
}

function updateNarrativeMoodText(condition, description, isDay) {
  if (!weatherStatusEl) return;
  const metrics = {
    clear: isDay ? "Sky transparent. Optimal parameters for strategic planning data mapping." : "Night cycle stabilized. Excellent window for deep architectural engineering loops.",
    clouds: "Interstellar cloud density high. Excellent atmospheric conditions for analytics.",
    rain: "Precipitation lines tracking fluidly. Systems running smoothly.",
    snow: "Thermal drop registered. Crystal clear data execution pipeline active.",
    mist: "Nebula dust tracking across local sensors. Navigating matrix via structural metrics.",
    thunderstorm: "High atmospheric energy matrix detected. Exponential logic execution loops running."
  };
  weatherStatusEl.textContent = metrics[condition] || `${description}. Core systems operational.`;
}


// ============================================================================
// SECTION 7: HARDWARE GEOLOCATION ACCESS PATHWAYS
// ============================================================================
// Captures user coordinates to dynamically adjust the site's environment.

const locateBtn = document.getElementById("wc-locate-btn");
if (locateBtn) {
  locateBtn.addEventListener("click", () => {
    if (!navigator.geolocation) {
      alert("Spatial tracking missing in current architecture.");
      return;
    }
    locateBtn.textContent = "⏳ Syncing Vector...";
    
    navigator.geolocation.getCurrentPosition(
      async (pos) => {
        const queryStr = `${pos.coords.latitude},${pos.coords.longitude}`;
        await loadWeatherSystem(queryStr);
        locateBtn.textContent = "✓ Vector Matched";
        localStorage.setItem("cosmic-location", queryStr);
      },
      () => {
        alert("System timed out. Retaining Dortmund Standard Baseline.");
        locateBtn.textContent = "⊙ Standard Vector";
      }
    );
  });
}


// ============================================================================
// SECTION 8: COLD BOOT INITIALIZATION LOOP (ENTRY POINT)
// ============================================================================
// Immediately launches everything once the website is loaded.

// Generates baseline cosmic shooting stars instantly on startup
generateWeatherAtmosphereEffects("clear"); 

// Inspects cache memory arrays or falls back to Dortmund
const activeHorizon = localStorage.getItem("cosmic-location") || "Dortmund";
loadWeatherSystem(activeHorizon);

// FUNCTIONAL INTEGRATION: Launches Calendly popup directly over your background
const scheduleButton = document.getElementById("schedule-button");
if (scheduleButton) {
  scheduleButton.addEventListener("click", (e) => {
    e.preventDefault();
    Calendly.initPopupWidget({
      url: 'https://calendly.com/sadatmahmud334/30min' 
    });
    return false;
  });
}


// ============================================================================
// SECTION 9: BENTO GRID INTERACTIVE MOUSE TRACKING ENGINE
// ============================================================================
// Tracks custom cursor trajectories to map light distortion on glass matrices.

document.querySelectorAll('.bento-box').forEach((box) => {
  box.addEventListener('mousemove', (e) => {
    const rect = box.getBoundingClientRect();
    const x = e.clientX - rect.left; // Anchor coordinates inside card container boundary
    const y = e.clientY - rect.top;
    
    // Updates local custom property states inside target node context
    box.style.setProperty('--mouse-x', `${x}px`);
    box.style.setProperty('--mouse-y', `${y}px`);
  });
});
.blog-post {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-prime);
  color: var(--text-main);
}

.blog-post h1 { color: var(--accent-emerald); }
.blog-post h2 { margin-top: 30px; color: var(--accent-orange); }
.meta { color: var(--text-muted); font-style: italic; }
.references a { color: var(--accent-emerald); text-decoration: none; }
.references a:hover { text-decoration: underline; }
/* Responsive adjustments for images and lists within the blog */
.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-prime);
  margin: 20px 0;
}

.blog-post ul {
  padding-left: 20px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-post li {
  margin-bottom: 10px;
  color: var(--text-main);
}

.blog-post p {
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Add this to your style.css */
.blog-container {
    max-width: 750px; /* Constrains line length for readability */
    margin: 0 auto;   /* Centers the content */
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03); /* Subtle glass effect */
    border-radius: 20px;
    line-height: 1.8;   /* Increases readability */
    color: #e2e8f0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.meta {
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 20px;
}

/* Ensure the image stays within the box */
.blog-post img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Gallery Masonry Layout */
.gallery-container {
    display: columns;
    column-count: 3;
    column-gap: 15px;
    padding: 20px;
}

.photo-item {
    margin-bottom: 15px;
    break-inside: avoid;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
}

.photo-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
}


/* ============================================================================
   SECTION 7: RESPONSIVE OVERRIDES (Easiest Practice)
   ============================================================================ */

/* 1. TABLETS (968px and down) */
@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .bento-lifestyle-grid { grid-template-columns: 1fr; }
  .bento-box.wide { grid-column: span 1; }
}

/* 2. MOBILE PHONES (600px and down) */
@media (max-width: 600px) {
  .main-header { padding: 1rem; }
  .nav-link { font-size: 0.7rem; padding: 0.4rem; }
  .hero-text h1 { font-size: 2rem; }
  .toolkit, .mission-vision { grid-template-columns: 1fr; }
}

/* ============================================================================
   RESPONSIVE OVERRIDES
   ============================================================================ */

/* 1. TABLET VIEW (Targets iPads and smaller laptops) */
@media (max-width: 1024px) {
  /* Reduce side padding so content has more room */
  body { padding: 0 1rem; }
  
  /* Make your grid a bit more compact */
  .bento-grid { 
    grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 3 or 4 */
  }
}

/* 2. MOBILE VIEW (Targets all phones) */
@media (max-width: 600px) {
  /* Stack everything into 1 column for phones */
  .bento-grid { 
    grid-template-columns: 1fr; 
  }
}

---

### Key Upgrades Implemented:
1. **Secure Contrast Upgrade:** In `style.css` (Section 8), we swapped the semi-transparent contact card backgrounds with a solid, lightless slate carbon tone (`#090f18`). This guarantees that your neon icons and readable gray texts are completely protected from the dynamic stellar nebulae pulsing underneath them.
2. **Fixed Black Hole Positioning:** Moved `.distant-black-hole` into a `position: fixed` layer. This anchors the warping singularity safely in the background canvas on the right side of the desktop viewport (`right: 8%`, `top: 45%`). It will float there elegantly as the user scrolls, perfectly balanced against the page text, with `z-index: -1` to prevent unwanted overlap issues.
3. **No Crop Framework:** Re-styled the photo container using `object-fit: contain` with a smooth matching backdrop. Your portrait will fit perfectly in the frame without getting clipped.
4. **Clean Duplicate Removal:** Cleaned out all legacy sections in `index.html` to eliminate duplicates. There is now only one optimized About section and one single Contact section at the bottom of the page.
5. **Polished Planet Earth Statement:** Injected your inspiring quote into the contact subtitle, rendering it in a crisp, bright slate-gray format!