/* Base Styles */
:root {
    --primary-color: #ff0000;
    --primary-dark: #cc0000;
    --secondary-color: #333333;
    --light-color: #f8f8f8;
    --dark-color: #222222;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

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

.main-nav a.active:after,
.main-nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.download-form {
    max-width: 800px;
    margin: 0 auto 60px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.error-message {
    color: #d32f2f;
    text-align: left;
    font-size: 0.9rem;
    display: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Results Section */
.results-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.results-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.thumbnail-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.thumbnail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.thumbnail-preview {
    height: 200px;
    overflow: hidden;
}

.thumbnail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumbnail-card:hover .thumbnail-preview img {
    transform: scale(1.05);
}

.thumbnail-info {
    padding: 20px;
}

.thumbnail-info h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.thumbnail-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.download-options {
    text-align: center;
    margin-top: 40px;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 60px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    display: flex;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-section {
  padding: 0px;
    background-color: var(--light-color);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--white);
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background-color: var(--white);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-question:after {
    content: '+';
    font-size: 1.2rem;
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 20px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ccc;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #ff3b3b, #d90000); /* Gradient red */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(217, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 50%);
    transition: all 0.4s ease-in-out;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.btn-primary:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d90000, #ff0000);
    box-shadow: 0 6px 14px rgba(217, 0, 0, 0.5);
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(217, 0, 0, 0.4);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-secondary {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #1e7e34); /* Gradient green */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 50%);
    transition: all 0.4s ease-in-out;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.btn-secondary:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1e7e34, #28a745);
    box-shadow: 0 6px 14px rgba(40, 167, 69, 0.5);
}

.btn-secondary:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.4);
}

/* Loading state for thumbnails */
.thumbnail-loading {
    position: relative;
    background-color: #f5f5f5;
    min-height: 200px;
}

.thumbnail-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}
