@import url('https://fonts.googleapis.com/css2?family=Ledger&display=swap');
/* ------------------------------
    RESET & GLOBAL STYLES
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ledger', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.6;
    color: #eae7e7;
    background-color:darkseagreen;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* ------------------------------
    NAVBAR
--------------------------------*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fafafa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #146767;
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: #146767;
}

.navbar .nav-links li {
    display: inline-block;
    margin-left: 2rem;
    color: #146767;
}

.navbar .nav-links li a {
    font-weight: 500;
    color: #146767;
}

.navbar .nav-links li a.active {
    font-weight: 700;
    color: #146767;
}

/* ------------------------------
    PAGE HEADER
--------------------------------*/
.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background-color: #bad8d8;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #146767;
}

.page-header p {
    font-size: 1.1rem;
    color: #146767;
}

/* ------------------------------
    HERO SECTION (Home page)
--------------------------------*/
.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #d9e6e6;
    font: bold;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #f3eaea;
}

.hero-text a {
    color: #146767;
}

.hero-text .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #146767;
    color: white;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.hero-text .btn:hover {
    background-color: #146767;
}

.hero-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ------------------------------
    SECTIONS
--------------------------------*/
.content {
    max-width: 1000px;
    margin:auto;
    padding: 2rem;
}

.section-block {
    margin-bottom: 3rem;
}

.section-block h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #146767;
    border-bottom: 2px solid #bad8d8;
    display: inline-block;
    padding-bottom: 0.2rem;
}

.section-block p, 
.section-block li {
    margin-bottom: 0.5rem;
    color: #146767;
}
/* container */
.scroll-windows {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 2rem;
}

/* each window */
.window {
    display: block;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
    color: #333;
}

/* titles inside each window */
.window h3 {
    margin-bottom: 0.5rem;
    color: #146767;
}

/* hover */
.window:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

/* SKILLS COLUMNS */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.skills-column {
    flex: 1;
    min-width: 200px;
}

/* MUSIC PORTFOLIO */
.music-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.music-item h3 {
    color: #146767;
    margin-bottom: 0.5rem;
}

/* PROJECT ITEMS */
.item {
    margin-bottom: 1.5rem;
}

.item a {
    color: #146767;
    font-weight: 500;
}

/* SOCIAL LINKS */
.social-links li {
    display: inline-block;
    margin-right: 1rem;
}

/* ------------------------------
    FOOTER
--------------------------------*/
footer {
    text-align: center;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    color: #555;
    font-size: 0.9rem;
}
/*------------------------------
      BACKGROUND FOR EACH PAGE
--------------------------------*/
/* Fondo para home */
.home-page {
    background-image: url('image/water.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

/* Fondo para about */
.about-page {
    background-image: url('image/sky.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

/* Fondo para science */
.science-page {
    background-image: url('image/science.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

/* ------------------------------
    MEDIA QUERIES
--------------------------------*/
@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .skills-container {
        flex-direction: column;
    }

    .navbar .nav-links li {
        margin-left: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}
