/* Global Styles */
:root {
    --primary-color: #9C55C2;
    --primary-dark: #7A3E9A;
    --primary-light: #BE85DD;
    --dark-bg: #121212;
    --dark-surface: #1E1E1E;
    --dark-text: #FFFFFF;
    --dark-text-secondary: #B0B0B0;
    --accent: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

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

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

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

a:hover {
    color: var(--primary-color);
}

button {
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Header */
header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-text);
}

.logo span {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-container video {
    width: 80%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.8);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--dark-text-secondary);
}

/* About Section */
.about {
    background-color: var(--dark-surface);
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--dark-text-secondary);
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.feature {
    background-color: rgba(156, 85, 194, 0.1);
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(156, 85, 194, 0.2);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(156, 85, 194, 0.2);
}

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

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.feature p {
    font-size: 1rem;
    color: var(--dark-text-secondary);
    margin-bottom: 0;
}

/* Signup Section */
.signup {
    padding: 100px 0;
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(rgba(156, 85, 194, 0.1) 1px, transparent 1px), 
        radial-gradient(rgba(156, 85, 194, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.signup-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.signup-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--dark-text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

/* reCAPTCHA styling */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    overflow: hidden;
    max-width: 100%;
}

/* Dark theme for reCAPTCHA */
.g-recaptcha {
    transform: scale(1);
    transform-origin: center;
    max-width: 100%;
}

/* Fix any potential table overflow from reCaptcha */
.recaptcha-container iframe {
    max-width: 100%;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(156, 85, 194, 0.3);
    border-radius: 5px;
    color: var(--dark-text);
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(156, 85, 194, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

input.invalid-input,
select.invalid-input {
    border-color: #ff5252;
    background-color: rgba(255, 82, 82, 0.1);
}

input.invalid-input:focus,
select.invalid-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239C55C2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

select option {
    background-color: var(--dark-surface);
    color: var(--dark-text);
}

.validation-message {
    color: #ff5252;
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: left;
    padding-left: 5px;
    min-height: 20px;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: none;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(156, 85, 194, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

#message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

#message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark-surface);
    padding: 40px 0;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container footer {
    width: 100%;
    position: relative;

}

.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(156, 85, 194, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(156, 85, 194, 0.3);
}

footer p {
    color: var(--dark-text-secondary);
    font-size: 0.9rem;
    margin: 0;
    width: 100%;
    text-align: center;
}

/* Responsive Styles */
/* Large desktops and laptops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Tablets and smaller laptops */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .video-container video {
        width: 90%;
    }
    
    .feature {
        width: 280px;
        padding: 25px;
    }
}

/* iPad and tablets */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .video-container video {
        width: 100%;
        max-height: 70%;
    }
    
    .about-content h2,
    .signup-content h2 {
        font-size: 2rem;
    }
    
    .about-content p,
    .signup-content p {
        font-size: 1rem;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .feature {
        width: 100%;
        max-width: 300px;
    }
    
    .about, .signup {
        padding: 60px 0;
    }
}

/* Mobile landscape */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .about-content h2,
    .signup-content h2 {
        font-size: 1.8rem;
    }
    
    .feature i {
        font-size: 2rem;
    }
    
    .feature h3 {
        font-size: 1.3rem;
    }
    
    .g-recaptcha {
        transform: scale(0.9);
    }
    
    .social-links a {
        margin: 0 8px;
        font-size: 1.3rem;
    }
    
    input[type="text"],
    input[type="email"],
    select {
        padding: 12px;
        font-size: 14px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .about-content h2,
    .signup-content h2 {
        font-size: 1.6rem;
    }
    
    .feature {
        padding: 20px;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
    }
    
    input[type="text"],
    input[type="email"],
    select {
        padding: 10px;
        font-size: 14px;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 22px;
        height: 22px;
    }
    
    .feature {
        padding: 15px;
    }
    
    .g-recaptcha {
        transform: scale(0.77);
    }
}

/* Height-based queries for shorter screens */
@media (max-height: 700px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .video-container video {
        max-height: 60%;
    }
}

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

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

.hero-content h1,
.hero-content p {
    animation: fadeIn 1s ease-out forwards;
}

.feature {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.feature:nth-child(1) {
    animation-delay: 0.2s;
}

.feature:nth-child(2) {
    animation-delay: 0.4s;
}

.feature:nth-child(3) {
    animation-delay: 0.6s;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

/* Make sure modal content is visible over other elements */
.modal-content {
    background-color: var(--dark-surface);
    border-radius: 10px;
    padding: 30px 25px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(156, 85, 194, 0.3);
    animation: modalAppear 0.5s ease;
    z-index: 100000;
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--dark-text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 100001;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
    flex-shrink: 0;
}

.modal-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--dark-text-secondary);
    text-align: center;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

.template-downloads {
    margin: 20px auto 0;
    max-width: 450px;
    text-align: center;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.template-downloads h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-text);
    border-bottom: 1px solid rgba(156, 85, 194, 0.2);
    padding-bottom: 8px;
    display: inline-block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
}

.template-downloads ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-height: 0;
    justify-content: center;
}

.template-downloads li {
    width: 100%;
    text-align: center;
    max-width: 350px;
}

.template-downloads a {
    display: inline-block;
    color: var(--primary-light);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: rgba(156, 85, 194, 0.1);
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
}

.template-downloads a:hover {
    background-color: rgba(156, 85, 194, 0.2);
    transform: translateX(5px);
}

.download-all {
    text-align: center;
    margin-top: 20px;
    flex-shrink: 0;
}

.download-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px auto 0;
    box-shadow: 0 4px 15px rgba(156, 85, 194, 0.3);
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(156, 85, 194, 0.4);
    color: white;
}

.download-btn i {
    margin-right: 8px;
}

/* Media queries for the modal */
@media (max-width: 576px) {
    .modal-content {
        padding: 20px 15px;
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-content h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .template-downloads h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .template-downloads ul {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .template-downloads a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .download-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        margin-top: 8px;
    }
    
    .close-modal {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
}

@media (max-height: 600px) {
    .modal-content {
        max-height: 95vh;
        padding: 15px 20px;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .modal-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .template-downloads {
        margin-top: 10px;
    }
    
    .template-downloads h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .template-downloads ul {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .template-downloads a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .download-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
} 