:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e40af;
    --light-blue: #60a5fa;
    --accent-blue: #3b82f6;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #cbd5e1;
    --gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a{
    text-decoration: none;
    cursor: pointer;
}

li{
    list-style-type: none;
}

.container {
    margin: 0 auto;
}


/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

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

@keyframes shimmer {
    100% { transform: translateX(100%); }
}



/* Hero Section */
.hero {
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    margin: 8vh 6vw;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeIn 1.9s ease-out;
    height: 16vh;
}

.typewriter {
    overflow: hidden;
    animation: typewriter 3s steps(30, end), blink 0.7s step-end infinite;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.6rem;
    height: 30vh;
    margin: 0 6vw;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin: 0 6vw 80px 6vw;
    animation: fadeIn 1.9s ease-out;
    height: 50vh;
}

/* Seção Projetos */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    animation: fadeIn 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    animation: fadeIn 1.2s ease-out;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin: 0 2px;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.project-img {
    height: 200px;
    width: 100%;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
}

.project-card:hover .project-img::after {
    animation: shimmer 1.5s infinite;
}

.project-img img{
    height: 100%;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.project-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--light-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 55px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: white;
    gap: 12px;
}

/* Habilidades */
.skills {
    padding: 100px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    animation: fadeIn 1.2s ease-out;
}

.skill-item {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 25px 2px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.skill-item:hover {
    transform: translateY(-10px);
    background: var(--gradient);
    color: white;
}

.skill-item i{
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}


.skill-item img:hover, i:hover, svg:hover, h3:hover{
    animation: pulse 1s infinite;
}

/* FOOTER  */
footer {
    background-color: #0a1120;
    padding: 60px 0 30px;
    margin-top: 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-blue);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px);
}

.copyright {
    color: var(--light-blue);
    font-size: 0.7rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

@media (min-width: 992px){
   
    .hero h1 {
        height: 15vh;
    }

    .typewriter {
        height: 20vh;
        margin: 0 6vw 4vw 6vw;
    }

    .hero p {
        height: 20vh;
    }

    .projects-grid {
       margin: 0 3vw;
    }
        
}