/* ============================================================
   Lircaytech — Public Website Styles
   Professional, minimalista, mobile-first
   ============================================================ */

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Custom Properties --- */
:root {
    --color-primary: #00a6ca;
    --color-primary-light: #33d6f1;
    --color-primary-dark: #007a96;
    --color-dark: #003241;
    --color-darker: #001e2b;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-surface: #ffffff;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 72px;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

h2 {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
}

h3 {
    font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.375rem);
}

p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

.section__label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section__heading {
    margin-bottom: 20px;
}

.section__description {
    max-width: 640px;
    font-size: clamp(1rem, 1.25vw, 1.125rem);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar__logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.navbar__logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition);
}

.navbar--scrolled .navbar__logo-img {
    filter: none;
}

.navbar--scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.navbar__menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1000;
}

.navbar__menu--open {
    display: flex;
}

.navbar__link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition);
}

.navbar__link:hover::after,
.navbar__link:focus::after {
    width: 100%;
}

.navbar__link:hover,
.navbar__link:focus {
    color: var(--color-primary);
}

.navbar__cta {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 10px 24px;
    border: 1.5px solid var(--color-primary);
    border-radius: 100px;
    color: var(--color-primary);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.navbar__cta:hover,
.navbar__cta:focus {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.navbar__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    z-index: 1001;
    padding: 0;
}

.navbar__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.navbar--scrolled .navbar__hamburger span {
    background: var(--color-dark);
}

.navbar__hamburger--active span {
    background: var(--color-dark) !important;
}

.navbar__hamburger--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger--active span:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-dark);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 166, 202, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 30%, rgba(0, 122, 150, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 50% 80%, rgba(51, 214, 241, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 90% 40% at 60% 10%, rgba(0, 50, 65, 0.5) 0%, transparent 60%);
    z-index: 0;
    animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% {
        background:
            radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 166, 202, 0.25) 0%, transparent 70%),
            radial-gradient(ellipse 60% 80% at 80% 30%, rgba(0, 122, 150, 0.2) 0%, transparent 70%),
            radial-gradient(ellipse 50% 50% at 50% 80%, rgba(51, 214, 241, 0.1) 0%, transparent 70%),
            radial-gradient(ellipse 90% 40% at 60% 10%, rgba(0, 50, 65, 0.5) 0%, transparent 60%);
    }
    50% {
        background:
            radial-gradient(ellipse 70% 70% at 30% 50%, rgba(0, 166, 202, 0.3) 0%, transparent 70%),
            radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 122, 150, 0.15) 0%, transparent 70%),
            radial-gradient(ellipse 40% 60% at 60% 70%, rgba(51, 214, 241, 0.15) 0%, transparent 70%),
            radial-gradient(ellipse 80% 50% at 40% 20%, rgba(0, 50, 65, 0.4) 0%, transparent 60%);
    }
    100% {
        background:
            radial-gradient(ellipse 60% 80% at 40% 30%, rgba(0, 166, 202, 0.2) 0%, transparent 70%),
            radial-gradient(ellipse 70% 50% at 60% 50%, rgba(0, 122, 150, 0.25) 0%, transparent 70%),
            radial-gradient(ellipse 60% 40% at 30% 70%, rgba(51, 214, 241, 0.12) 0%, transparent 70%),
            radial-gradient(ellipse 70% 60% at 50% 30%, rgba(0, 50, 65, 0.45) 0%, transparent 60%);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 16px;
    max-width: 800px;
}

.hero__title {
    color: #fff;
    margin-bottom: 8px;
    animation: fadeSlideUp 0.8s ease-out both;
}

.hero__title-accent {
    color: var(--color-primary-light);
}

.hero__rotator {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.hero__phrase {
    font-size: clamp(1rem, 2vw + 0.25rem, 1.375rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__phrase--hidden {
    opacity: 0;
    transform: translateY(10px);
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    padding: 14px 32px;
    border-radius: 100px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.hero__cta:hover,
.hero__cta:focus {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 166, 202, 0.3);
}

.hero__cta svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}

.hero__cta:hover svg {
    transform: translateY(2px);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   ABOUT US
   ============================================================ */
.about {
    background: var(--color-bg);
}

.about__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.about__text p {
    margin-bottom: 16px;
    font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
}

.about__text p:last-child {
    margin-bottom: 0;
}

.about__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__image-wrapper {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(0, 166, 202, 0.1),
        0 0 40px rgba(0, 166, 202, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.1);
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__image-wrapper:hover .about__image {
    transform: scale(1.05);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    background: var(--color-bg-alt);
}

.services__grid {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}

.services__card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.services__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 166, 202, 0.08), 0 8px 32px rgba(0, 166, 202, 0.08);
}

.services__card-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.services__card-logo {
    height: auto;
    max-width: 50%;
    margin-bottom: 15px;
    object-fit: contain;
}

.services__card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.services__card-description {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.services__card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 16px;
    transition: gap var(--transition);
}

.services__card-link:hover {
    gap: 10px;
}

.services__card-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    background: var(--color-dark);
    color: #fff;
}

.contact .section__label {
    color: var(--color-primary-light);
}

.contact .section__heading {
    color: #fff;
}

.contact .section__description {
    color: rgba(255, 255, 255, 0.65);
}

.contact__grid {
    display: grid;
    gap: 48px;
    margin-top: 48px;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact__info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--color-primary-light);
}

.contact__info-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.contact__info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.contact__info-value a {
    transition: color var(--transition);
}

.contact__info-value a:hover {
    color: var(--color-primary-light);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 166, 202, 0.15);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    align-self: stretch;
    min-height: 48px;
}

.form__submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 166, 202, 0.3);
}

.form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form__feedback {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
}

.form__feedback--visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form__feedback--success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form__feedback--error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-darker);
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.footer__social-link:hover {
    color: var(--color-primary-light);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__copy {
    font-size: 0.8125rem;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
    z-index: 900;
}

.back-to-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--left {
    transform: translateX(-30px);
}

.reveal--right {
    transform: translateX(30px);
}

.reveal--visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================================
   FOCUS STYLES
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE — Small (480px+)
   ============================================================ */
@media (min-width: 480px) {
    .container {
        padding: 0 24px;
    }

    .hero__content {
        padding: 0 24px;
    }

    .form__submit {
        align-self: flex-start;
    }
}

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }

    .navbar__menu {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        gap: 32px;
        align-items: center;
    }

    .navbar__link {
        font-size: 0.8125rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.85);
    }

    .navbar--scrolled .navbar__link {
        color: var(--color-text);
    }

    .navbar__link:hover,
    .navbar__link:focus {
        color: var(--color-primary);
    }

    .navbar__cta {
        font-size: 0.8125rem;
        color: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 255, 255, 0.35);
    }

    .navbar--scrolled .navbar__cta {
        color: var(--color-primary);
        border-color: var(--color-primary);
    }

    .navbar__hamburger {
        display: none;
    }

    .about__grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

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

    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
    :root {
        --nav-height: 80px;
    }

    .section {
        padding: 120px 0;
    }

    .container {
        padding: 0 40px;
    }

    .services__card {
        padding: 40px 32px;
    }
}

/* ============================================================
   RESPONSIVE — Wide Desktop (1280px+)
   ============================================================ */
@media (min-width: 1280px) {
    .container {
        padding: 0 48px;
    }

    .about__grid {
        gap: 80px;
    }
}
