/* ===================================
   SPECTACULAR SERVICES PAGE
   Out-of-This-World Design & Animations
   Cosmic Universe Theme
   ================================== */

/* Navigation colors handled by adaptive system in main.js */

/* ===================================
   SERVICES UNIVERSE HERO
   ================================== */

.services-universe {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 25%, #1f1f1f 50%, #252525 75%, #1a1a1a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle background texture overlay */
.services-universe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    z-index: 1;
}

/* Dynamic Particle System */
.universe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(201, 169, 110, 0.15), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(201, 169, 110, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(201, 169, 110, 0.08), transparent);
    background-repeat: repeat;
    background-size: 300px 150px;
    animation: particleDrift 45s linear infinite;
}

@keyframes particleDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -100px); }
}

/* Floating Orbs */
.floating-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.08), rgba(201, 169, 110, 0.04), transparent);
    backdrop-filter: blur(1px);
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.orb-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    animation-duration: 22s;
}

.orb-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
    animation-duration: 16s;
}

.orb-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
    animation-duration: 20s;
}

.orb-5 {
    width: 40px;
    height: 40px;
    bottom: 40%;
    left: 70%;
    animation-delay: 8s;
    animation-duration: 14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.1;
    }
    33% {
        transform: translate(20px, -25px) scale(1.1) rotate(120deg);
        opacity: 0.2;
    }
    66% {
        transform: translate(-15px, 20px) scale(0.9) rotate(240deg);
        opacity: 0.15;
    }
}

/* Morphing Background Text */
.universe-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    z-index: 2;
    pointer-events: none;
    line-height: 1;
    letter-spacing: 0.4em;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    width: 90vw;
    max-width: 1800px;
}

.universe-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) rotateX(-90deg);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-universe.animate .universe-letter {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.universe-letter[data-letter="1"] { transition-delay: 0.2s; }
.universe-letter[data-letter="2"] { transition-delay: 0.4s; }
.universe-letter[data-letter="3"] { transition-delay: 0.6s; }
.universe-letter[data-letter="4"] { transition-delay: 0.8s; }
.universe-letter[data-letter="5"] { transition-delay: 1.0s; }
.universe-letter[data-letter="6"] { transition-delay: 1.2s; }
.universe-letter[data-letter="7"] { transition-delay: 1.4s; }
.universe-letter[data-letter="8"] { transition-delay: 1.6s; }

/* Hero Content */
.universe-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
}

.universe-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
}

.badge-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(201, 169, 110, 0.1);
    border-radius: 50px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.05); opacity: 0.2; }
}

.badge-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(201, 169, 110, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.universe-title {
    font-family: 'Maginia', 'maginiaregular', 'Playfair Display', 'Georgia', serif;
    font-size: 6rem;
    font-weight: 300;
    line-height: 1;
    margin: 0 0 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.title-line {
    color: #ffffff;
    opacity: 0;
    transform: translateX(-100px);
    animation: titleSlide 1s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.5s; }
.title-line:nth-child(2) { 
    animation-delay: 0.8s; 
    color: #c9a96e;
    font-style: italic;
    transform: translateX(100px);
}
.title-line:nth-child(3) { animation-delay: 1.1s; }

@keyframes titleSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.universe-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 4rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 1.5s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.universe-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 1s ease-out 2s forwards;
}

.nav-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}

.nav-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(201, 169, 110, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-arrow {
    color: #c9a96e;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===================================
   SERVICES COSMOS SHOWCASE
   ================================== */

.services-cosmos {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 50%, #f5f5f5 100%);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.cosmos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8rem;
    align-items: center;
}

.service-constellation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    animation: constellationRise 1s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.3s);
}

.service-constellation:nth-child(1) { --index: 0; }
.service-constellation:nth-child(2) { --index: 1; }
.service-constellation:nth-child(3) { --index: 2; }
.service-constellation:nth-child(4) { --index: 3; }

@keyframes constellationRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Planet */
.constellation-orbit {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-planet {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.6s ease;
}

.service-planet:hover {
    transform: scale(1.1);
}

.planet-core {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c9a96e 0%, #d4b878 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px rgba(201, 169, 110, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.planet-icon {
    color: #1a1a1a;
    font-size: 1.8rem;
    animation: iconSpin 10s linear infinite;
}

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

.planet-ring {
    position: absolute;
    border: 2px solid rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    animation: ringRotate 15s linear infinite;
}

.ring-1 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left-color: rgba(201, 169, 110, 0.8);
    animation-duration: 12s;
}

