:root {
    --primary-color: #7b2cbf;
    --primary-hover: #9d4edd;
    --dark-bg: #0f0f11;
    --card-bg: #1a1a1f;
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(123, 44, 191, 0.5);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-hover);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -12%;
    background: url('assets/img/Aquario.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 17, 0.9) 0%, rgba(123, 44, 191, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-content h1 .title-letter {
    display: inline-block;
    animation: title-letter-glow 9s linear infinite;
    animation-delay: calc(var(--letter-index) * 0.3s);
}

@keyframes title-letter-glow {
    0%, 2% {
        text-shadow: 0 0 10px #fff, 0 0 22px var(--primary-hover), 0 0 34px var(--primary-color);
    }

    2.01%, 100% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    }
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #e9ecef;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
}

/* Services */
.services {
    padding: 100px 5%;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    isolation: isolate;
    background-color: var(--card-bg);
    padding: 40px 30px;
    border: 1px solid rgba(123, 44, 191, 0.35);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card .icon img {
    display: block;
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
}

/* Budget */
.budget {
    padding: 100px 5%;
    background-color: #121215;
    border-top: 2px solid var(--primary-color);
    scroll-margin-top: 85px;
}

.budget h2 {
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
}

.budget-table-wrapper {
    position: relative;
    isolation: isolate;
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid rgba(123, 44, 191, 0.35);
    border-radius: 12px;
}

.budget table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background-color: var(--card-bg);
    text-align: left;
}

.budget th,
.budget td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.budget th {
    color: var(--text-light);
    background-color: rgba(123, 44, 191, 0.2);
}

.budget td {
    color: var(--text-muted);
}

.budget td:last-child {
    color: var(--primary-hover);
    font-weight: 700;
    white-space: nowrap;
}

.budget tbody tr:last-child td {
    border-bottom: 0;
}

.budget tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* Technician */
.technician {
    padding: 100px 5%;
    background-color: #121215;
    border-top: 2px solid var(--primary-color);
    scroll-margin-top: 85px;
}

