/* RESPONSIVE CSS — Raj Portfolio */

/* ── 1200px: Wide desktop trim ── */
@media (max-width: 1200px) {
  .title {
    font-size: 4.5rem;
  }
}

/* ── 1024px: Tablet landscape ── */
@media (max-width: 1024px) {
  .title {
    font-size: 4rem;
  }

  .bottom-controls {
    max-width: 620px;
  }
}

/* ── 768px: Tablet portrait / large mobile ── */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 1rem 1.25rem;
  }

  .nav-right {
    gap: 0.5rem;
  }

  /* Hero */
  .title {
    font-size: 3.2rem;
  }

  .greeting {
    font-size: 1.3rem;
  }

  /* Bottom controls */
  .bottom-controls {
    padding: 0 0.75rem;
  }

  /* Quick buttons — keep wrap but tighter so all 7 fit in 2 rows */
  .quick-buttons {
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    width: 100%;
  }

  .btn-tag {
    padding: 0.45rem 0.82rem;
    font-size: 0.81rem;
    gap: 0.35rem;
  }

  /* Input wrapper */
  .input-wrapper {
    margin-bottom: 0.9rem;
  }

  /* Chat messages */
  .message {
    max-width: 96%;
  }

  /* Carousel cards — slightly narrower */
  .project-card {
    min-width: 252px;
    height: 295px;
  }

  .testimonial-card {
    min-width: 252px;
    max-width: 252px;
  }

  .service-card {
    min-width: 232px;
    max-width: 232px;
  }

  /* Project modal */
  .project-modal-container {
    max-width: 95vw;
    padding: 2.5rem 1.5rem 1.5rem;
    border-radius: 20px;
  }

  .pm-title {
    font-size: 1.85rem;
  }

  /* Booking modal */
  .booking-container {
    max-width: 95vw;
    padding: 1.8rem 1.4rem 1.4rem;
    border-radius: 20px;
  }

  /* Contact bento */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    margin-left: 30px;
    padding: 1rem;
  }

  .timeline-item::before {
    left: -20px;
  }

  .timeline-item::after {
    left: calc(-20px - 5px);
  }

  /* Slogan watermark — relative so body overflow:hidden doesn't clip it */
  .slogan-watermark {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    overflow: visible;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    margin-top: 0.6rem;
    opacity: 0.12;
  }
}

/* ── 480px: Mobile portrait ── */
@media (max-width: 480px) {

  /* Navbar */
  .navbar {
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .nav-center {
    position: static;
    transform: none;
    justify-self: center;
  }

  .nav-avatar-btn {
    width: 44px;
    height: 44px;
  }

  .nav-right {
    gap: 0.35rem;
    margin-left: 0;
    justify-content: flex-end;
  }

  .nav-right .icon-btn {
    width: 36px;
    height: 36px;
  }

  /* Hide "Resume" text in nav, keep icon */
  .nav-left .btn-glass span {
    display: none;
  }

  .nav-left .btn-glass {
    padding: 0.5rem 0.7rem;
    gap: 0;
  }

  /* Hero */
  .title {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
  }

  .greeting {
    font-size: 1.15rem;
  }

  .avatar-container {
    width: 90px;
    height: 90px;
  }

  /* Bottom controls */
  .bottom-controls {
    padding: 0 0.4rem;
  }

  /* Quick buttons */
  .quick-buttons {
    gap: 0.38rem;
  }

  .btn-tag {
    padding: 0.4rem 0.72rem;
    font-size: 0.78rem;
    gap: 0.3rem;
  }

  /* Input */
  .input-wrapper {
    padding: 0.35rem 0.35rem 0.35rem 0.9rem;
    margin-bottom: 0.75rem;
  }

  .input-wrapper input {
    font-size: 0.88rem;
  }

  /* Chat messages */
  .message {
    max-width: 97%;
  }

  .message-content {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }

  .message-avatar {
    width: 28px;
    height: 28px;
  }

  /* Carousel cards */
  .project-card {
    min-width: 228px;
    height: 278px;
  }

  .testimonial-card {
    min-width: 228px;
    max-width: 228px;
  }

  .service-card {
    min-width: 214px;
    max-width: 214px;
  }

  /* Carousel arrows */
  .carousel-arrow {
    width: 30px;
    height: 30px;
  }

  .carousel-arrow svg {
    width: 14px;
    height: 14px;
  }

  /* Project modal */
  .project-modal-container {
    max-width: 98vw;
    padding: 2rem 1.1rem 1.2rem;
    border-radius: 18px;
  }

  .pm-title {
    font-size: 1.5rem;
  }

  .pm-details {
    padding: 1rem;
  }

  .pm-link-card {
    padding: 0.85rem 1rem;
  }

  /* Booking modal */
  .booking-container {
    max-width: 98vw;
    padding: 1.5rem 1.1rem 1.2rem;
    border-radius: 18px;
  }

  .booking-title {
    font-size: 1.1rem;
  }

  .bp-step {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .bp-line {
    max-width: 40px;
  }

  .booking-times {
    grid-template-columns: 1fr 1fr;
  }

  .time-slot-btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.2rem;
  }

  .day-btn {
    padding: 0.5rem 0.72rem;
    border-radius: 10px;
  }

  .day-btn .day-num {
    font-size: 1rem;
  }

  .booking-btn-primary {
    font-size: 0.88rem;
    padding: 0.8rem;
  }

  .booking-wa-final-btn {
    font-size: 0.88rem;
    padding: 0.8rem;
  }

  .booking-done-btn {
    padding: 0.68rem;
    font-size: 0.82rem;
  }

  /* Contact bento */
  .bento-header {
    padding: 1.3rem 1.2rem;
  }

  .bento-header h4 {
    font-size: 1.15rem;
  }

  .bento-grid {
    padding: 1.1rem;
    gap: 0.85rem;
  }

  .bento-card {
    padding: 1rem;
  }

  .bento-value {
    font-size: 0.88rem;
  }

  /* Book-call card — stack vertically on small screens */
  .book-call-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    margin: 0 0.9rem 1.2rem;
  }

  .book-call-btn {
    align-self: stretch;
    justify-content: center;
  }

  /* Services CTA */
  .services-cta {
    font-size: 0.78rem;
  }

  /* Timeline */
  .timeline-item h4 {
    font-size: 1rem;
  }

  .timeline-date {
    font-size: 0.72rem;
  }

  /* Testimonial text */
  .testimonial-text {
    font-size: 0.84rem;
  }

  .testimonial-name {
    font-size: 0.84rem;
  }

  /* Toast */
  .toast-notification {
    font-size: 0.8rem;
    padding: 0.55rem 1.1rem;
    bottom: 1.5rem;
    white-space: nowrap;
  }

  /* Slogan watermark */
  .slogan-watermark {
    font-size: clamp(1.4rem, 8vw, 2.1rem);
    margin-top: 0.3rem;
  }

  /* Mic button */
  .mic-btn {
    width: 32px;
    height: 32px;
  }
}

