:root {
    --bg-color: #02050a;
    --primary-color: #00aeff;
    --secondary-color: #08101d;
    --text-color: #a0b3d1;
    --heading-color: #e6f1ff;
    --border-color: rgba(0, 174, 255, 0.15);
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --header-bg-scrolled: rgba(2, 5, 10, 0.7);
}

body[data-theme='light'] {
    --bg-color: #f4f8ff;
    --primary-color: #005cbf;
    --secondary-color: #ffffff;
    --text-color: #4f5b6e;
    --heading-color: #0a1931;
    --border-color: rgba(0, 92, 191, 0.15);
    --header-bg-scrolled: rgba(244, 248, 255, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.fixed-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.fixed-whatsapp:hover {
    transform: scale(1.1);
}

.fixed-whatsapp i {
    font-size: 24px;
}

.fixed-whatsapp:focus {
    outline: none;
}

body[data-theme='light'] .fixed-whatsapp {
    background-color: var(--primary-color);
}

.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.2s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.2s;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

.cursor-interact .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: rgba(0, 174, 255, 0.5);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 174, 255, 0.06), transparent 30%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.4s ease;
}

body[data-theme='light']::before {
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 92, 191, 0.06), transparent 40%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    color: var(--heading-color);
    font-weight: 800;
}

h2 {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 3rem;
}

a,
button {
    cursor: none;
    text-decoration: none;
}

.contact-info a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}


.btn {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

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

.btn:hover::after {
    transform: scaleX(1);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 1rem 0;
    background-color: var(--header-bg-scrolled);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--heading-color);
    letter-spacing: 2px;
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 3rem;
}

.nav-links a {
    color: var(--heading-color);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    padding-bottom: 8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.theme-switcher {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.theme-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--heading-color);
    font-size: 2rem;
    z-index: 1001;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(2, 5, 10, 0) 0%, var(--bg-color) 95%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .7;
}

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

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 2rem;
}

.hero-content .line {
    display: block;
    overflow: hidden;
}

.hero-content .line span {
    display: block;
    transform: translateY(110%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-content p {
    max-width: 600px;
    margin: 0 0 2.5rem 0;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
}

.hero-content .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}

body.loaded .hero-content .line span {
    transform: translateY(0);
}

body.loaded .hero-content .line:nth-child(2) span {
    transition-delay: 0.1s;
}

body.loaded .hero-content .line:nth-child(3) span {
    transition-delay: 0.2s;
}

body.loaded .hero-content p,
body.loaded .hero-content .btn {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.section-title h2.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title .subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease 0.2s;
    margin-top: 1rem;
}

.section-title .subtitle.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#about .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.about-image.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.about-content.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    max-width: 100%;
    text-align: left;
}

#services {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color);
    padding: 3rem 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.service-card.is-visible:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card.is-visible:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card.is-visible:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card.is-visible:nth-child(4) {
    transition-delay: 0.1s;
}

.service-card.is-visible:nth-child(5) {
    transition-delay: 0.2s;
}

.service-card.is-visible:nth-child(6) {
    transition-delay: 0.3s;
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-card:hover .icon {
    transform: scale(1.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 450px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s ease;
}

.portfolio-item.is-visible {
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:nth-child(even).is-visible {
    transition-delay: 0.2s;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(2, 5, 10, 0.95), transparent);
}

.portfolio-overlay h4 {
    font-size: 2rem;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.5s ease;
}

.portfolio-overlay p {
    color: var(--primary-color);
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
    opacity: 1;
}

#team {
    background-color: var(--secondary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.team-member.is-visible:nth-child(1) {
    transition-delay: 0.1s;
}

.team-member.is-visible:nth-child(2) {
    transition-delay: 0.2s;
}

.team-member.is-visible:nth-child(3) {
    transition-delay: 0.3s;
}

.team-member.is-visible:nth-child(4) {
    transition-delay: 0.4s;
}

.team-member.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.team-member-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.team-member-img img {
    width: 100%;
    height: 110%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--primary-color);
    font-weight: 500;
}

#testimonials {
    background-color: var(--bg-color);
}

.testimonials-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .testimonials-slider {
        grid-auto-columns: 45%;
    }
}

@media (min-width: 1024px) {
    .testimonials-slider {
        grid-auto-columns: 30%;
    }
}

.testimonial-card {
    scroll-snap-align: start;
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.testimonial-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
}

.author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author h5 {
    font-size: 1.2rem;
    margin: 0;
}

.author span {
    font-size: 0.9rem;
    color: var(--primary-color);
}

#contact {
    background-color: var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.contact-info.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info ul li i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.contact-form {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.contact-form.is-visible {
    opacity: 1;
    transform: translateX(0);
}

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

.contact-form input,
.contact-form textarea {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    height: 150px;
}

#map {
    padding-top: 0;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.map-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: var(--map-filter, invert(90%) grayscale(80%));
}

body[data-theme='light'] .map-container iframe {
    filter: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.footer {
    background-color: var(--secondary-color);
    padding: 6rem 0;
    text-align: center;
}

.footer .logo {
    margin-bottom: 2rem;
}

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

.footer .social-media a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s, transform 0.3s;
}

.footer .social-media a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer .copyright {
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #6a7c98;
}

body[data-theme='light'] .footer .copyright {
    color: #8a96ab;
}

@media (max-width: 1024px) {

    h2,
    .section-title h2 {
        font-size: 3rem;
    }

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

    #about .container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: .7rem 0;
    }

    .nav-links a {
        font-size: 2rem;
    }

    .theme-switcher {
        margin: 2rem 0 0 0;
    }

    .mobile-nav-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }
}

@media (max-width: 768px) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
    }

    a,
    button {
        cursor: pointer;
    }

    section {
        padding: 5rem 0;
    }

    h2,
    .section-title h2 {
        font-size: 2rem;
    }

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

    .contact-info h3 {
        font-size: 1.7rem;
    }

    .contact-info ul li {
        font-size: .9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}