/* ============================================
   GLOBE SECTION - Sarvin Global Style
   ============================================ */

.globe-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #EAE7E1;
}

.globe-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.95), transparent 40%),
        radial-gradient(circle at 50% 60%, rgba(16, 57, 70, 0.12), transparent 45%);
    pointer-events: none;
    z-index: 1;
}

/* Left text overlay */
.globe-text-overlay {
    position: absolute;
    left: 40px;
    top: 120px;
    z-index: 20;
    max-width: 360px;
    pointer-events: none;
}

.globe-text-overlay .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(16, 57, 70, 0.6);
}

.globe-text-overlay h2 {
    margin-top: 16px;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 0.9;
    color: #103946;
}

.globe-text-overlay h2 span {
    font-style: italic;
    color: rgba(16, 57, 70, 0.4);
}

/* ============================================
   GLOBE CONTAINER
   ============================================ */
.globe-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#globeCanvas {
    position: relative;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 0 60px rgba(16, 57, 70, 0.05);
    cursor: grab;
    transition: filter 0.3s ease;
}

#globeCanvas:active {
    cursor: grabbing;
}

/* ============================================
   GLOW RINGS
   ============================================ */
.globe-ring-blur {
    position: absolute;
    width: 750px;
    height: 750px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 57, 70, 0.04), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.globe-ring-white {
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}

.globe-ring-border {
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    border: 2px solid rgba(16, 57, 70, 0.06);
    pointer-events: none;
    z-index: 0;
}

.globe-ring-rotate {
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    border: 1px solid rgba(16, 57, 70, 0.04);
    pointer-events: none;
    z-index: 0;
    animation: rotateRing 40s linear infinite;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RIGHT INFO PANEL
   ============================================ */
.globe-info-panel {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 320px;
    display: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 1024px) {
    .globe-info-panel { display: block; }
}

.globe-info-panel .info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(16, 57, 70, 0.45);
}

.globe-info-panel h4 {
    margin-top: 12px;
    font-size: 2rem;
    font-weight: 900;
    color: #103946;
    transition: all 0.3s ease;
}

.globe-info-panel .info-sub {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(16, 57, 70, 0.45);
    transition: all 0.3s ease;
}

.globe-info-panel .info-desc {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(16, 57, 70, 0.7);
    transition: all 0.3s ease;
}

.globe-info-panel .info-divider {
    margin-top: 20px;
    border-top: 1px solid rgba(16, 57, 70, 0.10);
    padding-top: 16px;
}

.globe-info-panel .info-address-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(16, 57, 70, 0.40);
}

.globe-info-panel .info-address {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(16, 57, 70, 0.65);
    transition: all 0.3s ease;
}

.globe-info-panel .info-contact-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(16, 57, 70, 0.40);
}

.globe-info-panel .info-phone {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #103946;
    transition: all 0.3s ease;
}

.globe-info-panel .info-glow-line {
    margin-top: 20px;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, #B7FF4A, rgba(183, 255, 74, 0.5), transparent);
    box-shadow: 0 0 10px rgba(183, 255, 74, 0.55);
}



/* ============================================
   select location
============================================ */
#select-location-content {
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items: start;
    margin-top: 30px;
}

#select-location-content button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#select-location-content button i {
    font-size: 12px;
    color: var(--sn-deep-teal);
    margin-right: 7px;
}

/* ============================================
   MOBILE BADGE
   ============================================ */
.globe-mobile-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    border-radius: 50px;
    border: 1px solid rgba(16, 57, 70, 0.10);
    background: #ffffff66;
    backdrop-filter: blur(12px);
    padding: 8px 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(16, 57, 70, 0.55);
    pointer-events: none;
    transition: all 0.4s ease;
}

.globe-content {
    top: 90px !important;
}
.w-screen-text  h2 {
    text-wrap: nowrap;
}

.globe-p-text {
    color: var(--sn-deep-teal);
}


#officeCard {
    background: rgba(17, 57, 70, .3);
    padding: 10px;
    border-radius: 6px;
}
#officeCard  p {
    color: #fff;
}
h4#officeCity {
    color: var(--sn-green);
}


/* ============================================
   VIDEO CARD
============================================ */

#videoCard {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

#videoCard.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.video-card-inner {
    background: rgba(16, 57, 70, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Video Card Header ── */
.video-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.video-card-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
}

