/* ==========================================================================
   CSS Variables & Theme (Renewable Energy / Tech Integrator)
   ========================================================================== */
:root {
    /* Updated Palette: Clean, White, Gray, Green, Navy */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F3F6F9;
    --color-text: #1E232F;
    --color-text-muted: #64748B;
    
    --color-dark: #0A0F1A;
    --color-dark-surface: #131924;
    --color-dark-text: #FFFFFF;
    --color-dark-muted: #94A3B8;

    --color-primary: #00D369; /* Energetic Green */
    --color-accent: #FFC700; /* Solar Yellow */
    --color-blue: #0A2540; /* Tech Navy */
    
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-dark: rgba(255, 255, 255, 0.1);
    
    --grad-energy: linear-gradient(135deg, var(--color-primary), #00A350);
    --grad-solar: linear-gradient(135deg, var(--color-accent), #FF9900);
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 211, 105, 0.3);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Helpers */
.text-green { color: var(--color-primary); }
.text-dark { color: var(--color-dark); }
.bg-dark { background-color: var(--color-dark); color: var(--color-dark-text); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--color-dark-text); }
.bg-dark .section-desc { color: var(--color-dark-muted); }
.bg-alt { background-color: var(--color-bg-alt); }

/* ==========================================================================
   Typography
   ========================================================================== */
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.section-desc { font-size: 1.125rem; color: var(--color-text-muted); max-width: 650px; margin-bottom: 3rem; }
.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 1.75rem; font-family: var(--font-heading); font-weight: 600;
    font-size: 1rem; border-radius: 4px; cursor: pointer;
    transition: var(--transition-normal); z-index: 1; border: none;
}
.btn-primary {
    background: var(--color-primary); color: #FFF; box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    background: #00A350; transform: translateY(-2px); box-shadow: 0 5px 25px rgba(0,211,105,0.5);
}
.btn-dark {
    background: var(--color-dark); color: #FFF;
}
.btn-dark:hover {
    background: var(--color-blue); transform: translateY(-2px);
}
.btn-outline {
    background: transparent; border: 1px solid var(--color-border); color: var(--color-text);
}
.btn-outline:hover {
    border-color: var(--color-primary); color: var(--color-primary);
}
.bg-dark .btn-outline {
    border-color: var(--color-border-dark); color: var(--color-dark-text);
}
.bg-dark .btn-outline:hover {
    border-color: var(--color-primary); background: rgba(0, 211, 105, 0.1);
}
.btn-large { padding: 1.25rem 2.5rem; font-size: 1.125rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 1.5rem 0; transition: var(--transition-normal);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
    padding: 1rem 0; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
}
.nav-container {
    max-width: 1440px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.logo-text { color: var(--color-dark); }
.navbar.scrolled .logo-text { color: var(--color-dark); }
.logo-accent { color: var(--color-primary); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--color-text); position: relative; padding-bottom: 4px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--color-primary); transition: var(--transition-normal);
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 101; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--color-dark); transition: var(--transition-fast); }

/* ==========================================================================
   Hero Section (White/Renewable Vibe)
   ========================================================================== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-top: 5rem; overflow: hidden; background: #fff;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
#wind-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.8; }
.hero-content { position: relative; max-width: 900px; padding: 0 2rem; z-index: 10; margin: 0 auto; text-align: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 0.5rem 1rem;
    background: rgba(0, 211, 105, 0.1); border: 1px solid rgba(0, 211, 105, 0.2);
    color: #00A350; font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 50px; margin-bottom: 2rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); animation: pulseGlow 2s infinite alternate;}

.hero-title { margin-bottom: 1.5rem; color: var(--color-dark); }
.hero-subtitle { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; justify-content: center; gap: 1.5rem; }

.sun-flare {
    position: absolute; top: -10%; right: -5%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,199,0,0.4) 0%, rgba(255,199,0,0.05) 40%, transparent 70%);
    pointer-events: none; z-index: 1; mix-blend-mode: overlay;
    transform: rotate(45deg);
}
.sun-flare::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 300%; height: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hero-horizon {
    position: absolute; bottom: -10vh; left: 0; width: 100%; height: 60vh; z-index: 0; pointer-events: none;
    background-image: url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?auto=format&fit=crop&q=80&w=1600');
    background-size: cover; background-position: center 65%;
    opacity: 0.15;
    filter: grayscale(80%) contrast(1.1);
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 100%);
}

.nav-wa-icon:hover svg { transform: scale(1.1); color: #25D366 !important; }

/* ==========================================================================
   General Sections
   ========================================================================== */
.section { padding: 8rem 0; position: relative; }
.section-header { margin-bottom: 4rem; }

/* ==========================================================================
   Services Ecosystem
   ========================================================================== */
.ecosystem { background: var(--color-bg-alt); }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.service-card {
    background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px;
    overflow: hidden; transition: var(--transition-normal); display: flex; flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(0,211,105,0.3);
}
.service-img {
    height: 200px; width: 100%; object-fit: cover; border-bottom: 1px solid var(--color-border);
}
.service-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.service-icon-box {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1rem;
    color: var(--color-primary); font-family: var(--font-heading); font-weight: 700;
}
.service-icon-box svg { width: 24px; height: 24px; }

.service-list { margin-bottom: 1.5rem; flex: 1; }
.service-list li {
    position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem;
    color: var(--color-text-muted); font-size: 0.9375rem;
}
.service-list li::before {
    content: '✓'; position: absolute; left: 0; top: 0; color: var(--color-primary); font-weight: bold;
}
.service-msg {
    padding-top: 1.5rem; border-top: 1px solid var(--color-border);
    font-size: 0.875rem; font-weight: 600; color: var(--color-dark); display: flex; align-items: center; gap: 8px;
}