.technician-container {
    display: grid;
    grid-template-columns: minmax(280px, 350px) minmax(0, 760px);
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.technician-photo {
    position: relative;
    isolation: isolate;
    transition: transform 0.35s ease;
}

.technician-photo:hover {
    transform: scale(1.06) translateY(-6px);
}

.technician-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 2px;
    border-radius: 16px;
    background: conic-gradient(
        from var(--technician-border-angle),
        transparent 0deg 300deg,
        var(--primary-color) 330deg,
        var(--primary-hover) 350deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: technician-border-snake 3s linear infinite;
}

.technician-photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 0;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.technician-photo:hover img {
    filter: brightness(1.12);
    box-shadow: 0 24px 45px rgba(123, 44, 191, 0.6);
}

@property --technician-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes technician-border-snake {
    to {
        --technician-border-angle: 360deg;
    }
}

.technician-content h2 {
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.technician-content p {
    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.85;
}

.technician-content .technician-highlight {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 1.35rem;
    line-height: 1.5;
}

/* How It Works */
.how-it-works {
    padding: 100px 5%;
    text-align: center;
    background-color: #121215;
    border-top: 2px solid var(--primary-color);
    scroll-margin-top: 85px;
}

.how-it-works h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.how-it-works-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.8;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: left;
}

.step-card {
    display: flex;
    position: relative;
    isolation: isolate;
    align-items: flex-start;
    gap: 18px;
    padding: 30px 26px;
    border: 1px solid rgba(123, 44, 191, 0.35);
    border-radius: 12px;
    background-color: var(--card-bg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card::before,
.step-card::before,
.budget-table-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--card-border-angle),
        transparent 0deg 300deg,
        var(--primary-color) 330deg,
        var(--primary-hover) 350deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: card-border-snake 3s linear infinite;
}

.service-card > *,
.step-card > *,
.budget-table-wrapper > table {
    position: relative;
    z-index: 1;
}

.budget-table-wrapper::before {
    z-index: 2;
}

.service-card:nth-child(2)::before,
.step-card:nth-child(2)::before {
    animation-delay: -0.75s;
}

.service-card:nth-child(3)::before,
.step-card:nth-child(3)::before {
    animation-delay: -1.5s;
}

.service-card:nth-child(4)::before,
.step-card:nth-child(4)::before {
    animation-delay: -2.25s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

@property --card-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes card-border-snake {
    to {
        --card-border-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card::before,
    .step-card::before,
    .budget-table-wrapper::before,
    .technician-photo::before,
    .hero-content h1 .title-letter {
        animation: none;
    }
}

.step-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(123, 44, 191, 0.2);
    font-size: 1.5rem;
}

.step-card h3 {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 1.25rem;
}

.step-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.step-card a {
    color: var(--primary-hover);
    font-weight: 600;
    text-decoration: none;
}

.step-card a:hover {
    text-decoration: underline;
}

/* Contact */
.contact {
    padding: 80px 5%;
    text-align: center;
    background-color: #080809;
    border-top: 2px solid var(--primary-color);
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-description,
.contact-item.location-item {
    font-size: 1.3rem;
}

.contact-info {
    max-width: 760px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 15px;
    font-size: 1.2rem;
}

.social-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-column-left .contact-item {
    justify-content: flex-start;
}

.social-column-right .contact-item {
    justify-content: flex-end;
}

.social-column-right .social-label {
    text-align: right;
}

.contact-item.location-item {
    grid-column: 1 / -1;
}

.contact-item:not(.location-item) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.contact-item a {
    color: var(--primary-hover);
    text-decoration: none;
    font-weight: 600;
}

.contact-item .social-label {
    width: 110px;
    font-size: 1.4rem;
    text-align: right;
}

.contact-item .social-button {
    display: inline-flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--primary-hover);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 5px 16px rgba(123, 44, 191, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-item .social-button:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 22px rgba(123, 44, 191, 0.55);
}

.social-button svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.whatsapp-button svg path:last-child {
    stroke-width: 1.5;
}

.instagram-button .instagram-icon-dot {
    fill: currentColor;
    stroke: none;
}

.social-button:focus-visible {
    outline: 2px solid var(--primary-hover);
    outline-offset: 3px;
}

.contact-item .whatsapp-button {
    color: #fff;
    border-color: #25d366;
    background: #25d366;
    box-shadow: 0 5px 16px rgba(37, 211, 102, 0.35);
}

.contact-item .whatsapp-button:hover {
    background: #1ebe5d;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

.contact-item .instagram-button {
    color: #fff;
    border-color: #d62976;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    box-shadow: 0 5px 16px rgba(214, 41, 118, 0.35);
}

.contact-item .instagram-button:hover {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    box-shadow: 0 8px 22px rgba(214, 41, 118, 0.5);
}

.contact-item .facebook-button {
    color: #fff;
    border-color: #1877f2;
    background: #1877f2;
    box-shadow: 0 5px 16px rgba(24, 119, 242, 0.35);
}

.contact-item .facebook-button:hover {
    background: #0866d9;
    box-shadow: 0 8px 22px rgba(24, 119, 242, 0.5);
}

.facebook-button svg {
    fill: currentColor;
    stroke: none;
}

.contact-item .tiktok-button {
    color: #fff;
    border-color: #111;
    background: #111;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35);
}

.contact-item .tiktok-button:hover {
    background: #000;
    box-shadow: 4px 4px 0 #25f4ee, -4px -4px 0 #fe2c55;
}

.tiktok-button svg {
    fill: currentColor;
    stroke: none;
}

.contact-item .social-link {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

/* Footer */
footer {
    text-align: center;
    padding: 38px 5%;
    border-top: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #050505, #15101b);
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

footer > a {
    display: inline-block;
    border-radius: 50%;
    transition: transform 0.2s, box-shadow 0.2s;
}

footer > a:hover,
footer > a:focus-visible {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 22px rgba(123, 44, 191, 0.55);
}

.footer-logo {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(15, 15, 17, 0.98);
        text-align: center;
        padding: 12px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }

    .budget {
        padding: 70px 5%;
    }

    .technician {
        padding: 70px 5%;
    }

    .technician-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .technician-photo {
        max-width: 420px;
        width: calc(100% - 18px);
        margin: 0 auto;
    }

    .technician-content {
        text-align: center;
    }
    
    .technician-content h2 {
        transform: translateX(10px);
    }

}

@media (max-width: 600px) {
    .contact-info {
        grid-template-columns: 1fr;
    }

    .social-column-left .contact-item,
    .social-column-right .contact-item {
        justify-content: center;
    }

    .budget table {
        min-width: 0;
        table-layout: fixed;
    }

    .budget th,
    .budget td {
        padding: 12px 8px;
        font-size: 0.875rem;
        overflow-wrap: anywhere;
    }

    .budget th:first-child,
    .budget td:first-child {
        width: 40%;
    }

    .budget th:nth-child(2),
    .budget td:nth-child(2) {
        width: 34%;
    }

    .budget th:last-child,
    .budget td:last-child {
        width: 26%;
        padding-right: 4px;
        padding-left: 4px;
    }
}