/* Font Face Declarations */
@font-face {
    font-family: 'Next Sphere';
    src: url('fonts/Next Sphere Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Next Sphere';
    src: url('fonts/Next Sphere Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Next Sphere';
    src: url('fonts/Next Sphere Semi Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Next Sphere';
    src: url('fonts/Next Sphere Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir Black.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #222223;
    --color-blue: #009CDE;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray-medium: #e0e0e0;
    --color-gray-dark: #666666;
    --font-primary: 'Next Sphere', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 156, 222, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 156, 222, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(34, 34, 35, 0.03) 0%, transparent 60%);
    pointer-events: none;
    animation: gradientShift 15s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(0, 156, 222, 0.02) 100px,
            rgba(0, 156, 222, 0.02) 200px
        );
    animation: patternMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

.logo-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

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

.logo-devit {
    max-width: 280px;
    height: auto;
    animation: fadeInLeft 1s ease-out;
    filter: drop-shadow(0 8px 24px rgba(34, 34, 35, 0.15)) drop-shadow(0 0 40px rgba(0, 156, 222, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    z-index: 2;
}

.logo-devit:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 32px rgba(34, 34, 35, 0.2)) drop-shadow(0 0 60px rgba(0, 156, 222, 0.2));
}

.logo-briler {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-black) 50%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    animation: fadeInRight 1s ease-out;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 30px rgba(0, 156, 222, 0.3);
    transition: transform 0.3s ease;
}

.logo-briler:hover {
    transform: scale(1.05);
}

.logo-briler::before {
    content: 'Briler LTDA';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-black) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo-briler::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue) 0%, rgba(0, 156, 222, 0.5) 50%, transparent 100%);
    animation: expandLine 1.5s ease-out 0.5s both;
    box-shadow: 0 0 20px rgba(0, 156, 222, 0.5);
}

.transition-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    min-width: 120px;
    z-index: 2;
}

.code-line {
    width: 3px;
    height: 80px;
    background: linear-gradient(180deg, 
        rgba(0, 156, 222, 0.3) 0%, 
        var(--color-blue) 20%,
        var(--color-blue) 80%,
        rgba(0, 156, 222, 0.3) 100%);
    animation: drawLine 1s ease-out 0.3s both, glowPulse 2s ease-in-out infinite;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 156, 222, 0.5), 0 0 40px rgba(0, 156, 222, 0.3);
}

.code-line::before,
.code-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--color-blue);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 156, 222, 0.8), 0 0 40px rgba(0, 156, 222, 0.4);
}

.code-line::before {
    top: -6px;
    animation-delay: 0s;
}

.code-line::after {
    bottom: -6px;
    animation-delay: 1s;
}

.arrow {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--color-blue) 0%, #0077a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    animation: slideIn 1s ease-out 0.6s both, arrowPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 156, 222, 0.5));
    position: relative;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(34, 34, 35, 0.1);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-blue), transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 156, 222, 0.6);
    animation: expandLine 1.5s ease-out 1s both;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-gray-dark);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-black);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-black);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Main Message Section */
.main-message {
    padding: 6rem 0;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.main-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue), transparent);
    opacity: 0.3;
}

.main-message::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 156, 222, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.message-content {
    max-width: 900px;
    margin: 0 auto;
}

.message-text {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-black);
}

.message-text strong {
    color: var(--color-blue);
    font-weight: 600;
}

.message-text.highlight {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--color-black);
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 156, 222, 0.05) 0%, rgba(0, 156, 222, 0.02) 100%);
    border-left: 5px solid var(--color-blue);
    border-radius: 8px;
    margin-top: 3rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 156, 222, 0.1), inset 0 0 60px rgba(0, 156, 222, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-text.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 156, 222, 0.05) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.message-text.highlight:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 40px rgba(0, 156, 222, 0.15), inset 0 0 60px rgba(0, 156, 222, 0.08);
}

.message-text.highlight:hover::before {
    opacity: 1;
}

/* Key Points Section */
.key-points {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-gray-light) 0%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}

.key-points::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue), transparent);
    opacity: 0.3;
}

.key-points::after {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -300px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 156, 222, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.point-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--color-gray-medium);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(34, 34, 35, 0.08);
}

.point-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 156, 222, 0.1), transparent);
    transition: left 0.5s ease;
}

.point-card:hover::before {
    left: 100%;
}

.point-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 156, 222, 0.2), 0 0 40px rgba(0, 156, 222, 0.1);
    border-color: var(--color-blue);
}

.point-icon {
    color: var(--color-blue);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 156, 222, 0.3));
}

.point-card:hover .point-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(0, 156, 222, 0.5));
}

.point-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.point-description {
    font-size: 1rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-blue) 0%, #0077a8 50%, #005f87 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientShift 10s ease infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s ease-in-out infinite;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin-bottom: 3rem;
    opacity: 0.95;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 300px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(12px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 255, 255, 0.2);
}

.contact-item svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes drawLine {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 60px;
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(20px, 20px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 100px) rotate(360deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 156, 222, 0.5), 0 0 40px rgba(0, 156, 222, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 156, 222, 0.8), 0 0 60px rgba(0, 156, 222, 0.5);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(5px);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-transition {
        flex-direction: column;
        gap: 2rem;
    }

    .transition-animation {
        transform: rotate(90deg);
        min-width: auto;
        min-height: 120px;
    }

    .code-line {
        width: 60px;
        height: 2px;
    }

    .arrow {
        transform: rotate(-90deg);
    }

    .points-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-item {
        min-width: auto;
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 0 1.5rem;
    }

    .main-message,
    .key-points,
    .cta-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
    }

    .logo-devit {
        max-width: 200px;
    }

    .message-text.highlight {
        padding: 1.5rem;
    }
}

