/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --text-primary: #fafafa;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    /* Pride colors */
    --pride-red: #E40303;
    --pride-orange: #FF8C00;
    --pride-yellow: #FFED00;
    --pride-green: #008026;
    --pride-blue: #24408E;
    --pride-purple: #732982;
    
    /* Accent gradients */
    --gradient-pride: linear-gradient(135deg, 
        var(--pride-red) 0%, 
        var(--pride-orange) 16.67%, 
        var(--pride-yellow) 33.33%, 
        var(--pride-green) 50%, 
        var(--pride-blue) 66.67%, 
        var(--pride-purple) 83.33%,
        var(--pride-red) 100%
    );
    
    --gradient-accent: linear-gradient(135deg, #ff6b9d, #c44fff, #6b7dff);
    
    --font-display: 'Dela Gothic One', cursive;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.logo-flag {
    font-size: 1.25rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(15deg); }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-pride);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 6rem 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.8s ease backwards;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    animation: fadeSlideUp 0.8s ease 0.1s backwards;
}

.title-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 1;
    background: var(--gradient-pride);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite, fadeSlideUp 0.8s ease 0.2s backwards;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.letter {
    display: inline-block;
    animation: letterBounce 0.6s ease calc(var(--i) * 0.1s + 1s) backwards;
}

@keyframes letterBounce {
    0% { opacity: 0; transform: translateY(50px) rotate(-10deg); }
    60% { transform: translateY(-10px) rotate(5deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.8s ease 0.4s backwards;
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fadeSlideUp 0.8s ease 0.6s backwards;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
}

.badge-pride {
    background: linear-gradient(135deg, rgba(228,3,3,0.15), rgba(115,41,130,0.15));
    border-color: rgba(228,3,3,0.3);
    overflow: hidden;
    position: relative;
}

.pride-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-pride);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeSlideUp 1s ease 0.3s backwards;
}

.avatar-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    width: 180px;
    height: 180px;
    background: var(--gradient-pride);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.avatar-emoji {
    font-size: 5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.avatar-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-2 {
    width: 260px;
    height: 260px;
    animation-delay: 0.5s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.05); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    animation: floatItem 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes floatItem {
    0%, 100% { 
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); 
        opacity: 0.8;
    }
    50% { 
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 15px)); 
        opacity: 1;
    }
}

/* ===== Pride Banner ===== */
.pride-banner {
    background: var(--gradient-pride);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.pride-scroll {
    display: flex;
    gap: 2rem;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.pride-scroll span {
    font-family: var(--font-display);
    font-size: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Section Styles ===== */
section {
    padding: 6rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.about-intro {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--text-primary);
}

.about-skills h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.1);
}

.skill-icon {
    font-size: 1.5rem;
}

.skill-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== Work Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
}

.project-preview {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.project-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-pride);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-preview::before {
    opacity: 0.15;
}

.project-emoji {
    font-size: 4rem;
    transition: transform 0.4s ease;
}

.project-card:hover .project-emoji {
    transform: scale(1.2);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

/* ===== Contact Section ===== */
.contact {
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(115,41,130,0.15), transparent 70%);
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
}

.contact-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.contact p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.contact-btn.primary {
    background: var(--gradient-pride);
    color: white;
    box-shadow: 0 8px 32px rgba(228,3,3,0.3);
}

.contact-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(228,3,3,0.4);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.contact-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Animations ===== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 8rem 3rem 4rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    section {
        padding: 4rem 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .title-name {
        font-size: 3.5rem;
    }
    
    section {
        padding: 3rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .footer {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

