/* VII. Technical Stack & II. Website Design Styling */

/* --- Core Variables --- */
:root {
    --color-primary: #007bff; /* Vibrant Accent */
    --color-secondary: #28a745; /* Another accent (e.g., for register btn) */
    --color-dark: #343a40;
    --color-light: #ffffff;
    --color-background: #f4f7f6; /* Neutral light gray background */
    --color-text: #333;
    --shadow-light: 0 2px 5px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 10px rgba(0,0,0,0.12);
    --border-radius: 8px;
}

/* --- Global Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body takes up at least the full viewport height */
}

main {
  flex-grow: 1; /* Allows the main content to expand and push the footer down */
}

h1, h2, h3, h4 {
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- VI. UI/UX: Navigation Bar --- */
.main-header {
    background-color: var(--color-light);
    box-shadow: var(--shadow-medium);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-dark);
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

/* --- Buttons & CTAs --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: 1px solid var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-light);
    border: 1px solid var(--color-secondary);
}
.btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-secondary);
    box-shadow: none;
}


/* --- II. Design: Card-Based Layout --- */
.card {
    background: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

/* --- Utility & Layout Classes --- */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

/* --- I. Core Identity: Mission Section --- */
.mission-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mission-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* --- IV. Content: Video Embed --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- IV. Content: Pricing Table --- */
.pricing-plan {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    text-align: center;
    justify-content: center; /* Centers horizontally */
    align-items: center;    /* Centers vertically */
    padding: 2rem;
    margin: 1rem;
    display: flex;
    flex-direction: column;
}

.pricing-plan h3 {
    font-size: 1.5rem;
}

.pricing-plan .price {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--color-primary);
}

.pricing-plan .price span {
    font-size: 1rem;
    font-weight: normal;
    color: #777;
}

.pricing-plan ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-plan a {
    margin-top: auto;
}

.pricing-plan ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

/* Simple checkmark icon */
.pricing-plan ul li::before {
    content: '✔';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}


/* --- V. Release Notes Page --- */
.release-note-entry a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
}
.release-note-entry h2 {
    color: var(--color-primary);
}
.release-note-entry p {
    color: #555;
    margin-bottom: 0;
}


/* --- VI. UI/UX: Footer --- */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.main-footer p {
    margin: 0;
}

.main-footer a {
    color: var(--color-light);
    text-decoration: underline;
}

/* --- VI. UI/UX: Responsiveness --- */
@media (max-width: 900px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    /* --- Header & Nav --- */
    .main-header .container {
        flex-direction: row; /* Keep logo and icon side-by-side */
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: block !important;  /* Show hamburger icon */
    }

    .main-nav {
        /* This is the magic: */
        position: absolute;
        top: 65px; /* Adjust to match your header height */
        left: 0;
        width: 100%;
        background-color: var(--color-light);
        box-shadow: var(--shadow-medium);
        
        /* Hide/show transition */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .main-nav.active {
        max-height: 100vh; /* Show the menu */
        transition: max-height 0.4s ease-in;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
        align-items: stretch;
    }
    
    .main-nav li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--color-background);
    }
    
    .main-nav li:last-child {
        border-bottom: 0;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
    }

    .main-nav .nav-buttons {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .main-nav .nav-buttons .btn {
        width: 100%;
        margin: 0;
    }

    /* --- Other --- */
    .section-header h2 {
        font-size: 2rem;
    }
}

/* --- VI. UI/UX: Mobile Navigation Toggle --- */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101; /* Above the nav */
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* "X" Animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Pricing Toggle Switch --- */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.pricing-toggle span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #777;
    transition: color 0.3s ease;
}

.pricing-toggle span.active {
    color: var(--color-dark);
    font-weight: bold;
}

/* The switch - a label wrapping a checkbox */
.pricing-toggle .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 1rem;
}

/* Hide default HTML checkbox */
.pricing-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider track */
.pricing-toggle .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

/* The slider knob */
.pricing-toggle .slider-round:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* --- Toggle "On" State --- */
.pricing-toggle input:checked + .slider-round {
    background-color: var(--color-primary);
}

.pricing-toggle input:focus + .slider-round {
    box-shadow: 0 0 1px var(--color-primary);
}

.pricing-toggle input:checked + .slider-round:before {
    transform: translateX(26px);
}

/* --- Carousel Styles --- */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: #eee; /* Light gray placeholder background */
    box-shadow: var(--shadow-light);
    margin-bottom: 1rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: contain; /* Ensures screenshots don't stretch weirdly */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8); /* Light background for buttons */
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-bottom: 0.7vh;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-light);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* --- Lightbox Styles --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.is-active { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 75vw;
    max-height: 90vh;
    cursor: default; 
}

.lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    padding-bottom: 0.7vh;
}

.lightbox-btn:hover { background: rgba(255, 255, 255, 0.4); }
.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }

/* --- Features Page Specific Layouts --- */
.feature-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.feature-section:last-child { border-bottom: none; }

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Alternating layout for feature rows */
.feature-section.alt .feature-grid {
    direction: rtl; /* Flip the grid */
}
.feature-section.alt .feature-grid > * {
    direction: ltr; /* Reset text direction inside items */
}

@media (max-width: 768px) {
    .feature-grid, .feature-section.alt .feature-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}
