/* ===== VARIÁVEIS E TEMA ===== */
:root {
    --primary: #FF006E;
    --secondary: #FF9500;
    --accent: #00D9FF;
    --purple: #B500FF;
    --destructive: #FF1654;
    
    --bg-dark: #0A0E27;
    --bg-card-dark: #1A1F3A;
    --bg-light: #FFFFFF;
    --bg-card-light: #F5F5F5;
    
    --text-dark: #E0E0E0;
    --text-light: #1A1A1A;
    --text-muted-dark: #A0A0A0;
    --text-muted-light: #666666;
    
    --border-dark: #2A2F4A;
    --border-light: #E0E0E0;
    
    /* Tema padrão (escuro) */
    --bg: var(--bg-dark);
    --bg-card: var(--bg-card-dark);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --border: var(--border-dark);
}

body.light-mode {
    --bg: var(--bg-light);
    --bg-card: var(--bg-card-light);
    --text: var(--text-light);
    --text-muted: var(--text-muted-light);
    --border: var(--border-light);
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

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

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

input, textarea {
    font-family: inherit;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== NEON GLOW EFFECTS ===== */
.neon-glow-pink {
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
}

.neon-glow-orange {
    text-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary), 0 0 30px var(--secondary);
}

.neon-glow-cyan {
    text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent), 0 0 30px var(--accent);
}

.neon-border {
    border: 2px solid;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5), inset 0 0 10px rgba(255, 0, 110, 0.1);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background-color: rgba(10, 14, 39, 0.8);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

body.light-mode .header {
    background-color: rgba(255, 255, 255, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.theme-toggle {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

.sun-icon {
    display: none;
}

body.light-mode .sun-icon {
    display: block;
}

body.light-mode .moon-icon {
    display: none;
}

.moon-icon {
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(-45deg, var(--bg-dark), var(--bg-card-dark), #2A2F4A, var(--bg-dark));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    padding: 4rem 0;
    text-align: center;
}

body.light-mode .hero {
    background: linear-gradient(135deg, #F5F5F5 0%, #FFFFFF 100%);
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.pulse-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) {
    background-color: var(--primary);
    animation-delay: 0s;
}

.dot:nth-child(2) {
    background-color: var(--secondary);
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    background-color: var(--accent);
    animation-delay: 0.4s;
}

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

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 3rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
    animation: fadeInUp 0.6s ease-out both;
}

.project-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
}

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

.project-image {
    width: 100%;
    height: 12rem;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(255, 149, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-image-letter {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
    z-index: 1;
}

.project-image-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    z-index: 1;
}

.project-content {
    padding: 1rem;
    background-color: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(5px);
}

body.light-mode .project-content {
    background-color: rgba(245, 245, 245, 0.8);
}

.project-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-name {
    color: var(--secondary);
}

.project-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.status-delivered {
    background-color: rgba(0, 217, 255, 0.2);
    color: var(--accent);
}

.status-pending {
    background-color: rgba(255, 22, 84, 0.2);
    color: var(--destructive);
}

.project-platform {
    color: var(--text-muted);
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    padding: 3rem 0;
    background-color: rgba(26, 31, 58, 0.3);
}

body.light-mode .comments-section {
    background-color: rgba(245, 245, 245, 0.5);
}

.comments-wrapper {
    max-width: 40rem;
    margin: 0 auto;
}

.comments-title {
    font-size: 1.875rem;
    margin-bottom: 2rem;
}

.comment-form {
    padding: 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    background-color: var(--bg-card);
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 6rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

.comments-list {
    margin-top: 2rem;
}

.comments-count {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.comment-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--bg-card);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary);
}

.comment-timestamp {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text);
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    background-color: rgba(26, 31, 58, 0.3);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

body.light-mode .footer {
    background-color: rgba(245, 245, 245, 0.5);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .project-card {
        margin: 0;
    }

    .comments-wrapper {
        padding: 0 1rem;
    }
}

/* ===== ANIMAÇÕES GERAIS ===== */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}
