:root {
    /* Color Palette */
    --bg-main: #0a0a0f;
    --bg-secondary: rgba(20, 20, 30, 0.6);
    --text-main: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #ec4899; /* Pink */
    --accent-glow: rgba(99, 102, 241, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    
    /* Typography */
    --font-sans: 'Space Grotesk', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(10, 10, 15, 0) 0%, var(--bg-main) 100%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--text-main), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Sections */
.section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    padding-top: 150px;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.profile-img-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
    z-index: 2;
    flex-shrink: 0;
    margin-right: 2rem;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.greeting {
    color: var(--accent-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.name {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.2;
}

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

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

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

.hero-desc {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-primary), #818cf8);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.7);
}

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

.secondary-btn:hover {
    background: var(--glass-bg);
    border-color: var(--accent-primary);
}

/* Background Glowing Orbs */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.orb1 {
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
}

.orb2 {
    bottom: 10%;
    right: 30%;
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 30px); }
}

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

.glass-panel:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* About Section */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text .mt-2 {
    margin-top: 2rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.education-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
}

.education-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.education-card .institution {
    color: var(--text-secondary);
    font-weight: 600;
}

.education-card .duration {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    padding: 2rem;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #fff;
}

.skill-category h3 i {
    color: var(--accent-primary);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.skill-category:hover .skill-list li {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
}

/* Projects Section */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-year {
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

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

.project-tech span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--accent-secondary);
    background: rgba(236, 72, 153, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.project-details {
    color: var(--text-secondary);
    list-style: none;
}

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

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

/* Achievements Section */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievements-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.5;
}

.achievements-list li i {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Contact Section */
#contact {
    text-align: center;
    max-width: 800px;
    margin-bottom: 50px;
}

#contact .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.contact-item i {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

a.contact-item:hover {
    color: var(--accent-primary);
}

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

.social-links a {
    color: var(--text-secondary);
    font-size: 2rem;
    transition: all 0.3s ease;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }

    .section {
        padding: 80px 1.5rem;
    }

    #hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
    }

    .profile-img-container {
        margin: 0 auto 2rem;
        width: 250px;
        height: 250px;
    }

    .name {
        font-size: 2.5rem;
    }

    .role {
        font-size: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }
    
    .orb1 {
        width: 200px;
        height: 200px;
    }
    
    .orb2 {
        width: 250px;
        height: 250px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}