.ring-2 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-right-color: rgba(201, 169, 110, 0.6);
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Service Details */
.service-details {
    opacity: 0;
    transform: translateX(-30px);
    animation: detailsSlide 1s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.3s + 0.5s);
}

@keyframes detailsSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-title {
    font-family: 'Maginia', 'maginiaregular', 'Playfair Display', 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: #1a1a1a;
    margin: 0 0 2rem 0;
    line-height: 1.2;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666;
    opacity: 0;
    transform: translateX(-20px);
    animation: featureAppear 0.6s ease-out forwards;
    animation-delay: calc(var(--feature-index, 0) * 0.2s + 1s);
}

.feature-item:nth-child(1) { --feature-index: 0; }
.feature-item:nth-child(2) { --feature-index: 1; }
.feature-item:nth-child(3) { --feature-index: 2; }

@keyframes featureAppear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-dot {
    width: 6px;
    height: 6px;
    background: #c9a96e;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--feature-index, 0) * 0.3s);
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(201, 169, 110, 0.5); }
    50% { transform: scale(1.3); box-shadow: 0 0 20px rgba(201, 169, 110, 0.8); }
}

/* ===================================
   COSMIC CTA SECTION
   ================================== */

.cosmic-cta {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-vortex {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 1;
}

.vortex-ring {
    position: absolute;
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 50%;
    animation: vortexSpin 30s linear infinite;
}

.vortex-ring.ring-1 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top-color: rgba(201, 169, 110, 0.2);
    animation-duration: 20s;
}

.vortex-ring.ring-2 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-right-color: rgba(201, 169, 110, 0.15);
    animation-duration: 35s;
    animation-direction: reverse;
}

.vortex-ring.ring-3 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left-color: rgba(201, 169, 110, 0.1);
    animation-duration: 50s;
}

@keyframes vortexSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.vortex-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.08), transparent);
    border-radius: 50%;
}

.center-pulse {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.15), transparent);
    border-radius: 50%;
    animation: centerPulse 4s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.05; }
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.cta-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.badge-spark {
    color: #c9a96e;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.badge-spark:nth-child(1) { animation-delay: 0s; }
.badge-spark:nth-child(3) { animation-delay: 1s; }

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
    50% { transform: scale(1.1) rotate(90deg); opacity: 0.7; }
}

.cta-title {
    font-family: 'Maginia', 'maginiaregular', 'Playfair Display', 'Georgia', serif;
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 2rem 0;
}

.cta-accent {
    color: #c9a96e;
    font-style: italic;
}

.cta-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 4rem 0;
}

.cosmic-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #c9a96e 0%, #d4b878 100%);
    border: none;
    border-radius: 50px;
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cosmic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(201, 169, 110, 0.4);
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #c9a96e, #d4b878, #c9a96e);
    border-radius: 50px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cosmic-button:hover .button-glow {
    opacity: 0.7;
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    bottom: 20%;
    left: 60%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 1024px) {
    .universe-title {
        font-size: 4.5rem;
    }
    
    .universe-text {
        font-size: 12rem;
    }
    
    .cosmos-container {
        grid-template-columns: 1fr;
        gap: 6rem;
    }
    
    .service-constellation {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .constellation-orbit {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .universe-title {
        font-size: 3.5rem;
    }
    
    .universe-text {
        font-size: 8rem;
        letter-spacing: 0.2em;
    }
    
    .universe-description {
        font-size: 1.1rem;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .cosmos-container {
        gap: 4rem;
    }
    
    .cta-title {
        font-size: 3rem;
    }
    
    .cta-vortex {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .universe-title {
        font-size: 2.5rem;
    }
    
    .universe-text {
        font-size: 6rem;
        letter-spacing: 0.1em;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .constellation-orbit {
        width: 120px;
        height: 120px;
    }
    
    .service-planet {
        width: 60px;
        height: 60px;
    }
    
    .planet-core {
        width: 60px;
        height: 60px;
    }
    
    .planet-icon {
        font-size: 1.4rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cosmic-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}
