:root {
    /* Color Palette - Light */
    --bg-main: #f0f2f5;
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --success: #22c55e;
    --shadow-main: 0 8px 32px rgba(0, 0, 0, 0.05);
    --sidebar-width: 280px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme {
    --bg-main: #0f172a;
    --bg-sidebar: rgba(30, 41, 59, 0.7);
    --bg-glass: rgba(30, 41, 59, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --shadow-main: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

/* Background Blobs */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    transition: var(--transition);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -150px;
    left: -100px;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #22c55e;
    top: 40%;
    left: 20%;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 30px;
    z-index: 100;
}

.sidebar-inner {
    height: 100%;
    background: var(--bg-sidebar);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-main);
}

.profile-card {
    text-align: center;
    margin-bottom: 50px;
}

.profile-img-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.sidebar-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--success);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    border: 2px solid white;
}

.sidebar-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-tag {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.side-nav {
    width: 100%;
    flex-grow: 1;
}

.nav-list {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: var(--transition);
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 20px var(--accent-glow);
}

.sidebar-socials {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Main Wrapper */
.main-wrapper {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    padding-top: 100px;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 30px;
    right: 30px;
    left: calc(var(--sidebar-width) + 30px);
    height: 70px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 90;
    box-shadow: var(--shadow-main);
}

.view-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: none;
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--accent);
    color: white;
}

.mobile-only {
    display: none;
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.6s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Card */
.hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 60px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-main);
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-title span {
    color: var(--accent);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px var(--accent-glow);
}

.btn-outline {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    background: rgba(0,0,0,0.1);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-img {
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius-lg);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* About Section */
.section-title-wrap {
    margin: 40px 0 30px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.about-info-card {
    padding: 30px;
    border-radius: var(--radius-lg);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-glass);
}

.info-row:last-child { border: none; }

.info-row .label { color: var(--text-secondary); font-weight: 500; }
.info-row .value { font-weight: 700; color: var(--text-primary); }

.about-bio {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.about-bio h3 { margin-bottom: 20px; font-size: 1.5rem; }

.stat-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.stat-box {
    text-align: center;
    background: rgba(0,0,0,0.03);
    padding: 20px;
    border-radius: var(--radius-md);
}

.stat-box .n { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat-box .l { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; }

.skills-section {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.skill-pill {
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Gallery */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-hover i {
    font-size: 2rem;
    color: white;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-item:hover .gallery-hover i { transform: scale(1); }

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-info-side {
    padding: 50px;
    background: var(--accent);
    color: white;
}

.contact-info-side h3 { font-size: 1.8rem; margin-bottom: 20px; }
.contact-links { list-style: none; margin-top: 30px; }
.contact-links li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }

.contact-form-side {
    padding: 50px;
}

.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(0,0,0,0.03);
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    background: white;
}

/* Footer */
.main-footer {
    margin-top: 60px;
    text-align: center;
    color: var(--text-secondary);
    padding-bottom: 30px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-content img {
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.lightbox-nav:hover { background: var(--accent); }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

/* Responsive */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 250px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        left: -100%;
        transition: var(--transition);
    }
    .sidebar.open {
        left: 0;
        width: 100%;
    }
    .main-wrapper {
        margin-left: 0;
    }
    .top-header {
        left: 30px;
    }
    .mobile-only {
        display: block;
    }
    .hero-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main-wrapper { padding: 15px; padding-top: 100px; }
    .top-header { left: 15px; right: 15px; }
    .hero-title { font-size: 2.4rem; }
    .hero-actions { flex-direction: column; }
    .stat-boxes { grid-template-columns: 1fr; }
    .contact-info-side, .contact-form-side { padding: 30px; }
}
