:root {
    /* V10 Theme: Deep Space Blue/Cyan Particles */
    --bg-main: #050b14; /* Deep dark navy blue */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    --accent-1: #0ea5e9; /* Sky Blue */
    --accent-2: #0284c7; 
    
    /* V10 Structured Card Aesthetics */
    --card-bg: #0b1320; /* Very deep navy/slate */
    --card-border: #162238;
    --card-hover: #10192b;
    
    --glass-bg: rgba(11, 19, 32, 0.85); /* Dark solid glass */
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Particles Background Container */
#particles-js {
    position: fixed;
    width: 100vw; height: 100vh;
    top: 0; left: 0; z-index: -1;
    background-color: var(--bg-main);
}

/* Elegant Cursor */
.cursor-dot {
    width: 6px; height: 6px;
    background-color: var(--accent-1);
    box-shadow: 0 0 10px var(--accent-1);
}
.cursor-outline {
    width: 34px; height: 34px;
    border: 1px solid rgba(14, 165, 233, 0.5);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 99999; pointer-events: none;
}
.cursor-outline.hovering {
    width: 50px; height: 50px;
    background-color: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.8); mix-blend-mode: screen;
}

/* Nav */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 25px 0; z-index: 1000;
    transition: all 0.4s ease; border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 15px 0; background: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-content {
    max-width: 1100px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.6rem; font-weight: 800; color: var(--text-white); text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s;}
.nav-links a:hover { color: var(--text-white); }

/* Utilities */
.text-white { color: var(--text-white); font-weight: 600;}
.text-center { text-align: center; }
main { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
section { padding: 80px 0; min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }

/* Section Headers */
.section-header h2 { font-size: 2.8rem; color: var(--text-white); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Components */
.btn-outline-pink {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--accent-1);
    border-radius: 100px;
    color: var(--text-white);
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}
.btn-outline-pink:hover {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

/* ==============================================================
   V10 ABOUT, SKILLS & EXP MEGA GRID
============================================================== */
.profile-mega-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 30px;
}
.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.avatar-wrap {
    width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--accent-1);
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-titles h3 { font-size: 1.5rem; color: var(--text-white); margin-bottom: 5px; }
.location { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.profile-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 25px; }
.profile-actions { display: flex; gap: 15px; }

/* 2-Column Grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.column-title {
    font-size: 1.2rem; margin-bottom: 20px; color: var(--text-white);
    display: flex; align-items: center; gap: 10px;
}

/* Skill Cards */
.modern-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.modern-card:hover { transform: translateY(-3px); border-color: rgba(14, 165, 233, 0.2); }
.skill-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.skill-icon { font-size: 2rem; }
.skill-title-pct { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 5px; }
.skill-title-pct h4 { font-size: 1.1rem; color: var(--text-white); }
.skill-pct-text { font-size: 0.85rem; font-weight: 600; color: var(--accent-1); }
.skill-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; margin-bottom: 15px; }
.skill-bar-fill {
    height: 100%; background: var(--accent-1); border-radius: 10px; width: 0%;
    box-shadow: 0 0 10px var(--accent-1); transition: width 1s ease-out;
}
.skill-desc { font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* Timeline Modern (Right column) */
.timeline-modern-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
}
.timeline-modern-card::before {
    content: ''; position: absolute;
    top: 40px; bottom: 40px; left: 34px; width: 2px;
    background: rgba(14, 165, 233, 0.2);
}
.exp-item { position: relative; padding-left: 30px; margin-bottom: 35px; }
.exp-item:last-child { margin-bottom: 0; }
.exp-dot {
    position: absolute; left: 0px; top: 5px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--card-bg); border: 2px solid var(--accent-1);
    box-shadow: 0 0 8px var(--accent-1); z-index: 2;
}
.exp-item h4 { font-size: 1.1rem; margin-bottom: 3px; }
.exp-company { font-size: 0.9rem; color: var(--accent-1); display: block; font-weight: 500; margin-bottom: 2px; }
.exp-date { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 10px; font-style: italic; }
.exp-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Gallery - Premium Masonry Layout */
.gallery-grid { 
    column-count: 3; 
    column-gap: 25px; 
}
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 600px) { .gallery-grid { column-count: 2; column-gap: 10px; } .gallery-item { margin-bottom: 10px; border-radius: 10px; } }

