/* Services Arc Layout Styles */
.services-arc-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #081B31;
}

/* Floating Particles */
.particles-container {
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(170, 131, 56, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translate(var(--start-x), var(--start-y));
        opacity: 0;
    }
    10% {
        opacity: var(--opacity);
    }
    90% {
        opacity: var(--opacity);
    }
    100% {
        transform: translate(var(--end-x), var(--end-y));
        opacity: 0;
    }
}

/* Floating Icons */
.floating-icons-container {
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.4); /* Changed to white */
    opacity: 0.3;
    pointer-events: none;
    animation: floatIcon linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); /* White glow */
    z-index: 1;
}

.floating-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes floatIcon {
    0% {
        transform: translate(var(--start-x), var(--start-y)) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translate(var(--end-x), var(--end-y)) rotate(360deg);
        opacity: 0;
    }
}

/* Dotted Particles */
.dotted-particles-container {
    pointer-events: none;
}

.dotted-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15); /* White dots */
    border-radius: 50%;
    pointer-events: none;
    animation: dottedParticle linear infinite;
}

@keyframes dottedParticle {
    0% {
        transform: translate(var(--start-x), var(--start-y)) scale(0);
        opacity: 0;
    }
    10% {
        transform: translate(var(--start-x), var(--start-y)) scale(1);
        opacity: 0.15;
    }
    90% {
        transform: translate(var(--start-x), var(--start-y)) scale(1);
        opacity: 0.15;
    }
    100% {
        transform: translate(var(--start-x), var(--start-y)) scale(0);
        opacity: 0;
    }
}

/* Upper Section */
.upper-section {
    padding-bottom: 1rem;
}

/* Lower Section Grid */
.lower-section {
    min-height: 600px;
}

/* Featured Product Container */
.featured-product-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.featured-product-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.featured-product-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(170, 131, 56, 0.2);
    border-color: rgba(170, 131, 56, 0.3);
}

.featured-item {
    transition: transform 0.2s ease;
}

.featured-item:hover {
    transform: translateX(5px);
}

.featured-icon {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(170, 131, 56, 0.3);
}

.featured-item:hover .featured-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(170, 131, 56, 0.4);
}

.btn-featured {
    transition: all 0.3s ease;
    background-size: 200% 100%;
    background-position: 100% 0;
    box-shadow: 0 4px 15px rgba(170, 131, 56, 0.3);
}

.btn-featured:hover {
    background-position: 0 0;
    box-shadow: 0 10px 25px rgba(170, 131, 56, 0.5);
}

/* Arc Container */
.arc-container {
    position: relative;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arc Layout Container */
.arc-layout-container {
    position: relative;
    width: 700px;
    height: 600px;
    margin: 0 auto;
    z-index: 10;
}

/* Outer Circle (Right Half Only) */
.outer-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    z-index: 5;
}

/* Right Half (Visible) */
.circle-right-half {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid rgba(170, 131, 56, 0.2);
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

.circle-right-half::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px dashed rgba(255, 255, 255, 0.3);
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
    animation: dashRotate 20s linear infinite;
}

/* Left Half (Faded/Hidden) */
.circle-left-half {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.05);
    clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
    filter: blur(2px);
    opacity: 0.3;
}

/* Sun Core (Logo) */
.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, #AA8338, #081B31);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(170, 131, 56, 0.5),
                0 0 100px rgba(170, 131, 56, 0.3),
                0 0 140px rgba(170, 131, 56, 0.2),
                inset 0 8px 25px rgba(255, 255, 255, 0.2);
    z-index: 20;
    animation: sunPulse 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.sun-core:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 80px rgba(170, 131, 56, 0.6),
                0 0 120px rgba(170, 131, 56, 0.4),
                0 0 160px rgba(170, 131, 56, 0.3);
}

.sun-container {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 8px 25px rgba(8, 27, 49, 0.2);
}

.sun-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(170, 131, 56, 0.4) 0%, transparent 70%);
    animation: sunGlowPulse 3s ease-in-out infinite;
}

.sun-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sun-text {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #081B31, #AA8338);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    display: none; /* Hide if image loads */
}

/* Service Planets */
.service-planet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Position planets along right arc (30° to 150°) */
.service-planet[style*="--planet-angle"] {
    --orbit-radius: 243px;
    --center-x: 325px;
    --center-y: 275px;
    
    transform: 
        translate(-50%, -50%)
        rotate(var(--planet-angle))
        translateY(calc(-1 * var(--orbit-radius)))
        rotate(calc(-1 * var(--planet-angle)));
}

/* Gravity Line */
.gravity-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 1px;
    background: linear-gradient(90deg, rgba(170, 131, 56, 0.5), transparent);
    transform-origin: left center;
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--planet-angle)));
    opacity: 0;
    transition: opacity 0.3s ease, height 0.3s ease;
    z-index: 1;
}

