:root {
    --bg-dark: #f0f2f5;
    --bg-card: #fafafa;
    --bg-alt: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --border-color: rgba(0, 0, 0, 0.1);
    --glow-spread: rgba(37, 99, 235, 0.15);
    --nav-bg: rgba(248, 249, 250, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.4);
    --badge-bg: rgba(255, 255, 255, 0.85);
    --fade-bg: rgba(248, 249, 250, 0.95);
    --input-bg: rgba(255, 255, 255, 0.5);
    --input-focus-bg: rgba(248, 249, 250, 0.8);
}

body.dark-mode {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-alt: #0b1120;
    --text-primary: #f8f9fa;
    --text-secondary: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.8);
    --glass-bg: rgba(30, 41, 59, 0.4);
    --badge-bg: rgba(30, 41, 59, 0.85);
    --fade-bg: rgba(15, 23, 42, 0.95);
    --input-bg: rgba(30, 41, 59, 0.5);
    --input-focus-bg: rgba(15, 23, 42, 0.8);
}

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

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

/* Typography */
.animated-heading-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .animated-heading-container {
        /* Optional mobile adjustments if needed */
    }
}

#animated-heading {
    display: grid;
    align-items: end;
}

.animated-text {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(80px);
    pointer-events: none;
    width: 100%;
}

.animated-spacer {
    grid-area: 1 / 1;
    visibility: hidden;
    pointer-events: none;
    width: 100%;
}

.animated-text.in {
    animation: textSlideIn 1.2s ease-in-out forwards;
}

.animated-text.out {
    animation: textSlideOut 1.2s ease-in-out forwards;
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px);
    }
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px var(--glow-spread);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 6px;
    display: inline-block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none !important;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover, .icon-btn:active {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

body.dark-mode .icon-btn:hover, body.dark-mode .icon-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

#themeToggle svg {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#themeToggle:hover svg {
    transform: rotate(15deg);
}

.close-icon {
    display: none;
}

.mobile-menu-btn.open .hamburger-icon {
    display: none;
}

.mobile-menu-btn.open .close-icon {
    display: block;
}

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

.nav-links a:not(.btn) {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    gap: 4rem;
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-graphic {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.3);
    top: 20%;
    right: 20%;
    animation: float 6s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.3);
    bottom: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-20px) translateX(20px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.glass-card.main-card {
    position: absolute;
    bottom: 5%;
    right: 0;
    z-index: 3;
    animation: float 7s ease-in-out infinite reverse;
}

.floating-badge {
    position: absolute;
    background: var(--badge-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 4;
}

.badge-1 {
    top: 10%;
    left: 0;
    animation: float 4s ease-in-out infinite;
}

.badge-2 {
    bottom: 25%;
    right: 5%;
    animation: float 5s ease-in-out infinite 1s reverse;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.hero-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Services */
.services-section {
    padding: 5rem 5%;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-alt));
}

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

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

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(37, 99, 235, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-blue);
}

/* About Section */
.about-section {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-icon {
    color: var(--accent-blue);
    font-weight: bold;
    background: rgba(59, 130, 246, 0.1);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.about-image {
    position: relative;
    height: 400px;
    border-radius: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-img-actual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.85;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover .about-img-actual {
    transform: scale(1.05);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--fade-bg) 0%, rgba(124, 58, 237, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.glass-panel {
    display: flex;
    gap: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    position: relative;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    padding: 5rem 5%;
    background: var(--bg-alt);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-blue);
    background: var(--input-focus-bg);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

body.dark-mode .sun-icon {
    display: block;
}

body.dark-mode .moon-icon {
    display: none;
}

.submit-btn {
    width: 100%;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
}

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

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

.delay-3 {
    transition-delay: 300ms;
}

.fast-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-delay: 0s !important;
}

/* Responsive */
@media (max-width: 768px) {

    .hero,
    .about-section,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-graphic {
        height: auto;
        flex-direction: column;
        padding-bottom: 2rem;
    }

    .floating-badge {
        display: none;
    }

    .glass-card.main-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -2rem;
        padding: 1.25rem;
        width: 90%;
        max-width: 350px;
        z-index: 5;
    }

    h1 {
        font-size: 2.25rem;
    }

    .desktop-connect {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        padding: 2rem 5%;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .about-image {
        height: 250px;
    }

    .contact-container {
        padding: 1.5rem;
    }
    
    .glass-panel {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}