:root {
    --bg-color: #030305;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    
    /* System Colors */
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-red: #ef4444;
    --color-yellow: #eab308;
    --color-green: #22c55e;
    --color-cyan: #06b6d4;
    --color-orange: #f97316;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 25%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header Minimalista */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 3, 5, 0.6);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
}

.logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.2));
}

nav a {
    margin-left: 2.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: var(--text-primary);
}

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

nav a:hover::after {
    width: 100%;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Portfolio Grid */
.portfolio-section {
    padding: 4rem 0;
}

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

.section-header::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

.section-header h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* Glassmorphism Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

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

.card h3 {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Vibrant Tags */
.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

.tag-blue { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border-color: rgba(59, 130, 246, 0.2); }
.tag-purple { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border-color: rgba(139, 92, 246, 0.2); }
.tag-red { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.2); }
.tag-yellow { background: rgba(234, 179, 8, 0.1); color: #facc15; border-color: rgba(234, 179, 8, 0.2); }
.tag-green { background: rgba(34, 197, 94, 0.1); color: #4ade80; border-color: rgba(34, 197, 94, 0.2); }
.tag-cyan { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border-color: rgba(6, 182, 212, 0.2); }
.tag-orange { background: rgba(249, 115, 22, 0.1); color: #fb923c; border-color: rgba(249, 115, 22, 0.2); }

.card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.link-arrow i {
    transition: transform 0.3s ease;
}

.card:hover .link-arrow i {
    transform: translate(3px, -3px);
}

/* Music Section */
.music-section {
    padding: 6rem 0;
}

.music-intro {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

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

@media (max-width: 800px) {
    .music-grid {
        grid-template-columns: 1fr;
    }
}

.music-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.music-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 70%);
    transition: opacity 0.3s;
}

.music-card:hover {
    transform: scale(1.05);
}

.music-card:hover::after {
    opacity: 1;
}

.music-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.music-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.music-card span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-card.spotify:hover { border-color: #1DB954; box-shadow: 0 0 30px rgba(29, 185, 84, 0.15); }
.music-card.spotify:hover .music-icon { color: #1DB954; }

.music-card.ytmusic:hover { border-color: #f00; box-shadow: 0 0 30px rgba(255, 0, 0, 0.15); }
.music-card.ytmusic:hover .music-icon { color: #f00; }

.music-card.applemusic:hover { border-color: #fc3c44; box-shadow: 0 0 30px rgba(252, 60, 68, 0.15); }
.music-card.applemusic:hover .music-icon { color: #fc3c44; }

/* About Section */
.about-section {
    padding: 8rem 0;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.02));
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.social-links {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-links i {
    font-size: 1.5rem;
}

.social-links a:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Blog Preview */
.blog-preview {
    margin: 6rem 0;
    padding: 5rem 2rem;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), transparent);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1), transparent 60%);
    pointer-events: none;
}

.blog-content {
    position: relative;
    z-index: 1;
}

.btn-primary {
    margin-top: 2rem;
    display: inline-block;
    padding: 1rem 3rem;
    background: #fff;
    color: #000;
    font-weight: 700;
    border-radius: 100px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .site-header {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .social-links {
        grid-template-columns: 1fr 1fr;
    }
}
