@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@400;700&family=Great+Vibes&display=swap');

/* CSS Variables for easier theming */
:root {
    --color-bg-primary: #0b0f16;
    --color-bg-secondary: #2d2a4a;
    --color-text-primary: #ececec;
    --color-text-warm: #fff7e8;
    --color-accent: #ffdca8;
    --color-accent-bright: #ffe6c6;
    --color-gold: #f4d6a6;
    --spacing-xl: 160px;
    --spacing-lg: 120px;
    --spacing-md: 80px;
    --spacing-sm: 40px;
}

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

html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 50% 20%, #2d2a4a, #0d0f16 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 160, 0.15), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(120, 180, 255, 0.12), transparent 60%),
    var(--color-bg-primary);
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
    color: var(--color-text-primary);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Stars background */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
}

/* Whisper floating text */
.whisper {
    position: fixed;
    bottom: 40%;
    right: 6%;
    font-size: 22px;
    opacity: 0.18;
    color: #f5e1b8;
    animation: whisperFloat 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes whisperFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-35px); opacity: 0.28; }
}

/* Mandala rotating behind title */
.mandala {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,225,180,0.09) 2px, transparent 3px),
    radial-gradient(circle, rgba(255,210,150,0.07) 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 2px);
    background-size: 38px 38px, 62px 62px, 18px 18px;
    animation: mandalaRotate 95s linear infinite;
    filter: blur(2px);
    z-index: -2;
}

@keyframes mandalaRotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Sacred geometry glow */
.sacred-geometry {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,215,160,0.18), transparent 70%);
    filter: blur(35px);
    z-index: -1;
}

/* HERO */
.hero {
    text-align: center;
    padding: 160px 20px 100px;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 68px;
    color: #fff7e8;
    text-shadow: 0 0 30px rgba(255,218,160,0.5);
}

.hero-subtitle {
    font-size: 22px;
    color: #ffdca8;
}

/* Typewriter */
.typewriter {
    border-right: 2px solid #ffdca8;
    white-space: nowrap;
    overflow: hidden;
}

/* Scroll journey */
.scroll-journey {
    margin-top: 0;
}

/* SECTION */
.section {
    width: 85%;
    max-width: 880px;
    margin: 80px auto;
}

/* Enhanced Section with Icon */
.section-enhanced {
    position: relative;
    padding: 60px 50px;
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.04), rgba(255, 215, 160, 0.01));
    border: 1px solid rgba(255, 215, 160, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.section-enhanced:hover {
    border-color: rgba(255, 215, 160, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 215, 160, 0.4),
        transparent
    );
}

.section-icon {
    font-size: 56px;
    text-align: center;
    margin-bottom: 25px;
    animation: gentle-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 160, 0.3));
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.section-enhanced .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-enhanced .section-text {
    position: relative;
}

/* Special section (final message) with extra emphasis */
.section-special {
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.08), rgba(255, 215, 160, 0.02));
    border: 2px solid rgba(255, 215, 160, 0.25);
    box-shadow: 0 12px 48px rgba(255, 215, 160, 0.15);
}

.section-special::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 215, 160, 0.4),
        transparent
    );
}

.section-special .section-icon {
    font-size: 64px;
    animation: special-float 4s ease-in-out infinite;
}

@keyframes special-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.08);
    }
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    color: #ffe6c6;
    text-shadow: 0 0 12px rgba(255,220,150,0.4);
}

.section-text {
    font-size: 19px;
    line-height: 1.7;
    opacity: 0.92;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    margin-bottom: 24px;
}

.section-text:last-child {
    margin-bottom: 0;
}

.skills-list li {
    margin-bottom: 8px;
}

/* Blockquote styling */
.quote {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-style: italic;
    color: var(--color-accent-bright);
    text-align: center;
    margin: var(--spacing-sm) 0;
    padding: 30px;
    position: relative;
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.05), rgba(255, 215, 160, 0.02));
    border-left: 3px solid var(--color-gold);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quote::before {
    content: '"';
    font-family: "Playfair Display", serif;
    font-size: 72px;
    position: absolute;
    top: -10px;
    left: 20px;
    color: rgba(255, 215, 160, 0.2);
    line-height: 1;
}

.quote::after {
    content: '"';
    font-family: "Playfair Display", serif;
    font-size: 72px;
    position: absolute;
    bottom: -50px;
    right: 20px;
    color: rgba(255, 215, 160, 0.2);
    line-height: 1;
}

