/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00aaff; /* A nice, vibrant blue */
    --secondary-color: #e6e6e6;
    --dark-bg: #1a1a1a;
    --medium-bg: #2a2a2a;
    --light-text: #f0f0f0;
    --dark-text: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; }

/* --- Header & Navigation --- */
header {
    background: var(--medium-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- UPDATED: Styles for the logo with image and text --- */
header .logo {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex; /* Aligns image and text side-by-side */
    align-items: center; /* Vertically centers them */
}

header .logo img {
    height: 40px; /* Control the height of your logo */
    margin-right: 10px; /* Space between logo and text */
}
/* --- End of logo update --- */

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: var(--dark-bg);
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0088cc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--medium-bg);
    color: var(--light-text);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Software Section & Cards --- */
#software {
    background: var(--medium-bg);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card .version {
    font-style: italic;
    color: #aaa;
    margin-bottom: 15px;
}

/* --- Featured Product Section --- */
.featured-product ul {
    list-style: none;
    margin: 30px 0;
}

.featured-product li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* --- Downloads Table --- */
#downloads {
    background: var(--medium-bg);
}

.downloads-table {
    width: 100%;
    margin-top: 40px;
    border-collapse: collapse;
    text-align: left;
}

.downloads-table th, .downloads-table td {
    padding: 15px;
    border-bottom: 1px solid #444;
}

.downloads-table thead {
    background: var(--dark-bg);
}

.downloads-table tbody tr:nth-child(even) {
    background: #333;
}

.btn-download {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-download:hover {
    background-color: #0088cc;
}

/* --- License Section --- */
.license-text {
    background: var(--medium-bg);
    padding: 30px;
    margin-top: 20px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto; /* Adds a scrollbar if text is too long */
    border: 1px solid #444;
}

.license-text h4 {
    color: var(--primary-color);
    margin-top: 20px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 0;
    background: var(--dark-bg);
    border-top: 1px solid #444;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    header .container {
        flex-direction: column;
    }

    header .logo {
        margin-bottom: 15px; /* Add space between logo and nav on mobile */
    }
    
    header nav {
        margin-top: 0;
    }

    header nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        height: auto;
        padding: 80px 0;
    }
}
/* --- Styles for Product Detail Page (iz-converter.html) --- */

.product-hero {
    text-align: center;
    background: var(--medium-bg);
    padding: 80px 0;
}

.product-hero .tagline {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.product-hero .version-info {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #aaa;
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 30px;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.screenshot-gallery img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #444;
}

.product-features {
    background: var(--medium-bg);
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout */
    gap: 40px;
    margin-top: 40px;
}

.feature-item h3 {
    color: var(--primary-color);
}

#requirements ul {
    list-style-type: none;
    background: var(--medium-bg);
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

#requirements ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Responsive adjustments for the new sections */
@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
}