/* Styles restored from the deleted style.css file */

h1.about-singleline {
  white-space: nowrap !important;
}

/* FORCE NAV TO STAY HORIZONTAL - Override any generic nav rules */
nav, nav.main-nav, nav.glass-nav, .main-nav, .glass-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  align-items: center !important;
}

.main-nav {
  justify-content: center;
  padding: 0.5rem 1rem;
  height: auto;
  gap: 0.5rem;
}

.main-nav .nav-link {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap;
  border-radius: 999px;
  margin: 0 0.1rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  flex: 0 0 auto;
}

/* REMOVE PINK WAVE BACKGROUNDS */
.pink-section,
.pink-stripe,
.wavy-bg {
  display: none !important;
}

/* REMOVE EMOJIS IN HEADINGS UNDER PROJECTS */
.project-title::before,
.project-title::after {
  content: none !important;
}

/* MAKE VIDEOS FULLY VISIBLE */
video.main-video {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* GENERAL POLISH */
.card,
.about-card,
.contact-card,
.footer-glow {
  border-radius: 1rem !important;
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.10) !important;
}

button,
input[type="submit"] {
  box-shadow: none !important;
  font-weight: 600 !important;
}
@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Comic+Neue&family=Fredoka&display=swap');

/* === Global Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Fredoka', 'Poppins', Arial, sans-serif;
}

/* ELIMINATE THE PROBLEMATIC GENERIC NAV RULE */
nav {
  all: unset !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  align-items: center !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: url('../img/ai-hand.webp') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  color: #222;
  line-height: 1.6;
}

/* Prevent sideways scrolling caused by 100vw/absolute elements */
html, body {
  overflow-x: hidden;
}

/* === Quote Banner === */
.quote-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-style: italic;
  font-size: 1.2rem;
  padding: 16px 32px;
  border-radius: 30px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* === Navigation Bar === */
