/* Base Styles & Variables */
:root {
    --primary-color: #2563eb; /* Blue */
    --secondary-color: #0f172a; /* Dark blue/almost black */
    --accent-color: #f59e0b; /* Gold/amber */
    --heading-color: #f59e0b;
    --text-color: #f8fafc;
    --light-text: #f8fafc;
    --light-bg: #f1f5f9;
    --dark-bg: #1e293b;
    --bg-color: #1e293b;
    --modal-bg: white;
    --modal-text: #334155;
    --border-radius: 8px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

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

html, body {
    height: 100%;
    overflow: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    background-color: var(--bg-color);
    background-image: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    background-size: cover;
    background-position: center;
}

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

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

ul {
    list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 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;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #4a9be7; /* Half way between primary blue and 'themes blue' in logo */
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5);
}

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

.btn-secondary:hover {
    background-color: #0f172a; /* Darker shade of secondary */
    color: var(--light-text);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-full {
    width: 100%;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 15px 0;
}

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

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Centered Hero Layout */
.hero-centered {
    padding: 40px 0;
    min-height: calc(100vh - 70px); /* Subtract header height */
    display: flex;
    align-items: center;
}

.hero-centered .container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

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

.hero-content h1 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 5vw, 3rem);
}

/* Fullscreen Hero */
.fullscreen-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.logo {
    position: absolute;
    top: 30px;
    left: 40px;
}

.logo img {
    height: 40px;
}

.content-center {
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #f8fafc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
}

/* Theme Showcase (Single) */
.theme-showcase {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.theme-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
}

.theme-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 1;
}

.theme-image {
    height: 100%;
    overflow: hidden;
}

.theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.theme-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-content p {
    margin-bottom: 25px;
}

/* Features Section */
.features-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.features-section h2 {
    margin-bottom: 40px;
}

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

.feature {
    padding: 25px 15px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

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

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

.feature p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-section h2 {
    margin-bottom: 40px;
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    text-align: left;
}

.contact-info {
    padding: 30px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--light-text);
    height: fit-content;
}

.contact-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.contact-form-container {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Honeypot anti-spam field */
.form-group.hp {
    display: none;
}

/* Form Response Styling Enhancements */
.form-response {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 20px 15px;
    border-radius: var(--border-radius);
}

.form-response.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.form-response.error {
    background-color: #fee2e2;
    color: #b91c1c;
    display: block;
}

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

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 40px 0 20px;
    margin-top: 60px;
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info {
    max-width: 350px;
}

.footer-info h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 20px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.8;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /*overflow-y: auto;*/
    padding: 20px;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--modal-bg);
    color: var(--modal-text);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: 20px auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--modal-text);
}

.form-group label.optional-label {
    font-weight: 400;
    font-size: 0.9rem;
    color: #6b7280; /* A lighter shade for optional fields */
    opacity: 0.85;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Honeypot anti-spam field */
.form-group.hp {
    display: none;
}

.form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
}

.form-response.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-response.error {
    background-color: #fee2e2;
    color: #b91c1c;
    display: block;
}

/* Logo Video Hover Effect */
.logo-container {
    position: absolute;
    top: 30px;
    left: 40px;
}

.logo {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.logo img {
    width: auto;
    height: 48px;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    transition: border-radius 0.4s ease, opacity 0.3s ease;
}

.logo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease, border-radius 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
}

.logo:hover {
    cursor: none; /* Hide cursor on hover */
}

/* Show cursor override class */
.logo.cursor-visible:hover {
    cursor: default; /* Show cursor even when hovering */
}

.logo:hover img,
.logo:hover .logo-video {
    border-radius: 4px;
}

.logo:hover .logo-video {
    opacity: 1;
    visibility: visible;
}

.logo.video-playing img {
    opacity: 0;
}

.logo.video-ended .logo-video {
    opacity: 0;
    visibility: hidden;
}

/* Enhanced Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.char-counter {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.valid {
    color: #10b981;
}

/* File Upload Styling */
input[type="file"] {
    border: 1px dashed #ddd;
    padding: 10px;
    border-radius: var(--border-radius);
    width: 100%;
    cursor: pointer;
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

input[type="file"]::file-selector-button {
    background-color: var(--primary-color);
    color: white;
    border: 0;
    border-radius: 4px;
    padding: 8px 16px;
    margin-right: 15px;
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"]::file-selector-button:hover {
    background-color: #4a9be7;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.file-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-item .file-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.file-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    color: #ef4444;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .theme-card {
        grid-template-columns: 1fr;
    }
    
    .theme-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .testimonials-slider {
        flex-direction: column;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    nav.active ul {
        flex-direction: column;
        padding: 20px;
    }

    nav.active ul li {
        margin-bottom: 15px;
    }
    
    .contact-columns {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }

    .logo-container {
        position: static;
        margin-bottom: 30px;
    }

    .logo {
        position: static;
        margin-bottom: 30px;
    }
    
    .fullscreen-hero {
        justify-content: flex-start;
        padding-top: 50px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .modal-body {
        padding: 15px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

@media (max-height: 700px), (max-width: 480px) {
    .modal {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        margin-top: 0;
    }
}

/* Claude 3.7 knocked it out of the park */
.modal-header h2{
    color: white;
}
.logo img {
    width: auto;
    height: 48px;
    border-radius: 12px;
}
#contactModal, .modal-content{
    overflow: auto;
}
