/* Dark Blue Theme CSS */
:root {
    --dark-blue: #1A2A44;
    --accent-blue: #3B82F6;
    --light-blue: #60A5FA;
    --white: #FFFFFF;
    --gray: #D1D5DB;
    --accent-orange: #F28C38; /* Grab-Note's brand color */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 42, 68, 0.8), rgba(26, 42, 68, 0.8)), url('../assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 20px;
    color: var(--white);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-orange);
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #EF6C00;
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 60px 20px;
    background-color: #2A3B5A;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--light-blue);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--dark-blue);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.feature-card p {
    font-size: 16px;
    color: var(--gray);
}

/* How to Use Section */
.how-to-use {
    padding: 60px 20px;
    background-color: var(--dark-blue);
    text-align: center;
}

.how-to-use h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--light-blue);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step {
    max-width: 300px;
    padding: 20px;
}

.step img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.step p {
    font-size: 16px;
    color: var(--gray);
}

/* Screenshots Section */
.screenshots {
    padding: 60px 20px;
    background-color: #2A3B5A;
    text-align: center;
}

.screenshots h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--light-blue);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.screenshot {
    position: relative;
    width: 150px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: blur(5px);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.screenshot:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.screenshot:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-mask {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: url('assets/after-install.png') center/cover no-repeat;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.screenshot[data-caption="After installation interface"] .screenshot-mask {
    background: url('assets/after-install.png') center/cover no-repeat;
}
.screenshot[data-caption="Admin mask new interface"] .screenshot-mask {
    background: url('assets/admin-mask-new.png') center/cover no-repeat;
}
.screenshot[data-caption="Admin panel overview"] .screenshot-mask {
    background: url('assets/admin.png') center/cover no-repeat;
}
.screenshot[data-caption="Open file dialog interface"] .screenshot-mask {
    background: url('assets/open-file-dialog-new.png') center/cover no-repeat;
}
.screenshot[data-caption="Manager mask new design"] .screenshot-mask {
    background: url('assets/manager-mask-new.png') center/cover no-repeat;
}
.screenshot[data-caption="Manager new interface"] .screenshot-mask {
    background: url('assets/manager-new.png') center/cover no-repeat;
}
.screenshot[data-caption="Manager selection view"] .screenshot-mask {
    background: url('assets/manager-select.png') center/cover no-repeat;
}
.screenshot[data-caption="Context menu for capturing"] .screenshot-mask {
    background: url('assets/context-menu.png') center/cover no-repeat;
}
.screenshot[data-caption="Export mask interface"] .screenshot-mask {
    background: url('assets/export-mask.png') center/cover no-repeat;
}
.screenshot[data-caption="Export options screen"] .screenshot-mask {
    background: url('assets/export.png') center/cover no-repeat;
}
.screenshot[data-caption="HTML export preview"] .screenshot-mask {
    background: url('assets/html-export.png') center/cover no-repeat;
}
.screenshot[data-caption="Sample notebook screenshot"] .screenshot-mask {
    background: url('assets/sample-nb-scrn.png') center/cover no-repeat;
}
.screenshot[data-caption="Manager mask interface"] .screenshot-mask {
    background: url('assets/manager-mask.png') center/cover no-repeat;
}
.screenshot[data-caption="Admin mask interface"] .screenshot-mask {
    background: url('assets/admin-mask.png') center/cover no-repeat;
}

.screenshot-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.screenshot-lightbox.active {
    display: flex;
}

.lightbox-content {
    display: grid;
    grid-template-columns: 1fr 2px 1fr; /* Two content columns with a 2px separator column */
    grid-template-areas: 
        "image separator caption";
    max-width: 90%;
    /* Removed min-height to let content dictate height */
    background: rgba(26, 42, 68, 0.95);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    align-items: start; /* Align grid items to the top */
}

.lightbox-image-container {
    grid-area: image;
    max-width: 100%;
    padding: 20px 20px 20px 20px; /* Uniform padding, bottom matches image bottom */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lightbox-separator {
    grid-area: separator;
    width: 2px;
    height: 100%; /* Full height of the grid container */
    background: var(--white); /* Solid white line */
    z-index: 2001;
}

.lightbox-caption {
    grid-area: caption;
    padding: 20px 20px 20px 20px; /* Uniform padding, top matches text top */
    color: var(--white);
    font-size: 16px;
    line-height: 1.5;
    overflow-y: auto;
    /* Removed max-height to let content dictate height */
    text-align: left;
    align-self: start; /* Align caption text to the top */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2002;
}

.lightbox-close:hover {
    color: var(--accent-orange);
}

/* Use Cases Section */
.use-cases {
    padding: 60px 20px;
    background-color: var(--dark-blue);
    text-align: center;
}

.use-cases h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--light-blue);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.use-case {
    background-color: #2A3B5A;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.use-case:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.use-case img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.use-case h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.use-case p {
    font-size: 16px;
    color: var(--gray);
}

/* Responsive Design for Use Cases */
@media (max-width: 768px) {
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .use-case img {
        max-width: 150px;
    }
}

/* Call to Action Section */
.cta-final {
    padding: 60px 20px;
    background-color: var(--accent-blue);
    text-align: center;
}

.cta-final h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-final p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