/* Golden separator */
.gold-separator {
    height: 1px;
    width: 140px;
    background: linear-gradient(to right, transparent, #f4d6a6, transparent);
    margin: 40px auto 40px;
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Signature */
.signature {
    font-family: "Great Vibes", cursive;
    font-size: 56px;
    color: #ffe6c6;
    text-align: center;
    margin-top: 120px;
    text-shadow: 0 0 18px rgba(255,220,150,0.5);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 18px;
    color: #f2e6cf;
    opacity: 0.8;
    padding: 60px 20px 90px;
}

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

/* Selection color */
::selection {
    background: rgba(255, 220, 168, 0.3);
    color: var(--color-text-warm);
}

::-moz-selection {
    background: rgba(255, 220, 168, 0.3);
    color: var(--color-text-warm);
}

/* Smooth transitions for all interactive elements */
a, button, .hero-title, .section-title {
    transition: all 0.3s ease;
}

/* Hero title hover effect */
.hero-title {
    cursor: default;
    transition: text-shadow 0.5s ease;
}

.hero-title:hover {
    text-shadow: 0 0 40px rgba(255,218,160,0.7), 0 0 60px rgba(255,218,160,0.4);
}

/* Section title hover effect */
.section-title {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.section-title:hover {
    color: var(--color-text-warm);
    text-shadow: 0 0 18px rgba(255,220,150,0.6);
}

/* Parallax effect for decorative elements */
.mandala, .sacred-geometry, .whisper {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 100px;
        --spacing-lg: 80px;
        --spacing-md: 50px;
        --spacing-sm: 30px;
    }

    .hero {
        padding: 100px 20px 70px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .mandala {
        width: 320px;
        height: 320px;
        top: -40px;
    }

    .sacred-geometry {
        width: 240px;
        height: 240px;
        top: -30px;
    }

    .whisper {
        font-size: 18px;
        right: 4%;
        bottom: 35%;
    }

    .section {
        width: 90%;
        margin: 50px auto;
    }

    .section-enhanced {
        padding: 40px 30px;
    }

    .section-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .section-special .section-icon {
        font-size: 56px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-text {
        font-size: 17px;
        line-height: 1.65;
    }

    .quote {
        font-size: 20px;
        padding: 25px;
        margin: 30px 0;
    }

    .quote::before, .quote::after {
        font-size: 56px;
    }

    .quote::after {
        bottom: -40px;
    }

    .signature {
        font-size: 42px;
        margin-top: 80px;
    }

    .footer {
        font-size: 16px;
        padding: 50px 20px 70px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .mandala {
        width: 240px;
        height: 240px;
    }

    .sacred-geometry {
        width: 180px;
        height: 180px;
    }

    .whisper {
        font-size: 16px;
        opacity: 0.12;
    }

    .section-enhanced {
        padding: 30px 20px;
    }

    .section-icon {
        font-size: 42px;
        margin-bottom: 15px;
    }

    .section-special .section-icon {
        font-size: 48px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-text {
        font-size: 16px;
    }

    .quote {
        font-size: 18px;
        padding: 20px;
    }

    .signature {
        font-size: 36px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .mandala, .sacred-geometry, .whisper, #stars, .gold-separator {
        display: none;
    }

    .hero-title, .section-title, .quote {
        color: black;
        text-shadow: none;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Loading state optimization */
@media (prefers-reduced-data: reduce) {
    .mandala, .sacred-geometry {
        display: none;
    }
}

/* ================================
   Presence Pause Feature
   ================================ */

/* Presence Note Callout */
.presence-note {
    max-width: 750px;
    margin: 80px auto;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.08), rgba(255, 215, 160, 0.03));
    border: 1px solid rgba(255, 215, 160, 0.2);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.presence-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 215, 160, 0.5),
        transparent
    );
}

.presence-note-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.presence-note-title {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: var(--color-accent-bright);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 215, 160, 0.3);
}

.presence-note-text {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-warm);
    opacity: 0.9;
    margin-bottom: 30px;
}

.presence-note-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.2), rgba(255, 215, 160, 0.1));
    border: 2px solid rgba(255, 215, 160, 0.4);
    border-radius: 30px;
    color: var(--color-accent-bright);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.presence-note-button:hover {
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.3), rgba(255, 215, 160, 0.15));
    border-color: rgba(255, 215, 160, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 160, 0.3);
}

