:root {
    --bg-main: #0a0a0f;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    --accent-primary: #ff8c00;
    --accent-secondary: #ff4500;
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --gold: #ffd700;
    --bronze: #cd7f32;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

/* Background effects */
.blob-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,69,0,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(60px);
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-bg-2 {
    top: auto;
    bottom: -10%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, rgba(255,140,0,0.1) 0%, rgba(0,0,0,0) 70%);
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 5%) scale(1.1); }
}

/* Typography styles */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(255, 140, 0, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-nav {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

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

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-image {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.glow-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    z-index: 1;
    filter: blur(20px);
    opacity: 0.6;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.95); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.typing-container {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
    min-height: 2rem;
    margin-bottom: 1.5rem;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-main);
    border-left: 3px solid var(--accent-secondary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.location-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.location-badge i {
    color: #ff4757;
    margin-right: 0.5rem;
}

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

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
}

.section-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.flex-column:hover {
    transform: none;
}

.role-card {
    display: flex;
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.role-card:hover {
    transform: translateX(10px);
}

.role-icon {
    font-size: 1.8rem;
    color: var(--accent-secondary);
    background: rgba(255, 69, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-details h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    font-family: 'Inter', sans-serif;
}

.role-details p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.role-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Projects Section Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.small-project-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.project-header h3 {
    font-size: 1.2rem;
    word-break: break-word;
}

.project-header a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-header a:hover {
    color: var(--accent-primary);
}

.project-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.small-project-card .project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.project-footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.lang-dot.cpp {
    background-color: #f34b7d;
}

/* Featured Project */
.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tag-thesis { background: rgba(255, 140, 0, 0.1); color: var(--accent-primary); border: 1px solid rgba(255, 140, 0, 0.2); }
.tag-env { background: rgba(255, 69, 0, 0.1); color: #ff6a33; border: 1px solid rgba(255, 69, 0, 0.2); }
.tag-iot { background: rgba(255, 215, 0, 0.1); color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.2); }

.project-desc {
    font-size: 1.1rem;
    color: #d0d0e0;
    margin: 1.5rem 0;
}

.tech-stack {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tech {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.achievements-list h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.achievements-list ul {
    list-style: none;
}

.achievements-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.achievements-list i {
    color: var(--accent-primary);
    margin-top: 0.3rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.action-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.award-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.award-icon.gold { background: rgba(255, 215, 0, 0.1); color: var(--gold); }
.award-icon.bronze { background: rgba(205, 127, 50, 0.1); color: var(--bronze); }

.text-gold { color: var(--gold); margin-bottom: 1rem; }
.text-bronze { color: var(--bronze); margin-bottom: 1rem; }

.award-details {
    list-style: none;
    color: var(--text-muted);
}

.award-details li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.award-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Teaching Section */
.teaching-list {
    list-style: none;
    margin: 1.5rem 0;
}

.teaching-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--accent-secondary);
}

.teaching-list i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-top: 0.2rem;
}

.teaching-quote {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.teaching-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 0.5rem;
}

.teaching-quote span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.glass-footer {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content .brand {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-content .brand span {
    color: var(--accent-primary);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-grid, .awards-grid {
        grid-template-columns: 1fr;
    }
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s ease;
}

.hamburger:hover {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.5rem; }
    
    .hamburger { display: block; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        border-top: 1px solid var(--glass-border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Scroll Animations Utils */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
