/* Custom CSS for Aethelgard Premium Landing Page */

/* Base & Scrollbar */
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0F19; 
}

::-webkit-scrollbar-thumb {
    background: rgba(106, 90, 205, 0.5); 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 90, 205, 0.8); 
}

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-nav-inner {
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar specific states */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #cd3b5b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(247, 200, 115, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Parallax Background Elements */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.delay-150 {
    animation-delay: 1.5s;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* Hide on Load for GSAP */
.hero-badge, .hero-title, .hero-subtitle, .hero-cta {
    opacity: 0;
    transform: translateY(30px);
}

/* Services */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(247, 200, 115, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Testimonials Slider */
.testimonial-slide {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide.active {
    opacity: 1;
    z-index: 10;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.slider-dot[data-active="true"] {
    background-color: #F7C873;
    transform: scale(1.2);
}

/* Star Particles */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

/* FAQ Accordion */
.faq-content.open {
    max-height: 500px;
}

/* Lenis */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #F7C873;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 200, 115, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}
body:hover .cursor { opacity: 1; }
@media (hover: none) and (pointer: coarse) {
    .cursor, .cursor-follower { display: none; }
}

.cursor-hover-state {
    width: 60px;
    height: 60px;
    background-color: rgba(247, 200, 115, 0.1);
    border-color: rgba(247, 200, 115, 0.8);
    backdrop-filter: blur(2px);
}

/* Ripple */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}
@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animated Gradient Border - Pricing Premium Card */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.animated-border {
    position: relative;
}
.animated-border::before, .animated-border::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    z-index: -1;
    border-radius: inherit;
    background-image: conic-gradient(from var(--angle), transparent 70%, #6A5ACD 80%, #F7C873 100%);
    animation: 4s spin linear infinite;
    padding: 2px;
}
.animated-border::before {
    filter: blur(15px);
    opacity: 0.5;
}
@keyframes spin {
    from { --angle: 0deg; }
    to { --angle: 360deg; }
}

/* SplitType Setup */
.split-line {
    overflow: hidden;
}
.split-char {
    display: inline-block;
}

/* Advanced Hero Objects */
.earth-texture {
    animation: rotate-earth 60s linear infinite;
    background-size: cover;
}
@keyframes rotate-earth {
    0% { background-position: 0 0; }
    100% { background-position: -200% 0; }
}

#planet-system {
    transform-style: preserve-3d;
}
.orbit-ring {
    transform-style: preserve-3d;
}
.ring-1 {
    animation: orbit-ring-anim 15s linear infinite;
}
.ring-2 {
    animation: orbit-ring-anim 25s linear infinite reverse;
}
.ring-3 {
    animation: orbit-ring-anim 35s linear infinite;
}
@keyframes orbit-ring-anim {
    0% { transform: rotateX(70deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateZ(360deg); }
}
.orbit-dot {
    /* Counter-rotate to stay spherical looking */
    transform: rotateX(-90deg);
}

#mandala-bg {
    animation: slow-spin 300s linear infinite;
}
#zodiac-wheel {
    animation: slow-spin 180s linear infinite reverse;
}
#hero-zodiac-wheel > img {
    animation: slow-spin 120s linear infinite;
}
@keyframes slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.constellation-line {
    animation: draw-line 8s ease-in-out infinite alternate;
}
@keyframes draw-line {
    0% { stroke-dashoffset: 1000; opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}
.constellation-node {
    animation: node-pulse 3s infinite alternate;
    transform-origin: center;
}
@keyframes node-pulse {
    from { opacity: 0.3; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.5); }
}

/* --- Premium Micro-Interactions & Animated Borders --- */
.animated-divider {
    overflow: visible;
}
.animated-divider line {
    animation: draw-divider 4s ease-in-out infinite alternate;
}
@keyframes draw-divider {
    0% { stroke-dasharray: 400; stroke-dashoffset: 400; opacity: 0; }
    20% { opacity: 1; }
    100% { stroke-dasharray: 400; stroke-dashoffset: 0; opacity: 1; }
}

