/* =====================================================
   MOHANEESH SHARMA PORTFOLIO — site.css
   ===================================================== */

:root {
    --primary:    #2563eb;
    --primary-dk: #1d4ed8;
    --accent:     #f59e0b;
    --dark:       #0f172a;
    --dark2:      #1e293b;
    --light:      #f8fafc;
    --text:       #334155;
    --text-muted: #64748b;
    --card-radius:16px;
    --transition: .3s ease;
}

/* ─── BASE ─────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

/* Scroll offset for fixed nav */
html { scroll-padding-top: 72px; }

/* ─── NAVBAR ───────────────────────────────────────── */
#mainNav {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    transition: background var(--transition);
}

#mainNav .brand-dot {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: 800;
    margin-right: 2px;
}

#mainNav .nav-link {
    color: rgba(255,255,255,.75);
    font-weight: 500;
    font-size: .9rem;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

#mainNav .nav-link:hover {
    color: #fff;
    background: rgba(37,99,235,.3);
}

/* ─── HERO ─────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #1e3a70 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-bg-anim {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(37,99,235,.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245,158,11,.10) 0%, transparent 50%);
    pointer-events: none;
}

.hero-tag {
    font-size: .85rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .05em;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.1;
    color: #fff;
}

.accent-text { color: var(--accent); }

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.6);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-desc {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 540px;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
    border-radius: 10px;
}

.btn-accent:hover {
    background: #d97706;
    border-color: #d97706;
    color: #000;
}

.hero-stats { gap: 2rem !important; }

.stat-box {
    text-align: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 14px 22px;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-box small { color: rgba(255,255,255,.55); font-size: .8rem; }

/* Avatar */
.hero-avatar-wrapper { position: relative; display: inline-block; }

.hero-avatar-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 3px dashed rgba(245,158,11,.4);
    animation: spin 20s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-avatar {
    width: 260px; height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    display: block;
}

/* ─── SECTIONS ─────────────────────────────────────── */
.section-light { background: var(--light); }
.section-dark  { background: var(--dark2); }

.section-header { margin-bottom: 2rem; }

.section-tag {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(37,99,235,.08);
    padding: 4px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: .75rem;
}

.section-tag-light {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(245,158,11,.12);
    padding: 4px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
}

/* ─── EXPERIENCE TIMELINE ──────────────────────────── */
.experience-timeline { padding-left: 1rem; }

.exp-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    position: relative;
}

.exp-item::before {
    content: '';
    position: absolute;
    left: 26px; top: 40px;
    width: 2px;
    height: calc(100% + 1rem);
    background: #e2e8f0;
}

.exp-item:last-child::before { display: none; }

.exp-badge {
    flex-shrink: 0;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}

.exp-badge.current { background: var(--accent); color: #000; }

.exp-content { padding-top: 6px; }
.exp-content strong { font-size: .95rem; }
.exp-content small { color: var(--primary); font-weight: 500; }

/* ─── SKILL CARDS ──────────────────────────────────── */
.skill-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--card-radius);
    padding: 1.8rem;
    color: #fff;
    transition: transform var(--transition), background var(--transition);
    height: 100%;
}

.skill-card:hover {
    background: rgba(255,255,255,.09);
    transform: translateY(-4px);
}

.skill-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(37,99,235,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #93c5fd;
    margin-bottom: 1rem;
}

.skill-card h5 { font-weight: 700; margin-bottom: .8rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.skill-tags span {
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 30px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.12);
}

/* ─── PROJECT CARDS ────────────────────────────────── */
.project-card {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 36px rgba(37,99,235,.15);
}

.project-img-wrap { height: 180px; overflow: hidden; background: #f1f5f9; }

.project-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-card:hover .project-img { transform: scale(1.05); }

.project-img-placeholder {
    height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.project-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }

.project-title { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; color: var(--dark); }

.project-desc { font-size: .875rem; color: var(--text-muted); flex: 1; line-height: 1.6; }

.badge-tag {
    display: inline-block;
    font-size: .72rem;
    padding: 2px 9px;
    border-radius: 30px;
    background: rgba(37,99,235,.08);
    color: var(--primary);
    font-weight: 600;
    margin: 2px;
}

/* ─── CERT CARDS ───────────────────────────────────── */
.cert-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--card-radius);
    padding: 2rem 1.2rem;
    color: #fff;
    transition: transform var(--transition), background var(--transition);
    display: flex; flex-direction: column; align-items: center;
}

.cert-card:hover {
    background: rgba(255,255,255,.11);
    transform: translateY(-5px);
}

.cert-icon-wrap {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(37,99,235,.25);
    display: flex; align-items: center; justify-content: center;
}

.cert-icon { font-size: 2rem; color: var(--accent); }

.cert-img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }

.cert-title { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }

.cert-issuer { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: .3rem; }

.cert-year {
    font-size: .75rem;
    background: rgba(245,158,11,.2);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 600;
}

/* ─── CONTACT ──────────────────────────────────────── */
.contact-form .form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: border-color var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.contact-info { padding: 2rem; background: var(--dark2); border-radius: var(--card-radius); color: #fff; }

.contact-item {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.2rem;
    color: rgba(255,255,255,.75);
}

.contact-item i { color: var(--accent); width: 20px; text-align: center; }
.contact-item a { color: inherit; text-decoration: none; }
.contact-item a:hover { color: #fff; }

/* ─── FOOTER ───────────────────────────────────────── */
.footer-section { background: var(--dark); }

.social-links a {
    color: rgba(255,255,255,.5);
    font-size: 1.2rem;
    margin: 0 8px;
    transition: color var(--transition);
}

.social-links a:hover { color: var(--accent); }

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
    .hero-avatar { width: 200px; height: 200px; }
    .hero-avatar-ring { inset: -8px; }
    .stat-box { padding: 10px 16px; }
}
