/* 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;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(
        to right,
        rgba(27, 82, 64, 0.99) 55%,
        #faf8f3 57%
    );
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #12362b;
    font-weight: 600;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 65px;
    width: auto;
}

.nav-center-icon {
    position: absolute;
    left: 55%;
    transform: translateX(-50%);
    z-index: 1001;
}

.center-logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.center-logo-link:hover {
    transform: scale(1.05);
}

.center-logo {
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #12362b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    margin: 4px;
}

.dropdown-link:hover {
    background-color: #f0f9f5;
    color: #156d54;
}

.nav-link {
    text-decoration: none;
    color: #12362b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #12362b;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d6a77a;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #28511c;
    color: white;
    position: relative;
}

/*.hero-green {
    background: #1b5240;
    transition: background 0.5s ease;
}
*/

.hero-green {
    background:
        linear-gradient(rgba(27, 82, 64, 0.99) 2%, rgba(13, 47, 13, 0.9)),
        url("../hero/hero-bg.jpg");
    background-size: cover;
    background-position: right top;
    /*background-attachment: scroll;*/
    transition: background 1.75s ease;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.name-highlight {
    background: #f7c8a3 /*linear-gradient(45deg, #ffd700, #52401b, #ffed4e)*/;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
}

.btn-primary {
    background:/* #2563eb */ #faf8f3;
    color: #2c2c2c;
}

.btn-primary:hover {
    background:/* #1d4ed8*/ #d8c3a5;
}

.btn-secondary {
    background: transparent;
    color: #faf8f3;
    border: 2px solid #f4f0ec;
}

.btn-secondary:hover {
    background: #d8c3a5;
    color: #2c2c2c;
    border: 2px solid #d8c3a5;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.7);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

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

/* Sections */
.section {
    padding: 100px 0;
}

#research {
    padding-top: 200px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
    background: #faf8f3;
}

.bg-light {
    background: white;
}

.bg-dark {
    background: #12362b;
    color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #12362b;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #37474f;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.bg-dark .section-title {
    color: white;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-align: center;
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: #156d54;
    margin-bottom: 1rem;
}

.research-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #12362b;
}

.research-card p {
    margin-bottom: 1.5rem;
    color: #37474f;
}

.card-link {
    color: #c98660;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #156d54;
}

.cv-section {
    text-align: center;
    margin-top: 3rem;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 15px 30px;
    background: white;
    color: #156d54;
    border: 2px solid #156d54;
}

.cv-btn:hover {
    background: #156d54;
    color: white;
}

/* Teaching Section */
.teaching-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.teaching-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #12362b;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list i {
    color: #10b981;
}

.teaching-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #37474f;
    font-weight: 500;
}

/* Lluvia Maker Section */
.lluvia-content {
    text-align: center;
}

.lluvia-description {
    margin-bottom: 3rem;
}

.lluvia-description h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.lluvia-demo {
    background: #1e293b;
    border-radius: 15px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 600px;
}

#rainCanvas {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
}

.demo-controls {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.demo-controls input[type="range"] {
    width: 150px;
}

.demo-controls label {
    color: white;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.contact-item i {
    color: #f7c8a3;
    width: 20px;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: #faf8f3;
    color: #37474f;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #faf8f3;
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(250, 248, 243, 0.9);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Footer */
.footer {
    background: rgba(216, 195, 165, 0.8);
    color: #12362b;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        margin-left: auto;
        display: flex;
    }

    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .navbar {
        background: linear-gradient(
            to right,
            rgba(27, 82, 64, 0.99) 77%,
            #faf8f3 79%
        );
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin: 10px 20px;
        border-radius: 8px;
    }

    .center-logo {
        height: 75px;
    }

    .nav-center-icon {
        left: 74%;
        transform: translateX(-50%);
    }

    .nav-logo {
        display: flex;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        width: 100%;
        overflow-x: hidden;
    }

    .hero-green {
        background-size: cover;
        background-position: center;
    }

    .hero-content {
        max-width: 100%;
        grid-template-columns: 1fr;
        text-align: left;
        padding: 200px 15px 20px -90px;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.1;
        display: block !important;
        visibility: visible !important;
        margin-top: 100px !important;
        position: relative !important;
        z-index: 999 !important;
    }

    .hero-title br {
        display: block;
        text-align: left;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        max-width: 100%;
        word-wrap: break-word;
        text-align: left;
    }

    .hero-description {
        font-size: 0.87rem;
        max-width: 97%;
        word-wrap: break-word;
        text-align: left;
    }

    .hero-image {
        margin-bottom: 5rem;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: left;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .teaching-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .typing-text {
        display: inline-block !important;
        min-height: 1.2em;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .name-highlight {
        display: inline-block !important;
        visibility: visible !important;
    }

    .section {
        padding: 80px 15px;
    }

    #research {
        padding-top: 100px;
    }
}

/* AOS Animation Styles */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

.profile-photo {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}