.gradi.hero-image-wrapper {
    perspective: 1000px;
}

/* Vedi specific template integrations */
.vedi-bracket-card {
    background:
        linear-gradient(to right, rgba(255,255,255,0.3) 1px, transparent 1px) 0 0,
        linear-gradient(to right, rgba(255,255,255,0.3) 1px, transparent 1px) 0 100%,
        linear-gradient(to left, rgba(255,255,255,0.3) 1px, transparent 1px) 100% 0,
        linear-gradient(to left, rgba(255,255,255,0.3) 1px, transparent 1px) 100% 100%,
        linear-gradient(to bottom, rgba(255,255,255,0.3) 1px, transparent 1px) 0 0,
        linear-gradient(to bottom, rgba(255,255,255,0.3) 1px, transparent 1px) 100% 0,
        linear-gradient(to top, rgba(255,255,255,0.3) 1px, transparent 1px) 0 100%,
        linear-gradient(to top, rgba(255,255,255,0.3) 1px, transparent 1px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 15px 15px;
}
.vedi-bracket-card:hover {
    background:
        linear-gradient(to right, #cd3b5b 2px, transparent 2px) 0 0,
        linear-gradient(to right, #cd3b5b 2px, transparent 2px) 0 100%,
        linear-gradient(to left, #cd3b5b 2px, transparent 2px) 100% 0,
        linear-gradient(to left, #cd3b5b 2px, transparent 2px) 100% 100%,
        linear-gradient(to bottom, #cd3b5b 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, #cd3b5b 2px, transparent 2px) 100% 0,
        linear-gradient(to top, #cd3b5b 2px, transparent 2px) 0 100%,
        linear-gradient(to top, #cd3b5b 2px, transparent 2px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-color: rgba(255,255,255,0.02);
}
.clip-diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.gradient-border-wrapper {
    position: relative;
    z-index: 10;
}
.gradient-border-wrapper::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #F7C873, transparent 30%, transparent 70%, #6A5ACD);
    z-index: -1;
    animation: spin-gradient 4s linear infinite;
    filter: blur(2px);
    opacity: 0.8;
}
@keyframes spin-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animated-icon {
    display: inline-block;
    animation: bounce-icon 2s ease-in-out infinite alternate;
}
@keyframes bounce-icon {
    from { transform: scale(0.9) translateY(0); text-shadow: 0 0 5px rgba(247, 200, 115, 0.2); }
    to { transform: scale(1.1) translateY(-2px); text-shadow: 0 0 15px rgba(247, 200, 115, 0.8); }
}

@keyframes ping-slow {
    75%, 100% { transform: scale(2.5); opacity: 0; }
}
.animate-ping-slow {
    animation: ping-slow 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse-slow {
    50% { opacity: .2; transform: scale(0.8); }
}
.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Utilities */
.hidden-nav {
    transform: translateY(-100%);
    opacity: 0;
}

.visible-nav {
    transform: translateY(0);
    opacity: 1;
}

/* Glowing text Selection override */
::selection {
    background: #6A5ACD;
    color: #EAEAF0;
}

input::placeholder, textarea::placeholder {
    color: rgba(234, 234, 240, 0.3);
}

input:focus, textarea:focus {
    box-shadow: 0 0 15px rgba(247, 200, 115, 0.1);
}

/* 3D Orbital Hero Animations */
@keyframes spinRing1 {
    0% { transform: rotateX(70deg) rotateY(10deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateY(10deg) rotateZ(360deg); }
}

@keyframes spinRing2 {
    0% { transform: rotateX(65deg) rotateY(-15deg) rotateZ(0deg); }
    100% { transform: rotateX(65deg) rotateY(-15deg) rotateZ(360deg); }
}

@keyframes spinRing3 {
    0% { transform: rotateX(75deg) rotateY(5deg) rotateZ(0deg); }
    100% { transform: rotateX(75deg) rotateY(5deg) rotateZ(360deg); }
}

/* Date & Time Picker Icon Color */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}
