/* Root Variables - Design System */
:root {
    --primary: #ff4d4d; /* Red/Orange neon from the banner */
    --primary-glow: rgba(255, 77, 77, 0.4);
    --secondary: #ff9f1c; /* Accent orange */
    --bg-dark: #0a0a0c; /* Deep space black */
    --bg-card: rgba(25, 25, 30, 0.6);
    --text-main: #f0f0f5;
    --text-dim: #a0a0b0;
    --font-futuristic: 'Orbitron', sans-serif;
    --font-ui: 'Inter', sans-serif;
    --border-glass: rgba(255, 255, 255, 0.08);
}

/* Base Stylings */
html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-ui);
    overflow-x: hidden;
}

h1, h2, h3, .logo-text, .nav-logo {
    font-family: var(--font-futuristic);
    letter-spacing: 2px;
}

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.logo-container {
    position: relative;
    padding: 10px 40px;
}

.logo-text {
    font-size: 6rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 15px var(--primary-glow);
    animation: textBlur 2s infinite ease-in-out alternate;
}

.scan-beam {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 20px 4px var(--primary);
    filter: blur(2px);
    animation: scanner 2.5s infinite ease-in-out;
}

.loading-container {
    width: 300px;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary);
    animation: fillProgress 3s forwards ease-in-out;
}

.status-message {
    font-family: var(--font-futuristic);
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 3px;
    opacity: 0.8;
}

/* --- Main Content Layout --- */
.hidden {
    opacity: 0;
    display: none;
}

.show-mobile {
    display: none !important;
}

.hide-mobile {
    display: block;
}

#main-content {
    animation: fadeInContent 1.5s forwards ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; height: 60px; }
    .nav-logo { font-size: 1.4rem; }
    .nav-links { gap: 15px; }
    .nav-links li a { font-size: 0.7rem; }
    .cta-link { padding: 8px 15px; }
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 8px var(--primary-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dim);
    font-family: var(--font-futuristic);
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.cta-link {
    background: linear-gradient(135deg, #cc2b2b, var(--primary));
    padding: 10px 24px;
    border-radius: 4px;
    color: white !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.2);
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4) !important;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 100px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hero { padding: 40px; min-height: 100vh; flex-direction: column; justify-content: flex-start; }
}

@media (max-width: 480px) {
    .hero { padding: 20px; padding-top: 100px; min-height: auto; }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.6) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.8) 80%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    position: relative;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-subtitle::before {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--primary);
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .about-section { padding: 100px 15px 40px; min-height: auto; }
    .about-content { padding: 30px 18px; }
    .about-title { font-size: 1.8rem; }
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.4rem; }
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 159, 28, 0.4));
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

@media (max-width: 768px) {
    .hero-description { font-size: 1rem; line-height: 1.6; max-width: 100%; }
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-futuristic);
    font-size: 0.9rem;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #e63e3e;
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.8rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; padding: 15px; }
}

/* Hero Social Tags Below Bio */
.hero-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .hero-social-links { gap: 8px; justify-content: flex-start; }
}

.hero-social-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-family: var(--font-futuristic);
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-social-tag i {
    font-size: 1.1rem;
    color: var(--primary);
}

