/* ============================================
   AGNITEJAS ENERGY — DESIGN SYSTEM 2.0
   Syne Display + DM Sans Body
   Warm Solar Palette, Precision Layout
   ============================================ */

:root {
    /* Warm ink tones */
    --ink-950: #080604;
    --ink-900: #0D0A07;
    --ink-800: #171210;
    --ink-700: #211A14;
    --ink-600: #2C2218;

    /* Brand amber */
    --amber-600: #C55A0E;
    --amber-500: #E8701A;
    --amber-400: #F08A3C;
    --amber-300: #F7AD72;
    --amber-100: #FAE5D0;

    /* Gold accent */
    --gold-500: #F0B820;
    --gold-300: #F8D880;

    /* Nature accent */
    --sage-500: #4F7840;

    /* Text hierarchy */
    --text-primary: #EDE8DF;
    --text-secondary: #9A9490;
    --text-muted: #5A5550;

    /* Borders */
    --border: rgba(255, 255, 255, 0.07);
    --border-mid: rgba(255, 255, 255, 0.12);
    --border-amber: rgba(232, 112, 26, 0.3);

    /* Glow */
    --glow-amber: rgba(232, 112, 26, 0.18);
    --glow-gold: rgba(240, 184, 32, 0.12);
}

/* ============================================
   BODY & PAGE BACKGROUNDS
   ============================================ */

body.solar-body {
    background-color: var(--ink-900);
    background-image:
        radial-gradient(ellipse 900px 600px at 88% -8%, rgba(232, 112, 26, 0.1), transparent 55%),
        radial-gradient(ellipse 600px 400px at 5% 18%, rgba(240, 184, 32, 0.05), transparent 55%);
}

.section-sunrise {
    background:
        radial-gradient(ellipse 700px 380px at 0% 5%, rgba(232, 112, 26, 0.09), transparent 60%),
        var(--ink-900);
}

.section-ember {
    background:
        radial-gradient(ellipse 600px 360px at 100% 5%, rgba(232, 112, 26, 0.1), transparent 60%),
        var(--ink-800);
}

.section-slate {
    background:
        radial-gradient(ellipse 700px 420px at 50% 5%, rgba(79, 120, 64, 0.06), transparent 60%),
        var(--ink-900);
}

.footer-sun {
    background:
        radial-gradient(ellipse 700px 350px at 50% -5%, rgba(232, 112, 26, 0.14), transparent 65%),
        var(--ink-950);
}

/* ============================================
   NAVIGATION
   ============================================ */

.glass-nav {
    background: rgba(13, 10, 7, 0.9);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--amber-500), var(--gold-500));
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero-sun {
    position: relative;
}

.hero-sun::before {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    right: -180px;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(240, 184, 32, 0.16) 0%,
        rgba(232, 112, 26, 0.1) 35%,
        transparent 68%
    );
    z-index: 1;
    filter: blur(8px);
}

.hero-sun::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 400px at 0% 22%, rgba(232, 112, 26, 0.1), transparent 60%),
        radial-gradient(ellipse 400px 300px at 100% 78%, rgba(79, 120, 64, 0.05), transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.hero-orbit {
    position: absolute;
    width: 580px;
    height: 580px;
    right: -170px;
    top: -195px;
    border-radius: 50%;
    border: 1px solid rgba(232, 112, 26, 0.12);
    box-shadow:
        0 0 80px rgba(232, 112, 26, 0.07),
        inset 0 0 80px rgba(240, 184, 32, 0.04);
    animation: orbit 22s linear infinite;
}

.hero-orbit-2 {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -90px;
    top: -125px;
    border-radius: 50%;
    border: 1px solid rgba(240, 184, 32, 0.07);
    animation: orbit 15s linear infinite reverse;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 90px 90px;
    opacity: 0.55;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 18%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 18%, black 20%, transparent 75%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(232, 112, 26, 0.1);
    border: 1px solid rgba(232, 112, 26, 0.22);
    color: var(--amber-300);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-pill i {
    color: var(--amber-500);
    font-size: 0.72rem;
}

/* Hero staggered entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge  { animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-title  { animation: fadeInUp 0.7s  0.12s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-desc   { animation: fadeInUp 0.7s  0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-cta    { animation: fadeInUp 0.7s  0.36s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-pills  { animation: fadeInUp 0.7s  0.48s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ============================================
   STATS STRIP
   ============================================ */

.stats-strip {
    background: linear-gradient(
        135deg,
        rgba(232, 112, 26, 0.07),
        rgba(240, 184, 32, 0.04),
        rgba(232, 112, 26, 0.07)
    );
    border-top: 1px solid rgba(232, 112, 26, 0.12);
    border-bottom: 1px solid rgba(232, 112, 26, 0.12);
}

/* ============================================
   SECTION LABEL STYLE
   ============================================ */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-500);
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--amber-500);
    border-radius: 1px;
    flex-shrink: 0;
}

