:root {
    --bg-color: #09090B;
    --surface-color: rgba(20, 20, 26, 0.6);
    --surface-border: rgba(139, 92, 246, 0.15);
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --accent-color: #8B5CF6;
    --accent-secondary: #3B82F6;
    --spring-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

/* 3D Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(90deg, #8B5CF6, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Navigation (Glassmorphism) */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s var(--spring-easing), background-color 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.primary-btn {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    color: #FAFAFA;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(5px);
}

.outline-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.outline-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: 100vh;
    padding: 120px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    color: #A78BFA;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.profile-placeholder {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: var(--surface-color);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.profile-placeholder img {
    width: 100%;
    border-radius: 16px;
    display: block;
    filter: grayscale(20%);
}

.profile-label {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-label strong {
    display: block;
    font-size: 1.1rem;
}

.profile-label span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Bento Grid (Skills & Server) */
.bento-grid, .server-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.server-bento {
    grid-template-columns: repeat(2, 1fr);
}

.bento-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.6s var(--spring-easing), border-color 0.3s;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span, .badge-small {
    background: rgba(139, 92, 246, 0.07);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badge-small {
    display: inline-block;
    margin-bottom: 12px;
    color: #A78BFA;
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.12);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    backdrop-filter: blur(10px);
}

.project-info {
    margin-bottom: 30px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Server Stats & Lists */
.stats-grid {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-color);
}

.stat span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.clean-list {
    list-style: none;
    margin-top: 15px;
}

.clean-list li {
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--surface-border);
    font-size: 0.95rem;
}

.clean-list li:last-child {
    border-bottom: none;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
}

.contact-details {
    margin: 30px 0;
}

.detail {
    margin-bottom: 20px;
}

.detail span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.contact-form .input-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--surface-border);
}

/* Reveal Animations (Framer Motion emulation) */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s var(--spring-easing), transform 0.8s var(--spring-easing);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
    .hero-buttons { justify-content: center; }
    .profile-label { left: 20px; bottom: 20px; }
    .server-bento, .contact-container { grid-template-columns: 1fr; }
    .stats-grid { flex-direction: column; gap: 15px; }
    .contact-container { padding: 30px; }
}