/* 
================================
--- GLOBAL & UTILITY STYLES ---
================================
*/
body {
    overflow-x: hidden;
    background-color: var(--bg-color); 
    position: relative;
}

/* Spotlight Cursor Effect */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 999; /* High z-index to sit on top */
    background: radial-gradient(
        circle 400px at var(--x, 50%) var(--y, 50%),
        rgba(0, 82, 155, 0.08),
        transparent 40%
    );
}
.dark body::before {
     background: radial-gradient(
        circle 400px at var(--x, 50%) var(--y, 50%),
        rgba(59, 130, 246, 0.1),
        transparent 40%
    );
}

.material-icons { vertical-align: middle; }

/* 
================================
--- PRELOADER & SCROLLBAR ---
================================
*/
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #F8FAFC;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.7s ease, visibility 0.7s ease;
}
.dark #preloader { background-color: #0B1120; }
#preloader.hidden { opacity: 0; visibility: hidden; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}
#preloader img {
    width: auto; height: auto; max-width: 80vw; max-height: 50vh;
    object-fit: contain; animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

#scroll-progress {
    position: fixed; top: 0; left: 0; height: 4px;
    background: linear-gradient(to right, #00529B, #3B82F6);
    width: 0%; z-index: 9998; transition: width 0.1s ease-out;
}

/* Global Background Particles */
#particles-js {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

header { transition: all 0.3s ease-in-out; }
header.scrolled { padding-top: 0.5rem; padding-bottom: 0.5rem; background-color: hsla(210, 80%, 98%, 0.9); }
.dark header.scrolled { background-color: hsla(222, 47%, 11%, 0.9); }
header.scrolled .h-12 { height: 2.5rem; }

