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

:root {
    /* Core Colors */
    --background: hsl(220, 25%, 5%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(220, 25%, 8%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(220, 25%, 5%);
    --secondary: hsl(160, 84%, 39%);
    --secondary-foreground: hsl(220, 25%, 5%);
    --accent: hsl(270, 70%, 68%);
    --accent-foreground: hsl(220, 25%, 5%);
    --muted: hsl(220, 25%, 12%);
    --muted-foreground: hsl(215, 20%, 65%);
    --border: hsl(220, 25%, 15%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 60%), hsl(270, 70%, 68%));
    --gradient-secondary: linear-gradient(135deg, hsl(160, 84%, 39%), hsl(217, 91%, 60%));
    --gradient-hero: linear-gradient(135deg, hsl(220, 25%, 5%) 0%, hsl(220, 25%, 8%) 50%, hsl(220, 25%, 12%) 100%);

    /* Effects */
    --shadow-glow: 0 0 40px hsl(217, 91%, 60%, 0.3);
    --shadow-card: 0 10px 30px -10px hsl(220, 25%, 3%, 0.5);
    --radius: 0.75rem;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px hsl(217, 91%, 60%, 0.3);
    }

    100% {
        box-shadow: 0 0 40px hsl(217, 91%, 60%, 0.6);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 30%, var(--background) 70%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

.hero-text {
    margin-bottom: 2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.title-tech {
    display: block;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--secondary);
}

.hero-description {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Decorative Elements */
.decoration {
    position: absolute;
    border: 2px solid;
    animation: pulse 3s ease-in-out infinite;
}

.decoration-1 {
    top: 5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    border-color: hsla(217, 91%, 60%, 0.2);
    border-radius: var(--radius);
}

.decoration-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 4rem;
    height: 4rem;
    border-color: hsla(160, 84%, 39%, 0.2);
    border-radius: 50%;
}

.decoration-3 {
    top: 50%;
    right: 5rem;
    width: 3rem;
    height: 3rem;
    border-color: hsla(270, 70%, 68%, 0.2);
    border-radius: var(--radius);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-hero {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-hero:hover {
    box-shadow: var(--shadow-glow), 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover .icon {
    animation: bounce 1s ease-in-out;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
    border: 2px solid transparent;
}

.btn-ghost:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--card);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideUp 0.6s ease-out;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 768px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

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

.card {
    padding: 2rem;
    background: linear-gradient(to bottom, var(--card), var(--muted));
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.icon-primary {
    background: var(--gradient-primary);
}

.icon-secondary {
    background: var(--gradient-secondary);
}

.icon-accent {
    background: var(--accent);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--muted-foreground);
}

/* Content Section */
.content {
    padding: 5rem 0;
}

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

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

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

.content-card {
    padding: 1.5rem;
    background: linear-gradient(to bottom, var(--card), var(--muted));
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    animation: slideUp 0.6s ease-out;
    animation-delay: var(--delay);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.content-card:hover .content-title {
    color: var(--primary);
}

.content-card:hover .content-icon {
    transform: scale(1.1);
}

.content-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.content-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.gradient-1 {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.gradient-2 {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.gradient-3 {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
}

.gradient-4 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.gradient-5 {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.gradient-6 {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.content-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.content-text {
    color: var(--muted-foreground);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--card) 0%, var(--muted) 50%, var(--card) 100%);
}

.cta-content {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.cta-tip {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: var(--muted-foreground);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.youtube:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.social-link.github:hover {
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.1);
}

.social-link.email:hover {
    color: var(--accent);
    background: rgba(168, 85, 247, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .decoration {
        display: none;
    }

    .cta-features {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.social-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}