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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-accent: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
    --border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
    --border: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section - MUCH BETTER SPACING */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    padding: 12rem 0 8rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 8rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 1s ease;
    padding-right: 3rem;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.8;
    max-width: 85%;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

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

.social-link {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    font-size: 1.3rem;
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

/* Discord Status - MUCH BETTER SPACING */
.discord-status {
    background: var(--bg-secondary);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid var(--border);
    animation: fadeInUp 1s ease 0.2s both;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: fit-content;
}

.discord-status:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15);
}

.discord-status img {
    width: 100%;
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-status:hover img {
    transform: scale(1.03);
}

/* About Section */
.about {
    padding: 10rem 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -1;
}

.about-placeholder {
    width: 100%;
    height: 450px;
    background: var(--bg-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-secondary);
}

.about-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 2rem;
}

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

/* Projects Section */
.projects {
    padding: 10rem 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

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

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.tech-tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Skills Section */
.skills {
    padding: 10rem 0;
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--bg-primary);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

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

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-list {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.footer-section a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.4);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        gap: 5rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 10rem 0 6rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        max-width: 100%;
    }

    .hero-text {
        padding-right: 0;
    }

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

    .nav-links {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .discord-status {
        padding: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #0891b2);
}
