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

:root {
    /* Vibrant Color Palette */
    --primary-color: #0F172A;
    --secondary-color: #1E293B;
    --accent-primary: #06B6D4;
    --accent-secondary: #A855F7;
    --accent-tertiary: #FF6B35;
    --accent-quaternary: #FB923C;
    --text-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --spacing-unit: 1rem;
    --gradient-1: linear-gradient(135deg, #06B6D4 0%, #A855F7 100%);
    --gradient-2: linear-gradient(135deg, #A855F7 0%, #FF6B35 100%);
    --gradient-3: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    --gradient-4: linear-gradient(135deg, #FB923C 0%, #FF6B35 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --text-light: #F1F5F9;
        --text-dark: #F8FAFC;
        --text-muted: #94A3B8;
        --border-color: #334155;
    }
}

:root[data-theme="dark"] {
    --text-light: #F1F5F9;
    --text-dark: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FC 50%, #FFFFFF 100%);
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-wrap: balance;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-unit);
    color: var(--text-muted);
    line-height: 1.8;
}

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

a:hover {
    color: #2563eb;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* ===== Navigation ===== */
.navbar {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: calc(var(--spacing-unit) * 1.2) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 0.75);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-svg {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.2));
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-unit) * 2);
}

.nav-link {
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 25%, #A855F7 75%, #EC4899 100%);
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    padding: calc(var(--spacing-unit) * 10) var(--spacing-unit);
    text-align: center;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-content h1 {
    color: var(--text-light);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    font-size: 3.5rem;
    background: none;
    -webkit-text-fill-color: unset;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.35rem;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 0.875) calc(var(--spacing-unit) * 2.25);
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-light {
    background-color: var(--text-light);
    color: var(--accent-primary);
    font-weight: 700;
}

.btn-light:hover {
    background-color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--gradient-3);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(6, 182, 212, 0.4);
}

/* ===== About Section ===== */
.about {
    padding: calc(var(--spacing-unit) * 10) var(--spacing-unit);
    background: linear-gradient(180deg, #F8FAFC 0%, #F0F9FC 50%, #F1F5F9 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.about > .container > p {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2.5);
    margin-top: calc(var(--spacing-unit) * 3);
}

.about-card {
    background: white;
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

.about-card:nth-child(1) {
    border-color: rgba(6, 182, 212, 0.3);
}

.about-card:nth-child(2) {
    border-color: rgba(168, 85, 247, 0.3);
}

.about-card:nth-child(3) {
    border-color: rgba(255, 107, 53, 0.3);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.about-card h3 {
    background: none;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    margin-bottom: calc(var(--spacing-unit) * 1);
    font-size: 1.35rem;
}

.about-card:nth-child(1) h3 {
    color: var(--accent-primary);
}

.about-card:nth-child(2) h3 {
    color: var(--accent-secondary);
}

.about-card:nth-child(3) h3 {
    color: var(--accent-tertiary);
}

/* ===== Services Section ===== */
.services {
    padding: calc(var(--spacing-unit) * 10) var(--spacing-unit);
    background: linear-gradient(180deg, white 0%, #F0F9FC 50%, #F8FAFC 100%);
    position: relative;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.section-intro {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--text-muted);
}

.service-list {
    list-style: none;
    max-width: 700px;
    margin: calc(var(--spacing-unit) * 3) auto;
    padding: calc(var(--spacing-unit) * 3.5);
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FC 100%);
    border-left: 5px solid transparent;
    background-image:
        linear-gradient(135deg, #FFFFFF 0%, #F0F9FC 100%),
        var(--gradient-1);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
}

.service-list li {
    padding: calc(var(--spacing-unit) * 1.25) 0;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.service-list li:hover {
    transform: translateX(8px);
}

.service-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient-2);
    color: white;
    border-radius: 50%;
    margin-right: calc(var(--spacing-unit) * 1);
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.contact-cta {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 3);
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-cta a {
    color: var(--accent-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.contact-cta a:hover {
    color: var(--accent-secondary);
    text-decoration-color: rgba(168, 85, 247, 0.5);
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, #FF6B35 0%, #FF9F1C 25%, #FB923C 75%, #FBBF24 100%);
    position: relative;
    overflow: hidden;
    color: white;
    padding: calc(var(--spacing-unit) * 10) var(--spacing-unit);
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta h2 {
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 1);
    background: none;
    -webkit-text-fill-color: unset;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-wrap: balance;
}

.cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===== Contact Form Styles ===== */
.contact-section {
    padding: calc(var(--spacing-unit) * 10) var(--spacing-unit);
    background: linear-gradient(180deg, #F8FAFC 0%, #F0F9FC 50%, #F1F5F9 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-section h1 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.contact-intro {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.65);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

input,
textarea,
select {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
    background-color: #F0F9FC;
}

textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.required {
    color: var(--error-color);
    font-weight: 700;
}

.form-message {
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 1.75);
    border-radius: 12px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: none;
    border-left: 5px solid;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

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

.form-message.show {
    display: block;
}

.form-message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: #047857;
    border-left-color: #10B981;
}

.form-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    color: #DC2626;
    border-left-color: #EF4444;
}

.submit-btn {
    width: 100%;
    margin-top: calc(var(--spacing-unit) * 1);
}

/* ===== Legal Page Styles ===== */
.legal-section {
    padding: calc(var(--spacing-unit) * 10) var(--spacing-unit);
    background: linear-gradient(180deg, #F8FAFC 0%, #F0F9FC 50%, #F1F5F9 100%);
}

.legal-content {
    max-width: 950px;
    margin: 0 auto;
}

.legal-section h1 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.legal-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 249, 252, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 12px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    position: sticky;
    top: 80px;
    z-index: 100;
    border: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.legal-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1.25);
}

.legal-nav a {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 0.65) calc(var(--spacing-unit) * 1.25);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.legal-nav a:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.2);
}

.legal-document {
    background: white;
    padding: calc(var(--spacing-unit) * 3.5);
    border-radius: 16px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.legal-document h2 {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 1);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 2px solid #f3f4f6;
}

.legal-document h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-document h3 {
    margin-top: calc(var(--spacing-unit) * 1.5);
}

.legal-document ul,
.legal-document ol {
    margin-left: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.legal-document li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.legal-note {
    background-color: #eff6ff;
    border-left: 4px solid var(--accent-color);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 4px;
    margin: calc(var(--spacing-unit) * 2) 0;
}

.legal-note strong {
    color: var(--primary-color);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    color: var(--text-light);
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    text-align: center;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.footer p {
    color: #94A3B8;
    font-weight: 500;
}

.footer-nav {
    margin-top: calc(var(--spacing-unit) * 1.5);
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2.5);
    flex-wrap: wrap;
}

.footer-nav a {
    color: #94A3B8;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-primary);
}

.footer-nav a:hover::after {
    width: 100%;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: calc(var(--spacing-unit) * 0.5);
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        gap: 0;
        padding: calc(var(--spacing-unit) * 2) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link::after {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .service-list {
        padding: calc(var(--spacing-unit) * 2);
    }

    .legal-nav ul {
        flex-direction: column;
    }

    .legal-nav a {
        width: 100%;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-unit);
    }

    .hero {
        padding: calc(var(--spacing-unit) * 7) var(--spacing-unit);
        min-height: 500px;
    }

    .cta {
        padding: calc(var(--spacing-unit) * 7) var(--spacing-unit);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-unit: 0.875rem;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0 0.875rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .about-card,
    .legal-document {
        padding: calc(var(--spacing-unit) * 1.75);
    }

    .btn {
        padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 2);
    }
}