/* --- DARK THEME VARIABLES --- */
:root {
    /* Backgrounds */
    --bg-dark: #0f172a;       /* Deep Slate Blue */
    --bg-card: #1e293b;       /* Lighter Slate */
    --bg-glass: rgba(30, 41, 59, 0.7); /* Dark Glass */
    
    /* Text */
    --text-main: #f8fafc;     /* Off-White */
    --text-muted: #94a3b8;    /* Slate Gray */
    
    /* Accents (Neon/Glow) */
    --primary: #8b5cf6;       /* Violet */
    --primary-glow: #a78bfa;  /* Light Violet */
    --accent: #06b6d4;        /* Cyan */
    --accent-glow: #22d3ee;   /* Light Cyan */
    
    /* Effects */
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    --glow: 0 0 20px rgba(139, 92, 246, 0.4); /* Violet Glow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Animated Background Blobs --- */
.background-anim {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25; /* Subtle in dark mode */
    animation: float 10s infinite alternate;
}

/* Darker blob colors */
.blob-1 { width: 400px; height: 400px; background: #7c3aed; top: -50px; left: -50px; }
.blob-2 { width: 350px; height: 350px; background: #0891b2; bottom: 10%; right: -50px; animation-delay: 2s; }
.blob-3 { width: 300px; height: 300px; background: #ec4899; top: 40%; left: 30%; animation-delay: 4s; }

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

/* --- Utils --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.text-left { text-align: left; }
.mt-2 { margin-top: 25px; }
.full-width { width: 100%; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(to right, var(--primary-glow), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.85); /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--accent-glow); text-shadow: 0 0 10px var(--accent); }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.greeting { font-size: 1.2rem; color: var(--accent); margin-bottom: 10px; font-weight: 600; letter-spacing: 1px; }

.hero-name {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #fff;
    /* Gradient Text */
    background: linear-gradient(45deg, #fff, var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    height: 35px; 
}

/* Buttons */
.cta-buttons { display: flex; gap: 15px; }

.btn {
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6); 
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-glow);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* --- Hero Image (Glowing Border) --- */
.hero-image { flex: 1; display: flex; justify-content: center; }

.img-box {
    width: 350px; height: 350px;
    position: relative;
    border-radius: 50%;
    /* Neon Gradient Border */
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    padding: 4px;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
    animation: floatImage 6s ease-in-out infinite;
}

.img-box img {  
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-card);
    border: 4px solid var(--bg-dark); /* Separation ring */
}

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

/* --- Glass Cards (General) --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.glass-card p { color: var(--text-muted); margin-bottom: 15px; }
.glass-card strong { color: var(--text-main); color: var(--accent-glow); }

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

.skill-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-glass);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.3);
}

.skill-card .icon {
    font-size: 2.5rem;
    background: -webkit-linear-gradient(var(--primary-glow), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.skill-card h3 { color: var(--text-main); margin-bottom: 15px; }

.bar-bg {
    width: 100%; height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary);
}

/* --- Experience & Education --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.timeline-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--accent);
    transition: 0.3s;
}

.timeline-card:hover {
    background: #253045; /* Slightly lighter on hover */
    transform: translateX(5px);
}

.timeline-card h3 { color: var(--text-main); font-size: 1.2rem; }
.timeline-card h4 { color: var(--text-muted); font-size: 1rem; margin-bottom: 10px; }
.timeline-card .desc { color: #94a3b8; font-size: 0.95rem; margin-top: 10px; }
.location { color: var(--primary-glow); font-size: 0.9rem; }

.badge {
    background: rgba(6, 182, 212, 0.15); /* Low opacity cyan */
    color: var(--accent-glow);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

/* --- Languages --- */
.lang-flex { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.lang-pill {
    padding: 10px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-main);
    transition: 0.3s;
}
.lang-pill:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* --- Contact & Form --- */
.contact-links {
    margin: 30px 0;
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 25px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
    display: flex; align-items: center; gap: 10px;
}
.contact-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    color: var(--primary-glow);
}

.simple-form {
    max-width: 500px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 15px;
}

.simple-form input, .simple-form textarea {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}

.simple-form input:focus, .simple-form textarea:focus {
    border-color: var(--primary);
    background: rgba(0,0,0,0.4);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-glass);
    background: #0b1120;
}

/* --- Animations --- */
.hidden-left { opacity: 0; transform: translateX(-50px); transition: 1s; }
.hidden-right { opacity: 0; transform: translateX(50px); transition: 1s; }
.hidden-up { opacity: 0; transform: translateY(50px); transition: 1s; }
.show { opacity: 1; transform: translate(0); }

/* --- Responsive --- */
.hamburger { display: none; cursor: pointer; }
.line { width: 25px; height: 3px; background: var(--text-main); margin: 5px; }

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: absolute;
        right: 0; top: 70px;
        background: rgba(15, 23, 42, 0.98);
        height: 50vh; width: 100%;
        flex-direction: column;
        align-items: center; justify-content: center;
        transform: translateX(100%);
        transition: 0.4s;
        border-bottom: 1px solid var(--border-glass);
    }
    .nav-links.active { transform: translateX(0); }

    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center; gap: 40px;
    }
    .cta-buttons { justify-content: center; }
    .img-box { width: 260px; height: 260px; }
    .hero-name { font-size: 2.8rem; }
    
    .grid-2-col { grid-template-columns: 1fr; }
    .text-left { text-align: center; }
}