.glass-nav {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: auto;
  max-width: calc(100vw - 32px);
  font-weight: 700;
  box-shadow: 0 2px 24px rgba(56,189,248,0.10), 0 0 24px #38bdf8aa;
  margin: 0 auto;
  border: 2.5px solid #38bdf8;
  transition: background 0.3s, box-shadow 0.3s;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  align-items: center;
  overflow-x: visible;
}
.glass-nav::-webkit-scrollbar { display: none; }
.glass-nav.shrunk {
  padding: 6px 12px;
  gap: 0.25rem;
  border-width: 1.5px;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Stronger rule for the exact element (has both classes) */
.main-nav.glass-nav {
  display: flex;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
.main-nav.glass-nav .nav-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

/* Menu button for very small screens */
.menu-btn {
  border: none;
  background: rgba(255,255,255,0.8);
  color: #222;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 1.1rem;
  font-weight: 700;
}
@media (max-width: 380px) {
  .menu-btn { display: inline-flex !important; align-items:center; justify-content:center; }
  /* Hide links by default on tiny screens; show when toggled */
  #main-nav:not(.menu-open) .nav-link { display: none !important; }
  #main-nav.menu-open {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    gap: 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  #main-nav.menu-open .nav-link {
    display: block !important;
    padding: 10px 14px !important;
    font-size: 1rem !important;
    background: rgba(255,255,255,0.9);
  }
}
.nav-link {
  color: #222;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  font-family: 'Fredoka', Arial, sans-serif;
  position: relative;
  font-weight: 700;
  background: rgba(255,255,255,0.55);
  border: none;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* Desktop-specific nav styling - High specificity */
@media (min-width: 769px) {
  .main-nav.glass-nav {
    padding: 24px 50px !important;
    gap: 2.5rem !important;
    border-width: 3px !important;
  }
  .main-nav.glass-nav .nav-link {
    font-size: 1.4rem !important;
    padding: 18px 28px !important;
    margin: 0 6px !important;
    letter-spacing: 2.5px !important;
    font-weight: 800 !important;
  }
}

/* Mobile-specific nav styling */
@media (max-width: 768px) {
  .glass-nav {
    padding: 6px 8px !important;
    gap: 0.25rem !important;
    max-width: calc(100vw - 16px) !important;
  }
  .nav-link {
    font-size: 0.85rem !important;
    padding: 6px 8px !important;
    margin: 0 1px !important;
    letter-spacing: 0.5px !important;
  }
}

@media (max-width: 480px) {
  .glass-nav {
    padding: 4px 6px !important;
    gap: 0.15rem !important;
  }
  .nav-link {
    font-size: 0.8rem !important;
    padding: 4px 6px !important;
    margin: 0 !important;
    letter-spacing: 0px !important;
  }
}
.nav-link:hover, .nav-link:focus {
  background: linear-gradient(90deg, #14b8a6 0%, #fb7185 100%);
  color: #fff;
  box-shadow: 0 0 16px #14b8a6cc, 0 0 24px #fb7185cc;
  outline: none;
  transform: scale(1.08) rotate(-2deg);
}

/* === Hero Section === */
.tagline {
  display: block;
  font-size: 1.35rem;
  color: #fff;
  margin-top: 18px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px #38bdf8, 0 0 2px #a855f7;
  font-family: 'Caveat', 'Chewy', cursive;
}
.futuristic-header {
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  text-align: center;
  border-radius: 30px;
  box-shadow: 0 4px 24px rgba(168,85,247,0.15);
  margin: 60px auto 32px auto;
  padding: 60px 20px 40px 20px;
  position: relative;
}
.futuristic-title {
  font-size: 3.2rem;
  font-family: 'Chewy', 'Fredoka', cursive;
  letter-spacing: 2.5px;
  color: #fff;
  text-shadow: 0 0 12px #a855f7, 0 0 2px #38bdf8;
  margin-bottom: 10px;
  text-align: center;
}
.futuristic-subtitle {
  font-size: 1.5rem;
  color: #a8edea;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  text-align: center;
  font-family: 'Fredoka', Arial, sans-serif;
}
.section-title.futuristic-title {
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 0 0 8px #38bdf8, 0 0 2px #a855f7;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.futuristic-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px #38bdf8);
}
.hero {
  text-align: center;
  margin-top: 120px;
  color: #222;
  background: rgba(255,255,255,0.7);
  border-radius: 30px;
  padding: 60px 20px 40px 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  position: relative;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-family: 'Comic Neue', cursive;
  letter-spacing: 2px;
}
.hero p {
  font-size: 1.2rem;
  font-family: 'Comic Neue', cursive;
}
.main-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  border-radius: 30px;
  opacity: 0.25;
}

/* === Card Sections === */
.welcome-card, .about-card, .contact-card {
  background: rgba(255,255,255,0.85);
  border-radius: 30px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 30px;
  text-align: center;
}

.about-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.about-image img {
  max-width: 220px;
  border-radius: 20px;
  border: 2px solid #a855f7;
}

.about-text {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.contact-card input, .contact-card textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #a855f7;
  font-size: 1rem;
}

.contact-card input[type="submit"] {
  background: #a855f7;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-card input[type="submit"]:hover {
  background: #38bdf8;
  color: #222;
}

/* === Projects Grid === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}
.project-card h3 {
  color: #a855f7;
  margin-bottom: 10px;
  font-family: 'Comic Neue', cursive;
}
.project-card p {
  color: #222;
  font-family: 'Comic Neue', cursive;
}

/* === Footer === */
.project-animate {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: fadeInUpProject 1.2s cubic-bezier(.23,1.01,.32,1) 0.2s forwards;
}

@keyframes fadeInUpProject {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-card:hover, .project-card:focus {
  transform: translateY(-8px) scale(1.04) rotate(-1.5deg);
  box-shadow: 0 8px 32px rgba(56,189,248,0.18), 0 0 32px #a855f7aa;
  background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
  outline: none;
}

.footer {
  background: linear-gradient(90deg, #a855f7 0%, #38bdf8 100%);
  padding: 48px 0 24px 0;
  text-align: center;
  color: #fff;
  position: relative;
  box-shadow: 0 0 40px 10px #a855f744, 0 0 80px 20px #38bdf844;
  overflow: hidden;
}
.footer-glow {
  background: rgba(17,17,17,0.85);
  border-radius: 30px;
  box-shadow: 0 0 40px 10px #a855f7aa, 0 0 80px 20px #38bdf8aa;
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 20px 16px 20px;
}
.footer h4 {
  font-size: 1.3rem;
  color: #a8edea;
  margin-bottom: 18px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #38bdf8, 0 0 2px #fff;
}
.footer-col {
  margin-bottom: 18px;
}
.futuristic-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}
.icon-link {
  color: #fff;
  font-size: 2rem;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #38bdf8 100%);
  box-shadow: 0 0 12px #a855f7aa, 0 0 24px #38bdf8aa;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  animation: iconPulse 2.5s infinite alternate;
}
.icon-link:hover {
  transform: scale(1.18) rotate(-8deg);
  box-shadow: 0 0 24px #38bdf8cc, 0 0 48px #a855f7cc;
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
}
@keyframes iconPulse {
  0% { box-shadow: 0 0 12px #a855f7aa, 0 0 24px #38bdf8aa; }
  100% { box-shadow: 0 0 24px #38bdf8cc, 0 0 48px #a855f7cc; }
}
.footer-copy {
  font-size: 1rem;
  color: #a8edea;
  margin-top: 18px;
  letter-spacing: 1px;
}

/* ===== ACCESSIBILITY & TOUCH IMPROVEMENTS ===== */

/* Smooth scroll behavior for entire page */
html {
  scroll-behavior: smooth;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  nav a, .social-icons a, .contact-form button, .carousel-btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  
  .project-card:hover,
  .project-card:focus {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
  }
}

/* Focus states for accessibility */
nav a:focus,
.social-icons a:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form button:focus,
.project-card:focus {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #14b8a6;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* === Headings Font === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Chewy', 'Fredoka', cursive;
  font-weight: 400;
}

/* Parallax Section Styles */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.6s ease;
  overflow: hidden;
}

/* Sections built with heavy inline styles: normalize widths to avoid 100vw overflow */
.hero-section, .welcome-section, .about-section, .projects-section {
  width: 100% !important;
}
/* Override inline content widths */
.hero-content, .welcome-content { width: 100% !important; }
/* Default to scroll attachment for broader device support; re-enable fixed on large screens */
.hero-section, .welcome-section, .about-section, .projects-section, .parallax-section {
  background-attachment: scroll !important;
}
/* Spacers also should not use 100vw on mobile */
.parallax-spacer { width: 100% !important; }
@media (min-width: 1024px) {
  .hero-section, .welcome-section, .about-section, .projects-section, .parallax-section {
  background-attachment: fixed !important;
  }
}
/* Prefer small viewport height units on modern mobile to avoid address bar jump */
@supports (height: 100svh) {
  .hero-section, .welcome-section { min-height: 100svh !important; }
  .landing-overlay { height: 100svh !important; }
}

/* Normalize inline overlay sizes that used 100vw/100vh */
.landing-overlay { width: 100% !important; height: 100% !important; }

/* Home Section Overlay and Content */
.home-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,rgba(17,17,17,0.55) 0%,rgba(20,184,166,0.18) 100%);
  z-index: 1;
  pointer-events: none;
}
.home-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  width: 100%;
  padding: 48px 32px;
  border-radius: 32px;
  background: rgba(0,0,0,0.18);
  box-shadow: 0 2px 24px #14b8a6aa;
}
@media (max-width: 700px) {
  .home-content {
    padding: 32px 10px;
    border-radius: 18px;
  }
}

/* Fade-in Scroll Reveal Animation */

/* === Responsive === */
@media (max-width: 900px) {
  .about-card {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
}
@media (max-width: 600px) {
  /* Force horizontal layout on all mobile screens */
  nav, .main-nav, .glass-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .glass-nav::-webkit-scrollbar { display: none; }
  
  .welcome-card, .about-card, .contact-card {
    padding: 20px 10px;
    margin: 20px auto;
  }
  .hero {
    padding: 30px 10px 20px 10px;
    margin-top: 60px;
  }
  .main-video {
    border-radius: 15px;
  }
  .project-card {
    padding: 15px 8px;
  }
}

/* About section responsive layout (for inline-styled HTML) */
.about-content {
  flex-wrap: wrap;
}
.about-content .profile-pic {
  width: clamp(120px, 30vw, 170px) !important;
  height: clamp(120px, 30vw, 170px) !important;
}

/* Carousel tweaks for mobile usability */
.carousel {
  gap: 16px !important;
  scroll-snap-type: x mandatory;
}
.carousel-slide {
  min-width: clamp(220px, 75vw, 280px) !important;
}
@media (max-width: 900px) {
  .carousel-arrow { display: none !important; }
}

/* Images scale cleanly */
img { max-width: 100%; height: auto; }

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.contact-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-wrapper input,
.contact-wrapper textarea {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: inherit;
}

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

.hero-header {
  background: #c8f1f1;
  padding: 40px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

#projects {
  padding: 60px 0;
  background: linear-gradient(to right, #d9f3f3, #f7ecf6);
}
.project-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* Animation for the scroll-down arrow */
@keyframes pulseDown {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(6px);
  }
}

/* Modal Styles - Safe DOM Manipulation */
.modal-content {
  background: #fff;
  color: #222;
  border-radius: 24px;
  max-width: 400px;
  width: 90vw;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 18px;
}

.modal-title {
  color: #14b8a6;
  font-size: 2rem;
  margin-bottom: 12px;
  text-align: center;
}

.modal-desc {
  font-size: 1.1rem;
  margin-bottom: 18px;
  text-align: center;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.modal-btn {
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.github-btn {
  background: #14b8a6;
  color: #fff;
}

.demo-btn {
  background: #fb7185;
  color: #fff;
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fb7185;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e85a71;
  transform: scale(1.1);
}

/* Hero CTA Button Styles */
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-button:nth-child(1):hover { box-shadow: 0 8px 24px rgba(20,184,166,0.4); }
.cta-button:nth-child(2):hover { box-shadow: 0 8px 24px rgba(251,113,133,0.4); }
.cta-button:nth-child(3):hover { box-shadow: 0 8px 24px rgba(56,189,248,0.4); }
.cta-button:nth-child(4):hover { box-shadow: 0 8px 24px rgba(255,255,255,0.4); }

/* Experience and Skills Section Hover Effects */
.experience-item:hover, .skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
