/* =========================================
   AVR EXCELSA
   COMPONENT STYLES
========================================= */

/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-navbar);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 9px;
    box-shadow: var(--shadow-small);
}

.brand span {
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--surface);
    box-shadow: var(--shadow-small);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-primary);
    transform: translateX(-50%);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-small);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.theme-toggle:hover {
    transform: rotate(12deg) scale(1.05);
    box-shadow: var(--shadow-light);
}

.theme-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-text);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-small);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-small);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text-primary);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    align-items: center;
    gap: 60px;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    margin-bottom: 24px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow-small);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 0 0 0 4px var(--soft-highlight);
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 28px;
    font-size: clamp(3rem, 5vw, 5.2rem);
    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;
    color: var(--text-secondary);
}

.hero-description {
    max-width: 570px;
    margin-bottom: 34px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons .btn span {
    transition: transform 0.3s ease;
}

.hero-buttons .btn:hover span {
    transform: translateX(4px);
}

/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    perspective: 1200px;
}

.hero-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: var(--hero-glow);
    filter: blur(30px);
    opacity: 0.55;
    z-index: -3;
    pointer-events: none;
}

.hero-ring {
    position: absolute;
    border: 1px solid var(--ring-color);
    border-radius: 50%;
    pointer-events: none;
}

.ring-one {
    width: 430px;
    height: 430px;
    opacity: 0.45;
    animation: ringRotate 22s linear infinite;
}

.ring-two {
    width: 540px;
    height: 540px;
    border-style: dashed;
    opacity: 0.16;
    animation: ringRotateReverse 30s linear infinite;
}

.hero-logo-wrap {
    position: relative;
    z-index: 4;
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out;
}

.hero-logo-surface {
    width: 290px;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-hero);
    transform-style: preserve-3d;
    animation: logoFloat 6s ease-in-out infinite;
}

.hero-logo-surface::before {
    content: "";
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    border: 1px solid var(--inner-border);
    box-shadow: var(--shadow-inset);
    pointer-events: none;
}

.hero-logo-surface img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: grayscale(100%);
    transform: translateZ(28px);
}

[data-theme="dark"] .hero-logo-surface img {
    mix-blend-mode: screen;
}

.capability {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 17px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-small);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.capability:hover {
    box-shadow: var(--shadow-light);
}

.capability-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-inset-small);
    font-size: 0.8rem;
}

.capability-web {
    top: 16%;
    right: 3%;
    animation: capabilityFloatOne 6s ease-in-out infinite;
}

.capability-commerce {
    right: 0;
    bottom: 18%;
    animation: capabilityFloatTwo 7s ease-in-out infinite;
}

.capability-android {
    left: 1%;
    bottom: 23%;
    animation: capabilityFloatThree 6.5s ease-in-out infinite;
}

.hero-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.dot-one {
    top: 18%;
    left: 15%;
    animation: floatingDot 5s ease-in-out infinite;
}

.dot-two {
    right: 14%;
    bottom: 10%;
    width: 6px;
    height: 6px;
    animation: floatingDot 7s ease-in-out infinite reverse;
}

.dot-three {
    left: 20%;
    bottom: 12%;
    width: 5px;
    height: 5px;
    animation: floatingDot 6s ease-in-out infinite;
}

/* =========================================
   HERO ANIMATIONS
========================================= */

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes capabilityFloatOne {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-13px) rotate(-1deg);
    }
}

@keyframes capabilityFloatTwo {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(11px) rotate(1deg);
    }
}

@keyframes capabilityFloatThree {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes floatingDot {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes ringRotateReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}


/* =========================================
   SERVICES
========================================= */

.services-section {
    padding-top: 80px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.section-heading h2 {
    margin-bottom: 18px;
    letter-spacing: -0.045em;
}

.section-heading h2 span {
    color: var(--text-secondary);
}

.section-heading p {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    min-height: 220px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    transition:
        transform var(--transition-medium),
        box-shadow var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hero);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.service-number {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.service-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-inset);
}

.service-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-category {
    display: block;
    margin-bottom: 11px;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.55rem;
    letter-spacing: -0.035em;
}

.service-card p {
    max-width: 330px;
    font-size: 0.88rem;
    line-height: 1.75;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    padding: 35px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
}