header nav a { position: relative; text-decoration: none; padding-bottom: 4px; }
header nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(to right, #00529B, #3B82F6); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease-in-out; }
header nav a:hover::after { transform: scaleX(1); transform-origin: left; }
header nav a.active { color: #00529B; }
.dark header nav a.active { color: #3B82F6; }
header nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* 
================================
--- ANIMATIONS & EFFECTS ---
================================
*/
.section-hidden { opacity: 0; }
.section-visible { opacity: 1; }
.stagger-child { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.section-visible .stagger-child { opacity: 1; transform: translateY(0); }
.text-shadow-strong { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }

@keyframes revealLetterUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
.staggered-reveal-title { overflow: hidden; padding-bottom: 0.1em; }
.letter-reveal { display: inline-block; opacity: 0; transform: translateY(100%); }
.section-visible .letter-reveal { animation: revealLetterUp 0.6s cubic-bezier(0.3, 0.8, 0.2, 1) forwards; }
.letter-reveal-hero { display: inline-block; opacity: 0; transform: translateY(100%); animation: revealLetterUp 0.8s cubic-bezier(0.3, 0.8, 0.2, 1) forwards; }
.animate-on-scroll { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; transform: translateY(40px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* 
================================
--- BUSINESS OUTLINE SPECIFIC STYLES ---
================================
*/

/* Wrapper */
.product-carousel-wrapper { position: relative; padding: 20px 16px; }
@media (min-width: 640px) { .product-carousel-wrapper { padding: 30px 40px; } }
@media (min-width: 1024px) { .product-carousel-wrapper { padding: 40px 80px; } }

/* Swiper Slides (Fixed Width 320px for Business Outline) */
.product-carousel-wrapper .swiper-slide { 
    width: 280px !important; 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    padding: 10px 0; height: auto; 
}
@media (min-width: 640px) { .product-carousel-wrapper .swiper-slide { width: 320px !important; } }
.product-carousel-wrapper .swiper-slide-shadow-left, 
.product-carousel-wrapper .swiper-slide-shadow-right { background-image: none !important; }

/* Navigation Buttons */
.product-carousel-wrapper .swiper-button-next, .product-carousel-wrapper .swiper-button-prev {
    width: 40px; height: 40px; background-color: #4A89C1; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; border: none; outline: none; cursor: pointer; z-index: 20; transition: all 0.2s ease-in-out; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); position: absolute; top: 50%; transform: translateY(-50%); margin: 0;
}
@media (min-width: 768px) { .product-carousel-wrapper .swiper-button-next, .product-carousel-wrapper .swiper-button-prev { width: 48px; height: 48px; } }
.product-carousel-wrapper .swiper-button-prev { left: 8px; right: auto; }
.product-carousel-wrapper .swiper-button-next { right: 8px; left: auto; }
@media (min-width: 768px) { .product-carousel-wrapper .swiper-button-prev { left: 15px; } .product-carousel-wrapper .swiper-button-next { right: 15px; } }
.product-carousel-wrapper .swiper-button-next:hover, .product-carousel-wrapper .swiper-button-prev:hover { background-color: #3b76a8; transform: translateY(-50%) scale(1.1); box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); }
.product-carousel-wrapper .swiper-button-next::after, .product-carousel-wrapper .swiper-button-prev::after { display: none; }

/* Card Hover Effect */
.card-hover-effect { transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; will-change: transform; height: 100%; }
.card-hover-effect:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); z-index: 10; }
.dark .card-hover-effect:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3); }

/* Image Auto-Resize Fix */
.product-image-wrapper { height: 12rem; width: 100%; display: flex; align-items: center; justify-content: center; background-color: #fff; padding: 0.75rem; overflow: hidden; }
@media (min-width: 768px) { .product-image-wrapper { height: 18rem; padding: 1rem; } }
.dark .product-image-wrapper { background-color: #1e293b; }
.auto-resize-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.5s ease; }
@keyframes highlightActiveImage { 0% { transform: scale(0.95); } 50% { transform: scale(1.1); } 100% { transform: scale(1.0); } }
.swiper-slide-active .auto-resize-img { animation: highlightActiveImage 2.5s ease-out forwards; }

/* 
--- TIMELINE & PROCESS SECTION --- 
*/

/* Timeline Particles Container (Behind content) */
#timeline-particles {
    pointer-events: none; 
    opacity: 0.6;
}

/* 3D Tilt Effect for Cards */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
}
.tilt-card > * {
    transform: translateZ(20px); /* Pop content */
}

/* Timeline Lines & Animations */
.timeline-item:not(:last-child)::after { content: ''; position: absolute; width: 3px; background-color: #032877; top: 3.5rem; left: 50%; height: calc(100% - 1.75rem); transform: translateX(-50%) scaleY(0); transform-origin: top; transition: transform 0.4s ease-out; }
.dark .timeline-item:not(:last-child)::after { background-color: #2448fb; }
.section-visible .timeline-item:nth-child(1)::after { transition-delay: 0.6s; transform: translateX(-50%) scaleY(1); }
.section-visible .timeline-item:nth-child(2)::after { transition-delay: 0.8s; transform: translateX(-50%) scaleY(1); }
.section-visible .timeline-item:nth-child(3)::after { transition-delay: 1.0s; transform: translateX(-50%) scaleY(1); }
.section-visible .timeline-item:nth-child(4)::after { transition-delay: 1.2s; transform: translateX(-50%) scaleY(1); }
.section-visible .timeline-item:nth-child(5)::after { transition-delay: 1.4s; transform: translateX(-50%) scaleY(1); }
.section-visible .timeline-item:nth-child(6)::after { transition-delay: 1.6s; transform: translateX(-50%) scaleY(1); }
.section-visible .timeline-item:nth-child(7)::after { transition-delay: 1.8s; transform: translateX(-50%) scaleY(1); }

/* Timeline Icons Interactive Hover */
#process-timeline .timeline-icon { transition: transform 0.3s ease; cursor: pointer; z-index: 10; }
#process-timeline .timeline-icon:hover { transform: scale(1.2) rotate(10deg); box-shadow: 0 0 15px rgba(0, 82, 155, 0.5); }

#process-timeline .timeline-icon, #process-timeline .timeline-card { transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.section-hidden #process-timeline .timeline-icon, .section-hidden #process-timeline .timeline-card { opacity: 0; }
.section-hidden #process-timeline .timeline-icon { transform: scale(0.5); }
.section-hidden #process-timeline .right-timeline .timeline-card { transform: translateX(-30px); }
.section-hidden #process-timeline .left-timeline .timeline-card { transform: translateX(30px); }
.section-visible #process-timeline .timeline-icon { opacity: 1; transform: scale(1); }
.section-visible #process-timeline .timeline-card { opacity: 1; transform: translateX(0); }
.section-visible #process-timeline .timeline-item:nth-child(1) .timeline-icon, .section-visible #process-timeline .timeline-item:nth-child(1) .timeline-card { transition-delay: 0.4s; }
.section-visible #process-timeline .timeline-item:nth-child(2) .timeline-icon, .section-visible #process-timeline .timeline-item:nth-child(2) .timeline-card { transition-delay: 0.6s; }
.section-visible #process-timeline .timeline-item:nth-child(3) .timeline-icon, .section-visible #process-timeline .timeline-item:nth-child(3) .timeline-card { transition-delay: 0.8s; }
.section-visible #process-timeline .timeline-item:nth-child(4) .timeline-icon, .section-visible #process-timeline .timeline-item:nth-child(4) .timeline-card { transition-delay: 1.0s; }
.section-visible #process-timeline .timeline-item:nth-child(5) .timeline-icon, .section-visible #process-timeline .timeline-item:nth-child(5) .timeline-card { transition-delay: 1.2s; }
.section-visible #process-timeline .timeline-item:nth-child(6) .timeline-icon, .section-visible #process-timeline .timeline-item:nth-child(6) .timeline-card { transition-delay: 1.4s; }
.section-visible #process-timeline .timeline-item:nth-child(7) .timeline-icon, .section-visible #process-timeline .timeline-item:nth-child(7) .timeline-card { transition-delay: 1.6s; }
.section-visible #process-timeline .timeline-item:nth-child(8) .timeline-icon, .section-visible #process-timeline .timeline-item:nth-child(8) .timeline-card { transition-delay: 1.8s; }

/* 
================================
--- COMPANY OUTLINE SPECIFIC STYLES ---
================================
*/
@keyframes revealImageSequence { 0%, 15% { opacity: 1; } 30%, 70% { opacity: 0; } 85%, 100% { opacity: 1; } }
.history-carousel { width: 100%; padding-top: 25px; padding-bottom: 40px; }
@media (min-width: 768px) { .history-carousel { padding-top: 50px; padding-bottom: 80px; } }
.history-carousel .swiper-slide { background-position: center; background-size: cover; width: 240px !important; height: 240px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: white; border-radius: 0.75rem; overflow: hidden; -webkit-box-reflect: below 1px linear-gradient(transparent 50%, rgba(0, 0, 0, 0.2)); }
@media (min-width: 768px) { .history-carousel .swiper-slide { width: 320px !important; height: 320px; } }
.history-carousel .swiper-container { overflow: visible; }
.slide-content-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; opacity: 1; }
.swiper-slide-active .slide-content-wrapper { animation: revealImageSequence 6s infinite ease-in-out; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; padding: 1rem; }
.slide-1 .slide-overlay { background: rgba(29, 78, 216, 0.90); }
.slide-2 .slide-overlay { background: rgba(22, 163, 74, 0.90); }
.slide-3 .slide-overlay { background: rgba(220, 38, 38, 0.90); }
.slide-4 .slide-overlay { background: rgba(234, 88, 12, 0.90); }
.slide-5 .slide-overlay { background: rgba(126, 34, 206, 0.90); }
.history-carousel-nav { width: 44px; height: 44px; background-color: rgba(0, 82, 155, 0.7); border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease; cursor: pointer; }
.history-carousel-nav:hover { background-color: #00529B; }

.philosophy-carousel { padding: 1rem 0 3.5rem 0; width: 100%; }
.philosophy-carousel .swiper-slide { height: auto; padding: 0.5rem; width: auto; }
.philosophy-carousel .card { height: 100%; display: flex; flex-direction: column; }
.philosophy-carousel-nav { width: 44px; height: 44px; background-color: #00529B; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease, transform 0.3s ease; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.philosophy-carousel-nav:hover { background-color: #003d73; transform: scale(1.05); }
.philosophy-button-prev { left: -20px; }
.philosophy-button-next { right: -20px; }
@media (max-width: 640px) { .product-carousel-wrapper { padding: 20px 1rem; } .product-carousel-wrapper .swiper-button-next, .product-carousel-wrapper .swiper-button-prev { display: none; } .philosophy-button-prev { left: 0px; } .philosophy-button-next { right: 0px; } }
.philosophy-pagination.swiper-pagination-bullets .swiper-pagination-bullet { background-color: #94A3B8; }
.philosophy-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active { background-color: #00529B; }

/* --- 3D Solar System --- */
/* --- 3D Solar System Animation Styles --- */

/* The Scene Container */
.scene-3d-container {
    perspective: 1000px; /* Gives the depth perception */
    overflow: hidden;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
@media (min-width: 768px) { .scene-3d-container { height: 400px; } }
@media (min-width: 1024px) { .scene-3d-container { height: 600px; } }

/* The Tilted Plane (The "Disc") */
.solar-system-3d {
    position: relative;
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
    transform: rotateX(60deg); /* This tilts the whole system */
}
@media (min-width: 768px) { .solar-system-3d { width: 400px; height: 400px; } }
@media (min-width: 1024px) { .solar-system-3d { width: 600px; height: 600px; } }

/* --- The Sun (Center Core) --- */
.sun-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    /* Counter-rotate X to make the sun face the user, not the sky */
    transform: translate(-50%, -50%) rotateX(-60deg);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4facfe, #00529B);
    box-shadow: 0 0 60px rgba(0, 82, 155, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.8);
}
@media (min-width: 768px) { .sun-3d { width: 100px; height: 100px; border: 3px solid rgba(255,255,255,0.8); } }
@media (min-width: 1024px) { .sun-3d { width: 140px; height: 140px; border: 4px solid rgba(255,255,255,0.8); } }
.dark .sun-3d {
    border-color: #1e293b;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
}

/* --- Orbit Rings (Visual Lines) --- */
.orbit-ring-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(0, 82, 155, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transform-style: preserve-3d;
}
.dark .orbit-ring-3d { border-color: rgba(255,255,255,0.15); }

.ring-1 { width: 140px; height: 140px; }
.ring-2 { width: 220px; height: 220px; }
.ring-3 { width: 300px; height: 300px; }
@media (min-width: 768px) { .ring-1 { width: 200px; height: 200px; } .ring-2 { width: 320px; height: 320px; } .ring-3 { width: 440px; height: 440px; } }
@media (min-width: 1024px) { .ring-1 { width: 280px; height: 280px; } .ring-2 { width: 440px; height: 440px; } .ring-3 { width: 600px; height: 600px; } }

/* --- The Orbit Spinners (Invisible wrappers that rotate) --- */
.orbit-spinner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    transform-style: preserve-3d;
}

/* Animation Defs */
.spin-clockwise-fast   { animation: orbitSpin 20s linear infinite; }
.spin-counter-mid      { animation: orbitSpin 30s linear infinite reverse; } /* Middle ring spins opposite */
.spin-clockwise-slow   { animation: orbitSpin 45s linear infinite; }

/* PAUSE ANIMATION ON HOVER (Crucial for UX) */
.scene-3d-container:hover .orbit-spinner,
.scene-3d-container:hover .planet-visual-wrapper {
    animation-play-state: paused;
}

/* --- Planet Positioning --- */
.planet-pos {
    position: absolute;
    top: 50%;
    right: 0; /* Puts the planet on the edge of the ring */
    width: 60px; 
    height: 60px;
    margin-top: -30px;
    margin-right: -30px; /* Center alignment */
    transform-style: preserve-3d;
}

/* --- Planet Counter-Rotation Wrapper --- */
/* This spins OPPOSITE to the orbit so the planet stays upright */
.planet-visual-wrapper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}
.spin-clockwise-fast .planet-visual-wrapper   { animation: counterRotate 20s linear infinite; }
.spin-counter-mid .planet-visual-wrapper      { animation: counterRotateReverse 30s linear infinite; }
.spin-clockwise-slow .planet-visual-wrapper   { animation: counterRotate 45s linear infinite; }

/* --- The Planet Sphere (The visual part) --- */
.planet-sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    /* Final tilt correction to face the camera */
    transform: rotateX(-60deg); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dark .planet-sphere {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Hover Effects */
.planet-sphere:hover {
    background: #00529B;
    border-color: #fff;
    transform: rotateX(-60deg) scale(1.3) translateZ(20px); /* Pop out effect */
    box-shadow: 0 0 25px rgba(0, 82, 155, 0.8);
    z-index: 100;
}
.planet-sphere:hover .material-icons,
.planet-sphere:hover span {
    color: white !important;
}

/* --- Keyframes --- */
@keyframes orbitSpin {
    from { transform: rotateZ(0deg); }
    to   { transform: rotateZ(360deg); }
}

@keyframes counterRotate {
    from { transform: rotateZ(360deg); }
    to   { transform: rotateZ(0deg); }
}

@keyframes counterRotateReverse {
    from { transform: rotateZ(0deg); }
    to   { transform: rotateZ(360deg); }
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .solar-system-3d { transform: scale(0.55) rotateX(60deg); }
    .scene-3d-container { height: 450px; }
}

/* --- 3D Solar System Styles (Corrected) --- */

.scene-3d-container {
    perspective: 1000px;
    overflow: visible; /* Changed to visible to prevent cutting off large orbits */
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 20px;
}

/* The Tilted Plane */
.solar-system-3d {
    position: relative;
    width: 600px;
    height: 600px;
    transform-style: preserve-3d;
    transform: rotateX(60deg); /* The 3D Tilt */
}

/* The Sun (Center) */
.sun-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%) rotateX(-60deg); /* Counter-tilt */
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4facfe, #00529B);
    box-shadow: 0 0 60px rgba(0, 82, 155, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 4px solid rgba(255,255,255,0.8);
}
.dark .sun-3d {
    border-color: #1e293b;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
}

/* Orbit Rings */
.orbit-ring-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(0, 82, 155, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transform-style: preserve-3d;
}
.dark .orbit-ring-3d { border-color: rgba(255,255,255,0.15); }

/* Exact Sizing for Rings */
.ring-1 { width: 280px; height: 280px; } /* Radius 140px */
.ring-2 { width: 440px; height: 440px; } /* Radius 220px */
.ring-3 { width: 600px; height: 600px; } /* Radius 300px */

/* Orbit Spinners (Containers that rotate) */
.orbit-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;  /* Key change: 0 width/height to force center origin */
    height: 0;
    transform-style: preserve-3d;
}

.spin-clockwise-fast   { animation: orbitSpin 20s linear infinite; }
.spin-counter-mid      { animation: orbitSpin 30s linear infinite reverse; }
.spin-clockwise-slow   { animation: orbitSpin 45s linear infinite; }

/* Pause on Hover */
.scene-3d-container:hover .orbit-spinner,
.scene-3d-container:hover .planet-visual-wrapper {
    animation-play-state: paused;
}

/* Planet Positioning Wrapper */
.planet-pos {
    position: absolute;
    top: 0;
    left: 0;
    width: 0; 
    height: 0;
    transform-style: preserve-3d;
}

/* Visual Wrapper (Counter-rotates to keep icon upright) */
.planet-visual-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    top: -30px; /* Center the icon vertically */
    left: -30px; /* Center the icon horizontally */
    transform-style: preserve-3d;
}

.spin-clockwise-fast .planet-visual-wrapper   { animation: counterRotate 20s linear infinite; }
.spin-counter-mid .planet-visual-wrapper      { animation: counterRotateReverse 30s linear infinite; }
.spin-clockwise-slow .planet-visual-wrapper   { animation: counterRotate 45s linear infinite; }

/* The Planet Sphere */
.planet-sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    transform: rotateX(-60deg); /* Face the camera */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dark .planet-sphere {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.planet-sphere:hover {
    background: #00529B;
    border-color: #fff;
    transform: rotateX(-60deg) scale(1.3) translateZ(20px);
    box-shadow: 0 0 25px rgba(0, 82, 155, 0.8);
    z-index: 100;
}
.planet-sphere:hover .material-icons,
.planet-sphere:hover span { color: white !important; }

/* 
================================
--- MOBILE-SPECIFIC IMPROVEMENTS ---
================================
*/

/* Touch-friendly button sizes for mobile */
@media (max-width: 640px) {
    button, a[role="button"], input[type="button"], input[type="submit"] {
        min-height: 44px; /* Apple recommended touch target size */
        min-width: 44px;
        padding: 0.75rem 1rem !important;
    }
    
    /* Better form input sizes on mobile */
    input[type="text"], 
    input[type="email"], 
    input[type="password"], 
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px; /* Prevents auto-zoom on iOS */
        min-height: 44px;
        padding: 0.75rem;
    }
    
    /* Better link tap targets */
    a { 
        padding: 0.5rem 0.25rem; 
        display: inline-block;
    }
    
    /* Improve text readability on mobile */
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Prevent horizontal scroll on mobile */
    body, html {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Mobile-specific navigation improvements */
#mobile-menu {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure containers don't overflow on very small screens */
@media (max-width: 320px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
    }
}

/* Improve modal responsiveness on mobile */
#lightbox-modal,
#imageModal {
    padding: 8px;
}

@media (max-width: 640px) {
    #lightbox-modal img,
    #lightbox-modal video,
    #lightbox-modal iframe,
    #imageModal img {
        max-height: calc(100vh - 60px) !important;
    }
}

/* Animations */
@keyframes orbitSpin { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } }
@keyframes counterRotate { from { transform: rotateZ(360deg); } to { transform: rotateZ(0deg); } }
@keyframes counterRotateReverse { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } }

