/* Reset e Configurações Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0F3460;
    --accent-color: #ff6b6b;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0F3460 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--bg-darker);
    transform: translateY(-2px);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 70px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-container {
    position: relative;
}

.profile-img-wrapper {
    position: relative;
    display: inline-block;
}

.profile-img {
    width: auto;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.profile-img:hover .profile-overlay {
    opacity: 0.2;
}

.profile-img:hover img {
    transform: scale(1.1);
}

.tech-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 250px;
    height: 250px;
    top: -25px;
    left: -25px;
    border-style: dashed;
}

.ring-2 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    border-style: dotted;
    animation-direction: reverse;
    animation-duration: 30s;
}

.ring-3 {
    width: 350px;
    height: 350px;
    top: -75px;
    left: -75px;
    border-style: solid;
    animation-duration: 40s;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.glitch-text {
    position: relative;
    color: var(--text-light);
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-color);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    30% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
}

.typing-container {
    text-align: center;
    display: block !important; /* Garante que não será flex */
    width: 100%;
}

.typing-text {
    display: inline-block;
    font-size: 1.8rem;
    color: var(--primary-color);
    border-right: 2px solid var(--primary-color);
    animation: blink 1s infinite;
    vertical-align: bottom;
    /* Remove qualquer float, flex, ou white-space herdado */
    float: none !important;
    white-space: normal !important;
}

.typing-text-2 {
    display: block !important; /* Força a quebra de linha */
  font-size: 1.4rem;
  color: var(--text-gray);
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
  float: none !important;
  white-space: normal !important;
    }

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

.tech-stack {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    position: relative;
    font-size: 2.5rem;
    color: var(--text-gray);
    transition: var(--transition);
    cursor: pointer;
}

.tech-item:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(0, 212, 255, 0.5));
}

.tech-item::after {
    content: attr(data-tech);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    background: var(--bg-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
}

.tech-item:hover::after {
    opacity: 1;
    bottom: -35px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Sections */
.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    gap: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-number {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.title-line {
    flex: 1;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-card {
    background: rgba(15, 52, 96, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.skill-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Education Section */
.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.education-marker {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: 0.5rem;
    position: relative;
}

.education-marker::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: var(--gradient-primary);
}

.education-item:last-child .education-marker::after {
    display: none;
}

.education-info h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.course-item {
    background: rgba(15, 52, 96, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.course-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.course-info h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    flex: 1;
}

.course-hours {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    width: 100%;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(15, 52, 96, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.social-link.github:hover {
    border-color: #333;
    box-shadow: 0 0 20px rgba(51, 51, 51, 0.3);
}

.social-link.linkedin:hover {
    border-color: #0077b5;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.3);
}

.social-icon {
    font-size: 2rem;
}

.social-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.social-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .typing-text {
        font-size: 1.4rem;
        display: inline-block;
    }

    .tech-stack {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .education-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 300px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .title-line {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tech-item {
        font-size: 2rem;
    }

    .profile-img {
        width: 150px;
        height: 200px;
    }

    .ring-1 {
        width: 200px;
        height: 200px;
        top: -25px;
        left: -25px;
    }

    .ring-2 {
        width: 250px;
        height: 250px;
        top: -50px;
        left: -50px;
    }

    .ring-3 {
        width: 300px;
        height: 300px;
        top: -75px;
        left: -75px;
    }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--bg-darker);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay {
    animation-delay: 0.3s;
}
