/* ==========================================================================
   Signature NOX - Full Responsive Stylesheet
   Mobile, Tablet, Desktop & Landscape Support
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Displays & 2K / 4K Monitors (min-width: 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .header-container,
  .cta-container,
  .features-container {
    max-width: 1400px;
  }

  .header-logo {
    height: 52px;
  }

  .hero-title {
    font-size: clamp(4rem, 12.5vw, 13rem);
    letter-spacing: clamp(2px, 0.4vw, 6px);
  }

  .hero-sub {
    font-size: clamp(1.4rem, 3.2vw, 3.8rem);
    letter-spacing: clamp(3px, 0.8vw, 10px);
  }

  .elem-im1 {
    top: 24%;
    left: 17%;
    width: clamp(120px, 11vw, 185px);
  }

  .elem-im2 {
    top: 48%;
    right: 18%;
    width: clamp(130px, 12vw, 205px);
  }

  .hero-bottom-left {
    bottom: 55px;
    left: 6%;
    max-width: 320px;
  }

  .hero-brief {
    font-size: 1rem;
    line-height: 1.65;
  }
}

/* --------------------------------------------------------------------------
   2. Medium Laptops & Tablets Landscape (1025px - 1439px)
   -------------------------------------------------------------------------- */
@media (max-width: 1439px) and (min-width: 1025px) {
  .hero-title {
    font-size: clamp(3rem, 11.5vw, 9.5rem);
  }

  .elem-im1 {
    top: 24%;
    left: 13%;
    width: clamp(90px, 10vw, 145px);
  }

  .elem-im2 {
    top: 48%;
    right: 14%;
    width: clamp(100px, 11vw, 160px);
  }
}

/* --------------------------------------------------------------------------
   3. Tablets & Large Mobile in Landscape (769px - 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header {
    padding: 16px 0;
  }

  .header-container,
  .cta-container,
  .features-container {
    width: 92%;
  }

  .header-logo {
    height: 42px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 11.5vw, 7rem);
    letter-spacing: clamp(1px, 0.3vw, 4px);
  }

  .hero-sub {
    font-size: clamp(1rem, 3.2vw, 2.4rem);
    letter-spacing: clamp(2px, 0.6vw, 6px);
  }

  .elem-im1 {
    top: 22%;
    left: 8%;
    width: clamp(80px, 10vw, 125px);
  }

  .elem-im2 {
    top: 46%;
    right: 9%;
    width: clamp(90px, 11vw, 135px);
  }

  .hero-bottom-left {
    bottom: 35px;
    left: 5%;
    max-width: 270px;
  }

  .hero-brief {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }
}

/* --------------------------------------------------------------------------
   4. Mobile Navigation & Tablet Portrait (max-width: 868px)
   -------------------------------------------------------------------------- */
@media (max-width: 868px) {
  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  /* Hamburger to 'X' animation */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--brand-blue);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--brand-blue);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: rgba(8, 9, 13, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 95px 2rem 2.5rem 2rem;
    gap: 1.25rem;
    border-left: 1px solid rgba(40, 130, 234, 0.25);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
    z-index: 1000;
  }

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

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    justify-content: flex-start;
    padding: 11px 20px;
    border-radius: 12px;
  }

  .nav-link.active {
    border-radius: 12px;
  }

  .header-logo {
    height: 40px;
  }

  /* Raise background title higher on tablet & mobile */
  .hero-text-container {
    top: 36%;
  }

  .hero-title {
    font-size: clamp(2.4rem, 13vw, 5.8rem);
    letter-spacing: clamp(1px, 0.3vw, 3px);
  }

  .hero-sub {
    font-size: clamp(1.1rem, 3.8vw, 2.2rem);
    letter-spacing: clamp(2px, 0.6vw, 5px);
  }

  /* Bigger floating elements */
  .elem-im1 {
    top: 20%;
    left: 5%;
    width: clamp(110px, 16vw, 150px);
  }

  .elem-im2 {
    top: 44%;
    right: 5%;
    width: clamp(120px, 18vw, 165px);
  }
}

/* --------------------------------------------------------------------------
   5. Mobile Portrait Screens (max-width: 580px)
   -------------------------------------------------------------------------- */
