@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e0e0e0; /* Light text */
    line-height: 1.6;
}

/* Header & Navigation */
header { position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.8); /* Slightly transparent dark */
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    z-index: 1000;
    /* border-bottom: 1px solid #333; */ /* Removed border */
    border-bottom-left-radius: 20px; /* Added curve */
    border-bottom-right-radius: 20px; /* Added curve */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Added subtle shadow for definition */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF8C00; /* Accent color - Orange */
    padding-right: 50%;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FF8C00; /* Accent color on hover - Orange */
}

/* Sections General Styling */
section {
    padding: 6rem 5% 4rem; /* Top padding accounts for fixed header */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh; /* Give sections some space */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #FF8C00; /* Main Title Color - Orange */
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Línea de "Sobre Nosotros" Subrayado = Underline*/
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background-color: #FF8C00; /* Accent color - Orange */
    border-radius: 2px;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align:center;
    position: relative;
    overflow: hidden; /* Needed for background animation */
    background: linear-gradient(-45deg, #0d0d0d, #1a1a1a, #025872, #070707); /* Adjusted gradient */
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding-top: 80px; /* Adjust for header height */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* #hero{
    background-image: url(img/Calbert\ 72\,\ logo\ con\ fondo-1.png);
} */

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-content .highlight {
    color: #FF8C00; /* Accent color - Orange */
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #bdbdbd;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #FF8C00; /* Accent color - Orange */
    color: #121212; /* Dark text for contrast */
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #E07B00; /* Darker Orange */
    transform: translateY(-3px);
}

/* About Section */
#about {
    background-color: #1e1e1e; /* Slightly lighter dark */
}
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
    text-align: justify;
}
#about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #FF8C00; /* Accent color - Orange */
}

.lema{
    color: #FF8C00;
    text-decoration: underline;
    font-size: 1.1rem;
}
.skills-list {
    list-style: none;
    padding-left: 0;
}
.skills-list li {
    background-color: #333;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}
.skills-list li:hover{
    color: #000;
    font-weight: 700;
    background-color: #FF8C00;
    border-radius: 24px;
}

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

.project-card {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.15); /* Shadow color - Orange tint */
}

.project-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    background-color: #2a2a2a; /* Placeholder background */
    margin-bottom: 1.2rem;
    border-radius: 6px 6px 0 0; /* Rounded corners top */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hide parts of SVG if needed */
}

.project-image svg {
    width: 50px; /* Adjust size as needed */
    height: 50px;
    color: #555; /* Placeholder icon color */
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #FF8C00; /* Accent color - Orange */
}

.project-card p {
    flex-grow: 1; /* Makes sure description takes available space */
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #bdbdbd;
    text-align: justify;
}

.project-card a {
    color: #FF8C00; /* Accent color - Orange */
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start; /* Aligns button to the start */
    transition: color 0.3s ease;
}

.project-card a:hover {
    text-decoration: underline;
    color: #E07B00; /* Darker Orange */
}

/* Contact Section */
#contact {
    background-color: #1e1e1e;
}


#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #bdbdbd;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF8C00; /* Accent color - Orange */
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.3); /* Focus glow - Orange */
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 5%;
    margin-top: 2rem;
    background-color: #1e1e1e;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px; /*
    background-color: #25D366;  WhatsApp Green */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px; /* Adjust icon size if needed */
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1EBE58; /* Slightly darker green on hover */
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 28px; /* Adjust icon size */
    height: 28px;
    fill: #ffffff; /* White icon */
}

/* Responsive Design Calbert 72 Porfolio */
@media (max-width: 1000px) {
    header {
        padding: 0.8rem 5%; /* Adjust padding slightly */
         border-bottom-left-radius: 15px; /* Adjust curve for smaller screens */
         border-bottom-right-radius: 15px;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin-top: 0.5rem; /* Reduced margin */
        padding-left: 0;
        justify-content: center;
        padding-bottom: 0.5rem; /* Add padding to prevent overlap with curve */
    }

    nav ul li {
        margin: 0 0.8rem;
    }

    .logo {
        padding-right: 0%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
         /* Adjust top padding to account for taller header */
        padding: calc(6rem + 30px) 5% 3rem; /* Estimate taller header height */
    }

     #hero {
         /* Adjust top padding to account for taller header */
        padding-top: 120px; /* Approx height of header in this view */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    header {
         border-bottom-left-radius: 10px;
         border-bottom-right-radius: 10px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
     .project-grid {
        grid-template-columns: 1fr; /* Stack projects on smallest screens */
    }

    nav ul li {
        margin: 0 0.5rem;
    }
     nav ul li a {
        font-size: 0.9rem;
     }
     .logo {
        font-size: 1.3rem;
        margin-bottom: 0.3rem; /* Space below logo */
     }
     /* Adjust section padding again */
      section {
        padding: calc(5rem + 40px) 5% 3rem; /* Further adjustment */
      }

      #hero {
          /* Further adjustment */
         padding-top: 130px;
     }

     .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-float svg {
        width: 20px;
        height: 20px;
    }
}