/* ============================================
   DEV RAIZ - Modern Dark Theme
   ============================================ */

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

:root {
    --bg-dark: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #252d45;
    --accent-cyan: #00d9ff;
    --accent-purple: #7c3aed;
    --accent-green: #10b981;
    --text-primary: #e0e7ff;
    --text-secondary: #a5b4fc;
    --text-muted: #6b7280;
    --border-color: #404861;
    --success: #00d9ff;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.2);
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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


/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.3rem;
    font-family: var(--font-mono);
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    display: inline-block;
    max-height: 45px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.6));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}


/* Desktop menu */

@media (min-width: 769px) {
    .nav-menu {
        position: static;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding-top: 0;
        box-shadow: none;
    }
    .nav-menu.active {
        left: auto;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 0;
        width: auto;
        text-align: left;
        border-radius: 0;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(40px) translateX(-20px);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

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

.terminal-header {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.dot.red {
    background: #ff6b6b;
}

.dot.yellow {
    background: #ffd93d;
}

.dot.green {
    background: #6bcf7f;
}

.terminal-body {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.terminal-line {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.terminal-prompt {
    color: var(--accent-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

.terminal-path {
    color: var(--accent-cyan);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    color: var(--accent-green);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.code-snippet {
    background: rgba(10, 14, 39, 0.7);
    border: 1px solid var(--accent-cyan);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
    line-height: 1.6;
}

.code-snippet code {
    display: block;
    color: var(--text-secondary);
}

.code-keyword {
    color: var(--accent-purple);
    font-weight: bold;
}

.code-string {
    color: var(--accent-green);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-dark);
    border: 2px solid var(--accent-cyan);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--accent-cyan);
}

.cmd-prompt {
    color: var(--accent-green);
    margin-right: 0.5rem;
}


/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.8rem;
    background: var(--accent-cyan);
    margin-left: 0.5rem;
    animation: blink 1s infinite;
}

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


/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 6rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(124, 58, 237, 0.05);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.about-item:hover {
    background: rgba(124, 58, 237, 0.15);
    transform: translateX(10px);
}

.item-icon {
    color: var(--accent-cyan);
    font-weight: bold;
    flex-shrink: 0;
}

.about-item span:last-child {
    color: var(--text-secondary);
}

.about-item strong {
    color: var(--accent-cyan);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* ============================================
   TECH STACK SECTION
   ============================================ */

.stack {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.tech-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.1);
    transform: translateY(-5px);
}

.tech-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    border: 1px solid var(--accent-cyan);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-badge:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-cyan);
}


/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    padding: 6rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

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

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.1);
    transform: translateY(-5px);
}

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

.project-card h3 {
    font-size: 1.3rem;
    color: var(--accent-cyan);
}

.project-year {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    border: 1px solid var(--accent-green);
}

.project-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
}

.project-link:hover {
    color: var(--accent-purple);
    transform: translateX(5px);
}


/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    padding: 6rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonials-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 6rem;
    color: var(--accent-cyan);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.1);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.star {
    color: #ffd93d;
    font-size: 1rem;
}

.star.filled {
    color: #ffd93d;
}

.date {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.testimonial-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}


/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: rgba(26, 31, 58, 0.8);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
    background: rgba(26, 31, 58, 0.95);
}

.contact-form button {
    width: 100%;
}

.form-status {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success {
    background: rgba(0, 255, 128, 0.1);
    border: 1px solid rgba(0, 255, 128, 0.3);
    color: #00ff80;
}

.form-status.error {
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid rgba(255, 0, 128, 0.3);
    color: #ff0080;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
}

.contact-label {
    display: block;
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    word-break: break-all;
}

.contact-item a:hover {
    color: var(--accent-cyan);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.social-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

.status-badge {
    display: inline-block;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-weight: 600;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.heart {
    color: #ff6b6b;
    animation: pulse 1.5s infinite;
}

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


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        width: 200px;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    .nav-link:hover {
        background: rgba(0, 217, 255, 0.1);
        transform: scale(1.05);
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }
    /* Overlay para mobile menu */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .nav-menu.active::before {
        opacity: 1;
        pointer-events: auto;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .about-stats,
    .projects-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .terminal-body {
        padding: 1.5rem;
    }
    .code-snippet {
        font-size: 0.75rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.8rem 1rem;
    }
    .logo {
        font-size: 1rem;
    }
    .nav-menu {
        gap: 1rem;
    }
    .nav-link {
        font-size: 0.7rem;
    }
    .hero {
        min-height: auto;
        padding: 2rem 0;
        margin-top: 60px;
    }
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
    .terminal-body {
        padding: 1rem;
    }
    .code-snippet {
        padding: 1rem;
        font-size: 0.7rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .hero::before {
        width: 300px;
        height: 300px;
        right: -40%;
        top: -35%;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .contact-content {
        gap: 1.5rem;
    }
    .project-card {
        padding: 1.5rem;
    }
    .tech-card {
        padding: 1.5rem;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
    .testimonial-text {
        font-size: 0.9rem;
    }
}