.gallery-item { 
    break-inside: avoid;
    margin-bottom: 25px; 
    position: relative; 
    overflow: hidden; 
    border-radius: 14px; 
    border: 1px solid var(--glass-border); 
    background: var(--card-bg);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.gallery-item:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.15);
}
.gallery-item img { 
    width: 100%; 
    height: auto; 
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
    filter: brightness(0.8); 
}
.gallery-item:hover img { 
    transform: scale(1.06); 
    filter: brightness(1); 
}
.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(5, 11, 20, 0.95) 0%, rgba(5, 11, 20, 0) 100%);
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: flex-end;
}
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}
.gallery-overlay span {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.admin-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s;}
.admin-link:hover { color: var(--accent-1); text-decoration: underline; }

/* Contact */
.badge-pink {
    margin: 0 auto 20px auto; background: transparent; border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2); border-radius: 100px;
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
    font-size: 0.8rem; font-weight: 600; color: var(--text-white); text-transform: uppercase;
}
.badge-pink::before { content:'';width:6px;height:6px;border-radius:50%; background: var(--accent-1); box-shadow: 0 0 10px var(--accent-1); }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.social-card {
    display: flex; align-items: center; background-color: var(--card-bg);
    border: 1px solid var(--card-border); border-radius: 12px; padding: 20px;
    text-decoration: none; transition: all 0.3s ease;
}
.social-card:hover { background-color: var(--card-hover); border-color: rgba(14, 165, 233, 0.3); transform: translateY(-3px); }
.social-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-right: 20px; color: white; }
.social-info { display: flex; flex-direction: column; align-items: flex-start; }
.social-info h3 { font-size: 1.2rem; color: var(--text-white); margin-bottom: 5px; }
.social-badge { background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.3); color: var(--accent-1); padding: 4px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 500; }
.bg-gray { background: #2f2f35; } 
.bg-gradient-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.bg-blurple { background: #5865F2; }
.bg-red { background: #FF0000; }
.bg-orange { background: #ea4335; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translate(0); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: 1fr; }
    .cursor-dot, .cursor-outline { display: none !important; }
    * { cursor: auto !important; }
}

/* Lightbox Modal */
.lightbox {
    display: none; position: fixed; z-index: 10000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background-color: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.show { display: flex; animation: fadeIn 0.3s; }
.lightbox-content {
    max-width: 90vw; max-height: 85vh; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3); object-fit: contain;
}
#lightbox-caption {
    margin-top: 25px; background: var(--card-bg);
    border: 1px solid var(--glass-border); padding: 12px 30px;
    border-radius: 8px; color: var(--text-white); font-size: 1.05rem; 
    text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); max-width: 80vw;
}
.lightbox-close {
    position: absolute; top: 30px; right: 50px;
    color: var(--text-muted); font-size: 45px; font-weight: 300; cursor: pointer;
    transition: color 0.3s; line-height: 1;
}
.lightbox-close:hover { color: var(--accent-1); text-shadow: 0 0 10px var(--accent-1); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Video play icon overlay */
.gallery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    pointer-events: none;
    transition: transform 0.3s;
}
.gallery-item:hover .gallery-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(139,92,246,0.8);
}

/* Gallery Category Tabs */
.gallery-tabs { justify-content: center; }
.gallery-tab {
    padding: 8px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}
.gallery-tab:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.2); }
.gallery-tab.active {
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(6,182,212,0.2));
    border-color: rgba(139,92,246,0.4);
    color: #a78bfa;
}

/* Mobile Gallery Fixes */
@media (max-width: 768px) {
    .gallery-section .section-header p {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .gallery-tabs {
        gap: 6px;
        flex-wrap: wrap;
    }
    .gallery-tab {
        padding: 6px 14px;
        font-size: 12px;
    }
    .gallery-grid {
        max-height: 70vh;
        overflow-y: auto;
        padding-right: 4px;
    }
    .gallery-grid::-webkit-scrollbar { width: 3px; }
    .gallery-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
    .gallery-item img, .gallery-item video {
        max-height: 200px;
    }
    .gallery-play-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Mobile Lightbox Fix */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 36px;
        background: rgba(0,0,0,0.6);
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        z-index: 10001;
    }
    #lightbox-content video, #lightbox-content img {
        max-width: 95vw !important;
        max-height: 70vh !important;
    }
    #lightbox-caption {
        font-size: 0.85rem;
        padding: 8px 16px;
        max-width: 90vw;
    }
}
