/* ==========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ========================================== */

/* Prevent text overflow issues */
* {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p, span, a, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Base Styles (Mobile First - 320px+) */
@media (max-width: 767px) {
html {
  font-size: 62.5%; /* 1rem = 10px for consistent sizing */
}

.container {
  padding: 0 2rem;
  max-width: 100%;
}

/* Navigation - Mobile */
.nav-container {
  padding: 0 1.5rem;
  height: 60px;
  gap: 1rem;
}

.nav-logo .logo-text {
  font-size: 1.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.nav-logo {
  flex-shrink: 0;
  min-width: fit-content;
}

.nav-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 60px);
  background: var(--bg-primary);
  backdrop-filter: blur(20px);
  flex-direction: column;
  justify-content: start;
  align-items: center;
  padding: 4rem 0;
  gap: 2rem;
  transition: left var(--transition-normal);
  z-index: 999;
}

.nav-menu.active {
  left: 0;
}

.nav-menu .nav-link {
  font-size: 2rem;
  padding: 1rem;
}

.theme-toggle {
  margin-left: 0;
  margin-top: 2rem;
}

.hamburger {
  display: flex;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section - Mobile */
.hero {
  min-height: 90vh;
  padding: 140px 0 40px !important;
  padding-top: 140px !important;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5rem);
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 3rem;
  word-wrap: break-word;
  line-height: 1.3;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-cta {
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.btn {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

/* Section Spacing - Mobile */
.hero,
.about,
.portfolio,
.playground,
.contact {
  padding: 4rem 0 3rem;
}

/* Alternating section backgrounds for visual separation */
.about,
.playground {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

[data-theme="dark"] .about,
[data-theme="dark"] .playground {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .about,
[data-theme="light"] .playground {
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio,
.contact {
  background: transparent;
}

.section-header {
  margin-bottom: 2.4rem;
}

.section-title {
  font-size: clamp(2.8rem, 8vw, 4rem);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.6rem;
}

/* About Section - Mobile */
.about {
  margin-bottom: 0;
  padding-bottom: 4rem;
}

.about-content {
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: left;
}

.about-left {
  order: 1;
  padding-right: 0;
  margin-bottom: 3.2rem;
}

.about-right {
  order: 2;
  padding-left: 0;
  margin-top: 3rem;
}

.left-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.personal-intro {
  margin-bottom: 2rem;
}

.profile-photo {
  margin-bottom: 1.6rem;
}

.intro-text {
  padding: 0;
  margin-bottom: 0;
}

.intro-text h4 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.intro-text p {
  font-size: 1.35rem;
  line-height: 1.7;
}

.academic-highlight {
  padding: 2.4rem 2rem 2rem 2rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.academic-icons {
  justify-content: center;
  margin-bottom: 1.6rem;
}

.academic-icons i {
  font-size: 2rem;
}

.academic-content h4 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

.degree-info {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.thesis-section {
  padding: 1.6rem;
  margin-top: 1.6rem;
  border-radius: 12px;
}

.thesis-label {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.thesis-title {
  font-size: 1.25rem;
  line-height: 1.7;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0;
  width: 100%;
}

.stat-item {
  padding: 1.2rem 0.8rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  width: 100%;
  box-sizing: border-box;
}

.stat-number {
  font-size: 3.2rem;
  margin-bottom: 0.4rem;
  display: block;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  line-height: 1.2;
  display: block;
  word-wrap: break-word;
  hyphens: auto;
}

.skills-hub {
  min-height: auto;
  padding: 2.4rem 0 0 0;
  margin-bottom: 0;
  margin-top: 0;
}

.skills-hub h3 {
  font-size: 2.4rem;
  margin-bottom: 2.4rem;
  text-align: center;
  font-weight: 700;
}

.skill-groups {
  gap: 3rem;
  display: flex;
  flex-direction: column;
}

.skill-group {
  margin-bottom: 0;
}

.skill-group h4 {
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
  text-align: center;
  font-weight: 600;
  display: block;
  width: 100%;
}

.skill-chips {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

.floating-skills {
  height: auto;
  min-height: 300px;
  padding: 2rem 1.6rem;
}

.skill-bubble {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding: 0.9rem 1.5rem;
  animation: none !important;
  white-space: nowrap;
  border-radius: 12px;
}

.skill-bubble:nth-child(n) {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

.floating-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.2rem;
  height: auto;
  min-height: auto;
}

.fun-fact-icon {
  width: 50px;
  height: 50px;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.animated-stats {
  gap: 0;
  padding: 2rem;
  margin-bottom: 2.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 107, 53, 0.15);
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.animated-stat {
  padding: 1.5rem;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
}

/* Portfolio Section - Mobile */
.portfolio {
  padding: 7rem 0 3rem;
}

.portfolio-visual-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: auto !important;
  gap: 0.8rem !important;
  margin: 1rem 0 !important;
}

.portfolio-item {
  height: 140px !important;
  border-radius: 10px;
  overflow: hidden;
}

.portfolio-item.featured {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  height: 160px !important;
}

.portfolio-visual {
  height: 100% !important;
  min-height: auto !important;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.portfolio-visual video,
.portfolio-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: absolute;
  top: 0;
  left: 0;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: 1 !important;
  display: flex !important;
  visibility: visible !important;
  pointer-events: none;
}

.video-play-overlay i {
  font-size: 2rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.portfolio-overlay {
  padding: 0.8rem !important;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 70%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  z-index: 2;
}

.portfolio-overlay h3 {
  font-size: 1.6rem !important;
  margin-bottom: 0.2rem !important;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

.portfolio-overlay p {
  font-size: 1.3rem !important;
  opacity: 0.9;
  line-height: 1.3;
  word-wrap: break-word;
}

.pdf-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
}

.pdf-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: white;
}

.pdf-cover {
  font-size: 1.6rem;
  color: white;
  font-weight: 600;
}

.video-error-fallback {
  padding: 2rem !important;
  display: flex !important;
}

.video-error-fallback[style*="display: none"] {
  display: none !important;
}

.video-error-fallback:not([style*="display: none"]) {
  display: flex !important;
}

.video-error-fallback h4 {
  font-size: 1.6rem !important;
  margin-bottom: 0.8rem;
}

.video-error-fallback p {
  font-size: 1.3rem !important;
}

.video-error-fallback small {
  font-size: 1.1rem !important;
}

.portfolio-cta {
  margin-top: 4rem;
  padding: 0 1rem;
}

.portfolio-buttons {
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.view-work-btn,
.view-experience-btn,
.view-influencer-btn {
  width: 100% !important;
  max-width: none !important;
  min-width: auto !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 2rem !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent !important;
}

.view-work-btn::before,
.view-experience-btn::before,
.view-influencer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.view-work-btn:active::before,
.view-experience-btn:active::before,
.view-influencer-btn:active::before {
  left: 100%;
}

.view-work-btn {
  background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}

.view-work-btn span,
.view-experience-btn span,
.view-influencer-btn span {
  flex: 1;
  text-align: left;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 0.3px;
}

.view-work-btn i,
.view-experience-btn i,
.view-influencer-btn i {
  font-size: 1.8rem;
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.view-experience-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F97316 50%, #FB923C 100%) !important;
  color: white !important;
  border-color: rgba(255, 107, 53, 0.3) !important;
}

.view-influencer-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.view-experience-btn:active {
  background: linear-gradient(135deg, #F97316 0%, #FF6B35 50%, #FB923C 100%) !important;
  transform: translateY(2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 1px 4px rgba(0,0,0,0.1) !important;
}

.view-work-btn:active,
.view-influencer-btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 1px 4px rgba(0,0,0,0.1) !important;
}

.view-work-btn:active i,
.view-experience-btn:active i,
.view-influencer-btn:active i {
  transform: translateX(5px) scale(1.1);
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-top: 2rem;
  opacity: 0.8;
  text-align: center;
  line-height: 1.5;
}

.portfolio-carousel {
  max-width: 100%;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 2rem;
}

.project-metrics {
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.metric {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  text-align: center;
}

.project-tags {
  justify-content: center;
}

.carousel-controls {
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
}

/* Playground Section - Mobile */
.playground-tabs {
  flex-direction: row;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.tab-btn {
  padding: 1.2rem 1.5rem;
  font-size: 1.3rem;
  border-radius: 16px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 130px;
  white-space: normal;
  line-height: 1.3;
  font-weight: 600;
}

.tab-btn i {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.facts-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.fact-card {
  padding: 1.5rem;
}

.fact-icon {
  font-size: 2.5rem;
}

.marketing-jokes {
  padding: 1.5rem;
  margin-top: 2rem;
}

.joke-carousel {
  max-width: 100%;
}

.carousel-controls {
  gap: 0.5rem;
}

/* Funnel Builder - Mobile */
.funnel-builder {
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
}

.funnel-sidebar h3,
.funnel-canvas h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.funnel-element {
  padding: 1rem;
  font-size: 1.4rem;
}

.funnel-drop-zone {
  min-height: 300px;
  padding: 1.5rem;
}

/* ROI Calculator - Mobile */
.roi-calculator h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.calculator-form {
  gap: 1.5rem;
}

.input-group input {
  padding: 1rem;
  font-size: 1.4rem;
}

.roi-results {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.result-card {
  padding: 1.5rem;
}

.result-value {
  font-size: 2rem;
}

/* Marketing Quiz - Mobile */
.marketing-quiz h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.quiz-question {
  padding: 2rem;
}

.quiz-question h4 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.quiz-options {
  gap: 1rem;
}

.quiz-option {
  padding: 1.2rem;
  font-size: 1.4rem;
}

.quiz-results {
  padding: 2rem;
}

.score-value {
  font-size: 2.4rem;
}

/* Contact Section - Mobile */
.contact-content {
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-info {
  gap: 1.5rem;
}

.contact-card {
  padding: 1.5rem 1rem;
  border-radius: 12px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.resume-link {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
  margin-bottom: 0.3rem;
}

.resume-link:hover {
  color: var(--vibrant-orange);
  text-decoration: underline;
}

.calendly-link {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.calendly-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-icons {
  gap: 1.5rem;
}

.social-link {
  width: 45px;
  height: 45px;
  font-size: 1.8rem;
}

.contact-form-container {
  padding: 2rem;
  display: none !important;
}

.contact-form {
  gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  font-size: 1.4rem;
}

/* Footer - Mobile */
.footer-content {
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.footer-brand h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.footer-brand p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.footer-links a {
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 1rem;
  opacity: 0.6;
}

/* Experience Page - Mobile */
.highlights-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}

.expertise-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}

.education-section {
  padding: 4rem 0 !important;
}

.education-main {
  padding: 2rem 1.5rem !important;
  margin-bottom: 2rem !important;
}

.education-content {
  margin-top: 2rem !important;
}

/* ==========================================
   TABLET STYLES (768px+)
   ========================================== */

@media (min-width: 768px) {
  html {
    font-size: 60%;
  }

  .container {
    padding: 0 3rem;
  }

  /* Navigation - Tablet */
  .nav-container {
    padding: 0 3rem;
    height: 70px;
  }

  .nav-logo .logo-text {
    font-size: 2rem;
  }

  .hamburger {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    height: auto;
    background: transparent;
    padding: 0;
    gap: 2rem;
    left: 0;
  }

  .nav-menu .nav-link {
    font-size: 1.5rem;
    padding: 0;
  }

  .theme-toggle {
    margin-left: 2rem;
    margin-top: 0;
  }

  /* Hero Section - Tablet */
  .hero {
    min-height: 100vh;
    padding: var(--section-padding);
  }

  .hero-stats {
    flex-direction: row;
    gap: 3rem;
  }

  .hero-cta {
    flex-direction: row;
    gap: 2rem;
  }

  .btn {
    width: auto;
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
  }

  /* About Section - Tablet */
  .about-content {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .fun-fact {
    flex-direction: row;
    text-align: left;
    padding: 2.5rem;
  }

  .animated-stat {
    flex-direction: row;
    text-align: left;
    padding: 2rem;
  }

  /* Portfolio Section - Tablet */
  .project-content {
    padding: 2.5rem;
  }

  .project-metrics {
    flex-direction: row;
    gap: 1.5rem;
  }

  /* Playground Section - Tablet */
  .playground-tabs {
    flex-direction: row;
    justify-content: center;
  }

  .tab-btn {
    width: auto;
  }

  .funnel-builder {
    grid-template-columns: 250px 1fr;
    padding: 2.5rem;
  }

  .roi-results {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  /* Contact Section - Tablet */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .contact-form-container {
    padding: 2.5rem;
  }

  /* Footer - Tablet */
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-links {
    flex-direction: row;
    gap: 2rem;
  }

  /* Industry Expertise - Tablet/Desktop */
  .expertise-carousel {
    max-width: 100%;
  }

  .expertise-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    min-height: auto;
    overflow: visible;
  }

  .expertise-slide,
  .expertise-slide:first-child {
    position: static !important;
    opacity: 1 !important;
    display: block !important;
    pointer-events: auto !important;
  }

  .expertise-carousel-controls {
    display: none;
  }
}

/* ==========================================
   DESKTOP STYLES (1024px+)
   ========================================== */

@media (min-width: 1024px) {
  html {
    font-size: 62.5%;
  }

  .container {
    padding: 0 2rem;
  }

  /* Hero Section - Desktop */
  .hero-stats {
    gap: 4rem;
  }

  /* About Section - Desktop */
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }

  .fun-fact {
    padding: 2.5rem;
  }

  .animated-stat {
    padding: 2rem;
  }

  /* Playground Section - Desktop */
  .funnel-builder {
    grid-template-columns: 300px 1fr;
    padding: 3rem;
  }

  /* Industry Expertise - Desktop */
  .expertise-carousel {
    max-width: 100%;
  }

  .expertise-track {
    min-height: 420px;
  }

  .expertise-item {
    padding: 2rem 1.6rem;
  }

  /* Contact Section - Desktop */
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }

  .contact-form-container {
    padding: 3rem;
  }
}

/* ==========================================
   LARGE DESKTOP STYLES (1200px+)
   ========================================== */

@media (min-width: 1200px) {
  .section-header {
    margin-bottom: 8rem;
  }

  .hero-cta {
    gap: 2rem;
  }

  .about-content {
    gap: 6rem;
  }

  .contact-info {
    gap: 3rem;
  }
}

/* ==========================================
   EXTRA LARGE SCREENS (1440px+)
   ========================================== */

@media (min-width: 1440px) {
  .hero-subtitle {
    max-width: 700px;
  }

  .section-subtitle {
    max-width: 700px;
  }
}

/* ==========================================
   ULTRA WIDE SCREENS (1920px+)
   ========================================== */

@media (min-width: 1920px) {
  html {
    font-size: 70%;
  }

  .container {
    max-width: 1400px;
  }
}

/* ==========================================
   HIGH DPI DISPLAYS
   ========================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high DPI displays */
  .btn {
    border-radius: 50px;
  }
  
  .contact-icon,
  .social-link {
    border-radius: 50%;
  }
  
  .project-card,
  .contact-card,
  .funnel-element {
    border-radius: 20px;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .nav,
  .hamburger,
  .scroll-indicator,
  .cursor,
  .cursor-follower,
  #loading-screen,
  .carousel-controls,
  .playground-tabs,
  .theme-btn {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    page-break-after: always;
  }
  
  .section-title {
    color: #333 !important;
  }
  
  .btn {
    border: 2px solid #333 !important;
    color: #333 !important;
    background: transparent !important;
  }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Focus states for keyboard navigation */
@media (min-width: 768px) {
  .nav-link:focus,
  .btn:focus,
  .social-link:focus,
  .carousel-btn:focus,
  .tab-btn:focus,
  .quiz-option:focus,
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
  }
}

/* Ensure adequate touch targets on mobile */
@media (max-width: 767px) {
  .btn,
  .nav-link,
  .social-link,
  .carousel-btn,
  .tab-btn,
  .quiz-option,
  .funnel-element {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Landscape orientation on mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
    padding: 60px 0 20px;
  }
  
  .nav-menu {
    height: calc(100vh - 60px);
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

/* Small height screens */
@media (max-height: 600px) {
  .hero {
    min-height: 90vh;
  }
  
  .hero-stats {
    margin-bottom: 2rem;
  }
  
  .hero-cta {
    margin-bottom: 2rem;
  }
}

/* Portfolio CTA Responsive Styles */
@media (max-width: 768px) {
  .portfolio-cta {
    margin-top: 3rem;
    padding: 1.5rem 0;
  }
  
  .view-work-btn,
  .view-experience-btn,
  .view-influencer-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    gap: 0.8rem;
  }
  
  .cta-subtitle {
    font-size: 0.9rem;
    margin-top: 0.8rem;
  }
}

@media (max-width: 480px) {
  .portfolio-cta {
    margin-top: 2rem;
    padding: 1rem 0;
  }
  
  .view-work-btn,
  .view-experience-btn,
  .view-influencer-btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    gap: 0.6rem;
  }
  
  .view-work-btn span,
  .view-experience-btn span,
  .view-influencer-btn span {
    font-size: 0.95rem;
  }
}

/* Facts Carousel Responsive */
@media (max-width: 768px) {
  .icon-decorations {
    display: none;
  }
  
  .icon-3d {
    font-size: 2.5rem;
    animation: none !important;
  }
  
  .facts-carousel {
    max-width: 90%;
  }
  
  .carousel-track {
    height: 380px;
  }
  
  .fact-card {
    padding: 2rem 1.5rem;
  }
  
  .fact-card h3 {
    font-size: 1.6rem;
  }
  
  .fact-card p {
    font-size: 1.2rem;
  }
  
  .facts-carousel-controls {
    gap: 1.5rem;
  }
  
  .facts-prev,
  .facts-next {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .icon-decorations {
    display: none;
  }
  
  .icon-3d {
    font-size: 2rem;
    animation: none !important;
  }
  
  .carousel-track {
    height: 350px;
  }
  
  .fact-card {
    padding: 1.5rem 1rem;
  }
  
  .fact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .fact-card p {
    font-size: 1.1rem;
  }
  
  .fact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .fact-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .facts-carousel-controls {
    gap: 1rem;
  }
  
  .facts-prev,
  .facts-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* FINAL DARK MODE TEXT FIX - RESPONSIVE CSS OVERRIDE */
[data-theme="dark"] *:not(.section-title):not(.orange-accent) {
  color: #ffffff !important;
}

[data-theme="dark"] body *,
[data-theme="dark"] .timeline-content *,
[data-theme="dark"] .company-info *,
[data-theme="dark"] .education-main *,
[data-theme="dark"] .university-details *,
[data-theme="dark"] .experience-content *,
[data-theme="dark"] .experience-description *,
[data-theme="dark"] p,
[data-theme="dark"] div,
[data-theme="dark"] span,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #ffffff !important;
}

/* ULTIMATE NUCLEAR OPTION - DARK MODE DETECTION */
body[data-theme="dark"] *,
body[data-theme="dark"] p,
body[data-theme="dark"] div,
body[data-theme="dark"] span,
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
/* ==========================================
   PRODUCTION-READY DARK MODE TEXT FIXES
   ========================================== */

/* Universal dark mode text override - production version */
body[data-theme="dark"] *,
body[data-theme="dark"] p,
body[data-theme="dark"] span,
body[data-theme="dark"] div,
body[data-theme="dark"] li,
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6 {
  color: #ffffff !important;
}

/* Timeline-specific elements */
body[data-theme="dark"] .period,
body[data-theme="dark"] .location,
body[data-theme="dark"] .timeline-content,
body[data-theme="dark"] .timeline-content *,
body[data-theme="dark"] .company-info,
body[data-theme="dark"] .company-info *,
body[data-theme="dark"] .achievements li,
body[data-theme="dark"] .section-subtitle {
  color: #ffffff !important;
}

/* CSS Variable overrides for production with fallbacks */
[data-theme="dark"] .period {
  color: #ffffff !important;
  --accent-2: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  background: -webkit-linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) !important; /* Safari fallback */
}

[data-theme="dark"] .location {
  color: #ffffff !important;
  --text-muted: #ffffff !important;
}

/* Light mode enhancements with vendor prefixes */
[data-theme="light"] .period,
body:not([data-theme="dark"]) .period {
  color: var(--primary-color) !important;
  color: #0EA5E9 !important; /* Fallback */
  background: rgba(14, 165, 233, 0.1) !important;
  background: -webkit-linear-gradient(rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.1)) !important; /* Safari */
}

[data-theme="light"] .location,
body:not([data-theme="dark"]) .location {
  color: var(--text-medium) !important;
  color: #1E293B !important; /* Fallback */
}

/* Portfolio page stats fix - blue gradient text on cards */
.metric-card .metric-number {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.metric-card .metric-label {
  color: #000000 !important;
}

.metric-card .metric-content {
  color: #000000 !important;
}

/* Portfolio hero section - add more padding above heading */
.portfolio-hero {
  padding-top: 25rem !important; /* Increased to 25rem for much more breathing room from header */
}

/* Portfolio title line spacing improvements */
.portfolio-title .title-line {
  display: block;
  line-height: 1.1 !important; /* Tighter line spacing */
  margin-bottom: 0.2rem; /* Small gap between lines */
}

.portfolio-title {
  line-height: 1.0 !important; /* Overall tighter spacing */
  margin-bottom: 1.5rem !important;
}

/* Fix homepage portfolio section visibility issues */
.portfolio-visual-grid {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.portfolio-item {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.portfolio-visual {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

/* Ensure portfolio section is visible */
#portfolio {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding-top: 12rem !important;
  }
  
  .portfolio-title .title-line {
    line-height: 1.2 !important;
    margin-bottom: 0.1rem;
  }
}

/* Industry Expertise Section - Mobile */
.industry-expertise {
  padding-top: 4rem;
}

.expertise-carousel {
  margin-top: 0;
}

.expertise-track {
  gap: 4px !important;
}

.expertise-item {
  margin-bottom: 4px !important;
  padding: 1rem 1rem !important;
}

.expertise-item h3,
.expertise-item p {
  word-wrap: break-word;
  hyphens: auto;
}
}