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

:root {
    --primary-color: #009a4e;
    --secondary-color: #006a36;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --success-color: #28a745;
    --error-color: #dc3545;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-light:hover {
    background-color: #f2f2f2;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background-image: url("../assets/swordsLliveTownModelLabels.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
    width: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    z-index: 100;
}

.logo h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.8rem;
}

.logo-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-right: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Signup Container (Email Collection) */
.signup-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    color: var(--dark-color);
    animation: fadeIn 1s ease-out;
}

.signup-container h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
}

.form-control {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 154, 78, 0.2);
}

.form-group .btn-primary {
    border-radius: 0 4px 4px 0;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: left;
}

/* Success Message */
.success-message {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.success-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.main-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
}

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

.feature-item {
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Image Showcase */
.image-showcase {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.showcase-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.showcase-image:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

.btn.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .features-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px 0;
    }
    .hero-content {
        margin-top: 60px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .form-group {
        flex-direction: column;
    }
    .form-control {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    .form-group .btn-primary {
        border-radius: 4px;
        width: 100%;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .logo-container {
        position: absolute;
        top: 20px;
    }
    .logo {
        padding: 8px 15px;
    }
    .logo h2 {
        font-size: 1.6rem;
    }
    .logo-badge {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        margin-top: 50px;
        padding: 0 10px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .signup-container {
        padding: 20px;
    }
    .signup-container h2 {
        font-size: 1.5rem;
    }
    .about-section,
    .cta-section,
    .image-showcase {
        padding: 40px 0;
    }
    .feature-item {
        padding: 20px 15px;
    }
    .logo-container {
        width: 90%;
        left: 5%;
        right: 5%;
    }
    .logo {
        padding: 6px 12px;
    }
    .logo h2 {
        font-size: 1.4rem;
    }
    .logo-badge {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.8rem;
    }
    .showcase-image {
        max-width: 90%;
    }
}
