* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --primary-color: #00cceb;
    --secondary-color: #00b8d4;
    --card-bg: rgba(0, 204, 235, 0.03);
    --border-color: rgba(0, 204, 235, 0.15);
    --container-width: 1200px;
}

/* Light Mode */
body.light-mode {
    --bg-color: #f5f5f5;
    --text-color: #0a0a0a;
    --text-secondary: rgba(10, 10, 10, 0.7);
    --card-bg: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.sticky {
    background: var(--bg-color);
    backdrop-filter: blur(10px);
    padding: 12px 5%;
}

.logo {
    font-size: 28px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar a {
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
    background: rgba(0, 204, 235, 0.1);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    font-size: 22px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background: rgba(0, 204, 235, 0.1);
}

.lang-toggle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.menu-icon {
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    display: none;
    padding: 5px;
}

/* ==================== HERO SECTION ==================== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
}

.home-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: var(--container-width);
}

.home-content {
    flex: 1;
    max-width: 600px;
}

.home-content h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.home-content h1 {
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.home-content h3:last-of-type {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
}

.highlight {
    color: var(--primary-color);
}

.home-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 25px 0 35px;
    max-width: 500px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 204, 235, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 204, 235, 0.4);
}

/* Profile Image */
.home-image {
    flex-shrink: 0;
    position: relative;
}

/* Brush stroke decoration */
.brush-decoration {
    width: 450px;
    height: 450px;
    background: url('../images/brushstroke.png') no-repeat center;
    background-size: contain;
    filter: invert(56%) sepia(93%) saturate(1000%) hue-rotate(155deg) brightness(1.1);
}

.home-image::before,
.home-image::after {
    display: none;
}

/* Hexagon styles removed - using profile-img now */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.about-content {
    max-width: 800px;
    text-align: center;
}

.about-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.about-content h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 35px;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    font-size: clamp(32px, 4vw, 48px);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 100px 5%;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.service-box {
    background: transparent;
    padding: 45px 35px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.service-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 204, 235, 0.15);
}

.service-box i {
    font-size: 55px;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
}

.service-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-box p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.btn-small {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio {
    padding: 100px 5%;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.portfolio-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 204, 235, 0.95), rgba(0, 204, 235, 0.4), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-overlay h3 {
    font-size: 20px;
    color: var(--bg-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-overlay a {
    width: 45px;
    height: 45px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.portfolio-overlay a:hover {
    transform: scale(1.1);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 100px 5%;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 204, 235, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form textarea {
    margin-bottom: 25px;
    resize: none;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 16px;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.scroll-top {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-color);
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 204, 235, 0.4);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets grandes y desktop pequeño */
@media (max-width: 1200px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .home-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 50px;
    }

    .home-content {
        max-width: 100%;
    }

    .home-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }

    .hexagon {
        width: 300px;
        height: 345px;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding: 20px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        padding: 15px 25px;
        font-size: 18px;
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }

    .header {
        padding: 15px 5%;
    }

    .logo {
        font-size: 24px;
    }

    .home {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .home-content h3 {
        font-size: 18px;
    }

    .home-content h3:last-of-type {
        font-size: 20px;
    }

    .profile-img {
        width: 280px;
    }

    .home-image::before {
        width: 300px;
        height: 260px;
        top: -30px;
        right: -50px;
    }

    .home-image::after {
        width: 260px;
        height: 220px;
        bottom: -40px;
        left: -60px;
    }

    .services-container,
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-box {
        padding: 35px 25px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .input-group {
        flex-direction: column;
        gap: 15px;
    }

    .footer {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}

/* Móviles */
@media (max-width: 576px) {
    .header {
        padding: 12px 4%;
    }

    .home {
        padding: 90px 4% 50px;
    }

    .about,
    .services,
    .portfolio,
    .contact {
        padding: 70px 4%;
    }

    .home-content h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .home-content h3 {
        font-size: 16px;
    }

    .home-content p {
        font-size: 14px;
    }

    .profile-img {
        width: 250px;
    }

    .home-image::before {
        width: 280px;
        height: 240px;
        top: -25px;
        right: -40px;
    }

    .home-image::after {
        width: 240px;
        height: 200px;
        bottom: -35px;
        left: -50px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .about-content h3 {
        font-size: 18px;
    }

    .about-content p {
        font-size: 14px;
    }

    .service-box {
        padding: 30px 20px;
    }

    .service-box i {
        font-size: 45px;
    }

    .service-box h3 {
        font-size: 18px;
    }

    .service-box p {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px 18px;
        font-size: 14px;
    }

    .footer p {
        font-size: 13px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .lang-toggle {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Móviles pequeños */
@media (max-width: 400px) {
    .home-content h1 {
        font-size: 26px;
    }

    .profile-img {
        width: 200px;
    }

    .home-image::before {
        width: 220px;
        height: 190px;
        top: -20px;
        right: -30px;
    }

    .home-image::after {
        width: 200px;
        height: 160px;
        bottom: -25px;
        left: -35px;
    }

    .section-title {
        font-size: 22px;
    }

    .about-content h2 {
        font-size: 22px;
    }
}
