/* Global Design System - GERNOTICS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent: #005eb8; /* Corporate Blue */
    --accent-dark: #004a91;
    --accent-light: #e6f0f9;
    --border: #e5e7eb;
    
    /* Spacing */
    --section-padding: 6rem;
    --container-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* UI Elements */
    --radius: 6px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p {
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-padding) 0;
}

.bg-light {
    background-color: var(--bg-secondary);
}

/* Header & Branding */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px; /* Slightly taller for enterprise feel */
}

.branding {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-transform: none; /* Corporate look */
}

/* Main Navigation */
.main-nav {
    height: 100%;
    margin-left: auto; /* Align navigation to the right */
    margin-right: 2rem;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 0;
    height: 100%;
}

/* Top Level Items */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 8px;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-link:hover, 
.nav-item:hover .nav-link {
    color: var(--accent);
    background-color: var(--bg-secondary);
}

.nav-item:hover .nav-link::after {
    transform: rotate(45deg) translateY(0px) scale(1.1);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background-color: white;
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-link:hover {
    color: var(--accent);
    background-color: var(--accent-light);
    padding-left: 1.75rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header-inner {
        height: 70px;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav > ul {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }

    .nav-item {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-link {
        height: 50px;
        width: 100%;
        padding: 0;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none; /* Hidden by default on mobile, toggled via JS if needed or just visible */
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .nav-item.active .nav-link::after {
        transform: rotate(45deg) translateY(4px) rotate(180deg);
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions {
        display: none; /* Hide action button on mobile to save space */
    }
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 75% 40%, #f1f5f9 0%, #ffffff 100%);
    padding: 10rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.hero-content h2 {
    font-size: 5rem; /* Even more dominant */
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 5;
}

/* Sophisticated Pedestal Glow */
.hero-image::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 94, 184, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* Floating Animation */
@keyframes heroFloat {
    0% { transform: perspective(1200px) rotateY(-10deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-12deg) translateY(-25px); }
    100% { transform: perspective(1200px) rotateY(-10deg) translateY(0); }
}

.hero-image img {
    width: 140%; /* Maximized visual scale */
    max-width: none;
    height: auto;
    object-fit: contain;
    /* Multi-layered shadow for realism */
    filter: 
        drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05))
        drop-shadow(0 30px 60px rgba(0, 0, 0, 0.1))
        drop-shadow(0 60px 100px rgba(0, 0, 0, 0.08));
    transform: perspective(1200px) rotateY(-10deg);
    animation: heroFloat 8s ease-in-out infinite;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.hero-image:hover img {
    transform: perspective(1200px) rotateY(0deg) scale(1.05) translateY(-10px);
    filter: 
        drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08))
        drop-shadow(0 45px 90px rgba(0, 0, 0, 0.12))
        drop-shadow(0 80px 120px rgba(0, 0, 0, 0.1));
    animation-play-state: paused;
}

/* Responsive Hero Enhancements */
@media (max-width: 1400px) {
    .hero-image img {
        width: 120%;
    }
}

@media (max-width: 1200px) {
    .hero-content h2 {
        font-size: 4rem;
    }
    
    .hero-image img {
        width: 110%;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: 8rem 0;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 6rem;
        text-align: center;
    }

    .hero-content {
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image img {
        width: 100%;
        max-width: 500px;
        transform: none;
        animation: none;
    }
    
    .hero-image:hover img {
        transform: translateY(-20px) scale(1.05);
    }
}

@media (max-width: 640px) {
    .hero-content h2 {
        font-size: 3.2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(0, 94, 184, 0.15);
}

.btn-secondary {
    background-color: white;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
}

.btn-small {
    height: 38px;
    padding: 0 1.25rem;
    font-size: 0.875rem;
}

/* Cards & Grid */
/* Full-Viewport Product Grid */
.power-generation-section {
    height: calc(100vh - 85px); /* Header height is 85px */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem 0; /* Minimized padding */
}

.power-generation-section .container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-headline {
    text-align: center;
    margin-bottom: 1rem; /* Reduced margin */
    font-size: 2.25rem; /* Slightly smaller for better fit */
    font-weight: 800;
    color: var(--text-primary);
    flex-shrink: 0;
    letter-spacing: -0.03em;
}

.power-generation-section .grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr); /* Enforce 4 rows for 12 items */
    gap: 0.75rem; /* Tight gap for compactness */
    min-height: 0; /* Critical for grid content sizing */
    margin-bottom: 0.5rem;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* Uniform height from grid */
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden; /* Prevent children from breaking card */
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-img {
    height: calc(100% - 40px); /* Fixed height image container */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
}

.product-info {
    height: 40px; /* Reserved fixed height for text */
    flex-shrink: 0;
    padding: 0 0.75rem;
    text-align: center;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-title {
    font-size: 0.875rem; /* Compact font size */
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.1;
    text-align: center;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .power-generation-section {
        height: auto; /* Allow scrolling on mobile/tablet */
        overflow: visible;
        padding: 4rem 0;
    }
    
    .power-generation-section .grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 per row */
        grid-template-rows: auto;
        gap: 1.5rem;
    }
    
    .product-img {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .power-generation-section {
        padding: 3rem 0;
    }

    .power-generation-section .grid {
        grid-template-columns: 1fr; /* Mobile: 1 per row */
        gap: 1.25rem;
    }

    .section-headline {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .product-img {
        height: 200px;
    }
}

.specs-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.specs-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
}

.specs-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 12px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-info h3 { margin-top: 2rem; }
.contact-info p { color: var(--text-secondary); }

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 3rem;
}

.site-footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.875rem;
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 1rem 0;
}

.slider-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}

.slider-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.slider-track > * {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .slider-track > * {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .slider-track > * {
        flex: 0 0 calc(33.333% - 1.35rem);
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: -22px;
    right: -22px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.25rem;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius);
    position: relative;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--border);
}

.modal-body {
    padding: 3rem;
}

.modal-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin-bottom: 0.5rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.modal-specs table {
    width: 100%;
    border-collapse: collapse;
}

.modal-specs th, .modal-specs td {
    text-align: left;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.modal-specs th {
    font-weight: 600;
    color: var(--text-primary);
    width: 160px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-image { order: -1; text-align: center; }
}

@media (max-width: 768px) {
    :root { --section-padding: 4rem; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* === PANEL CARDS: make them match generator cards === */

.panel-card .product-img {
    height: 160px;              /* same feel as generator cards */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}

.panel-card .product-img img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;        /* IMPORTANT: no crop, no stretch */
    display: block;
}


.panel-card .product-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-align: center;
    line-height: 1.3;
}

/* Panel cards – match top cards layout */
.panel-card {
    overflow: visible;
}

.panel-card .product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel-card .product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* no crop, no stretch */
    display: block;
}

.panel-card .product-info {
    padding: 12px 10px;
    background: #fff;
    text-align: center;
}

.panel-card .product-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

/* === UNIFY ALL PRODUCT CARDS (top + bottom) === */

.product-card {
    overflow: visible;
}

.product-card .product-img {
    height: 220px;              /* same height as panel cards */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fb;
}

.product-card .product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;        /* no crop, no stretch */
    display: block;
}

.product-card .product-info {
    padding: 12px 10px;
    background: #fff;
    text-align: center;
}

.product-card .product-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

/* === FIX PAGE HEIGHT / CONTENT CUTTING === */

main {
    min-height: 100vh;
}

.power-generation-section {
    padding-bottom: 80px; /* gives breathing room before footer */
}

.power-generation-section .grid {
    margin-bottom: 60px;
}
/* === FORCE PAGE SCROLL FIX === */
html, body {
    overflow-y: auto !important;
    height: auto !important;
}
/* === HARD SCROLL UNLOCK === */
html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
}

main,
.power-generation-section,
.container,
.grid {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

