@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Color Palette - Elegant Dark Theme */
    --bg-primary: #0d0e12;
    --bg-secondary: #161820;
    --bg-tertiary: #1f2230;
    --bg-glass: rgba(22, 24, 32, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Accents representing the two worlds */
    --color-work: #6366f1; /* Deep Indigo */
    --color-work-light: #818cf8;
    --color-life: #10b981; /* Emerald green */
    --color-life-light: #34d399;
    
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #064e3b 100%);
    --gradient-accent: linear-gradient(90deg, var(--color-work) 0%, var(--color-life) 100%);
    --gradient-text: linear-gradient(90deg, #ffffff 0%, #a5b4fc 50%, #6ee7b7 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow-work: 0 0 25px rgba(99, 102, 241, 0.25);
    --shadow-glow-life: 0 0 25px rgba(16, 185, 129, 0.25);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Reusable Components */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    z-index: -1;
    transition: var(--transition-normal);
    opacity: 0.9;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45), 0 0 15px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary::before {
    background: var(--bg-tertiary);
    opacity: 0;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Glassmorphism card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

/* Sections spacing */
section {
    padding: 8rem 0;
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-normal);
}

header.scrolled {
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 12px;
    height: 12px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--color-life);
    border-radius: var(--radius-full);
    animation: pulse 3s infinite;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-normal);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    background: radial-gradient(circle at 10% 20%, rgba(30, 27, 75, 0.4) 0%, rgba(13, 14, 18, 1) 90%),
                radial-gradient(circle at 90% 80%, rgba(6, 78, 59, 0.3) 0%, rgba(13, 14, 18, 1) 90%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-life);
    box-shadow: 0 0 8px var(--color-life);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transition: var(--transition-slow);
}

.hero-image-container:hover {
    transform: scale(1.02) translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg), var(--shadow-glow-work), var(--shadow-glow-life);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.hero-bg-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(16, 185, 129, 0.1) 50%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: drift 15s ease-in-out infinite alternate;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-subtitle {
    color: var(--color-work-light);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Philosophy Section (The Dualism) */
.philosophy {
    background: var(--bg-secondary);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.concept-card {
    position: relative;
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-normal);
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: var(--transition-normal);
}

.concept-work::before {
    background: var(--color-work);
}

.concept-life::before {
    background: var(--color-life);
}

.concept-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.concept-work:hover {
    box-shadow: var(--shadow-glow-work), var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.concept-life:hover {
    box-shadow: var(--shadow-glow-life), var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.3);
}

.concept-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

.concept-work .concept-icon {
    color: var(--color-work-light);
}

.concept-life .concept-icon {
    color: var(--color-life-light);
}

.concept-card:hover .concept-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.08);
}

.concept-card h3 {
    font-size: 1.75rem;
}

.concept-card p {
    color: var(--text-secondary);
}

.concept-image-container {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid var(--border-glass);
}

.concept-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.concept-card:hover .concept-image {
    transform: scale(1.05);
}

.concept-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.concept-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.concept-features i {
    font-size: 1rem;
}

.concept-work .concept-features i {
    color: var(--color-work-light);
}

.concept-life .concept-features i {
    color: var(--color-life-light);
}

/* Dialogue Section */
.dialogue {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.dialogue-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.dialogue-intro h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.dialogue-intro p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.dialogue-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quote-card {
    position: relative;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border-left: 4px solid var(--color-work);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.quote-card-life {
    border-left-color: var(--color-life);
    align-self: flex-end;
    width: 90%;
}

.quote-card-work {
    align-self: flex-start;
    width: 90%;
}

.quote-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid var(--border-glass);
}

.quote-card-work .author-avatar {
    color: var(--color-work-light);
    border-color: rgba(99, 102, 241, 0.3);
}

.quote-card-life .author-avatar {
    color: var(--color-life-light);
    border-color: rgba(16, 185, 129, 0.3);
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Interactive Calculator / Quiz Section */
.synergy-tool {
    background: var(--bg-primary);
}

.tool-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.slider-container {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 600;
}

.slider-header span {
    font-size: 1.1rem;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    outline: none;
    transition: var(--transition-fast);
}

#slider-work::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-work);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: var(--transition-fast);
}

#slider-work::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#slider-life::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-life);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: var(--transition-fast);
}

#slider-life::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.tool-output {
    text-align: center;
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at center, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.tool-output::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.output-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.output-score {
    font-size: 5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-normal);
}

.output-message {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 500px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 2.25rem;
}

.contact-info p {
    color: var(--text-secondary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-life-light);
}

.method-details h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-details p {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-work);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-success-msg {
    display: none;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-life);
    border-radius: var(--radius-sm);
    color: var(--color-life-light);
    font-weight: 600;
    align-items: center;
    gap: 0.75rem;
}

/* Footer */
footer {
    background: var(--bg-primary);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 360px;
}

.footer-nav {
    display: flex;
    justify-content: flex-end;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.25rem;
    }
    .philosophy-grid, .dialogue-content, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .quote-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
    .hero {
        padding-top: 6rem;
    }
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-description {
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-glass);
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }
    nav.open {
        display: block;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .nav-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-nav {
        justify-content: flex-start;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
