:root {
    --bg-color: #08080c;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --accent-glow: #818cf8;
    --accent-secondary: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

html {
    font-size: 16px;
}

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

h1, h2, h3, h4, .logo, .btn {
    font-family: 'Poppins', sans-serif;
}

/* Background Blobs for Glassmorphism glow */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, 50px) scale(1.1); }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.accent {
    color: transparent;
    background: linear-gradient(90deg, var(--accent-glow), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

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

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

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

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

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    color: var(--text-main);
    border-color: var(--accent-glow);
}

.lang-btn.active {
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    color: white;
    border-color: transparent;
}

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

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

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.bio {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

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

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.btn.primary {
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

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

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

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

.img-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* Timeline / Education */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
    left: 0;
    top: 0;
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-secondary);
}

.timeline-content {
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(99, 102, 241, 0.4);
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--accent-glow);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content .date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.skill-category {
    flex: 1 1 320px;
    max-width: 450px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
}

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

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

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

.skill-tags span {
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-glow);
    color: white;
    transform: translateY(-2px);
}

/* Projects */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.project-card {
    flex: 1 1 350px;
    max-width: 600px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--accent-glow);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.tech-stack {
    font-size: 0.95rem;
    color: var(--accent-secondary);
    font-family: monospace;
    margin-bottom: 1.2rem;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
}

.project-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

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

.project-links .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

/* Certificates */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.cert-card {
    flex: 1 1 400px;
    max-width: 600px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--accent-glow);
    font-family: 'Poppins', sans-serif;
}

.cert-content h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.cert-content .date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.cert-content .cert-id {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Contact */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 4rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-list {
    list-style: none;
    margin-bottom: 3rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--accent-secondary);
    font-size: 1.4rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
    border-color: transparent;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-glow);
    background: rgba(255,255,255,0.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5rem;
    background: rgba(8, 8, 12, 0.5);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .bio {
        margin: 1.5rem auto;
    }
    
    h1 {
        font-size: 3.5rem;
    }

    .img-wrapper {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(8, 8, 12, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 0;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-right {
        gap: 1.5rem;
    }
    
    .menu-btn {
        display: block;
    }
    
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-dot {
        left: 12px;
    }
    
    .contact-container {
        padding: 2rem;
    }
}
