@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fffafb;
    color: #4a3a3d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.serif-font {
    font-family: 'Playfair Display', serif;
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 60;
    border-bottom: 1px solid #fce7f3;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(219, 39, 119, 0.15);
    overflow-y: auto;
}

#mobile-menu.active {
    transform: translateY(0);
}

#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(74, 58, 61, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.menu-open #menu-overlay {
    pointer-events: auto;
    opacity: 1;
}

.soft-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 207, 232, 0.6);
    box-shadow: 0 10px 30px -10px rgba(219, 39, 119, 0.1);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .soft-card {
        padding: 2.5rem;
    }
}

.skill-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
    transform: translateY(-5px);
    background: white;
    border-color: #f472b6;
    box-shadow: 0 15px 25px -5px rgba(244, 114, 182, 0.25);
}

.gradient-text {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #db2777, #e11d48);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
}

.btn-primary:active {
    transform: scale(0.95);
}

.lang-btn {
    cursor: pointer;
    transition: color 0.3s;
    opacity: 0.6;
}

.lang-btn.active {
    color: #db2777;
    font-weight: 800;
    opacity: 1;
}

#chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 380px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

#chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-bubble-bot {
    background: #fdf2f8;
    border-bottom-left-radius: 4px;
    border: 1px solid #fce7f3;
}

.chat-bubble-user {
    background: #db2777;
    color: white;
    border-bottom-right-radius: 4px;
}

.typing-dots span {
    animation: typing 1.4s infinite both;
    width: 6px;
    height: 6px;
    background: #db2777;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.animate-floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

i { pointer-events: none; }

button, a {
    touch-action: manipulation;
}

@media (max-width: 640px) {
    header {
        padding: 0.75rem 1rem !important;
    }
    
    main {
        padding-top: 6rem !important;
    }
    
    .grid {
        gap: 1.5rem !important;
    }
}