.presence-note-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .presence-note {
        margin: 60px auto;
        padding: 40px 30px;
    }

    .presence-note-icon {
        font-size: 40px;
    }

    .presence-note-title {
        font-size: 24px;
    }

    .presence-note-text {
        font-size: 16px;
    }

    .presence-note-button {
        padding: 12px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .presence-note {
        margin: 50px auto;
        padding: 30px 20px;
    }

    .presence-note-icon {
        font-size: 36px;
    }

    .presence-note-title {
        font-size: 22px;
    }

    .presence-note-text {
        font-size: 15px;
    }
}

/* Language Switcher Button */
.lang-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.2), rgba(255, 215, 160, 0.1));
    border: 2px solid rgba(255, 215, 160, 0.4);
    color: var(--color-accent-bright);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(255, 215, 160, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-switcher:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.3), rgba(255, 215, 160, 0.15));
    border-color: rgba(255, 215, 160, 0.6);
    box-shadow: 0 6px 25px rgba(255, 215, 160, 0.4);
}

.lang-switcher:active {
    transform: translateY(-1px) scale(1.02);
}

.lang-flag {
    font-size: 28px;
    line-height: 1;
}

.lang-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating trigger button */
.presence-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.2), rgba(255, 215, 160, 0.1));
    border: 2px solid rgba(255, 215, 160, 0.4);
    color: var(--color-accent-bright);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 215, 160, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.presence-trigger:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 215, 160, 0.3), rgba(255, 215, 160, 0.15));
    border-color: rgba(255, 215, 160, 0.6);
    box-shadow: 0 6px 25px rgba(255, 215, 160, 0.4);
}

.presence-trigger:active {
    transform: translateY(-1px) scale(1.02);
}

.presence-icon {
    font-size: 28px;
    line-height: 1;
}

.presence-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Overlay */
.presence-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 22, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.presence-overlay:not([hidden]) {
    opacity: 1;
}

.presence-overlay[hidden] {
    display: none;
}

.presence-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    position: relative;
}

/* Close button */
.presence-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 160, 0.1);
    border: 1px solid rgba(255, 215, 160, 0.3);
    color: var(--color-accent);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presence-close:hover {
    background: rgba(255, 215, 160, 0.2);
    border-color: rgba(255, 215, 160, 0.5);
    transform: rotate(90deg);
}

/* Breathing circle */
.breathing-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 160, 0.3), rgba(255, 215, 160, 0.05));
    box-shadow:
        0 0 40px rgba(255, 215, 160, 0.4),
        0 0 80px rgba(255, 215, 160, 0.2),
        inset 0 0 40px rgba(255, 215, 160, 0.1);
    animation: breathe 12s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    25% {
        transform: scale(1.2);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    75% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Reduced motion version */
@media (prefers-reduced-motion: reduce) {
    .circle-inner {
        animation: breathe-subtle 4s ease-in-out infinite;
    }

    @keyframes breathe-subtle {
        0%, 100% {
            opacity: 0.6;
        }
        50% {
            opacity: 1;
        }
    }
}

/* Title */
.presence-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    color: var(--color-accent-bright);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 160, 0.3);
}

/* Instructions */
.presence-instructions {
    margin: 30px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instruction {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    color: var(--color-text-warm);
    opacity: 0;
    position: absolute;
    transition: opacity 1s ease;
    line-height: 1.6;
}

.instruction.active {
    opacity: 1;
    position: relative;
}

/* Progress dots */
.presence-progress {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 215, 160, 0.2);
    transition: all 0.5s ease;
}

.progress-dot.active {
    background: var(--color-accent);
    box-shadow: 0 0 10px rgba(255, 215, 160, 0.5);
    transform: scale(1.3);
}

/* Skip instruction */
.presence-skip {
    font-size: 14px;
    color: rgba(255, 215, 160, 0.5);
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .presence-trigger {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .presence-icon {
        font-size: 24px;
    }

    .presence-label {
        font-size: 10px;
    }

    .breathing-circle {
        width: 150px;
        height: 150px;
    }

    .presence-title {
        font-size: 26px;
    }

    .instruction {
        font-size: 18px;
    }

    .presence-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .presence-trigger {
        width: 55px;
        height: 55px;
    }

    .presence-icon {
        font-size: 22px;
    }

    .presence-label {
        font-size: 9px;
    }

    .breathing-circle {
        width: 120px;
        height: 120px;
    }

    .presence-title {
        font-size: 22px;
    }

    .instruction {
        font-size: 16px;
    }
}
