/* Navspark Renewables - Design Guidelines CSS */

:root {
    /* Color Palette */
    --color-deep-navy: #0A1628;
    --color-navy-mid: #12243D;
    --color-navy-light: #1A3352;
    --color-solar-gold: #E8A838;
    --color-gold-light: #F5C96A;
    --color-slate: #8B9BB4;
    --color-text-primary: #E8ECF2;
    --color-accent-teal: #2EC4B6;
    --color-accent-green: #3DDC84;
    --color-cream: #F7F3ED;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --container-max-width: 1300px;
    --section-padding-y: 6rem;
    /* 96px */
    --section-padding-y-mobile: 4rem;
    --section-padding-x: 3rem;
    /* 48px */
    --section-padding-x-mobile: 1.5rem;
    --card-gap: 1.5rem;

    /* Borders & Radius */
    --border-gold-faint: rgba(232, 168, 56, 0.15);
    --radius-card: 16px;
    --radius-button: 8px;

    /* Elevations */
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-gold-bloom: 0 8px 24px rgba(232, 168, 56, 0.25);

    /* Transitions */
    --trans-base: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-deep-navy);
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 1rem;
    /* Base size */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Noise Texture Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    /* Basic SVG noise via data URI */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

h1.display-h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Responsive H1 */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2.section-h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.75rem);
    /* 44px */
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h3.card-h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    /* 19px */
    line-height: 1.4;
    letter-spacing: -0.01em;
}

p {
    color: var(--color-slate);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.label {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-solar-gold);
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-solar-gold);
    line-height: 1;
}

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--trans-base);
}

a:hover {
    color: var(--color-solar-gold);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
}

section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
    position: relative;
}

.bg-navy {
    background-color: var(--color-deep-navy);
}

.bg-navy-mid {
    background-color: var(--color-navy-mid);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all var(--trans-base);
    border: none;
    text-decoration: none;
    outline: none;
}

.btn .arrow-icon {
    margin-left: 0.5rem;
    transition: transform var(--trans-base);
}

.btn:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-primary {
    background-color: var(--color-solar-gold);
    color: var(--color-deep-navy);
}

.btn-primary:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-bloom);
    color: var(--color-deep-navy);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(139, 155, 180, 0.3);
    /* 30% slate */
}

.btn-secondary:hover {
    border-color: var(--color-solar-gold);
    color: var(--color-solar-gold);
}

/* Radial Glows */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.glow-gold {
    background: var(--color-solar-gold);
    opacity: 0.12;
    filter: blur(150px);
    width: 600px;
    height: 600px;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.glow-teal {
    background: var(--color-accent-teal);
    opacity: 0.08;
    filter: blur(150px);
    width: 800px;
    height: 800px;
    animation: pulseGlow 6s infinite alternate-reverse ease-in-out;
}

/* Cards Base */
.card {
    background-color: var(--color-navy-mid);
    border: 1px solid var(--border-gold-faint);
    border-radius: var(--radius-card);
    padding: 2.5rem 2rem;
    transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(232, 168, 56, 0.3);
}

/* Card Top Border Gradient on Hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-solar-gold), var(--color-accent-teal));
    opacity: 0;
    transition: opacity var(--trans-base);
}

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

/* Animations - Keyframes */
@keyframes pulseGlow {
    0% {
        transform: scale(0.9);
        opacity: 0.08;
    }

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

@keyframes spin-cw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-ccw {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Scroll Animation Utility */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 1024px) {
    :root {
        --section-padding-y: var(--section-padding-y-mobile);
        --section-padding-x: var(--section-padding-x-mobile);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .glow-gold,
    .glow-teal {
        animation: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 22, 40, 0.85);
    /* Deep Navy */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 168, 56, 0.15);
    /* Solar Gold faint */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-nav {
    color: var(--color-text-primary);
}

.logo-spark {
    color: var(--color-solar-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    margin-bottom: 5px;
    transition: var(--trans-base);
}

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    /* Account for navbar */
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-navy-mid);
    border: 1px solid var(--border-gold-faint);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(61, 220, 132, 0.4);
}

.highlight-italic {
    font-style: italic;
    color: var(--color-solar-gold);
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--color-slate);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Staggered Animation */
.sequence-animate .hero-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.sequence-animate .hero-item:nth-child(1) {
    animation-delay: 0.1s;
}

.sequence-animate .hero-item:nth-child(2) {
    animation-delay: 0.2s;
}

.sequence-animate .hero-item:nth-child(3) {
    animation-delay: 0.3s;
}

.sequence-animate .hero-item:nth-child(4) {
    animation-delay: 0.4s;
}

.sequence-animate .hero-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* SVG Solar Grid Coming Online */
.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.solar-grid-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1;
}

.solar-grid-svg {
    width: 100%;
    height: 100%;
    transform: perspective(1000px) rotateX(15deg) rotateY(-10deg) rotateZ(5deg);
}

.line-path {
    stroke-dasharray: 6 12;
    animation: flowLines 15s linear infinite reverse;
}

@keyframes flowLines {
    to {
        stroke-dashoffset: 100;
    }
}

/* Progressive lighting up of arrays */
.panel {
    transition: fill 0.5s ease;
}

.array-1 .panel {
    animation: lightUpPanel 8s infinite 0s;
}

.array-2 .panel {
    animation: lightUpPanel 8s infinite 2s;
}

.array-3 .panel {
    animation: lightUpPanel 8s infinite 4s;
}

.array-4 .panel {
    animation: lightUpPanel 8s infinite 6s;
}

.array-1 .array-glow {
    animation: pulseGlowBox 8s infinite 0s;
}

.array-2 .array-glow {
    animation: pulseGlowBox 8s infinite 2s;
}

.array-3 .array-glow {
    animation: pulseGlowBox 8s infinite 4s;
}

.array-4 .array-glow {
    animation: pulseGlowBox 8s infinite 6s;
}

@keyframes lightUpPanel {

    0%,
    100% {
        fill: var(--color-navy-light);
    }

    10%,
    90% {
        fill: rgba(232, 168, 56, 0.4);
    }
}

@keyframes pulseGlowBox {

    0%,
    100% {
        opacity: 0;
        filter: drop-shadow(0 0 0 rgba(232, 168, 56, 0));
    }

    10%,
    90% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(232, 168, 56, 0.6));
    }
}