/* ==========================================================================
   How We Work (Methodology) - Dark Section
   ========================================================================== */
.methodology { background: var(--color-dark); color: var(--color-dark-text); }
.methodology h2 { color: #FFFFFF; }
.method-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    position: relative;
}
@media (max-width: 1024px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .method-grid { grid-template-columns: 1fr; } }

.method-line {
    position: absolute; top: 30px; left: 50px; right: 50px; height: 2px;
    background: rgba(255,255,255,0.1); z-index: 0;
}
@media (max-width: 1024px) { .method-line { display: none; } }

.method-step { position: relative; z-index: 1; opacity: 0; transform: translateY(20px); transition: var(--transition-slow); }
.method-step.visible { opacity: 1; transform: translateY(0); }

.step-number {
    width: 60px; height: 60px; background: var(--color-dark); border: 2px solid var(--color-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 700; color: var(--color-primary);
    margin-bottom: 1.5rem; font-size: 1.25rem; box-shadow: 0 0 0 6px rgba(0,211,105,0.1);
}
.method-step h3 { margin-bottom: 1rem; color: #FFF; font-size: 1.5rem; }
.method-step p { color: var(--color-dark-muted); }

.method-highlight {
    margin-top: 5rem; padding: 2.5rem; background: var(--color-dark-surface);
    border-left: 4px solid var(--color-primary); border-radius: 8px;
    font-size: 1.5rem; font-weight: 600; font-family: var(--font-heading); text-align: center;
}

/* ==========================================================================
   Entities / Clientele (Dynamic Cards)
   ========================================================================== */
.clients-cards-wrapper {
    display: flex; gap: 1rem; height: 450px; flex-direction: row;
}
@media (max-width: 1024px) {
    .clients-cards-wrapper { flex-direction: column; height: auto; display: flex; }
}

.client-card-new {
    flex: 1; position: relative; border-radius: 12px; overflow: hidden;
    background-size: cover; background-position: center;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; min-height: 250px;
}
.client-card-new:hover { flex: 2; }

@media (max-width: 1024px) {
    .client-card-new { flex: none; height: 300px; margin-bottom: 1rem; transition: transform 0.4s ease; }
    .client-card-new:hover { flex: none; transform: translateY(-5px); }
}

.client-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 15, 26, 0.95) 0%, rgba(10, 15, 26, 0.3) 100%);
    transition: background 0.4s ease;
}
.client-card-new:hover .client-overlay {
    background: linear-gradient(to top, rgba(0, 211, 105, 0.9) 0%, rgba(10, 15, 26, 0.1) 100%);
}

.client-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem;
    color: #FFF; transition: transform 0.4s ease; transform: translateY(20px); z-index: 2;
}
.client-card-new:hover .client-content { transform: translateY(0); }

.client-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #FFF; transition: color 0.3s; }
.client-card-new:hover .client-content h3 { color: #FFF; }

.client-content p {
    font-size: 0.9375rem; color: rgba(255,255,255,0.9); opacity: 0; transition: opacity 0.4s ease;
}
.client-card-new:hover .client-content p { opacity: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects { background: var(--color-bg-alt); }
.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem;
}
.project-card {
    background: var(--color-bg); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--color-border); transition: var(--transition-normal);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.project-img {
    height: 240px; width: 100%; position: relative; overflow: hidden;
}
.project-img img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease;
}
.project-card:hover .project-img img { transform: scale(1.05); }

.project-info { padding: 2rem; }
.project-info h3 { margin-bottom: 1rem; font-size: 1.35rem; }
.project-info p { color: var(--color-text-muted); font-size: 0.9375rem; }

/* ==========================================================================
   About Us
   ========================================================================== */
.about { display: flex; align-items: center; gap: 4rem; }
.about-content { flex: 1; }
.about-visual { flex: 1; position: relative; }
.about-visual img { border-radius: 12px; box-shadow: var(--shadow-hover); }

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta { background: var(--grad-energy); color: #FFF; text-align: center; padding: 6rem 0; }
.cta-title { color: #FFF; font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
.cta-desc { font-size: 1.25rem; opacity: 0.9; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.form-inline { max-width: 500px; margin: 0 auto; display: flex; gap: 1rem; }
.form-input { 
    flex: 1; padding: 1rem 1.5rem; border: none; border-radius: 4px; 
    font-family: var(--font-body); font-size: 1rem; outline: none;
}
.cta .btn-dark { background: var(--color-dark); color: #FFF; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--color-dark); color: var(--color-dark-text); padding-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { color: var(--color-dark-muted); margin-top: 1rem; max-width: 300px; }
.footer-links h4 { color: #FFF; margin-bottom: 1.5rem; font-size: 1.125rem; }
.footer-links a { display: block; color: var(--color-dark-muted); margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom { 
    padding: 2rem 0; border-top: 1px solid var(--color-border-dark); 
    text-align: center; color: var(--color-dark-muted); font-size: 0.875rem; 
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(0, 211, 105, 0.4); }
    100% { box-shadow: 0 0 15px rgba(0, 211, 105, 0.8); }
}

@media (max-width: 768px) {
    .nav-links, .navbar .btn-outline { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: #FFF;
        padding: 2rem; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
    }
    .clients-grid { grid-template-columns: 1fr 1fr; }
    .about { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-inline { flex-direction: column; }
    h1 { font-size: 2.25rem; }
}
@media (max-width: 480px) {
    .clients-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
}
