/* Contact widget - smaller on tiny screens */
  .contact-widget-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .contact-widget-modal {
    bottom: 65px;
    width: calc(100vw - 30px);
    max-width: 280px;
    padding: 28px 15px 15px;
    font-size: 0.85rem;
  }

  .contact-widget-modal a {
    font-size: 0.85rem;
  }/* =================================
   GENERAL STYLES
   ================================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: -1;
}

/* =================================
   BACKGROUND ELEMENTS
   ================================= */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* =================================
   NAVIGATION
   ================================= */
nav.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 10;
  padding: 15px 30px;
  transition: all 0.5s ease;
  box-sizing: border-box;
}

.navbar-logo {
  position: absolute;
  left: 30px;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(270deg, #8e2de2, #ff6a00, #ff0080);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 20s ease infinite;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navbar-logo.visible {
  opacity: 1;
  transform: scale(1);
}

nav.navbar ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

nav.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s, text-shadow 0.3s;
  white-space: nowrap;
}

nav.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #ff0080;
  transition: width 0.3s;
}

nav.navbar a:hover::after {
  width: 100%;
}

nav.navbar a:hover {
  color: #ff0080;
  text-shadow: 0 0 15px #ff0080, 0 0 25px #ff0080;
}

/* =================================
   HERO SECTION
   ================================= */
.center-content {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  z-index: 2;
  padding: 0 10px;
}

