/* ========================================
   VARIÁVEIS CSS E CONFIGURAÇÕES GERAIS
   ======================================== */
:root {
    /* Cores Tema Escuro */
    --color-dark: #0B0C10;
    --color-dark-blue: #1F2833;
    --color-cyan: #66FCF1;
    --color-cyan-dark: #45A29E;
    --color-light-gray: #C5C6C7;
    --color-white: #FFFFFF;
    --gradient-tech: linear-gradient(135deg, var(--color-cyan) 0%, #3A86FF 100%);
    --transition: all 0.3s ease;

    /* Cores Tema Claro - MELHORADAS */
    --color-light-bg: #F5F7FA;
    --color-light-card: #FFFFFF;
    --color-light-text: #1F2833;
    --color-light-accent: #3176DF;
    --color-light-border: #DDE4ED;
}

[data-theme="light"] {
    --color-dark: var(--color-light-bg);
    --color-dark-blue: var(--color-light-card);
    --color-light-gray: #536070;
    --color-white: var(--color-light-text);
    --color-cyan: #39A6A3;
    --color-cyan-dark: #2F8A87;
    --gradient-tech: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-light-accent) 100%);
}

/* ========================================
   RESET E CONFIGURAÇÕES BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--color-dark);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ========================================
   UTILITÁRIOS GLOBAIS
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-cyan);
}

.highlight {
    color: var(--color-cyan);
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-dark-blue);
    color: var(--color-white);
    border: 2px solid var(--color-cyan);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color-cyan);
    transition: var(--transition);
    z-index: -1;
}

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

.btn:hover::before {
    width: 100%;
}

/* ========================================
   EFEITOS VISUAIS
   ======================================== */
.glow-text {
    text-shadow: 0 0 10px var(--color-cyan), 0 0 20px var(--color-cyan-dark), 0 0 30px rgba(102, 252, 241, 0.5);
    position: relative;
    display: inline-block;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.glow-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.2) 0%, transparent 70%);
    filter: blur(10px);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
}

header.sticky {
    padding: 12px 0;
    background-color: rgba(11, 12, 16, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] header {
    background-color: rgba(245, 247, 250, 0.8);
    backdrop-filter: blur(10px);
}

[data-theme="light"] header.sticky {
    background-color: rgba(245, 247, 250, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

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

.logo-icon {
    margin-right: 10px;
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: var(--color-light-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-cyan);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-cyan);
}

/* ========================================
   THEME TOGGLE
   ======================================== */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    margin-left: 25px;
    background: var(--color-dark-blue);
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.theme-toggle i {
    font-size: 14px;
    transition: var(--transition);
}

.theme-toggle .fa-sun {
    color: #FFD700;
}

.theme-toggle .fa-moon {
    color: var(--color-cyan);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--color-cyan);
    border-radius: 50%;
    transition: var(--transition);
}

[data-theme="light"] .theme-toggle::after {
    left: 35px;
    background: #FFD700;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-white);
    z-index: 1001;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 100vh;
    width: 100%;
    background: var(--color-dark-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s ease;
}

[data-theme="light"] .hero {
    background: var(--color-light-card);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--color-dark) 70%);
    z-index: 1;
    transition: background 0.5s ease;
}

[data-theme="light"] .hero::before {
    background: radial-gradient(circle at center, transparent 0%, var(--color-light-bg) 70%);
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(31, 40, 51, 0.3) 1px, transparent 1px),
            linear-gradient(90deg, rgba(31, 40, 51, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: gridMove 30s linear infinite;
    transition: background-image 0.5s ease;
}

[data-theme="light"] .grid-background {
    background-image:
            linear-gradient(rgba(150, 160, 180, 0.3) 1px, transparent 1px),
            linear-gradient(90deg, rgba(150, 160, 180, 0.3) 1px, transparent 1px);
}

@keyframes gridMove {
    0% { transform: translateZ(0); }
    100% { transform: translateZ(100px); }
}

.container.hero-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 auto 1.5rem;
    display: inline-block;
}

.typing-effect {
    font-size: 1.5rem;
    margin: 0 auto 2.5rem;
    color: var(--color-light-gray);
    display: block;
}

.typing-effect span {
    position: relative;
}

.typing-effect span::after {
    content: "|";
    position: absolute;
    right: -8px;
    color: var(--color-cyan);
    animation: cursor 1s infinite;
}

@keyframes cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background-color: var(--color-dark);
    position: relative;
    transition: background-color 0.5s ease;
}

[data-theme="light"] .about {
    background-color: var(--color-light-bg);
}

.about-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 30% 0);
    background-color: rgba(31, 40, 51, 0.3);
    z-index: 0;
    transition: background-color 0.5s ease;
}

[data-theme="light"] .about-bg {
    background-color: rgba(150, 160, 180, 0.15);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-light-gray);
}

/* ========================================
   QUALITIES SECTION (NOVA)
   ======================================== */
.about-qualities {
    margin-top: 40px;
}

.quality-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--color-dark-blue);
    border-radius: 15px;
    transition: var(--transition);
    border-left: 4px solid var(--color-cyan);
}

[data-theme="light"] .quality-item {
    background-color: var(--color-light-card);
    border-left: 4px solid var(--color-cyan);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quality-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .quality-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quality-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-tech);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--color-dark);
    font-size: 1.5rem;
}

.quality-content h4 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 5px;
}

.quality-content p {
    color: var(--color-light-gray);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   ABOUT IMAGE
   ======================================== */
.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .about-image {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .about-image:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.about-image:hover .image-overlay {
    transform: translateY(0);
}

.overlay-quote {
    color: var(--color-cyan);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ========================================
   ANIMAÇÕES E UTILITÁRIOS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================================
   OVERLAY PARA MENU MOBILE
   ======================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 12, 16, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

[data-theme="light"] .overlay {
    background-color: rgba(150, 160, 180, 0.8);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-cyan);
    color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}