/* Planet Circle */
.planet-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #AA8338, #081B31);
    box-shadow: 0 8px 25px rgba(170, 131, 56, 0.4),
                0 0 20px rgba(170, 131, 56, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    animation: planetOrbit 20s linear infinite;
    animation-delay: calc((var(--planet-angle) - 30deg) / 120deg * -4s);
}

.planet-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(170, 131, 56, 0.3), transparent);
    border-radius: 50%;
    animation: planetGlow 3s ease-in-out infinite;
    animation-delay: calc((var(--planet-angle) - 30deg) / 120deg * 1s);
    z-index: -1;
}

.planet-inner {
    position: absolute;
    inset: 4px;
    background: linear-gradient(135deg, #081B31, #AA8338);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.planet-icon {
    width: 28px;
    height: 28px;
    color: white;
    transition: all 0.3s ease;
}

/* Planet Label */
.planet-label {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: 700;
    color: white;
    background: rgba(8, 27, 49, 0.9);
    padding: 10px 20px;
    border-radius: 25px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 40;
    min-width: 180px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(170, 131, 56, 0.3);
    font-size: 0.95rem;
}

.planet-label::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(8, 27, 49, 0.9);
}

/* Planet Tooltip */
.planet-tooltip {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 27, 49, 0.95);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 50;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(170, 131, 56, 0.3);
}

.planet-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px transparent;
    border-top: 10px solid rgba(8, 27, 49, 0.95);
}

.planet-tooltip h4 {
    color: #AA8338;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.planet-tooltip p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Hover Effects */
.service-planet:hover .gravity-line {
    opacity: 1;
    height: 2px;
}

.service-planet:hover .planet-circle {
    transform: scale(1.3) rotate(0deg);
    box-shadow: 0 12px 35px rgba(170, 131, 56, 0.6),
                0 0 30px rgba(170, 131, 56, 0.4);
    animation: none;
}

.service-planet:hover .planet-inner {
    background: linear-gradient(135deg, #AA8338, #081B31);
}

.service-planet:hover .planet-icon {
    transform: scale(1.2);
    color: white;
}

.service-planet:hover .planet-label {
    opacity: 1;
    visibility: visible;
    top: -55px;
}

.service-planet:hover .planet-tooltip {
    opacity: 1;
    visibility: visible;
    top: -160px;
}

/* Active state (when one planet is hovered, others fade) */
.arc-layout-container:has(.service-planet:hover) .service-planet:not(:hover) {
    opacity: 0.3;
    filter: blur(1px);
}

.arc-layout-container:has(.service-planet:hover) .circle-right-half {
    border-color: rgba(170, 131, 56, 0.3);
}

/* Solar Flares */
.solar-flares {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 15;
    pointer-events: none;
}

.solar-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(170, 131, 56, 0.3), transparent);
    transform-origin: left center;
    animation: flareRotate 20s linear infinite;
}

/* Title Effects */
.title-effects {
    z-index: 1;
}

.title-glow-1,
.title-glow-2 {
    animation: titleGlow 8s ease-in-out infinite alternate;
}

.title-glow-2 {
    animation-delay: 2s;
}