.video-card-close {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.video-card-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* ── Video Player ── */
.video-card-player {
    position: relative;
    aspect-ratio: 16/9;
    background: #0a1a24;
    overflow: hidden;
}

.video-card-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Play Button ── */
.video-card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(230, 167, 118, 0.85);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

/* ✅ Show play button on hover */
.video-card-player:hover .video-card-play-btn {
    opacity: 1;
    pointer-events: auto;
}

/* ✅ Always show play button when paused (for better UX) */
.video-card-play-btn:not(.paused) {
    opacity: 1;
    pointer-events: auto;
}

/* ✅ Hide play button when playing and not hovering */
.video-card-play-btn.paused {
    opacity: 0;
    pointer-events: none;
}

.video-card-player:hover .video-card-play-btn.paused {
    opacity: 1;
    pointer-events: auto;
}

.video-card-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: #e6a776;
}

.video-card-play-btn svg {
    width: 18px;
    height: 18px;
    color: #103946;
    margin-left: 3px;
}

.video-card-play-btn.paused svg {
    margin-left: 0;
}

/* ── Fullscreen Button ── */
.video-card-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 6;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    opacity: 0;
}

.video-card-player:hover .video-card-fullscreen-btn {
    opacity: 1;
}

.video-card-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.video-card-fullscreen-btn svg {
    width: 16px;
    height: 16px;
}

/* ── Video Info ── */
.video-card-info {
    padding: 14px 18px 18px;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.video-tag {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e6a776;
    background: rgba(230, 167, 118, 0.12);
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
}

.video-duration {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.video-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.video-card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

/* ── Fullscreen State ── */
#videoCard.fullscreen {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-width: 1000px !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#videoCard.fullscreen .video-card-inner {
    border-radius: 0;
}

#videoCard.fullscreen .video-card-header {
    display: none;
}

#videoCard.fullscreen .video-card-info {
    display: none;
}

#videoCard.fullscreen .video-card-player {
    aspect-ratio: 16/9;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .w-screen > section {
        justify-content: end !important;
    }

}
@media (max-width: 1024px) {
    #videoCard {
        right: 40px !important;
        width: 260px !important;
    }
    .globe-content {
        position: absolute !important;
        top: 400px !important;
        left: 100px !important;
    }
    #officeCard {
        right: -20% !important;
    }
    .globe-text-overlay h2 { font-size: 2.8rem; }
    #globeCanvas { width: 500px; height: 500px; }
    .globe-ring-blur { width: 650px; height: 650px; }
    .globe-ring-white { width: 580px; height: 580px; }
    .globe-ring-border { width: 540px; height: 540px; }
    .globe-ring-rotate { width: 580px; height: 580px; }
    .globe-info-panel { right: 30px; width: 260px; }
}

@media (max-width: 900px) {
    #videoCard {
        top: 30px !important;
    }
    .w-screen-text {
        top: 20px !important;
    }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 870px) {

    .w-screen-text h2 {
        font-size: 30px !important;
    }
}
@media (max-width: 768px) {
    .globe-text-overlay {
        left: 20px;
        top: 100px;
        max-width: 200px;
    }
    .globe-text-overlay h2 { font-size: 2rem; }
    #globeCanvas { width: 380px; height: 380px; }
    /* .globe-ring-blur { width: 480px; height: 480px; }
    .globe-ring-white { width: 420px; height: 420px; }
    .globe-ring-border { width: 400px; height: 400px; }
    .globe-ring-rotate { width: 420px; height: 420px; } */
    .globe-info-panel { display: none !important; }
    .globe-content {
        top: 300px !important;
    }
}
@media (max-width: 767px) {

  /* Globe container — fill its parent, don't exceed viewport */
  #globeMount {
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
  }

  /* The canvas Three.js appends — must fill its mount div */
  #globeMount canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  /* The decorative ring wrapper — shrink with the globe */
  /* This is the "relative w-[70vw]" div in your HTML */
  .globe-wrapper,
  [class*="max-w-[620px]"],
  [class*="max-w-[680px]"] {
    width: 80vw !important;
    max-width: 80vw !important;
  }

  /* The office info card on desktop sits at right:[-80px] —
     on mobile move it below the globe instead */
  #officeCard {
    position: absolute !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 1.5rem !important;
    display: block !important;
    z-index: 1000;
  }
  #videoCard {
    display: block !important;
  }
}

@media (max-width: 480px) {
    .globe-text-overlay h2 { font-size: 1.5rem; }
    #globeCanvas { width: 280px; height: 280px; }
    /* .globe-ring-blur { width: 380px; height: 380px; }
    .globe-ring-white { width: 320px; height: 320px; }
    .globe-ring-border { width: 300px; height: 300px; }
    .globe-ring-rotate { width: 320px; height: 320px; } */
    .globe-text-overlay { left: 15px; top: 80px; max-width: 150px; }
    #globeMount canvas {
        width: 100% !important;
        height: 100% !important;
    }
}

















