:root {
    /* Colors - Light Theme (White & Blue) */
    --bg-dark: #f8fafc; /* Very light blue-gray */
    --bg-surface: rgba(255, 255, 255, 0.75);
    --border-color: rgba(37, 99, 235, 0.15);
    
    --primary: #2563eb; /* Blue */
    --primary-glow: rgba(37, 99, 235, 0.15);
    --secondary: #0ea5e9; /* Light blue */
    --accent: #3b82f6; /* Accent blue */
    
    --text-primary: #0f172a; /* Dark text */
    --text-secondary: #475569; /* Gray text */
    --text-muted: #94a3b8;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --sidebar-width: 80px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Background Glow FX */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    animation: drift 15s infinite alternate ease-in-out;
}
.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    left: -100px;
}
.glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(14, 165, 233, 0.1);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}
.glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.1);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

/* Typography Details */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* Soft light shadow */
}

/* Layout Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - 40px);
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    z-index: 100;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-item {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08); /* Blue tint */
    border-color: rgba(37, 99, 235, 0.15);
}
.nav-item.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Tooltip */
.nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 15px);
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-body);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.nav-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.social-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition-fast);
}
.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: calc(var(--sidebar-width) + 40px);
    padding: 40px;
    position: relative;
}

section {
    min-height: 100vh;
    display: none;
    padding: 20px 0 80px;
    animation: fadeIn var(--transition-smooth);
}
section.active-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-secondary {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary);
}
.mt-5 { margin-top: 50px; }

/* Sections Header */
.section-header {
    margin-bottom: 50px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

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

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981; /* Green for available */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.typing-container {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    min-height: 2.2rem;
}
.cursor {
    animation: blink 1s infinite step-start;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; }

/* Hero Visual & Avatar */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}
.avatar-ring {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary), #60a5fa);
    animation: spin 10s linear infinite;
    z-index: 1;
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 2px));
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Profile Image Class for `<img src="pic.jpeg">` */
.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    position: relative;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}
.profile-img-small {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
    margin: 0 auto 20px;
    display: block;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}
.icon-1 { top: 10%; right: -20px; color: #61DAFB; animation-delay: 0s; }
.icon-2 { bottom: 20%; left: -30px; color: #3DDC84; animation-delay: 2s; }
.icon-3 { bottom: -10px; right: 40px; color: #F24E1E; animation-delay: 4s; }

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

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        "edu text"
        "lang text";
    gap: 24px;
}
.about-card { padding: 30px; }
.about-card:nth-child(1) { grid-area: edu; }
.about-card:nth-child(2) { grid-area: lang; }
.about-text { grid-area: text; padding: 40px; }
.about-text h3 { margin-bottom: 20px; font-size: 1.5rem; color: var(--text-primary); }
.about-text p { margin-bottom: 15px; color: var(--text-secondary); }

.about-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.about-card h3 { margin-bottom: 10px; color: var(--text-primary); }
.lang-list { list-style: none; }
.lang-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.lang-list li:last-child { border: none; padding: 0; margin: 0; }
.badge {
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.skill-card {
    padding: 30px;
    transition: var(--transition-fast);
}
.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}
.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.skill-card h3 { margin-bottom: 10px; color: var(--text-primary); }
.skill-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Timeline Experience */
.timeline {
    position: relative;
    max-width: 800px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(37, 99, 235, 0.2);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: 13px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.timeline-content {
    padding: 30px;
    position: relative;
}
.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.timeline-content h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--text-primary); }
.timeline-content h4 { font-size: 1rem; color: var(--secondary); margin-bottom: 15px; font-weight: 500; }
.timeline-content p, .timeline-content ul { color: var(--text-secondary); font-size: 0.95rem; }
.timeline-content ul { padding-left: 20px; }

/* Projects & Certifications */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}
.project-img-placeholder {
    height: 180px;
    background: rgba(37, 99, 235, 0.05); /* Light blue tint */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 3rem;
    color: rgba(37, 99, 235, 0.4);
}
.project-info {
    padding: 30px;
}
.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 500;
}
.project-info h3 { margin-bottom: 10px; font-size: 1.3rem; color: var(--text-primary); }
.project-info p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.cert-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.cert-icon { font-size: 2.5rem; color: var(--accent); }
.cert-details h4 { font-size: 1rem; color: var(--text-primary); }
.cert-details p { color: var(--text-secondary); font-size: 0.85rem; margin-top: 4px; }

/* Contact Section Form Layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}
.contact-info, .contact-form { 
    padding: 40px; 
}

.contact-info h3 { margin-bottom: 15px; font-size: 1.5rem; color: var(--text-primary); }
.contact-info > p { color: var(--text-secondary); margin-bottom: 30px; }
.info-items { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; align-items: center; gap: 15px; }

.info-icon {
    width: 45px; height: 45px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.info-item h4 { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 2px; }
.info-item p { color: var(--text-primary); font-weight: 500; }

.contact-social {
    display: flex;
    gap: 15px;
}
.social-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition-fast);
}
.social-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border-color: var(--primary);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-size: 0.95rem; color: var(--text-secondary); font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.btn-block { width: 100%; justify-content: center; margin-top: 10px; }

/* Custom Cursor */
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}
.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(37, 99, 235, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero { flex-direction: column !important; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-content { margin-bottom: 50px; }
    .about-grid { grid-template-columns: 1fr; grid-template-areas: "text" "edu" "lang"; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar {
        width: 100%; height: auto; position: fixed; top: auto; bottom: 0; left: 0;
        flex-direction: row; padding: 10px 20px; border-radius: 20px 20px 0 0;
        backdrop-filter: blur(20px); border-bottom: none;
        border-top: 1px solid var(--border-color);
    }
    .main-content { margin-left: 0; padding: 20px; padding-bottom: 100px; }
    .logo, .social-links { display: none; }
    .nav-menu { flex-direction: row; width: 100%; justify-content: space-around; }
    .nav-item::after { display: none; }
    .hero-title { font-size: 2.5rem; }
    .avatar-container { width: 250px; height: 250px; }
    .cursor-dot, .cursor-outline { display: none; } /* Disable custom cursor on mobile */
    .no-form-layout .contact-info { padding: 30px 20px; }
}
