/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: 'Inter', sans-serif;
  background-color: #0d0d0d;
  color: #eaeaea;
  cursor: none;
}

html {
  scrollbar-width: none;        /* Firefox */
}

body {
  -ms-overflow-style: none;     /* IE & Edge */
}

body::-webkit-scrollbar {
  display: none;                /* Chrome, Safari */
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #a1a1a1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #bdbdbd;
  margin-bottom: 30px;
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons a {
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero-buttons a {
  background: #ffffff;
  color: #000;
}

.hero-buttons a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ===== CUSTOM CURSOR ===== */
.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor {
  width: 8px;
  height: 8px;
  background: #fff;
}

.cursor-follower {
  width: 76px;
  height: 76px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* ===== NEWSPAPER HEADER ===== */
.news-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

/* ===== REEL STRUCTURE (JS CONTROLLED) ===== */
/* ===== NEWSPAPER HEADER & REEL ===== */
.news-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden; /* Critical to hide the moving track */
}

.news-reel {
  width: 100%;
  overflow: hidden;
}

.news-inner {
  display: flex !important; /* Force horizontal alignment */
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.news-track {
  display: flex !important;
  flex-direction: row !important; /* Prevents vertical stacking on mobile */
  align-items: center;
  padding: 12px 0;
  white-space: nowrap;
}

.news-track a {
  font-family: "Georgia", serif;
  /* Scales between 1rem on mobile and 2.2rem on desktop */
  font-size: clamp(1rem, 4vw, 2.2rem); 
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  padding: 0 15px;
}

.news-track a:hover {
  text-decoration: underline;
}

.news-track span {
  color: #666;
  font-size: clamp(1rem, 3vw, 2rem);
  flex-shrink: 0; /* Prevents the | separator from getting squashed */
}

/* ===== MOBILE OVERRIDES ===== */
/* ===== UPDATED MOBILE REEL VISIBILITY ===== */
@media (max-width: 768px) {
  .news-header {
    background: #fff;
  }

  /* REMOVE 'display: none' from here */
  .news-reel {
    display: block !important; 
    overflow: hidden;
  }

  /* Ensure the inner container stays a row for the GSAP animation */
  .news-inner {
    display: flex !important;
    flex-direction: row !important;
    transform: translate3d(0, 0, 0);
  }

  .news-track {
    flex-direction: row !important; /* Keep it horizontal */
    display: flex !important;
    padding: 10px 0;
    white-space: nowrap;
  }

  .news-track span {
    display: inline-block !important; /* Show separators */
    padding: 0 10px;
  }

  .news-track a {
    font-size: 1.1rem; /* Adjust size for mobile */
  }
}
.hero-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Fixed height container */
.greeting-wrapper {
  position: relative;
  /* Remove fixed height to let the text breathe */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 200px; /* Adjust based on your longest word */
  height: 4rem;    /* Give it plenty of vertical room */
  overflow: visible; /* Temporarily set to visible to see where it's cutting */
  vertical-align: middle;
}

#greeting {
  font-size: 2.5rem;
  font-weight: 100;
  transition: all 0.5s ease;
  white-space: nowrap; /* Prevents word wrapping which causes cutting */
  display: block;
  opacity: 0;
  transform: translateY(20px); /* Start slightly lower */
}

#greeting.show {
  opacity: 1;
  transform: translateY(0); /* Slide to center */
}

#greeting.hide {
  opacity: 0;
  transform: translateY(-20px); /* Slide up and out */
}

/* Mobile Fixes */
@media (max-width: 768px) {
  .greeting-wrapper {
    height: 3.5rem; 
    min-width: 150px;
  }
  #greeting {
    font-size: 1.8rem; /* Smaller font ensures it fits the viewport width */
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .news-track a {
    font-size: 0.8rem;
  }
}

#skills {
  height: 100vh;
  padding: 80px 0;
  overflow: hidden;
}

.skills-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.skills-track {
  display: flex;
  gap: 0px;
  padding-left: 10vw;
}

.skill-card {
  min-width: 320px;
  height: 100vh;
  background: linear-gradient(
    var(--skill-bg),
    rgba(0, 0, 0, 0.6)
  );
  /* border: 1px solid rgba(255,255,255,0.15); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.skill-card img {
  width: 128px;
  height: 128px;
}

.skill-card:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

#projectsCanvas {
  position: absolute;
  inset: 0;
}

.projects-overlay {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  pointer-events: none;
}

/* ===== 4. PROJECTS SECTION (LAYOUT REDESIGN) ===== */
#projects {
  padding: 150px 0;
  overflow: visible;
}


.projects-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(60px, 10vw, 150px); /* Larger gap for premium feel */
  max-width: 1400px;
  margin: 0 auto 200px auto;
  padding: 0 5vw;
}

/* Project Details Styling */
.project-info {
  flex: 1;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Default alignment */
}

