/* ========================================
   Global Styles & Reset
   ======================================== */

:root {
    --primary-blue: #4A90E2;
    --secondary-blue: #2E5C8A;
    --deep-blue: #1E3A5F;
    --light-blue: #6BA3E8;
    --silver: #C0C8D0;
    --light-silver: #E8EBED;
    --dark-silver: #6B7C93;
    --silver-gradient-start: #B8C4D0;
    --silver-gradient-end: #D5DDE8;
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --background: #1E3A5F;
    --white: #FFFFFF;
    --border: #D5DDE5;
    --shadow: rgba(43, 62, 80, 0.1);
    --shadow-hover: rgba(43, 62, 80, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ========================================
   Layout Containers
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.main-content {
    flex: 1;
    padding-top: 80px;
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    background: linear-gradient(135deg, var(--silver-gradient-start) 0%, var(--silver-gradient-end) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.nav-menu li a.active {
    background-color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--light-silver) 0%, var(--white) 100%);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Products Section
   ======================================== */

.products {
    padding: 4rem 0;
    background-color: var(--white);
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-hover);
    border-color: var(--primary-blue);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--light-silver);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.75rem;
}

.product-info h3 {
    font-size: 1.75rem;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

.product-type {
    font-size: 0.9rem;
    color: var(--dark-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Product Hero Section
   ======================================== */

.product-hero {
    background: linear-gradient(135deg, var(--light-silver) 0%, var(--white) 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-hero-text h1 {
    font-size: 3.5rem;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

.product-platform {
    font-size: 1rem;
    color: var(--dark-silver);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.app-store-link img,
.website-link {
    display: inline-block;
    height: 50px;
    transition: transform 0.3s ease;
}

.app-store-link:hover img {
    transform: scale(1.05);
}

.website-link {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.website-link:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    color: var(--white);
}

.product-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-hero-image img {
    max-height: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-hover);
}

/* ========================================
   Product Features Section
   ======================================== */

.product-features {
    padding: 4rem 0;
    background-color: var(--white);
}

.product-features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-silver);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.feature-item h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========================================
   Product Gallery Section
   ======================================== */

.product-gallery {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-silver) 0%, var(--white) 100%);
}

.product-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Flexible gallery for mixed aspect ratios */
.gallery-grid.mixed-layout {
    grid-template-columns: 1fr;
}

@media (min-width: 769px) {
    .gallery-grid.mixed-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid.mixed-layout .gallery-item.landscape {
        grid-column: span 2;
    }
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
}

.gallery-item.portrait {
    grid-row: auto;
}

.gallery-item.landscape {
    grid-column: span 1;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 35px var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Content Section (Privacy Policy, About)
   ======================================== */

.content-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.content-section h1 {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--dark-silver);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.policy-content h2 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.policy-content h3 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.policy-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.policy-content a {
    color: var(--primary-blue);
    font-weight: 500;
}

/* ========================================
   About Page Styles
   ======================================== */

.about-content {
    margin-top: 2rem;
}

.about-intro {
    background: linear-gradient(135deg, var(--light-silver) 0%, var(--white) 100%);
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.about-intro h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-intro p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: var(--secondary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-item {
    background: var(--light-silver);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.expertise-item h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.expertise-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.about-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.about-list li {
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--light-silver);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.about-list li strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-info {
    background: var(--light-silver);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.contact-info a {
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 968px) {
    .product-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-hero-text h1 {
        font-size: 2.5rem;
    }

    .product-hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--silver-gradient-start) 0%, var(--silver-gradient-end) 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 1rem;
        width: 100%;
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .container,
    .container-narrow {
        padding: 0 1.5rem;
    }

    .content-section h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .products,
    .product-features,
    .product-gallery,
    .content-section {
        padding: 3rem 0;
    }

    .about-intro {
        padding: 2rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }
}