/* ── 380px: Small mobile (iPhone SE, Pixel 4a) ── */
@media (max-width: 380px) {

  /* Navbar */
  .navbar {
    padding: 0.75rem 0.85rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .nav-center {
    position: static;
    transform: none;
    justify-self: center;
  }

  .nav-avatar-btn {
    width: 38px;
    height: 38px;
  }

  .nav-right {
    gap: 0.28rem;
    margin-left: 0;
    justify-content: flex-end;
  }

  .nav-right .icon-btn {
    width: 34px;
    height: 34px;
  }

  .nav-right .icon-btn svg {
    width: 17px;
    height: 17px;
  }

  /* Hero */
  .title {
    font-size: 2.2rem;
  }

  .greeting {
    font-size: 1rem;
  }

  .avatar-container {
    width: 80px;
    height: 80px;
  }

  /* Quick buttons */
  .quick-buttons {
    gap: 0.3rem;
  }

  .btn-tag {
    padding: 0.36rem 0.58rem;
    font-size: 0.72rem;
    gap: 0.26rem;
  }

  /* Carousel cards */
  .project-card {
    min-width: 210px;
    height: 258px;
  }

  .testimonial-card {
    min-width: 210px;
    max-width: 210px;
  }

  .service-card {
    min-width: 198px;
    max-width: 198px;
  }

  /* Booking modal */
  .booking-container {
    padding: 1.3rem 0.95rem 1.1rem;
  }

  .booking-times {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .time-slot-btn {
    font-size: 0.72rem;
  }

  .day-btn {
    padding: 0.42rem 0.6rem;
  }

  .day-btn .day-num {
    font-size: 0.9rem;
  }

  /* Bento values */
  .bento-value {
    font-size: 0.82rem;
  }

  .bento-grid {
    padding: 1rem;
    gap: 0.75rem;
  }

  /* Send button */
  .send-btn {
    width: 36px;
    height: 36px;
  }

  .mic-btn {
    width: 28px;
    height: 28px;
  }

  /* Input */
  .input-wrapper input {
    font-size: 0.82rem;
  }
}

/* ── 320px: Very small (iPhone 5 / SE 1st gen) ── */
@media (max-width: 320px) {

  /* Navbar */
  .navbar {
    padding: 0.65rem 0.75rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .nav-center {
    position: static;
    transform: none;
    justify-self: center;
  }

  .nav-avatar-btn {
    width: 32px;
    height: 32px;
  }

  .nav-right {
    margin-left: 0;
    justify-content: flex-end;
  }

  .nav-right .icon-btn {
    width: 30px;
    height: 30px;
  }

  .nav-right .icon-btn svg {
    width: 15px;
    height: 15px;
  }

  /* Hero */
  .title {
    font-size: 2rem;
  }

  .avatar-container {
    width: 72px;
    height: 72px;
  }

  /* Quick buttons */
  .btn-tag {
    padding: 0.38rem 0.6rem;
    font-size: 0.72rem;
  }

  /* Carousel cards */
  .project-card {
    min-width: 190px;
    height: 238px;
  }

  .testimonial-card {
    min-width: 192px;
    max-width: 192px;
  }

  .service-card {
    min-width: 182px;
    max-width: 182px;
  }

  /* Booking */
  .booking-container {
    padding: 1.1rem 0.8rem 1rem;
  }

  .booking-times {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  /* Bento */
  .bento-grid {
    padding: 0.85rem;
    gap: 0.65rem;
  }
}

/* ── Mobile landscape: short viewport height ── */
@media (max-height: 500px) and (orientation: landscape) {
  .booking-container {
    max-height: 85vh;
    padding: 1.2rem 1.4rem;
  }

  .project-modal-container {
    max-height: 85vh;
  }

  .booking-progress {
    margin-bottom: 1rem;
  }

  .booking-days {
    margin-bottom: 0.8rem;
  }

  .booking-times {
    margin-bottom: 0.9rem;
  }
}