@keyframes titleGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Title Text Gradient */
.title-text-gradient {
    background-size: 200% 100%;
    background-position: 100% 0;
    animation: gradientShift 4s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes gradientShift {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Title Decoration */
.title-decoration {
    display: none;
}

@media (min-width: 1024px) {
    .title-decoration {
        display: block;
    }
    
    .title-line-left,
    .title-line-right {
        animation: lineExtend 3s ease-in-out infinite alternate;
    }
    
    .title-line-left {
        animation-delay: 0.5s;
    }
    
    .title-line-right {
        animation-delay: 1s;
    }
    
    @keyframes lineExtend {
        0%, 100% {
            width: 24px;
        }
        50% {
            width: 48px;
        }
    }
    
    .title-dot-left,
    .title-dot-right {
        animation: dotPulse 2s ease-in-out infinite;
    }
    
    .title-dot-left {
        animation-delay: 0.3s;
    }
    
    .title-dot-right {
        animation-delay: 0.7s;
    }
    
    @keyframes dotPulse {
        0%, 100% {
            transform: scale(1);
            opacity: 0.7;
        }
        50% {
            transform: scale(1.2);
            opacity: 1;
        }
    }
}

/* Title Shadow */
.title-shadow {
    animation: shadowMove 6s ease-in-out infinite alternate;
}

@keyframes shadowMove {
    0% {
        transform: translateX(-10px) translateY(-5px);
    }
    100% {
        transform: translateX(10px) translateY(5px);
    }
}

/* Responsive Title Adjustments */
@media (max-width: 768px) {
    .upper-section {
        padding-top: 2rem;
    }
    
    h2.text-4xl {
        font-size: 3rem;
    }
    
    h2.text-6xl {
        font-size: 3.5rem;
    }
    
    h2.text-7xl {
        font-size: 4rem;
    }
    
    .title-text-gradient {
        font-size: 3.5rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .text-3xl {
        font-size: 1.875rem;
    }
    
    .text-4xl {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    h2.text-4xl {
        font-size: 2.5rem;
    }
    
    h2.text-6xl {
        font-size: 3rem;
    }
    
    h2.text-7xl {
        font-size: 3.5rem;
    }
    
    .title-text-gradient {
        font-size: 3rem;
    }
    
    .text-xl {
        font-size: 1rem;
    }
    
    .text-2xl {
        font-size: 1.125rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-4xl {
        font-size: 1.875rem;
    }
    
    .upper-section .flex {
        gap: 1.5rem;
    }
    
    .upper-section .text-3xl {
        font-size: 1.75rem;
    }
    
    .upper-section .text-sm {
        font-size: 0.75rem;
    }
}

/* Animation delays for stats */
.upper-section .flex div:nth-child(1) {
    animation-delay: 300ms;
}

.upper-section .flex div:nth-child(2) {
    animation-delay: 400ms;
}

.upper-section .flex div:nth-child(3) {
    animation-delay: 500ms;
}

.upper-section .flex div:nth-child(4) {
    animation-delay: 600ms;
}

/* Animations */
@keyframes sunPulse {
    0%, 100% {
        box-shadow: 0 0 60px rgba(170, 131, 56, 0.5),
                    0 0 100px rgba(170, 131, 56, 0.3),
                    0 0 140px rgba(170, 131, 56, 0.2);
    }
    50% {
        box-shadow: 0 0 80px rgba(170, 131, 56, 0.6),
                    0 0 120px rgba(170, 131, 56, 0.4),
                    0 0 160px rgba(170, 131, 56, 0.3);
    }
}

@keyframes sunGlowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes dashRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes planetOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes planetGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.1;
    }
}

@keyframes flareRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .arc-layout-container {
        width: 550px;
        height: 500px;
    }
    
    .outer-circle {
        width: 430px;
        height: 430px;
    }
    
    .sun-core {
        width: 150px;
        height: 150px;
    }
    
    .sun-container {
        width: 110px;
        height: 110px;
    }
    
    .sun-logo {
        width: 80px;
        height: 80px;
    }
    
    .sun-text {
        font-size: 3.2rem;
    }
    
    .service-planet[style*="--planet-angle"] {
        --orbit-radius: 185px;
        --center-x: 275px;
        --center-y: 250px;
    }
    
    .planet-circle {
        width: 50px;
        height: 50px;
    }
    
    .planet-icon {
        width: 24px;
        height: 24px;
    }
    
    .planet-label {
        min-width: 160px;
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    
    .planet-tooltip {
        width: 240px;
        padding: 18px;
    }
    
    .planet-tooltip h4 {
        font-size: 1.25rem;
    }
    
    .planet-tooltip p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .lower-section {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .featured-product-container {
        order: 2;
    }
    
    .arc-container {
        order: 1;
        min-height: 500px;
    }
    
    .arc-layout-container {
        width: 100%;
        height: 500px;
    }
    
    .outer-circle {
        width: 380px;
        height: 380px;
    }
    
    .sun-core {
        width: 140px;
        height: 140px;
    }
    
    .sun-container {
        width: 100px;
        height: 100px;
    }
    
    .sun-logo {
        width: 70px;
        height: 70px;
    }
    
    .sun-text {
        font-size: 2.8rem;
    }
    
    .service-planet[style*="--planet-angle"] {
        --orbit-radius: 160px;
        --center-x: 250px;
        --center-y: 250px;
    }
    
    .planet-circle {
        width: 45px;
        height: 45px;
    }
    
    .planet-icon {
        width: 20px;
        height: 20px;
    }
    
    .planet-label {
        min-width: 140px;
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .planet-tooltip {
        width: 220px;
        padding: 16px;
    }
    
    .featured-product-content {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .arc-layout-container {
        height: 450px;
    }
    
    .outer-circle {
        width: 330px;
        height: 330px;
    }
    
    .sun-core {
        width: 120px;
        height: 120px;
    }
    
    .sun-container {
        width: 85px;
        height: 85px;
    }
    
    .sun-logo {
        width: 60px;
        height: 60px;
    }
    
    .sun-text {
        font-size: 2.5rem;
    }
    
    .service-planet[style*="--planet-angle"] {
        --orbit-radius: 140px;
        --center-x: 225px;
        --center-y: 225px;
    }
    
    .planet-circle {
        width: 40px;
        height: 40px;
    }
    
    .planet-icon {
        width: 18px;
        height: 18px;
    }
    
    .planet-label {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .planet-tooltip {
        width: 200px;
        padding: 14px;
    }
    
    .featured-product-content {
        padding: 1.25rem;
    }
}

/* Touch Device Support */
@media (hover: none) and (pointer: coarse) {
    .service-planet {
        cursor: pointer;
    }
    
    .service-planet.active .planet-label,
    .service-planet.active .planet-tooltip {
        opacity: 1;
        visibility: visible;
    }
}