:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --primary: #7e22ce;
    --primary-light: #a855f7;
    --secondary: #3b82f6;
    --accent: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

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

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

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

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

.nav-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.6);
}

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

.secondary-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.large-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.name {
    font-size: 4rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.role {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 24px;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #111;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* About Section */
.about {
    min-height: auto;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 800px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(126, 34, 206, 0.1);
    border: 1px solid rgba(126, 34, 206, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-light);
    font-family: 'Fira Code', monospace;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.placeholder-1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.placeholder-2 { background: linear-gradient(135deg, #064e3b, #10b981); }
.placeholder-3 { background: linear-gradient(135deg, #701a75, #d946ef); }

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-tags {
    display: flex;
    gap: 10px;
}

.card-tags span {
    font-size: 0.8rem;
    color: var(--secondary);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Blog Section */
.blog {
    min-height: auto;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-post {
    padding: 30px;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.blog-post:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-bottom-color: transparent;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 10px;
    font-family: 'Fira Code', monospace;
}

.blog-post h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.blog-post p {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 800px;
}

.read-more {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    gap: 12px;
}

/* Contact Section */
.contact {
    min-height: auto;
    padding-bottom: 150px;
}

.contact-box {
    text-align: center;
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-box p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

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

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.reveal.right {
    transform: translateX(50px);
}

.reveal.right.active {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    
    .name { font-size: 3rem; }
    
    .hero-actions {
        justify-content: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text, .contact-box {
        text-align: center;
    }
    
    .skills {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
}