.node-ring-1 {
    animation: expandRing 4s infinite ease-out;
}

.node-ring-2 {
    animation: spin-cw 20s linear infinite;
}

.node-core {
    animation: nodePulse 2s infinite alternate ease-in-out;
}

@keyframes expandRing {
    0% {
        r: 35;
        opacity: 0.8;
    }

    100% {
        r: 80;
        opacity: 0;
    }
}

@keyframes nodePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

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

/* Trust Bar */
.trust-bar {
    border-top: 1px solid var(--border-gold-faint);
    border-bottom: 1px solid var(--border-gold-faint);
    padding: 1.5rem 0;
}

.trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-icon {
    font-size: 1.2rem;
}

.trust-text {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Hide visual on tablet per guidelines */
    }

    .nav-links {
        display: none;
        /* simple mobile nav approach for now */
    }

    .hamburger-menu {
        display: block;
    }

    .btn-nav {
        display: none;
    }

    .trust-container {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-cta-group {
        flex-direction: column;
    }
}

/* Util Classes */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--card-gap);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap);
}

/* Sections Base */
.section-header {
    margin-bottom: 4rem;
}

.section-desc {
    max-width: 600px;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.15rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.core-values {
    margin-top: 3rem;
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Services */
.service-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: rgba(232, 168, 56, 0.3);
    margin-bottom: 1rem;
}

/* Projects Table */
.projects-table-container {
    overflow-x: auto;
    background-color: var(--color-navy-mid);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-gold-faint);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.projects-table th {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-slate);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-gold-faint);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.projects-table td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

.projects-table tbody tr:last-child td {
    border-bottom: none;
}

.projects-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.capacity-badge {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-solar-gold);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background-color: rgba(61, 220, 132, 0.1);
    color: var(--color-accent-green);
    border: 1px solid rgba(61, 220, 132, 0.3);
}

.status-active::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent-green);
}

/* Strategic Partnership */
.bg-navy-gradient {
    background: linear-gradient(180deg, var(--color-deep-navy) 0%, var(--color-navy-mid) 50%, var(--color-deep-navy) 100%);
}

.partnership-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.partnership-stats {
    list-style: none;
    margin-top: 3rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(10, 22, 40, 0.4);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-gold-faint);
}

.partnership-stats li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

.stat-bullet {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8A838' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Why Choose Us */
.card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tag-teal {
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--color-accent-teal);
}

.tag-gold {
    background-color: rgba(232, 168, 56, 0.1);
    color: var(--color-solar-gold);
}

.tag-green {
    background-color: rgba(61, 220, 132, 0.1);
    color: var(--color-accent-green);
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-gold-faint);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--color-slate);
    max-width: 300px;
    margin-top: 1rem;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact li {
    color: var(--color-slate);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-solar-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-slate);
    font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .projects-table th,
    .projects-table td {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}