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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5656a0;
    text-decoration: none;
}

.nav-menu {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #5656a0;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: #374151;
    transition: 0.3s;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile menu */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .nav-menu.active {
        position: static;
        flex-direction: row;
        border-top: none;
        padding: 0;
        gap: 2rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  max-width: auto;
  object-fit: cover;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: -2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://aliceasmar.com/src/img/JM1_0061.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.7em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid white;
    border-radius: 1.25rem;
    display: flex;
    justify-content: center;
}

.scroll-dot {
    width: 0.25rem;
    height: 0.75rem;
    background: white;
    border-radius: 0.125rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.bolt-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5656a0;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-paragraph {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.75;
}

.about-quote {
    border-left: 4px solid #5656a0;
    padding-left: 1.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: #5656a0;
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(2px);
}

.decoration-1 {
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background-color: #f3f4ff;
}

.decoration-2 {
    bottom: -1rem;
    left: -1rem;
    width: 8rem;
    height: 8rem;
    background-color: #eeecff;
    opacity: 0.6;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    background: white;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #5656a0;
    color: #5656a0;
}

.filter-btn.active {
    background: #5656a0;
    color: white;
    border-color: #5656a0;
    box-shadow: 0 10px 15px -3px rgba(85, 86, 160, 0.1);
}

.portfolio-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-0.5rem);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(85, 86, 160, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lang-toggle {
  display: none !important;
}

#btn-en,
#btn-es {
  display: none !important;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: #f3f4ff;
    color: #5656a0;
    font-size: 0.875rem;
    border-radius: 9999px;
}

/* Service Sections */
.service-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.service-section.secondary {
    background: white;
}

.service-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .service-content {
        grid-template-columns: 1fr 1fr;
    }
}

.service-content.reverse {
    direction: ltr;
}

@media (min-width: 1024px) {
    .service-content.reverse .service-text {
        order: 2;
    }

    .service-content.reverse .service-image {
        order: 1;
    }
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: #5656a0;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon.secondary {
    background: #332c77;
}

.service-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #5656a0;
}

.service-section.secondary .service-header h2 {
    color: #332c77;
}

.service-description {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.service-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.skill-tag:hover {
    border-color: #5656a0;
    color: #5656a0;
}

.service-section.secondary .skill-tag:hover {
    border-color: #332c77;
    color: #332c77;
}

.service-image {
    position: relative;
}

.service-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* CV Section */
.cv {
    padding: 5rem 0;
    background: #f9fafb;
}

.downloadbt {
    width: 100%;
    background: #5656a0;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cv-timeline {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.cv-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cv-dot {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.cv-dot.current {
    background: #5656a0;
}

.cv-dot.education {
    background: #332c77;
}

.cv-dot.exchange {
    background: #059669;
}

.cv-dot.achievement {
    background: #d97706;
}

.cv-card {
    flex: 1;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: relative;
}

.cv-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
    transform: translateX(-0.5rem);
}

.cv-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .cv-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.cv-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.cv-institution {
    color: #5656a0;
    font-weight: 500;
}

.cv-meta {
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
}

.cv-status {
    font-weight: 500;
}

.cv-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cv-description {
    color: #374151;
    line-height: 1.75;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: white;
}

.testimonials-carousel {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
}

.testimonial-card {
    background: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    text-align: center;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.testimonial-quote {
    font-size: 1.25rem;
    color: #374151;
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .testimonial-quote {
        font-size: 1.5rem;
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: #111827;
    font-size: 1.125rem;
}

.author-role {
    color: #5656a0;
    font-weight: 500;
}

.author-company {
    color: #6b7280;
    font-size: 0.875rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.carousel-btn:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.carousel-btn.prev {
    left: 0;
    transform: translateY(-50%) translateX(-1.5rem);
}

.carousel-btn.next {
    right: 0;
    transform: translateY(-50%) translateX(1.5rem);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active {
    background: #5656a0;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f9fafb;
}

.contact-content {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

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

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5656a0;
    box-shadow: 0 0 0 3px rgba(85, 86, 160, 0.1);
}

.submit-btn {
    width: 100%;
    background: #5656a0;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background: #4a4a8a;
}

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

.contact-card,
.social-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.contact-card h3,
.social-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #5656a0;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-icon.email {
    background: #5656a0;
}

.contact-icon.phone {
    background: #ec4899;
}

.contact-icon.location {
    background: #059669;
}

.contact-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.contact-value {
    font-weight: 500;
    color: #111827;
    text-decoration: none;
}

.contact-value:hover {
    color: #5656a0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.instagram {
    background: #e91e63;
}

.social-link.linkedin {
    background: #2563eb;
}

.social-link.facebook {
    background: #3b82f6;
}

/* Footer */
.footer {
    background: #332c77;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: #c7d2fe;
    margin-bottom: 1.5rem;
}

.footer-divider {
    border-top: 1px solid #4c1d95;
    padding-top: 1.5rem;
}

.footer-copyright {
    color: #c7d2fe;
    font-size: 0.875rem;
}

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-header h2 {
        font-size: 1.875rem;
    }

    .testimonial-quote {
        font-size: 1.125rem;
    }

    .carousel-btn {
        display: none;
    }

    .about-content,
    .service-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, transform, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}