/* For alternating text alignment when image is on the right */
.project-card:nth-child(even) .project-info {
  /* This works in conjunction with your JS i % 2 logic */
}

.project-info h3 {
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-info p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #b0b0b0;
  margin-bottom: 35px;
  font-weight: 300;
}

/* Glassmorphic Tech Chips */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tech-chip {
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.tech-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Action Buttons */
.project-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  padding: 15px 35px;
  border-radius: 50px; /* Fully rounded pill */
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
  display: inline-flex;
}

.live-btn {
  background: #ffffff;
  color: #000000;
}

.live-btn:hover {
  transform: scale(1.05) translateY(-2px);
  background: #f0f0f0;
}

.btn.disabled {
  background: transparent;
  color: #444;
  border: 1px solid #222;
  cursor: not-allowed;
}


/* ===== 5. DEVICE MOCKUPS (LAPTOP & PHONE) ===== */

/* High-End Laptop Frame */
.laptop {
  position: relative;
  width: 100%;
  max-width: 700px; /* Maximized aesthetic size */
  perspective: 2000px;
}

.laptop__screen {
  position: relative;
  z-index: 2;
  padding: 15px; /* Thicker premium bezel */
  background: #0a0a0a;
  border-radius: 20px 20px 0 0;
  border: 1px solid #2a2a2a;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8);
  overflow: hidden;
}

.laptop__screen img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Screen reflection layer */
.laptop__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0.08) 0%, transparent 40%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
  z-index: 3;
}

.laptop__bottom {
  position: relative;
  height: 20px;
  width: 114%;
  margin-left: -7%;
  background: linear-gradient(to bottom, #e2e8f0 0%, #94a3b8 10%, #1e293b 100%);
  border-radius: 0 0 25px 25px;
  z-index: 4;
}

/* Notch for opening */
.laptop__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 0 0 10px 10px;
}

.laptop__shadow {
  position: absolute;
  bottom: -50px;
  left: -5%;
  width: 110%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.8) 0%, transparent 75%);
  filter: blur(20px);
  z-index: 1;
}

/* Smartphone Frame */
.smartphone {
  position: relative;
  width: 300px;
  height: 620px;
  background: #050505;
  border: 14px solid #1a1a1a;
  border-radius: 50px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  overflow: hidden;
}

.smartphone .content {
  width: 100%;
  height: 100%;
  position: relative;
}

.smartphone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic Island/Notch */
.smartphone::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  padding: 14px 20px;
  cursor: pointer;
}

/* ===== MOBILE STATIC NAV ===== */
@media (max-width: 768px) {
  .news-header {
    background: #fff;
  }

  .news-reel {
    display: none; /* hidden by default */
  }

  .news-reel.active {
    display: block;
  }

  .news-track {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    white-space: normal;
  }

  .news-track span {
    display: none; /* remove separators */
  }

  .news-track a {
    font-size: 1.6rem;
    color: #111;
  }
}

/* ===== FOOTER ===== */
#footer {
  background: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 20px;
}

.footer-content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-left h3 {
  font-size: 1rem;
  color: #000;
  margin-bottom: 8px;
}

.footer-left p {
  font-size: 1rem;
  opacity: 0.8;
}

.footer-left a {
  color: #000;
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  font-size: 1rem;
  opacity: 0.7;
  color: #000;
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}


/* ==================MobileResponsive=============== */

/* ===== COMPREHENSIVE MOBILE RESPONSIVENESS ===== */
@media (max-width: 1024px) {
  /* 1. Disable Custom Cursor (Crucial for mobile usability) */
  .cursor, .cursor-follower {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }

  /* 2. Project Section Layout */
  .project-card {
    flex-direction: column !important; /* Stack image and text */
    text-align: center;
    gap: 40px;
    margin-bottom: 120px;
    padding: 0 20px;
  }

  .project-info {
    max-width: 100%;
    align-items: center; /* Center buttons and text */
  }

  .project-info h3 {
    font-size: 2.2rem; /* Scale down large typography */
    margin-bottom: 15px;
  }

  .project-info p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .tech-stack {
    justify-content: center; /* Center tech chips */
  }

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

  /* 3. Scale Mockups to fit screen width */
  .laptop {
    max-width: 90vw; /* Ensure laptop fits mobile width */
    margin: 0 auto;
  }

  .laptop__bottom {
    width: 106%; /* Reduce overflow on small screens */
    margin-left: -3%;
  }

  .smartphone {
    width: 240px; /* Slimmer phone for small screens */
    height: 500px;
  }
}

/* 4. Extra Small Screens (Phones) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .greeting-wrapper {
    height: 2.2rem;
    min-width: 150px;
  }

  #greeting {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%; /* Make buttons full width for easier tapping */
    justify-content: center;
  }
  
  .project-actions {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .greeting-wrapper {
    height: 2.2rem;
    min-width: 60px; /* Reduced from 150px/240px to prevent layout push */
  }
}


