/*index.css*/
/* Styles defined for the desktop or the bigger screen devices*/
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root {
    --color-bg-main: #181A1B;
    --color-bg-secondary: #23243A;
    --color-primary: #5865F2;
    --color-secondary: #8B5CF6;
    --color-text-main: #F4F4F4;
    --color-text-secondary: #B0B3B8;
    --color-white-translucent: #f4f4f4cc;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background: var(--color-bg-main);
    color: var(--color-text-main);
}

/* Header Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    background-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-bg-secondary));
    background-color: var(--color-bg-secondary);
    z-index: 1000;
}

.logo {
    padding: 0 5rem;
}

.logo .logo-heading {
    color: #fff;
    font-weight: 900;
    font-size: 2.2rem;
    padding: 0.3em 1em;
    border-radius: 16px;
    background: rgba(24,26,27,0.75);
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
    text-shadow: 0 2px 8px #23243A, 0 0px 2px #fff, 0 0 12px #8B5CF6;
    border: 2px solid #fff2;
    letter-spacing: 2px;
    transition: background 0.3s, color 0.3s;
}

.logo .logo-heading:hover {
    background: rgba(139,92,246,0.85);
    color: #fff;
    border: 2px solid #fff8;
    text-shadow: 0 2px 16px #23243A, 0 0px 2px #fff, 0 0 16px #5865F2;
}

.menu {
    padding: 0 5rem;
}

.hamburger {
    color: var(--color-text-main);
    font-size: 25px;
}

.cross-icon {
    display: none;
}

.menu .menu-list {
    display: flex;
    list-style: none;
}

.menu-list .menu-list-items {
    padding: 0.5rem 1rem;
}

.menu-list .menu-list-items .links {
    background: #181A1B;
    color: #F4F4F4;
    font-weight: 600;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.15);
    border: 2px solid #23272A;
    transition: all 0.25s;
    margin: 0 0.3rem;
}

.menu-list .menu-list-items .links:hover {
    background: #F4F4F4;
    color: #181A1B;
    border: 2px solid #23272A;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.20);
}

/* Main Hero Section Styles */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4.8rem 0;
    padding: 6rem 0;
}

.hero .intro {
    text-align: center;
    /* Margin more to the left than right */
    margin: 0 2.5rem 0 7.5rem;
    padding: 2rem;
}

.hero .intro-buttons {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 55%;
    margin-left: 2.5rem;
}

.hero-pic img, .hero-image img {
    width: 90%;
    max-width: 100%;
    height: auto;
    max-height: 90%;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }
    .hero-image {
        max-width: 95vw;
        margin-left: 0;
        margin-top: 2rem;
    }
    .hero-pic img, .hero-image img {
        width: 100%;
        max-width: 100vw;
        max-height: 220px;
    }
}

/* About section styles */
.about {
    display: flex;
    align-items: center;
    background-image: linear-gradient(45deg, var(--color-bg-secondary), var(--color-secondary));
    justify-content: space-evenly;
    width: 100%;
}

.about .about-text {
    width: 600px;
    color: var(--color-text-main);
    padding: 5rem 1rem 5rem 5rem;
}

.about .about-image img {
    max-width: 40vw;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
}

/* Portfolio section styles */
.portfolio {
    margin: 4.8rem 0;
    padding: 0 5rem;
}

.port-card {
    padding: 0 !important;
    background: none !important;
    border: 2px solid #000;
}

.port-card .image {
    width: 100%;
}

.port-card .image img {
    height: 200px;
    width: 100%;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

/* Services section styles */
.services {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 4.8rem 0;
    padding: 0 5rem;
}

.my-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
}

.my-row .my-col {
    text-align: center;
    width: 30%;
}

.my-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background-image: linear-gradient(var(--color-bg-secondary), var(--color-primary));
    padding: 1rem;
}

.icon {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    font-size: 30px;
    color: var(--color-text-main);
}

/* Contact section styles */
.contact {
    /* Top margin */
    margin: 4.8rem 0;
    padding: 0 5rem;
}

.contact-content {
    display: flex;
    margin: 3rem 0;
    justify-content: space-between;
}

.contact-form-container {
    width: 50%;
}

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

.contact-form .form-controls {
    width: 80%;
    padding: 10px 0;
    margin: 1.67rem 0;
}

.contact-form .form-btn {
    width: 83%;
}

.contact-details {
    width: 50%;
}

/* Footer Styles */
.footer {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-main);
    padding: 2rem;
}

.footer-list-items {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    margin: 1rem 1rem 0 1rem;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.footer-links {
    color: var(--color-text-main);
    text-decoration: none;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-menu {
    padding: 0 5rem;
}

.footer-menu .footer-menu-list {
    display: flex;
    list-style: none;
}


/* --- Proyectos (Portfolio alternado) --- */
.projects-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 4rem 0;
}

.project-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 2rem;
    padding: 3rem 0;
    border-radius: 32px;
    margin-bottom: 3.5rem;
    border: none;
    background-clip: padding-box;
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-image img {
    width: 520px;
    max-width: 95vw;
    height: 360px;
    object-fit: contain;
    border-radius: 20px;
}

.project-desc {
    flex: 1 1 0;
    min-width: 250px;
    max-width: 500px;
}

/* Fondos sólidos para proyectos alternados */
.project-bg1 {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 2px 8px 0 rgba(0,0,0,0.10);
}
.project-bg2 {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 2px 8px 0 rgba(0,0,0,0.10);
}

.project-desc h3,
.project-desc p {
    color: #fff;
}

@media (max-width: 900px) {
    .project-row, .project-row.reverse {
        flex-direction: column !important;
        text-align: center;
    }
    .project-image img {
        width: 90vw;
        height: 180px;
        margin-bottom: 1rem;
    }
    .project-row {
        padding: 2rem 0.5rem;
        border-radius: 24px;
    }
}

/* utility classes */
.greet-heading {
    font-size: 1.3rem;
    font-weight: lighter;
    margin: 0;
    letter-spacing: 1px;
}

.my-heading {
    font-size: 2.5rem;
    margin: 0;
}

.sub-heading {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: lighter;
}

.links:hover {
    border-bottom: 2px solid var(--color-primary);
}

.links {
    border-bottom: 2px solid transparent;
    transition: all 0.25s;
    padding: 5px;
    text-decoration: none;
    color: var(--color-primary);
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 1px;
    border: none;
}

.common-btn {
    background-color: var(--color-primary);
    color: var(--color-bg-main);
    border: 2px solid var(--color-primary);
    transition: all 0.25s;
}

.common-btn:hover {
    background-color: var(--color-bg-main);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    outline: none;
}

.ghost-btn {
    background-color: var(--color-bg-main);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    outline: none;
}

.ghost-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-main);
    transition: all 0.25s;
    border: 2px solid var(--color-primary);
}

.heading-span {
    font-weight: bolder;
}

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

.small-para {
    font-size: 18px;
    color: var(--color-text-secondary);
}

.lead-para {
    font-size: 18px;
    color: var(--color-text-main);
}

.white-text {
    color: var(--color-text-main);
}

.blue-text {
    color: #363D73;
}