/* Custom Styles for Agnitejas Energy Site */

:root {
    --sun-100: #ffe7c9;
    --sun-300: #ffd1a8;
    --sun-500: #ff8a3d;
    --sun-600: #ff6b1a;
    --sky-500: #38bdf8;
    --ink-900: #0b121a;
    --ink-950: #070c11;
    --glow: rgba(255, 138, 61, 0.25);
}

body.solar-body {
    background:
        radial-gradient(900px 520px at 12% -10%, rgba(255, 174, 94, 0.24), transparent 60%),
        radial-gradient(700px 420px at 90% 8%, rgba(56, 189, 248, 0.16), transparent 55%),
        linear-gradient(180deg, #070c11 0%, #0b121a 40%, #0f1924 100%);
}

.section-sunrise {
    background: radial-gradient(700px 380px at 5% 0%, rgba(255, 138, 61, 0.15), transparent 60%),
        linear-gradient(180deg, #0b121a 0%, #0a1017 100%);
}

.section-ember {
    background: radial-gradient(600px 360px at 85% 0%, rgba(255, 138, 61, 0.18), transparent 60%),
        linear-gradient(180deg, #0b121a 0%, #090f15 100%);
}

.section-slate {
    background: radial-gradient(700px 420px at 90% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
        linear-gradient(180deg, #09111a 0%, #0b121a 100%);
}

.footer-sun {
    background: radial-gradient(600px 280px at 50% 0%, rgba(255, 138, 61, 0.2), transparent 70%), #05070a;
}

/* Glassmorphism Utilities */
.glass-card {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(280px 180px at 20% 0%, rgba(255, 138, 61, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-nav {
    background: rgba(7, 12, 17, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.sun-card {
    position: relative;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.sun-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(220px 160px at 80% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
        radial-gradient(200px 140px at 0% 100%, rgba(255, 138, 61, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.hero-sun::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -140px;
    top: -160px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 179, 104, 0.35), rgba(255, 107, 26, 0.05) 70%);
    z-index: 1;
    filter: blur(2px);
}

.hero-sun::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 320px at 15% 0%, rgba(56, 189, 248, 0.2), transparent 60%);
    z-index: 1;
}

.hero-orbit {
    position: absolute;
    width: 560px;
    height: 560px;
    right: -170px;
    top: -190px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(255, 138, 61, 0.25);
    animation: orbit 18s linear infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.18;
    mask-image: radial-gradient(60% 50% at 50% 10%, black, transparent);
    -webkit-mask-image: radial-gradient(60% 50% at 50% 10%, black, transparent);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-pill i {
    color: var(--sun-500);
}

/* Animations */
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.animate-slow-zoom {
    animation: slowZoom 20s infinite alternate ease-in-out;
}

.animate-tilt {
    animation: tilt 10s infinite linear;
}

@keyframes tilt {

    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(1deg);
    }

    75% {
        transform: rotate(-1deg);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounceSlow {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 3.6s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sun-500);
}

/* Text Selection */
::selection {
    background: var(--sun-600);
    color: #fff;
}

/* Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover Effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(90deg, var(--sun-500), var(--sky-500));
    transition: width 0.3s ease;
}

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

@media (max-width: 640px) {
    .hero-orbit {
        width: 380px;
        height: 380px;
        right: -140px;
        top: -160px;
    }

    .hero-grid {
        background-size: 90px 90px;
        opacity: 0.12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-slow-zoom,
    .animate-tilt,
    .animate-bounce-slow,
    .hero-orbit {
        animation: none;
    }
}
