/* AD ACADEMY - DESIGN SYSTEM */
:root {
    --bg-primary: #F8FAFC; /* Fundo cinza clarinho Apple */
    --bg-secondary: #FFFFFF; /* Sidebar e painéis puros */
    --accent-blue: #4F46E5; /* Indigo moderno e confiável */
    --accent-purple: #7C3AED;
    --accent-glow: rgba(79, 70, 229, 0.15);
    --text-primary: #0F172A; /* Slate 900 quaaase preto */
    --text-secondary: #475569; /* Slate 600 macio */
    --glass-bg: #FFFFFF;
    --glass-border: rgba(0, 0, 0, 0.06); /* Borda levíssima */
    --neon-blue: #4F46E5;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(112, 0, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 254, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

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

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

header {
    height: 100px; /* Menu menor e mais elegante */
    display: flex;
    align-items: center;
    background: rgba(2, 2, 5, 0.82);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 110px; /* Tamanho equilibrado e profissional */
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 242, 254, 0.4)); 
    transition: var(--transition);
    position: relative;
    top: 10px; /* Leve transbordamento para baixo */
    z-index: 1001;
    margin-left: 20px;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

nav {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4rem; /* Mais espaço entre os links individuais */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.nav-cta {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-cta:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 100px;
}

.hero-content {
    text-align: left;
    z-index: 10;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    animation: morph 15s linear infinite alternate;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.1);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.hero-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.3; transform: scale(1); }
    to { opacity: 0.6; transform: scale(1.1); }
}

/* FLOATING BADGES */
.floating-badge {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 20;
    animation: floatBadge 6s ease-in-out infinite alternate;
}

.badge-1 { top: 10%; right: -5%; animation-delay: 0s; }
.badge-2 { bottom: 10%; left: -5%; animation-delay: 2s; }

@keyframes floatBadge {
    from { transform: translateY(0) rotate(2deg); }
    to { transform: translateY(-20px) rotate(-2deg); }
}

.badge-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.badge-text small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.badge-text strong {
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.parallax-img {
    transition: transform 0.2s ease-out;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(0, 242, 254, 0.1));
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 3rem;
}

/* CARDS / SECTIONS */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* BUTTONS */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: var(--neon-shadow-blue);
    transform: scale(1.05);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    animation: fadeIn 1s ease forwards;
}

.parallax-img {
    transition: transform 0.2s ease-out;
}

/* TERMINAL COMPONENT */
.terminal-container {
    background: #0d0d15;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
}

.terminal-header {
    background: #1a1a2e;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-buttons span:nth-child(1) { background: #ff5f56; }
.terminal-buttons span:nth-child(2) { background: #ffbd2e; }
.terminal-buttons span:nth-child(3) { background: #27c93f; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    min-height: 250px;
    color: #d1d1d1;
    line-height: 1.5;
}

.t-success { color: #27c93f; }
.t-comment { color: #6272a4; font-style: italic; }
.t-line { color: var(--accent-blue); font-weight: bold; }

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-blue);
    font-weight: bold;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.lab-secondary-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    opacity: 0.6;
    transition: var(--transition);
}

.lab-secondary-img:hover {
    opacity: 1;
    transform: scale(1.02);
}

.bg-dark-alt {
    background-color: var(--bg-secondary);
}

/* === COOKIE CONSENT BANNER (LGPD) === */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    transform: translateY(150%);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
    opacity: 0;
}

.cookie-banner.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-icon-wrapper {
    background: rgba(79, 70, 229, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #4F46E5;
    font-size: 1.5rem;
}

.cookie-header h3 {
    font-size: 1.25rem;
    margin: 0;
    text-transform: none;
    letter-spacing: -0.5px;
    color: #0F172A;
}

.cookie-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.2rem;
}

.cookie-body a {
    color: #4F46E5;
    text-decoration: none;
    font-weight: 700;
}

.cookie-body a:hover {
    text-decoration: underline;
}

.cookie-footer {
    margin-top: 2rem;
}

.btn-cookie {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accept {
    background: #4F46E5;
    color: white;
    border: none;
}

.btn-accept:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        padding: 2rem;
    }
}