@media (max-width: 580px) {
  .header {
    padding: 14px 0;
  }

  .header-container,
  .cta-container {
    width: 92%;
  }

  .header-logo {
    height: 36px;
  }

  /* Raise background title up higher & enlarge on mobile */
  .hero-text-container {
    top: 32%;
  }

  .hero-title {
    font-size: clamp(2.1rem, 13vw, 4.4rem);
    letter-spacing: 1.5px;
  }

  .hero-sub {
    font-size: clamp(0.95rem, 3.8vw, 1.6rem);
    letter-spacing: 2.5px;
    margin-top: 4px;
    margin-right: 4px;
  }

  /* Large & prominent floating images on mobile */
  .elem-im1 {
    top: 15%;
    left: 2%;
    width: clamp(95px, 26vw, 140px);
  }

  .elem-im2 {
    top: 40%;
    right: 2%;
    width: clamp(105px, 28vw, 155px);
  }

  .hero-bottom-left {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 310px;
    text-align: center;
  }

  body.hero-animate .hero-bottom-left {
    transform: translateX(-50%) translateY(0);
  }

  .hero-brief {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .btn-hero-glow {
    padding: 9px 24px;
    font-size: 0.88rem;
    width: auto;
    display: inline-flex;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   6. Small Mobile Screens (max-width: 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .header-logo {
    height: 32px;
  }

  .hero-text-container {
    top: 30%;
  }

  .hero-title {
    font-size: clamp(1.75rem, 12vw, 2.7rem);
    letter-spacing: 1px;
  }

  .hero-sub {
    font-size: 0.88rem;
    letter-spacing: 2px;
  }

  .elem-im1 {
    top: 14%;
    left: 1%;
    width: 85px;
  }

  .elem-im2 {
    top: 38%;
    right: 1%;
    width: 95px;
  }

  .hero-bottom-left {
    bottom: 16px;
    max-width: 275px;
  }

  .hero-brief {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .btn-hero-glow {
    padding: 8px 20px;
    font-size: 0.82rem;
  }
}

/* --------------------------------------------------------------------------
   7. Mobile Landscape / Short Viewports (max-height: 520px)
   -------------------------------------------------------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .header {
    padding: 8px 0;
  }

  .header-logo {
    height: 30px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 3.2rem);
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .elem-im1 {
    top: 18%;
    left: 8%;
    width: 60px;
  }

  .elem-im2 {
    top: 55%;
    right: 8%;
    width: 70px;
  }

  .hero-bottom-left {
    bottom: 125px;
    left: 4%;
    transform: none;
    text-align: right;
    max-width: 240px;
  }

  body.hero-animate .hero-bottom-left {
    transform: none;
  }

  .hero-brief {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .btn-hero-glow {
    padding: 6px 16px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   8. Details Section Responsiveness
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 869px) {
  .details-showcase {
    grid-template-columns: 48% 52%;
  }

  .details-bottle-img {
    width: 100%;
    max-width: 100%;
  }

  .details-ingredients-side {
    padding-left: 2rem;
  }
}

@media (max-width: 868px) {
  .hero-divider-wrap {
    bottom: -5px;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .hero-divider-img {
    width: 125%;
    min-width: 125%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: bottom center;
    transform: scale(1.45);
    transform-origin: bottom center;
  }

  .details-section {
    padding: 80px 0 65px 0;
    margin-bottom: 0;
  }

  .details-header {
    margin-bottom: 40px;
  }

  .details-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
  }

  .details-connectors-wrapper {
    display: none;
  }

  .details-bottle-side {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .details-bottle-img {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .details-ingredients-side {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
  }

  .ingredients-zigzag-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px 16px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .ingredient-node {
    flex: 0 0 calc(33.333% - 16px);
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin: 0 !important;
    transform: translateY(16px);
  }

  .ingredient-node.node-left,
  .ingredient-node.node-right {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin: 0 !important;
  }

  .node-circle {
    width: 76px;
    height: 76px;
  }

  .node-name {
    font-size: 1.05rem;
    text-align: center;
    white-space: nowrap;
  }

  .ingredient-node.is-revealed {
    transform: translateY(0);
  }
}

@media (max-width: 580px) {
  .hero-divider-wrap {
    bottom: 0;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .hero-divider-img {
    width: 130%;
    min-width: 130%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: bottom center;
    transform: scale(1.6);
    transform-origin: bottom center;
  }

  .details-section {
    padding: 60px 0 60px 0;
    margin-bottom: 0;
  }

  .details-badge {
    font-size: 0.78rem;
    padding: 5px 14px;
  }

  .details-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .details-subtitle {
    font-size: 0.9rem;
  }

  .details-bottle-img {
    width: 100%;
    max-width: 100%;
  }

  .ingredients-zigzag-list {
    gap: 16px 10px;
    max-width: 370px;
  }

  .ingredient-node {
    flex: 0 0 calc(33.333% - 10px);
    max-width: 105px;
    margin: 0 !important;
  }

  .ingredient-node.node-left,
  .ingredient-node.node-right {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin: 0 !important;
  }

  .node-circle {
    width: 66px;
    height: 66px;
  }

  .node-name {
    font-size: 0.95rem;
  }

  .elem-im3 {
    width: clamp(110px, 28vw, 165px);
    top: 1.5%;
    right: 1.5%;
    opacity: 0.92;
  }

  .elem-im4 {
    width: clamp(120px, 30vw, 180px);
    top: 14%;
    left: 1.5%;
    opacity: 0.92;
  }
}

/* ==========================================================================
   9. CTA & Order Section Responsiveness (Background: bak.webp)
   ========================================================================== */
@media (max-width: 868px) {
  .cta-section {
    min-height: 430px;
    background-position: -120px center;
    background-size: cover;
    background-image: url('../images/bak.webp');
  }

  .cta-container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 45px 0;
  }

  .cta-layout {
    justify-content: flex-start;
    text-align: right;
  }

  .cta-content-side {
    align-items: flex-start;
    text-align: right;
    max-width: 100%;
  }

  .cta-desc {
    text-align: right;
    margin-bottom: 20px;
  }

  .cta-trust-minimal {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .cta-section {
    min-height: 380px;
    background-position: clamp(-170px, -35vw, -110px) center;
    background-size: cover;
    background-image: url('../images/bak.webp');
  }

  .cta-container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 35px 0;
  }

  .cta-badge {
    font-size: 0.78rem;
    padding: 5px 14px;
  }

  .cta-title {
    font-size: clamp(1.65rem, 7.5vw, 2.2rem);
    text-align: right;
  }

  .cta-desc {
    font-size: 0.94rem;
    line-height: 1.65;
    text-align: right;
  }

  .cta-btn-wrap {
    width: auto;
    display: inline-block;
  }

  .btn-cta-main {
    padding: 10px 22px;
    font-size: 0.9rem;
    width: auto;
    display: inline-flex;
    justify-content: center;
  }

  .cta-trust-minimal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   10. Perfume Features Section Responsiveness (#features)
   ========================================================================== */
@media (max-width: 1100px) and (min-width: 869px) {
  .features-track {
    gap: 6px;
  }

  .feature-card {
    padding: 16px 12px;
  }

  .card-title {
    font-size: 0.92rem;
  }

  .card-desc {
    font-size: 0.78rem;
  }

  .feature-connector {
    flex: 0 0 24px;
  }
}

@media (max-width: 868px) {
  .features-container {
    padding: 60px 0 80px 0;
  }

  .features-header {
    margin-bottom: 35px;
  }

  .features-track {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .feature-card {
    width: 100%;
    max-width: 480px;
    flex: none;
    padding: 18px 18px;
  }

  .feature-connector {
    flex: none;
    width: 34px;
    height: 36px;
    margin: 4px auto;
    transform: rotate(-90deg); /* Points downward from top card to next bottom card */
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .features-container {
    padding: 55px 0 75px 0;
  }

  .features-badge {
    font-size: 0.78rem;
    padding: 5px 14px;
  }

  .features-title {
    font-size: clamp(1.55rem, 6.8vw, 2.1rem);
  }

  .features-subtitle {
    font-size: 0.88rem;
  }

  .feature-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .feature-card-content {
    gap: 14px;
  }

  .card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 0;
    margin-top: 2px;
  }

  .card-icon {
    font-size: 1.3rem;
  }

  .card-title {
    font-size: 0.98rem;
    padding-left: 24px;
  }

  .card-desc {
    font-size: 0.84rem;
    line-height: 1.6;
  }
}

/* ==========================================================================
   11. Customer Reviews Section Responsiveness (#reviews)
   ========================================================================== */
@media (max-width: 1024px) {
  .review-card {
    width: 340px;
    padding: 22px 18px;
  }

  .reviews-marquee-wrapper {
    padding: 30px 0 90px 0;
  }
}

@media (max-width: 768px) {
  .testimonials-container {
    padding: 60px 0 15px 0;
  }

  .trust-summary-pill {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    border-radius: 9999px;
    padding: 8px 18px;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
  }

  .trust-divider-dot {
    display: inline-block;
  }

  .review-card {
    width: 305px;
    padding: 20px 16px;
  }

  .reviews-marquee-group {
    gap: 16px;
    padding-left: 16px;
    animation-duration: 38s;
  }
}

@media (max-width: 580px) {
  .testimonials-container {
    padding: 50px 0 10px 0;
  }

  .testimonials-badge {
    font-size: 0.78rem;
    padding: 5px 14px;
  }

  .testimonials-title {
    font-size: clamp(1.55rem, 6.8vw, 2.1rem);
  }

  .testimonials-subtitle {
    font-size: 0.88rem;
  }

  .trust-summary-pill {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    border-radius: 9999px;
    padding: 8px 16px;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
  }

  .trust-rating-score {
    gap: 2px;
  }

  .score-number {
    font-size: 1.05rem;
  }

  .score-out-of {
    font-size: 0.75rem;
  }

  .trust-stars-row {
    font-size: 0.78rem;
    gap: 2px;
  }

  .trust-divider-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
  }

  .trust-count-text {
    font-size: 0.78rem;
  }

  .review-card {
    width: 275px;
    padding: 18px 15px;
    border-radius: 16px;
  }

  .review-stars {
    font-size: 0.68rem;
    gap: 2.5px;
  }

  .reviewer-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.78rem;
  }

  .reviewer-name {
    font-size: 0.92rem;
  }

  .review-text {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .reviews-marquee-wrapper {
    padding: 25px 0 75px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }
}

/* ==========================================================================
   12. Luxury Footer Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
}

@media (max-width: 680px) {
  .luxury-footer {
    padding: 60px 0 30px 0;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    margin-bottom: 40px;
    text-align: right;
  }

  .footer-col {
    align-items: flex-start;
    text-align: right;
  }

  .footer-brand-desc {
    max-width: 100%;
    text-align: right;
  }

  .footer-social-row {
    justify-content: flex-start;
  }

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

  .footer-col-title::after {
    right: 0;
    transform: none;
  }

  .footer-nav-list li a {
    justify-content: flex-start;
    text-align: right;
  }

  .footer-info-list li {
    justify-content: flex-start;
    text-align: right;
  }

  .contact-item {
    justify-content: flex-start;
    text-align: right;
  }

  .footer-whatsapp-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 16px;
    text-align: right;
    align-items: flex-start;
  }

  .back-to-top-btn {
    align-self: flex-start;
  }
}

/* ==========================================================================
   13. Luxury Order Modal Responsiveness
   ========================================================================== */
@media (max-width: 580px) {
  .order-modal-backdrop {
    padding: 0.5rem;
  }
  .modal-body {
    padding: 1.3rem 0.95rem 1rem;
  }
  .modal-title {
    font-size: 1.15rem;
  }
  .modal-header-box {
    padding: 0 1rem;
    margin-bottom: 0.65rem;
  }
  .package-options-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }
  .package-card-inner {
    padding: 0.4rem 0.2rem 0.35rem;
  }
  .pkg-title {
    font-size: 0.68rem;
  }
  .pkg-price {
    font-size: 0.86rem;
  }
  .pkg-badge {
    font-size: 0.55rem;
    padding: 0.08rem 0.3rem;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-group {
    margin-bottom: 0.55rem;
  }
  .btn-modal-submit {
    font-size: 0.9rem;
    padding: 0.72rem 1.2rem;
  }
}

