:root {
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.navbar {
    transition: background-color var(--transition-speed);
}

.nav-link {
    font-weight: 500;
    transition: color var(--transition-speed);
}

/* WhatsApp Button */
#langIcon {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: white;
}

/* Animations */
.fade-in {
    animation: fadeInAnimation 0.5s ease forwards;
}

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

/* Project Cards */
.project-card {
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

[data-bs-theme="dark"] .project-card {
    border: 1px solid rgba(255,255,255,0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.img-placeholder {
    aspect-ratio: 16 / 9;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2rem;
    border-radius: 4px;
}

[data-bs-theme="dark"] .img-placeholder {
    background: #2b3035;
    color: #495057;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem !important;
    }

    .hero-profile-img {
        width: 200px !important;
        height: 200px !important;
    }

    .about-card {
        margin-top: 1.5rem;
    }

    .cv-pdf-placeholder {
        max-width: 140px !important;
        height: 180px !important;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .project-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .lead {
        font-size: 0.9rem;
    }

    .hero-profile-img {
        width: 160px !important;
        height: 160px !important;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.8rem;
    }
}
