/* =============================================
   Greeny - Presentation Page Styles
   css/presentation.css
   ============================================= */

/* --- Base --- */
body {
    background-color: #F8FAFC;
}

/* --- Topbar --- */
.presentation-topbar {
    background-color: #0F172A;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9999;
}

.topbar-logo {
    height: 35px;
    filter: brightness(0) invert(1);
}

/* --- Hero Section --- */
.presentation-hero {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.93)),
        url('../img/solar-panels-roof-solar-cell.jpg') center / cover no-repeat;
    padding: 120px 0 80px 0;
    overflow: hidden;
}

.hero-badge {
    background-color: rgba(89, 201, 22, 0.2);
    border: 1px solid rgba(89, 201, 22, 0.3);
}

.hero-title {
    letter-spacing: -2px;
}

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

/* --- Hero 3D Mockup Wrapper --- */
.hero-mockups-wrapper {
    height: 200px;
    overflow: hidden;
    perspective: 1000px;
}

.hero-mockups-inner {
    gap: 20px;
    top: 0;
}

.hero-mockup-left {
    width: 300px;
    height: 400px;
    transform: rotateY(15deg) translateZ(-100px);
    opacity: 0.6;
}

.hero-mockup-center {
    width: 400px;
    height: 500px;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.hero-mockup-right {
    width: 300px;
    height: 400px;
    transform: rotateY(-15deg) translateZ(-100px);
    opacity: 0.6;
}

/* --- Demos Section --- */
.demos-section {
    background-color: #F8FAFC;
}

.demos-heading {
    letter-spacing: -1px;
}

.demos-subtext {
    max-width: 600px;
}

/* --- Browser Mockup Card --- */
.browser-mockup {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.browser-mockup:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(89, 201, 22, 0.15);
}

.browser-header {
    background-color: #f1f5f9;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red    { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green  { background-color: #10b981; }

/* --- Browser Body + Scroll Animation --- */
.browser-body {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.browser-body img {
    width: 100%;
    /* Make the image taller so we have room to scroll */
    height: auto;
    min-height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    /* Start at top, transition smoothly */
    transform: translateY(0%);
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* On hover, slide image upward to reveal bottom of the page */
.browser-mockup:hover .browser-body img {
    transform: translateY(calc(-100% + 350px));
}

/* --- Browser Overlay (Live Preview Button) --- */
.browser-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    /* Pause the scroll when hovering the button */
}

.browser-mockup:hover .browser-overlay {
    opacity: 1;
}

/* Overlay appears only on button hover, scroll continues on card hover */
.browser-overlay:hover ~ .browser-body img {
    /* Let scroll keep running when overlay is visible */
}

/* --- Features Section --- */
.features-section {
    background-color: #0d1b11;
    color: #fff;
    padding: 100px 0;
}

.feature-icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon-box {
    transform: scale(1.1) rotate(-5deg);
}

/* --- Presentation Footer --- */
.presentation-footer {
    background-color: #07100a;
    padding: 60px 0;
    text-align: center;
}

/* Footer logo - larger than topbar */
.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
}
