:root {
    --bg-color: #050505;
    /* Deep Black */
    --surface-color: #111111;
    /* Dark Grey */
    --text-color: #ffffff;
    --text-muted: #e0e0e0;
    /* Lighter grey for better readability */
    --accent-color: #ff0000;
    /* Bright Red */
    --accent-glow: rgba(255, 0, 0, 0.4);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.cta-link {
    border: 1px solid var(--text-color);
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s;
}

.cta-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 0 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero_bg.png') no-repeat center center/cover;
    opacity: 0.5;
    /* Slightly darker overlay influence */
    z-index: -1;
}

.hero::before {
    /* ADDING A DARK GRADIENT OVERLAY FOR TEXT READABILITY */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, #000 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Ensure it stays above overlay */
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 6rem;
    /* Bigger impact */
    line-height: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #ffffff;
    /* FORCE WHITE */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
    letter-spacing: -2px;
}

.text-gradient {
    /* More vibrant red */
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.5rem;
    /* Larger sub */
    color: rgba(255, 255, 255, 0.8);
    /* Brighter than muted */
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.btn-primary {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 1px solid #fff;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Sections General */
section {
    padding: 100px 5%;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    text-transform: uppercase;
}

/* Process Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step-card {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    background: #1a1a1a;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-muted);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Form Section */
.form-section {
    background: linear-gradient(to bottom, var(--bg-color), #0f0f0f);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-muted);
}

/* Plugin Container Styles */
.plugin-form-container {
    min-height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.placeholder-message {
    text-align: center;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 40px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .form-wrapper {
        padding: 30px;
    }

    .main-header {
        padding: 15px 20px;
    }

    nav ul {
        display: none;
        /* Simple hide for mobile for this demo, usually would be hamburger */
    }
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface-color);
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: var(--accent-color);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-image {
    height: 300px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    padding: 40px;
}

.modal-text h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.modal-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }

    .modal-image {
        flex: 1;
        height: auto;
        min-height: 400px;
    }

    .modal-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}