:root {
    --bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --purple: #a855f7;
    --red: #ef4444;
    --gradient: linear-gradient(135deg, var(--purple), var(--red));
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

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

.container-sm {
    max-width: 800px;
}

/* Background Blurs */
.bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-blur::before, .bg-blur::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}

.bg-blur::before {
    background: var(--purple);
    top: -100px;
    right: -100px;
}

.bg-blur::after {
    background: var(--red);
    bottom: -100px;
    left: -100px;
}

/* Typography */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--red);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Sections */
.section {
    padding: 8rem 0;
    min-height: calc(100vh - 160px); /* Adjust for nav and footer */
    display: flex;
    align-items: center;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.bio {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 2rem 0;
    max-width: 600px;
}

.bio b, .bio strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn.primary {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.3);
}

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

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 4s infinite;
}

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

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
}

.content-box {
    padding: 2.5rem;
    width: 100%;
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

pre { color: var(--text-muted); font-family: 'Courier New', Courier, monospace; font-size: 1.1rem; }
.keyword { color: #c678dd; }
.variable { color: #e06c75; }
.string { color: #98c379; }

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2.5rem;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
}

.purple-red-bg {
    background: var(--gradient);
    color: white;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--red);
    gap: 0.8rem;
}

/* Skills */
.skill-cloud {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.skill-item {
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--purple);
    transform: scale(1.05);
}

.skill-item i {
    font-size: 1.2rem;
    color: var(--purple);
}

/* Contact Section */
.contact-card {
    padding: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.social-links a {
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--red);
    transform: translateY(-5px);
}

.discord-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.discord-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.discord-info i {
    font-size: 2.5rem;
    color: #5865F2;
}

.discord-text .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.discord-text .value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
}

.discord-text .display-name {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-copy {
    background: var(--purple);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--red);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.accent {
    color: var(--red);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text { order: 1; }
    .hero-visual { order: 2; margin-top: 4rem; }
    .hero-actions { justify-content: center; }
    .gradient-text { font-size: 3.5rem; }
    .bio { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .gradient-text { font-size: 2.8rem; }
    .contact-card { padding: 2rem; }
    .discord-box { flex-direction: column; gap: 1.5rem; text-align: center; }
    .discord-info { flex-direction: column; }
}
