:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-primary: #58a6ff;
    --accent-secondary: #7ee787;
    --accent-tertiary: #ffa657;
    --accent-purple: #d2a8ff;
    --border-color: #30363d;
    --code-bg: #1a1f26;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    background: 
        radial-gradient(ellipse at top, rgba(88, 166, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(126, 231, 135, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

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

.profile-pic {
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.02);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--accent-secondary);
}

.about-pic {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.tech-stack h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
}

/* Experience Timeline */
.timeline {
    margin-bottom: 3rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.2);
}

.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.company {
    color: var(--accent-secondary);
    font-weight: 600;
}

.period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

.timeline-content ul {
    color: var(--text-secondary);
    margin-left: 1.25rem;
    margin-top: 0.5rem;
}

.timeline-content li {
    margin-bottom: 0.25rem;
}

/* Education Section */
.education-section {
    margin-bottom: 2rem;
}

.education-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.education-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.education-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.education-card .company {
    color: var(--accent-tertiary);
    font-weight: 600;
}

/* Certifications */
.certifications-section {
    margin-bottom: 3rem;
}

.certifications-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cert-tag {
    padding: 0.5rem 1rem;
    background: rgba(126, 231, 135, 0.1);
    border: 1px solid var(--accent-secondary);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

.patents-section {
    margin: 2rem 0;
}

.patents-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.patent-card {
    padding: 1rem 1.25rem;
    background: rgba(126, 231, 135, 0.08);
    border: 1px solid var(--accent-secondary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.patent-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.patent-meta {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.patent-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.projects-grid h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.project-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.project-card:hover {
    border-color: var(--accent-primary);
}

.project-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    padding: 0.25rem 0.6rem;
    background: var(--code-bg);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-tertiary);
}

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--accent-secondary);
}

/* Hobbies Grid */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.hobby-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 24px rgba(210, 168, 255, 0.1);
}

.hobby-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.hobby-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.hobby-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Blog / Brain Blobs */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-4px);
}

.blog-card.expanded {
    grid-column: 1 / -1;
    cursor: default;
    border-color: var(--accent-primary);
    box-shadow: 0 8px 32px rgba(88, 166, 255, 0.15);
}

.blog-card.expanded:hover {
    transform: none;
}

.blog-card.expanded .blog-content {
    max-width: 700px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.blog-card.expanded .blog-content p,
.blog-card.expanded .blog-content ul {
    font-size: 1rem;
    line-height: 1.7;
}

.blog-card.expanded .read-more {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.blog-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-title-styled {
    color: #9d4edd;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5), 0 0 20px rgba(157, 78, 221, 0.3);
}

.blog-title-styled .bracket {
    color: #4dabf7;
    text-shadow: 0 0 8px rgba(77, 171, 247, 0.6), 0 0 15px rgba(77, 171, 247, 0.4);
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--accent-secondary);
}

.blog-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.blog-content h4 {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.blog-content h4:first-child {
    margin-top: 0;
}

.blog-content p {
    margin-bottom: 0.75rem;
}

.blog-content ul {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-content li {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-links {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .profile-pic {
        width: 240px;
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .section {
        padding: 3rem 0;
    }
}