.hero-social-tag:hover {
    background: rgba(255, 77, 77, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.hero-social-tag.youtube i {
    color: #ff0000;
}

.hero-social-tag.linktree i {
    color: #43e55e;
}

.tech-stats {
    position: absolute;
    left: 40px;
    bottom: 40px;
    display: flex;
    gap: 40px;
    z-index: 10;
}

@media (max-width: 768px) {
    .tech-stats { position: relative; left: 0; bottom: 0; margin-top: 60px; padding-bottom: 40px; flex-wrap: wrap; gap: 25px; }
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.stat-value {
    font-family: var(--font-futuristic);
    font-size: 0.8rem;
    color: white;
    font-weight: 700;
}

.pulse {
    color: #48ff00;
    text-shadow: 0 0 5px #48ff00;
    animation: opacityPulse 2s infinite ease-in-out;
}

/* Keyframes */
@keyframes textBlur {
    from { filter: blur(0px); text-shadow: 0 0 15px var(--primary-glow); }
    to { filter: blur(1px); text-shadow: 0 0 25px var(--primary-glow); }
}

@keyframes scanner {
    0% { top: -10%; }
    50% { top: 110%; }
    100% { top: -10%; }
}

@keyframes fillProgress {
    0% { width: 0%; }
    10% { width: 5%; }
    40% { width: 45%; }
    60% { width: 48%; }
    100% { width: 100%; }
}

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

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

/* Countdown Timer */
.countdown-container {
    margin-bottom: 30px;
    text-align: right;
    width: 100%;
}

.countdown-header {
    font-family: var(--font-futuristic);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.countdown-grid {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 12px 10px;
    border-radius: 4px;
    min-width: 80px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    border-color: var(--primary);
    background: rgba(255, 77, 77, 0.05);
    transform: translateY(-3px);
}

.countdown-value {
    font-family: var(--font-futuristic);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px var(--primary-glow);
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-unit {
    font-family: var(--font-futuristic);
    font-size: 0.55rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Follower Counter */
.follower-counter-container {
    position: absolute;
    top: 50%;
    right: 100px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 50;
}

.counter-item {
    text-align: right;
    border-right: 4px solid var(--primary);
    padding-right: 30px;
}

.counter-number {
    display: block;
    font-family: var(--font-futuristic);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: white;
    text-shadow: 0 0 20px var(--primary-glow);
}

.counter-label {
    font-family: var(--font-futuristic);
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-top: 10px;
    display: block;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--border-glass);
    padding: 60px;
    width: 100%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 35px;
    color: var(--text-dim);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header {
    margin-bottom: 40px;
    text-align: center;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-futuristic);
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: white;
    font-family: var(--font-ui);
    border-radius: 4px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px var(--primary-glow);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-submit {
    width: 100%;
    cursor: pointer;
}

.form-status {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Responsividade Global */
@media (max-width: 1024px) {
    .show-mobile { display: block !important; }
    .hide-mobile { display: none !important; }

    .hero-social-links { 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        margin-bottom: 25px;
    }

    .hero-social-tag {
        justify-content: center;
        padding: 15px 10px;
        font-size: 0.7rem;
        margin: 0;
    }

    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px;
    }

    .btn { 
        width: 100%; 
        text-align: center; 
        padding: 15px; 
    }

    .hero-content {
        width: 100%;
    }

    .hero { 
        padding: 40px; 
        min-height: 100vh; 
        flex-direction: column; 
        justify-content: flex-start; 
        height: auto; 
        overflow: visible;
        padding-bottom: 0px;
    }

    .follower-counter-container {
        position: relative;
        top: auto;
        right: auto;
        left: 0;
        transform: none;
        margin: 60px 0 0px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 3;
    }

    .countdown-container {
        text-align: center;
        margin-bottom: 25px;
    }

    .countdown-grid {
        justify-content: center;
        gap: 12px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 10px 5px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .counter-item { 
        text-align: center; 
        border-right: none; 
        border-left: none; 
        padding: 0;
        width: 100%;
    }

    .counter-number { 
        font-size: 3.8rem; 
        text-align: center;
    }

    .counter-label { 
        font-size: 0.65rem; 
        letter-spacing: 2px; 
        opacity: 0.8;
        max-width: 250px;
        margin: 10px auto 0;
    }
    
    .tech-stats { 
        position: relative; 
        left: 0; 
        bottom: 0; 
        margin-top: 40px; 
        padding-bottom: 20px; 
        order: 4; 
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .modal-content { padding: 40px 20px; width: 92%; max-height: 95vh; overflow-y: auto; }
}

@media (max-width: 480px) {
    .hero { padding: 80px 20px 20px; min-height: 100vh; }
    .hero-title { font-size: 2.2rem; }
    .counter-number { font-size: 3.2rem; }
}

/* Projects Section Styling */
.projects-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0f0f12);
    position: relative;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 40px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    background: rgba(30, 30, 35, 0.8);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 77, 77, 0.1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 77, 77, 0.05) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.project-card:hover .card-glow {
    opacity: 1;
}

.project-tag {
    font-family: var(--font-futuristic);
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-name {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.project-desc {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.project-link-secondary {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-futuristic);
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-link-secondary:hover {
    color: var(--primary);
}

.project-link-secondary i {
    font-size: 0.7rem;
}

/* Responsividade de Projetos */
@media (max-width: 768px) {
    .projects-section { padding: 80px 0; }
    .section-title { font-size: 2.2rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card { padding: 30px; }
}
