/* CSS Variables for Theme Management */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #2dd4bf;
    --light-gray: #f5f5f5;
    --medium-gray: #8a8a8a;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0a0a0a;
        --text-color: #f5f5f5;
        --accent-color: #2dd4bf;
        --light-gray: #1a1a1a;
        --medium-gray: #7a7a7a;
        --border-color: #2a2a2a;
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

strong {
    font-weight: 600;
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Global Section Spacing */
section {
    padding: 5rem 1rem !important;
    display: block;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    section {
        padding: 6rem 2rem !important;
    }
}

/* Ensure sections stack properly without overlap */
section + section {
    margin-top: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    margin-bottom: 0;
}

.hero-text {
    text-align: left;
    width: 100%;
}

.hero-brand {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 3rem;
    position: relative;
    text-align: left;
}

.hero-line {
    display: block;
    position: relative;
    margin-bottom: 0.5rem;
    text-align: left;
}

.hero-line--large {
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 800;
    color: var(--accent-color);
    margin-left: 0;
}

.hero-line--small {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--text-color);
    margin-left: 0;
    margin-top: 1rem;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
    max-width: 900px;
}

.hero-desc {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.9;
}

.hero-values {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--medium-gray);
    text-align: left;
}

/* About Section */
.about {
    position: relative;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-content {
    width: 100%;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.about-desc {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 800px;
    text-align: left;
}

/* Services Section */
.services {
    position: relative;
    margin: 0;
    clear: both;
}

.services-header {
    margin-bottom: 6rem;
}

.services-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: left;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
}

.service-item {
    position: relative;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.service-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.service-desc {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
    color: var(--medium-gray);
}

/* Process Section */
.process {
    position: relative;
}

.process-header {
    margin-bottom: 3rem;
}

.process-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: left;
    position: relative;
}

.process-content {
    width: 100%;
    margin-bottom: 6rem;
}

.process-subtext {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.process-desc {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 800px;
    text-align: left;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
}

.process-item {
    position: relative;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.process-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.process-step-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.process-step-desc {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
    color: var(--medium-gray);
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    position: relative;
}

.contact-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section input,
.contact-section textarea {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-section input:focus,
.contact-section textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.1);
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: var(--medium-gray);
}

.contact-section button {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

.contact-section button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

#form-status {
    text-align: center;
    margin-top: 2rem;
}

#form-status p {
    font-weight: bold;
    margin: 0;
}

/* Coming Soon Section */
.coming-soon {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.coming-soon-content {
    width: 100%;
}

.coming-soon-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: left;
    position: relative;
}

.coming-soon-desc {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 800px;
    text-align: left;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .hero-line--large {
        margin-left: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-section form {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .hero-line--large {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }
    
    .hero-subtitle {
        margin-top: 2rem;
    }
    
    .services {
        padding: 4rem 0;
    }
    
    .about, .process, .contact-section, .coming-soon {
        padding: 4rem 0;
    }
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}