/* ============================================
   CARDS — GLASS & SUN
   ============================================ */

.glass-card {
    position: relative;
    background: var(--ink-700);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

/* Top accent bar on hover */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--amber-500), var(--gold-500), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0 0 2px 0;
    z-index: 1;
}

/* Ambient glow overlay */
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(232, 112, 26, 0.06) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--border-amber);
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(232, 112, 26, 0.07);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

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

/* Large ghost number on service cards */
.service-card-num {
    position: absolute;
    bottom: -14px;
    right: 14px;
    font-family: 'Syne', sans-serif;
    font-size: 7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.05em;
    transition: color 0.3s ease;
}

.glass-card:hover .service-card-num {
    color: rgba(232, 112, 26, 0.06);
}

.sun-card {
    background: var(--ink-700);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sun-card:hover {
    border-color: var(--border-amber);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* ============================================
   PROJECT GALLERY CARDS
   ============================================ */

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    border-color: rgba(232, 112, 26, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.project-card img {
    transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 6, 3, 0.93) 0%,
        rgba(8, 6, 3, 0.35) 50%,
        rgba(8, 6, 3, 0.06) 100%
    );
    transition: background 0.4s ease;
}

.project-card:hover .project-card-overlay {
    background: linear-gradient(
        to top,
        rgba(8, 6, 3, 0.97) 0%,
        rgba(8, 6, 3, 0.5) 58%,
        rgba(8, 6, 3, 0.12) 100%
    );
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */

.testimonial-card {
    position: relative;
    background: var(--ink-700);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(200px 180px at 95% 5%, rgba(232, 112, 26, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.testimonial-card:hover {
    border-color: rgba(232, 112, 26, 0.22);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
    background: var(--ink-700);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

/* Highlight open FAQ with CSS :has() */
.faq-item:has(.bg-white\/10) {
    border-color: rgba(232, 112, 26, 0.25);
}

/* ============================================
   CALCULATOR INPUTS
   ============================================ */

.calc-input {
    width: 100%;
    background: var(--ink-900);
    border: 1.5px solid var(--border-mid);
    border-radius: 0.875rem;
    padding: 0.875rem 1.125rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.calc-input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(232, 112, 26, 0.12);
}

.calc-input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: rgba(232, 112, 26, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-500); }

::selection { background: var(--amber-500); color: white; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-shadow {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.text-gradient-amber {
    background: linear-gradient(135deg, var(--amber-400) 0%, var(--gold-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

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

@keyframes slowZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

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

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

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

@keyframes tilt {
    0%, 50%, 100% { transform: rotate(0deg); }
    25%           { transform: rotate(1deg); }
    75%           { transform: rotate(-1deg); }
}

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

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

@media (max-width: 640px) {
    .hero-orbit {
        width: 360px;
        height: 360px;
        right: -125px;
        top: -155px;
    }

    .hero-orbit-2 {
        width: 260px;
        height: 260px;
        right: -70px;
        top: -110px;
    }

    .hero-grid {
        background-size: 65px 65px;
        opacity: 0.3;
    }

    .service-card-num {
        font-size: 5rem;
        bottom: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-slow-zoom,
    .animate-bounce-slow,
    .animate-tilt,
    .hero-orbit,
    .hero-orbit-2,
    .hero-badge,
    .hero-title,
    .hero-desc,
    .hero-cta,
    .hero-pills {
        animation: none !important;
    }
}
