* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #7b1fa2;
    --secondary-color: #e040fb;
    --text-color: #fff;
    --bg-color: #0a0a0a;
    --hover-transition: 0.3s;
}



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

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at var(--x) var(--y), 
        rgba(123, 31, 162, 0.15) 0%,
        rgba(0, 0, 0, 0) 50%);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Full-viewport animated WebGL canvas (behind everything) */
.animated-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Below .background (-1) and .particles (-1) */
    pointer-events: none;
    display: block;
}

/* Navigation Styles */
nav {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(224, 64, 251, 0.1);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #7b1fa2, #e040fb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #7b1fa2, #e040fb);
    transition: width 0.3s;
}

.nav-link:hover {
    color: #e040fb;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    /*position: relative;*/
   /* z-index: 2;*/
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-text {
    text-align: left;
    z-index: 1;
}

.hero-visual {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spline-container {
    width: 100%; /* Full width for its grid column */
    height: 500px; /* Adjust height as necessary */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px linear-gradient(45deg, #7b1fa2, #e040fb);
}

spline-viewer {
    width: 100%;
    height: 100%;
}




/* Section General Styles */
section {
    padding: 8rem 2rem;
    min-height: auto;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

h1, h2 {
    background: linear-gradient(45deg, #7b1fa2, #e040fb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-button {
    background: linear-gradient(45deg, #7b1fa2, #e040fb);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.4);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(123, 31, 162, 0.1);
    border: 1px solid rgba(224, 64, 251, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 31, 162, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: #e040fb;
    margin-bottom: 1.5rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.text-content {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}


.stat-card {
    background: rgba(123, 31, 162, 0.1);
    border: 1px solid rgba(224, 64, 251, 0.2);
    border-radius: 15px;
    padding: 4rem;
    text-align: center;
}

.service-card:hover .service-icon {
    color: #7b1fa2;
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #7b1fa2, #e040fb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Content Container Alignment */
.content-container {
    text-align: center;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
}

.content-container h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #7b1fa2, #e040fb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 16/9; /* Maintains a consistent aspect ratio */
    background: rgba(123, 31, 162, 0.1); /* Background color */
    border-radius: 15px; /* Rounded corners */
    overflow: hidden;
    display: flex; /* Use flexbox for inner alignment */
    justify-content: center; /* Horizontal alignment */
    align-items: center; /* Vertical alignment */
    text-align: center; /* Ensures the text is centered */
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(123, 31, 162, 0.9), rgba(224, 64, 251, 0.9));
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-content {
    z-index: 1; /* Ensures text stays above the hover effect */
    width: 80%; /* Constrain text width */
    color: #fff; /* Text color */
}

.portfolio-item:hover .portfolio-content {
    color: #e0d9ff; /* Optional: Slight color change on hover */
    opacity: 1;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

/* Testimonials Section */
#testimonials {
    padding: 6rem 2rem;
    text-align: center;
    background-color: linear-gradient(45deg, #7b1fa2, #e040fb);
    color: #fff;
}

#testimonials h2 {

    background: linear-gradient(45deg, #7b1fa2, #e040fb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.testimonial-card {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    position: relative;
}

.testimonial-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #7b1fa2;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: bold;
    color: #e040fb;
}
/* GetStarted Section */  
/* General Section Styling */
#get-started {
    padding: 4rem 2rem;
    background-color: linear-gradient(45deg, rgba(123, 31, 162, 0.9), rgba(224, 64, 251, 0.9)); /* Dark background */
    color: #fff; /* White text */
}

.get-started-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.get-started-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.get-started-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px; /* Optional rounded corners */
    object-fit: cover;
}

.get-started-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.get-started-text h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(45deg, #e040fb, #7b1fa2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.get-started-text .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    background: linear-gradient(45deg, #e040fb, #7b1fa2);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.3);
}

.get-started-text .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.4);
    background: #e040fb;
}






input, textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(224, 64, 251, 0.2);
    border-radius: 8px;
    color: #fff;
    width: 100%;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #e040fb;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
    /* Ocultar solo los links de navegación (Services, About, etc.) */
    .nav-link {
        display: none;
    }
    
    /* Mantener el contenedor, pero reducir espaciado si lo deseas */
    .nav-links {
        gap: 1rem; /* Opcional: disminuye el espacio entre elementos */
    }

    /* El botón 'Get Started' se mantiene visible */
    .cta-button {
        display: inline-block; 
        margin-left: auto; /* Empuja el botón al extremo derecho, opcional */
    }
    
    /* Asegurar que el nav-container esté justificado */
    .nav-container {
        justify-content: space-between;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centra el contenido y reduce el espacio */
        text-align: center;
        gap: 1rem;                /* Menos espacio entre .hero-text y .spline-container */
        padding: 2rem 1rem;       /* Ajusta el padding si deseas menos "aire" */
    }
    
    .hero-text {
        margin-bottom: 0;         /* Elimina margen adicional debajo del texto */
    }
    
      /* Opcional: si no quieres la parte .hero-visual extra, escóndela en móvil */
    .hero-visual {
        display: none;
    }
    
    .spline-container {
        /* Limita el ancho y la altura para que no sea tan grande */
        width: 100%;
        max-width: 320px;         /* Ajusta a tu gusto */
        height: 250px;            /* También ajusta la altura */
        margin-bottom: 0rem;      /* Espacio debajo de la animación */
    }
    
  
    /* SERVICES */
    .services-grid {
      grid-template-columns: 1fr;  /* Una sola columna en móvil */
      gap: 1.5rem;                 /* Ajusta la separación */
    }
  
    /* ABOUT */
    .about-content {
      grid-template-columns: 1fr;  /* Apilar en una sola columna */
    }
    .about-stats {
      grid-template-columns: 1fr;  /* También una sola columna para estadísticas */
    }
  
    /* PORTFOLIO */
    .portfolio-grid {
      grid-template-columns: 1fr;  /* Una sola columna */
    }
  
    /* TESTIMONIALS */
    .testimonials-grid {
      grid-template-columns: 1fr;  /* Una sola columna */
    }
  
    /* GET STARTED */
    .get-started-content {
      flex-direction: column;      /* Apilamos imagen arriba y texto abajo (o viceversa) */
      align-items: center;         /* Centrar elementos */
      text-align: center;          /* Centrar texto en móviles */
    }
    .get-started-image, 
    .get-started-text {
      width: 100%; 
      margin-bottom: 2rem;         /* Dar espacio entre ambos bloques */
    }
    .get-started-text h2 {
      font-size: 2rem;            /* Ajustar un poco el tamaño del título en móvil */
    }
}
    

/* Footer Styling */
.footer {
    background: rgba(10, 10, 10, 0.95); /* Dark background matching nav */
    color: var(--text-color); /* Use text color from root */
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(224, 64, 251, 0.2); /* Subtle border for separation */
    font-size: 0.9rem;
}

.footer-content p {
    margin: 0; /* Remove default margin */
    font-size: 1rem; /* Adjust font size */
}