.midnight-title {
  font-size: 8rem;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(270deg, #8e2de2, #ff6a00, #ff0080);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 20s ease infinite;
  text-shadow: 0 0 10px rgba(255, 0, 150, 0.7), 0 0 20px rgba(255, 100, 0, 0.6);
  transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.midnight-title.shrinking {
  transform: scale(0.25) translate(-250px, -320px);
  opacity: 0;
  pointer-events: none;
}

.tagline {
  font-size: 1.8rem;
  background: linear-gradient(270deg, #ffffff, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 252, 254, 0.7), 0 0 30px rgb(255, 255, 255);
  letter-spacing: 2px;
  transition: all 0.8s ease;
  opacity: 1;
}

.tagline.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* =================================
   BUTTONS
   ================================= */
.btn {
  padding: 12px 30px;
  background: linear-gradient(270deg, #8e2de2, #ff6a00, #ff0080);
  color: white;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255, 0, 150, 0.7);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.8s ease;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 0, 150, 1);
}

.btn.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.resume-btn {
  display: block;
  margin: 40px auto;
  padding: 10px 24px;
  font-size: 1rem;
  background: linear-gradient(270deg, #8e2de2, #ff6a00, #ff0080);
  color: white;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255, 0, 150, 0.7);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.resume-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 0, 150, 1);
}

/* =================================
   SOCIAL ICONS
   ================================= */
.social-icons {
  display: flex;
  gap: 25px;
  transition: all 0.8s ease;
}

.social-icons.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.social-icons a {
  font-size: 2rem;
  transition: transform 0.3s, text-shadow 0.3s, color 0.3s;
}

.social-icons a:nth-child(1) { color: #E1306C; }
.social-icons a:nth-child(2) { color: #1DA1F2; }
.social-icons a:nth-child(3) { color: #0077B5; }
.social-icons a:nth-child(4) { color: #1877F2; }

.social-icons a:hover {
  transform: scale(1.3);
  text-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
}

/* =================================
   SCROLL INDICATOR
   ================================= */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  transition: all 0.8s ease;
}

.scroll-indicator.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.scroll-indicator i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* =================================
   AUDIO CONTROLS
   ================================= */
.audio-controls {
  position: fixed;
  bottom: 80px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 9999;
}

.mute-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  z-index: 2;
}

.mute-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
}

.volume-control {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1;
}

.audio-controls:hover .volume-control,
.audio-controls:focus-within .volume-control {
  opacity: 1;
  pointer-events: auto;
}

.volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(270deg, #8e2de2, #ff6a00, #ff0080);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 0, 150, 0.8);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(270deg, #8e2de2, #ff6a00, #ff0080);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255, 0, 150, 0.8);
}

.volume-icon {
  color: #fff;
  font-size: 1rem;
}

/* =================================
   CONTENT SECTIONS
   ================================= */
.content-section {
  position: relative;
  z-index: 2;
  padding: 100px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.overlay-section {
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  color: #fff;
  padding-top: 20px;
  margin-bottom: -30px;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 50px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.section-title.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* =================================
   ABOUT SECTION
   ================================= */
.about-section {
  text-align: center;
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.about-inner.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(255, 0, 200, 0.6);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.about-text p {
  font-size: 1.2rem;
  color: #ddd;
  line-height: 1.8;
  max-width: 800px;
}

.highlight {
  color: #ff0080;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 0, 150, 0.8);
}

/* =================================
   SKILLS SECTION
   ================================= */
.skills-section {
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-category {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.skill-category.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.skill-icon {
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.skill-icon.aws { color: #FF9900; }
.skill-icon.react { color: #61DAFB; }
.skill-icon.js { color: #F7DF1E; }
.skill-icon.python { color: #3776AB; }
.skill-icon.html { color: #E34F26; }
.skill-icon.css { color: #1572B6; }
.skill-icon.node { color: #339933; }
.skill-icon.git { color: #F05032; }
.skill-icon.docker { color: #2496ED; }
.skill-icon.database { color: #336791; }
.skill-icon.ai { color: #FF6B35; }
.skill-icon.cloud { color: #4285F4; }

.skill-info {
  flex: 1;
  text-align: left;
}

.skill-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #8e2de2, #ff6a00, #ff0080);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skill-percentage {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 5px;
}

/* =================================
   TECH BADGES
   ================================= */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 30px 0;
}

.tech-badge {
  position: relative;
  background: linear-gradient(270deg, #8e2de2, #ff6a00, #ff0080);
  color: #fff;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.tech-badge:hover {
  transform: scale(1.1);
}

.tech-badge-tooltip {
  display: none;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(255, 0, 150, 0.2);
  z-index: 10;
}

.tech-badge:hover .tech-badge-tooltip {
  display: block;
}

/* =================================
   WORKS/PORTFOLIO GRID
   ================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 0 0 50px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.8s ease;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(50px);
}

.card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: scale(1.05) rotate(-1deg) translateY(0);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.card img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.2rem;
  color: #00e5ff;
  margin: 10px 0;
}

.card p {
  font-size: 0.9rem;
  color: #ccc;
}

/* =================================
   TESTIMONIALS
   ================================= */
.testimonials-section {
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 20px;
  text-align: center;
}

.testimonials-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #ff0080;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  max-width: 350px;
  box-shadow: 0 0 20px rgba(255, 0, 150, 0.1);
  font-size: 1.1rem;
  color: #fff;
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-size: 2.5rem;
  color: #ff0080;
  position: absolute;
  left: 16px;
  top: 10px;
}

.testimonial-author {
  margin-top: 18px;
  font-weight: bold;
  color: #ff6a00;
  font-size: 1rem;
}

/* =================================
   PORTFOLIO CAROUSEL
   ================================= */
.portfolio-section {
  background: rgba(0, 0, 0, 0.5);
  padding: 60px 20px;
  text-align: center;
}

.portfolio-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #00e5ff;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-btn {
  background: #ff0080;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.carousel-btn:hover {
  background: #ff6a00;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  max-width: 350px;
  width: 100%;
  box-shadow: 0 0 20px rgba(255, 0, 150, 0.1);
  font-size: 1rem;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-item img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
}

.carousel-item-title {
  font-weight: bold;
  color: #ff0080;
  margin-bottom: 8px;
}

.carousel-item-desc {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.carousel-item-link {
  color: #00e5ff;
  text-decoration: underline;
  font-size: 0.95rem;
}

/* =================================
   BLOG SECTION
   ================================= */
.blog-section {
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 20px;
  text-align: center;
}

.blog-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #8e2de2;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.blog-post {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  max-width: 350px;
  box-shadow: 0 0 20px rgba(255, 0, 150, 0.1);
  font-size: 1rem;
  color: #fff;
  text-align: left;
}

.blog-post-title {
  font-weight: bold;
  color: #ff6a00;
  margin-bottom: 8px;
}

.blog-post-link {
  color: #00e5ff;
  text-decoration: underline;
  font-size: 0.95rem;
}

/* =================================
   TIMELINE
   ================================= */
.timeline-section {
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 20px;
  text-align: center;
}

.timeline-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #00e5ff;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(270deg, #8e2de2, #ff6a00, #ff0080);
  transform: translateX(-50%);
}

.timeline-event {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-event.left {
  left: 0;
  text-align: right;
}

.timeline-event.right {
  left: 50%;
  text-align: left;
}

.timeline-event-content {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 150, 0.1);
  position: relative;
}

.timeline-event-date {
  font-weight: bold;
  color: #ff0080;
  margin-bottom: 6px;
}

.timeline-event-title {
  font-size: 1.1rem;
  color: #00e5ff;
  margin-bottom: 4px;
}

.timeline-event-desc {
  font-size: 0.95rem;
}

/* =================================
   ACHIEVEMENTS
   ================================= */
.achievements-section {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px 15px;
  text-align: center;
  overflow-x: hidden;
}

.achievements-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

.achievement {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 15px;
  min-width: 150px;
  flex: 1 1 280px;
  max-width: 320px;
  font-size: 2.5rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 150, 0.1);
  font-weight: bold;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.achievement > div:first-child {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.achievement-label {
  font-size: 0.95rem;
  color: #ff6a00;
  font-weight: normal;
  display: block;
  line-height: 1.4;
  margin-top: 8px;
}

/* =================================
   FEED SECTION
   ================================= */
.feed-section {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px 20px;
  text-align: center;
}

.feed-title {
  font-size: 2rem;
  color: #00e5ff;
  margin-bottom: 18px;
}

.feed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.feed-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  font-size: 1rem;
  min-width: 220px;
  box-shadow: 0 0 10px rgba(255, 0, 150, 0.1);
}

.feed-item-link {
  color: #00e5ff;
  text-decoration: underline;
  font-size: 0.95rem;
}

/* =================================
   LIGHTBOX/MODALS
   ================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox iframe {
  width: 80%;
  height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

.lightbox .close:hover {
  color: #ff0080;
}

.contact-content {
  padding: 40px;
  border-radius: 20px;
  max-width: 400px;
  text-align: center;
}

.contact-content h2 {
  margin-bottom: 20px;
  color: #ff0080;
}

.contact-content p {
  margin: 10px 0;
  font-size: 1.1rem;
}

.contact-content a {
  color: #00e5ff;
  text-decoration: none;
}

.contact-content a:hover {
  text-decoration: underline;
}

/* =================================
   POPUP/MODAL
   ================================= */
.funny-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.funny-modal-content {
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
  color: #fff;
  padding: 50px 35px 25px;
  border-radius: 20px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  font-size: 1.1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  animation: popIn 0.25s ease forwards;
  position: relative;
  line-height: 1.6;
}

.funny-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, color 0.2s;
  line-height: 1;
  font-weight: bold;
}

.funny-modal-close:hover {
  transform: scale(1.2) rotate(90deg);
  color: #ffff00;
}

#funnyModalText {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =================================
   THEME TOGGLE
   ================================= */
.mode-toggle {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 9999;
  background: #222;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
}

body.light-mode {
  background: #f7f7f7;
  color: #222;
}

body.light-mode .navbar,
body.light-mode .content-section,
body.light-mode .testimonials-section,
body.light-mode .portfolio-section,
body.light-mode .blog-section,
body.light-mode .skills-section {
  background: rgba(255, 255, 255, 0.85);
  color: #222;
}

body.light-mode .mode-toggle {
  background: #fff;
  color: #222;
  border-color: #222;
}

/* =================================
   CONTACT WIDGET
   ================================= */
.contact-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9998;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.contact-widget.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-widget-btn {
  background: #ff0062;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}

.contact-widget-btn:hover {
  background: #ff0080;
  transform: scale(1.05);
}

.contact-widget-modal {
  display: none;
  position: fixed;
  bottom: 100px;
  left: 30px;
  background: rgba(34, 34, 34, 0.98);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 16px;
  padding: 35px 20px 20px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
  z-index: 9999;
  min-width: 280px;
  max-width: 350px;
  line-height: 1.6;
}

.contact-widget-modal.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-widget-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
  font-weight: bold;
}

.contact-widget-close:hover {
  color: #ff0080;
  transform: scale(1.2) rotate(90deg);
}

.contact-widget-modal div {
  margin-bottom: 12px;
}

.contact-widget-modal a {
  color: #00e5ff;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}

.contact-widget-modal a:hover {
  color: #ff0080;
  text-decoration: underline;
}

.contact-widget-modal strong {
  color: #ff6a00;
  display: inline-block;
  margin-right: 5px;
}

/* =================================
   404 PAGE
   ================================= */
.notfound-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
}

.notfound-title {
  font-size: 4rem;
  color: #ff0080;
  margin-bottom: 20px;
}

.notfound-desc {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.notfound-link {
  color: #00e5ff;
  text-decoration: underline;
  font-size: 1.1rem;
}

/* =================================
   FOOTER
   ================================= */
footer {
  text-align: center;
  padding: 20px;
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

footer.animate-in {
  opacity: 1;
  transform: translateY(0);
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* =================================
   ACCESSIBILITY
   ================================= */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #ff0080;
  outline-offset: 2px;
}

button:focus,
button:active,
a:focus,
a:active {
  outline: none;
  box-shadow: none;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 768px) {
  .midnight-title {
    font-size: 4rem;
  }

  .midnight-title.shrinking {
    transform: scale(0.4) translate(-150px, -200px);
  }

  .tagline {
    font-size: 1.2rem;
  }

  .social-icons a {
    font-size: 1.5rem;
  }

  .works-grid {
    padding: 0 20px;
    gap: 20px;
  }

  nav.navbar {
    padding: 12px 10px;
    flex-direction: column;
    gap: 10px;
  }

  nav.navbar ul {
    gap: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 5px;
  }

  nav.navbar li {
    flex-shrink: 0;
  }

  nav.navbar a {
    font-size: 0.85rem;
    padding: 5px 8px;
  }

  .navbar-logo {
    font-size: 1.5rem;
    left: auto;
    position: static;
    margin-bottom: 5px;
  }

  .navbar-logo.visible {
    display: block;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .carousel {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 10px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .carousel-item {
    max-width: calc(100vw - 120px);
    padding: 20px 15px;
  }

  .carousel-item img {
    max-height: 200px;
    object-fit: contain;
  }

  .testimonial-list {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  .testimonial {
    max-width: 100%;
    padding: 30px 20px 20px;
  }

  /* Achievements - stack vertically on mobile */
  .achievements-list {
    flex-direction: column;
    gap: 15px;
    padding: 0 5px;
  }

  .achievement {
    width: calc(100% - 10px);
    max-width: 100%;
    min-width: auto;
    flex: 1 1 auto;
    margin: 0 auto;
    font-size: 2rem;
  }

  .achievement > div:first-child {
    font-size: 2rem;
  }

  .achievement-label {
    font-size: 0.9rem;
  }

  /* Adjust section padding on mobile */
  .content-section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Timeline adjustments */
  .timeline::before {
    left: 20px;
  }

  .timeline-event {
    width: 100%;
    padding: 10px 10px 10px 50px;
    left: 0 !important;
    text-align: left !important;
  }

  /* Contact widget positioning on mobile */
  .contact-widget {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
  }

  .contact-widget.visible {
    transform: translateX(-50%) translateY(0);
  }

  .contact-widget-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .contact-widget-modal {
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    min-width: auto;
    width: calc(100vw - 40px);
    max-width: 320px;
    padding: 30px 18px 18px;
    font-size: 0.9rem;
  }

  .contact-widget-modal strong {
    display: block;
    margin-bottom: 3px;
  }

  .contact-widget-modal div {
    margin-bottom: 15px;
  }

  .contact-widget-close {
    font-size: 1.5rem;
    top: 8px;
    right: 12px;
  }

  /* Audio controls on mobile */
  .audio-controls {
    bottom: 70px;
    right: 20px;
  }

  .mute-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  /* Tech badges wrap better */
  .tech-badges {
    gap: 12px;
  }

  .tech-badge {
    padding: 6px 14px;
    font-size: 0.9rem;
  }

  /* Modal adjustments */
  .funny-modal-content {
    width: 90%;
    max-width: 350px;
    padding: 40px 25px 20px;
  }

  #funnyModalText {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .midnight-title {
    font-size: 3rem;
  }

  .midnight-title.shrinking {
    transform: scale(0.5) translate(-100px, -150px);
  }

  .tagline {
    font-size: 1rem;
    padding: 0 20px;
  }

  .social-icons {
    gap: 20px;
  }

  .social-icons a {
    font-size: 1.3rem;
  }

  nav.navbar ul {
    gap: 8px;
    font-size: 0.75rem;
    padding: 0 5px;
  }

  nav.navbar a {
    font-size: 0.75rem;
    padding: 4px 6px;
  }

  .navbar-logo {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .achievement {
    font-size: 1.8rem;
    padding: 18px 12px;
    width: calc(100% - 10px);
  }

  .achievement > div:first-child {
    font-size: 1.8rem;
  }

  .achievement-label {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .testimonials-title,
  .portfolio-title,
  .blog-title,
  .timeline-title {
    font-size: 1.8rem;
  }

  .testimonial {
    font-size: 1rem;
    padding: 25px 15px 15px;
  }

  .testimonial::before {
    font-size: 2rem;
    left: 10px;
    top: 5px;
  }

  /* Carousel buttons smaller */
  .carousel {
    gap: 8px;
    padding: 0 5px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .carousel-item {
    max-width: calc(100vw - 100px);
    padding: 18px 12px;
  }

  .carousel-item-title {
    font-size: 1rem;
  }

  .carousel-item-desc {
    font-size: 0.9rem;
  }

  /* Feed items full width */
  .feed-item {
    min-width: 100%;
  }

  /* Resume button */
  .resume-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  /* Footer text size */
  footer {
    font-size: 0.85rem;
    padding: 15px;
  }
}
/* Custom cursor - hidden by default, shown only on larger screens 
.cursor,
.cursor-dot {
  display: none;
}

@media (min-width: 769px) {
  .cursor {
    display: block;
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 0, 150, 0.8);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    box-shadow: 0 0 20px rgba(255, 0, 150, 0.6);
  }

  .cursor-dot {
    display: block;
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.05s ease;
  }

  .cursor.hover {
    transform: scale(2);
    background: rgba(255, 106, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.8);
  }
}
  */