/* --- Variables & MindMarket Theme --- */
:root {
    --bg-color: #fafafa;
    --text-main: #111111;
    --text-muted: #666666;
    --lime-accent: #c4f934; 
    --yellow-accent: #ffdd00;
    --card-bg: #ffffff;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-pill: 100px;
    --shadow: 0 8px 30px rgba(0,0,0,0.06);
}

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

/* --- Background Accent --- */
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    line-height: 1.5; 
    overflow-x: hidden; 
    /* Soft accent gradient background */
    background: radial-gradient(circle at 10% 20%, rgba(196, 249, 52, 0.15) 0%, rgba(250, 250, 250, 0) 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 221, 0, 0.1) 0%, rgba(250, 250, 250, 0) 40%),
                #fafafa;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Container --- */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* --- Floating Navbar --- */
.nav-container { position: fixed; top: 20px; width: 100%; display: flex; justify-content: center; z-index: 1000; }
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.5px; }
.dot { color: var(--lime-accent); font-size: 2rem; line-height: 0; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: #888; }
.hamburger { display: none; cursor: pointer; }

/* --- Hero Section --- */
.hero { min-height: 90vh; display: flex; align-items: center; padding-top: 80px; }
.hero-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 50px; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-text .highlight { color: #888; }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); max-width: 90%; margin-bottom: 32px; }

/* Welcome Badge */
.welcome-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; padding: 8px 16px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 600; margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    animation: fadeUp 0.8s ease-out;
}
.status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; }

/* Buttons */
.hero-btns { display: flex; gap: 16px; }
.btn { padding: 14px 28px; border-radius: var(--radius-pill); font-weight: 600; transition: transform 0.2s; }
.btn-primary { background: var(--text-main); color: white; }
.btn-outline { background: white; border: 1px solid #ddd; }
.btn:hover { transform: scale(1.05); }

/* --- Hero Visual (Photo Remapping) --- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.profile-img { 
    width: 350px; 
    height: 400px; 
    object-fit: cover; 
    /* THE REMAPPING MAGIC: Fluid Blob Shape */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 0 20px 40px rgba(196, 249, 52, 0.3); /* Lime glow shadow */
    transition: 0.5s ease-in-out;
    border: 4px solid white;
}

.profile-img:hover { 
    border-radius: 50%; 
    transform: scale(1.02);
}

/* --- Bento Grid (About) --- */
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }

.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}
.bento-card {
    background: var(--card-bg); padding: 30px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); transition: transform 0.3s;
}
.bento-card:hover { transform: translateY(-5px); }
.bio-card { grid-column: span 1; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.tags { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.tags span { background: #f4f4f5; padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }
.stat-card { text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 180px; }
.stat-card h3 { font-size: 3rem; font-weight: 800; }
.green-bg { background: var(--lime-accent); }
.yellow-bg { background: var(--yellow-accent); }
.text-card { grid-column: span 2; display: flex; align-items: center; gap: 15px; font-size: 1.1rem; font-weight: 500; }

/* --- Timeline --- */
.timeline { border-left: 2px solid #ddd; margin-left: 10px; padding-left: 30px; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
    content: ''; position: absolute; left: -36px; top: 5px;
    width: 10px; height: 10px; background: var(--text-main); border-radius: 50%;
}
.timeline-item .year { font-weight: 700; color: #555; font-size: 0.9rem; background: var(--lime-accent); display: inline-block; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;}

/* --- Stacked Cards (Projects) --- */
.stack-container { position: relative; }
.stack-card {
    position: sticky; top: 120px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
    transform-origin: top center;
    transition: transform 0.3s ease;
}

.card-1 { background: #fff; }
.card-2 { background: #fdfdfd; }
.card-3 { background: #fafafa; }

.tech-stack span {
    display: inline-block; background: #eee; padding: 4px 10px; 
    border-radius: 20px; font-size: 0.8rem; margin-right: 5px; margin-top: 10px;
}
.card-image img { width: 100%; border-radius: var(--radius-md); }

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); transition: 0.4s; cursor: pointer; }
.gallery-item img:hover { transform: scale(0.98); opacity: 0.9; }
.big { grid-row: span 2; }

/* --- Contact & Footer --- */
.contact-section { background: var(--text-main); color: white; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: 40px; }
.contact-section h2 { font-size: 3rem; margin-bottom: 10px; color: white; }
.social-links { display: flex; justify-content: center; gap: 20px; margin: 40px 0; flex-wrap: wrap;}
.social-links a { background: rgba(255,255,255,0.1); padding: 15px 30px; border-radius: 50px; transition: 0.3s; }
.social-links a:hover { background: var(--lime-accent); color: black; }
.social-links i { margin-right: 5px; }

/* --- Lightbox --- */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; justify-content: center; align-items: center; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 10px; }
.close-lightbox { position: absolute; top: 30px; right: 30px; color: white; font-size: 3rem; cursor: pointer; }

/* --- Animations & Mobile --- */
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-btns { justify-content: center; }
    .profile-img { width: 280px; height: 280px; margin-top: 30px; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .bio-card, .text-card { grid-column: span 1; }
    .stack-card { grid-template-columns: 1fr; top: 90px; padding: 20px; }
    .navbar { padding: 10px 20px; width: 90%; justify-content: space-between; }
    .nav-links { position: absolute; top: 60px; left: 0; width: 100%; background: white; flex-direction: column; padding: 20px; border-radius: 20px; display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
}