/* Mobile */
@media (max-width: 768px) {
    .solar-system-3d { transform: scale(0.55) rotateX(60deg); }
    .scene-3d-container { height: 450px; }
}

/* =========================================
   3D INTEGRATED PROCESS (NASA STYLE)
   ========================================= */

/* The Main Container */
#integrated-process-3d {
    background: radial-gradient(circle at center, #1e293b 0%, #050b18 100%);
    position: relative;
    overflow: hidden;
}

/* The Canvas (Where Three.js draws) */
#solar-system-container {
    width: 100%;
    height: 100%;
    outline: none; /* Removes click border */
}

/* NASA-Style Glassmorphism Panel */
#planet-info-panel {
    /* Hidden by default (off-screen right) */
    transform: translateX(120%); 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Active State for Panel (Slide In) */
#planet-info-panel.active {
    transform: translateX(0);
}

/* Custom Scrollbar for Panel Content */
#panel-content::-webkit-scrollbar {
    width: 6px;
}
#panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
#panel-content::-webkit-scrollbar-thumb {
    background: rgba(0, 82, 155, 0.5); 
    border-radius: 3px;
}

/* Pulse Animation for the "Real Rate" indicator */
@keyframes signal-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.signal-dot {
    animation: signal-pulse 2s infinite;
}