/* ── Ahmed Mukhtar Portfolio — Stylesheet ── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #0d0d0d;
    --ink-2: #3a3a3a;
    --ink-3: #767676;
    --paper: #faf9f6;
    --paper-2: #f2f0eb;
    --paper-3: #e8e5de;
    --gold: #c9a84c;
    --gold-light: #f0e0a8;
    --gold-dark: #8a6820;
    --teal: #1d7a6e;
    --teal-light: #d4ecea;
    --teal-dark: #0e4a44;
    --card-bg: #ffffff;
    --border: rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.15);
    --radius: 4px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--paper-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
::selection { background: var(--gold-light); color: var(--ink); }

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
    position: fixed; top: 0; left: 0; width: 0%; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    z-index: 1001; transition: width 0.1s linear;
}

/* ── NAV ── */
nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(250,249,246,0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000; height: var(--nav-h);
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 2rem; height: 100%;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.logo span { color: var(--gold-dark); }
.nav-links { display: flex; list-style: none; gap: 0.25rem; }
.nav-links a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    transition: all 0.2s ease;
}
.nav-links a:hover { background: var(--paper-3); color: var(--ink); }

.mobile-menu-btn {
    display: none; flex-direction: column; cursor: pointer;
    background: none; border: none; padding: 8px; gap: 5px;
}
.mobile-menu-btn span {
    width: 22px; height: 1.5px; background: var(--ink);
    transition: 0.3s ease; border-radius: 2px; display: block;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper);
    position: relative; overflow: hidden;
    padding-top: var(--nav-h);
}
.hero-bg-shape {
    position: absolute; top: -10%; right: -5%;
    width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 40% 40%, var(--gold-light) 0%, transparent 70%);
    opacity: 0.45; pointer-events: none;
}
.hero-bg-shape-2 {
    position: absolute; bottom: 0; left: -8%;
    width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 60% 60%, var(--teal-light) 0%, transparent 70%);
    opacity: 0.5; pointer-events: none;
}
.hero-content {
    text-align: center; max-width: 780px;
    padding: 4rem 2rem; z-index: 2; position: relative;
}

.profile-image-container {
    width: 120px; height: 120px; margin: 0 auto 2.5rem;
    position: relative;
}
.profile-image {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; display: block;
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-lg);
    transition: transform 0.3s ease;
}
.profile-image:hover { transform: scale(1.04); }
.profile-ring {
    position: absolute; inset: -8px;
    border: 1.5px dashed var(--gold);
    border-radius: 50%; opacity: 0.5;
    animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-eyebrow {
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1.25rem;
    display: inline-flex; align-items: center; gap: 0.6rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
    content: ''; display: block; width: 24px; height: 1px; background: var(--gold);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1; letter-spacing: -0.02em;
    color: var(--ink); margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--gold-dark); font-style: italic; }
.hero .subtitle {
    font-size: 1rem; color: var(--ink-3);
    font-weight: 300; letter-spacing: 0.02em;
    margin-bottom: 2.5rem;
}
.hero-tags {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    justify-content: center; margin-bottom: 2.5rem;
}
.hero-tag {
    font-size: 0.8rem; font-weight: 400;
    padding: 0.35rem 1rem; border-radius: 100px;
    border: 1px solid var(--border-strong);
    color: var(--ink-2); background: var(--card-bg);
}
.cta-buttons {
    display: flex; gap: 0.75rem;
    justify-content: center; flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
    padding: 0.75rem 1.6rem; border: none;
    border-radius: 100px; text-decoration: none;
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
    transition: all 0.25s ease; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.5rem;
    letter-spacing: 0.01em;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--card-bg); color: var(--ink); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--paper-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ── SECTIONS ── */
.section {
    max-width: 1100px; margin: 0 auto;
    padding: 6rem 2rem;
}
.section-label {
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.section-label::after {
    content: ''; flex: 1; height: 1px;
    background: var(--border-strong); max-width: 48px;
}
.section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1; letter-spacing: -0.02em;
    color: var(--ink); margin-bottom: 3rem;
}
.section h2 em { color: var(--gold-dark); font-style: italic; }

.section-divider {
    max-width: 1100px; margin: 0 auto;
    height: 1px; background: var(--border);
}

/* ── ABOUT ── */
.about-container {
    display: grid; grid-template-columns: 1fr 1.8fr;
    gap: 4rem; align-items: start; margin-bottom: 3rem;
}
.about-image img {
    width: 100%; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
    aspect-ratio: 3/4; object-fit: cover;
}
.about-image img:hover { transform: scale(1.015); }
.about-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem; color: var(--ink);
    margin-bottom: 1.25rem;
}
.about-content p {
    color: var(--ink-2); margin-bottom: 1.25rem;
    line-height: 1.8; font-size: 0.97rem;
}

/* Stats */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1rem; margin-top: 2rem;
}
.stat-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem 1rem;
    text-align: center; transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card h4 {
    font-family: var(--font-display);
    font-size: 2rem; color: var(--gold-dark);
    line-height: 1; margin-bottom: 0.4rem;
}
.stat-card p { font-size: 0.82rem; color: var(--ink-3); font-weight: 400; }

/* Skills */
.skills-bar-section {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2rem; margin-top: 3rem;
    box-shadow: var(--shadow-sm);
}
.skills-bar-section h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; color: var(--ink);
    margin-bottom: 1.5rem; text-align: center;
}
.skills-bar-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }
.skill-pill {
    background: var(--paper-2); border: 1px solid var(--border);
    color: var(--ink-2); padding: 0.45rem 1rem;
    border-radius: 100px; font-size: 0.85rem;
    display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.2s ease; cursor: default;
}
.skill-pill i { color: var(--gold-dark); font-size: 0.9em; }
.skill-pill:hover {
    background: var(--gold-light); border-color: var(--gold);
    color: var(--gold-dark); transform: translateY(-2px);
}

/* ── WHO I AM ── */
.identity-pillars {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; margin-bottom: 2rem;
}
.identity-pillar {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2rem;
    transition: all 0.3s ease; box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
}
.identity-pillar::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.pillar-tech::after { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.pillar-mining::after { background: linear-gradient(90deg, var(--teal), #5dcaa5); }
.identity-pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pillar-icon {
    width: 48px; height: 48px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; font-size: 1.2rem;
}
.pillar-tech .pillar-icon { background: var(--gold-light); color: var(--gold-dark); }
.pillar-mining .pillar-icon { background: var(--teal-light); color: var(--teal-dark); }

.identity-pillar h3 {
    font-family: var(--font-display);
    font-size: 1.35rem; margin-bottom: 1rem; color: var(--ink);
}
.identity-pillar p { color: var(--ink-2); line-height: 1.8; margin-bottom: 1.5rem; font-size: 0.95rem; }
.pillar-stats { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.pillar-stats div { display: flex; flex-direction: column; }
.pillar-stats span { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1; }
.pillar-stats small { font-size: 0.78rem; color: var(--ink-3); margin-top: 0.2rem; }
.pillar-tech-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pillar-tech-tags span {
    background: var(--teal-light); border: 1px solid rgba(29,122,110,0.25);
    color: var(--teal-dark); padding: 0.28rem 0.75rem;
    border-radius: 100px; font-size: 0.78rem;
}
.playstore-btn {
    background: var(--ink); color: var(--paper);
    padding: 0.7rem 1.4rem; border-radius: 100px;
    text-decoration: none; font-weight: 500; font-size: 0.88rem;
    transition: all 0.25s ease; display: inline-flex; align-items: center;
    gap: 0.5rem; border: none; cursor: pointer;
}
.playstore-btn:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.vision-block {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2rem;
    display: flex; align-items: flex-start; gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.vision-icon {
    width: 52px; height: 52px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gold-light), var(--teal-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--gold-dark); flex-shrink: 0;
}
.vision-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; color: var(--ink);
    margin-bottom: 0.6rem;
}
.vision-content p { color: var(--ink-2); line-height: 1.8; font-size: 0.97rem; }

/* ── EXPERIENCE ── */
.experience-grid { display: grid; gap: 1.5rem; }
.experience-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2rem;
    transition: all 0.3s ease; box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
}
.experience-card::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}
.experience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.experience-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem;
}
.job-title {
    font-family: var(--font-display);
    font-size: 1.25rem; color: var(--ink);
}
.company { font-size: 0.95rem; color: var(--ink-3); margin-top: 0.2rem; }
.date {
    font-size: 0.8rem; color: var(--gold-dark);
    background: var(--gold-light); padding: 0.25rem 0.85rem;
    border-radius: 100px; border: 1px solid rgba(201,168,76,0.3);
    white-space: nowrap; font-weight: 500;
}
.project-description { color: var(--ink-2); margin-bottom: 1.25rem; line-height: 1.75; font-size: 0.95rem; }
.project-achievements h4 {
    font-size: 0.85rem; font-weight: 600; color: var(--ink);
    margin-bottom: 0.75rem; letter-spacing: 0.03em;
}
.project-achievements ul { list-style: none; padding: 0; }
.project-achievements li {
    color: var(--ink-2); margin-bottom: 0.5rem;
    padding-left: 1.4rem; position: relative; font-size: 0.93rem;
}
.project-achievements li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-size: 0.85em; }
.responsibilities { list-style: none; }
.responsibilities li {
    padding: 0.4rem 0; color: var(--ink-2);
    position: relative; padding-left: 1.4rem; font-size: 0.93rem;
}
.responsibilities li::before { content: '–'; position: absolute; left: 0; color: var(--ink-3); }

/* ── CERTIFICATIONS ── */
.certifications-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.certification-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2rem;
    text-align: center; transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.certification-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert-icon-wrap {
    width: 64px; height: 64px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; font-size: 1.6rem;
}
.cert-icon-wrap.grad { background: rgba(201,168,76,0.12); color: var(--gold-dark); }
.cert-icon-wrap.android { background: rgba(61,220,132,0.12); color: #1a8a5a; }
.cert-icon-wrap.chart { background: var(--teal-light); color: var(--teal-dark); }
.certification-card h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem; }
.certification-card p { color: var(--ink-3); font-size: 0.88rem; line-height: 1.6; }
.cert-year {
    margin-top: 0.4rem; color: var(--gold-dark);
    font-weight: 500; font-size: 0.85rem;
}
.cert-year.teal { color: var(--teal-dark); }

/* ── CONTACT ── */
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.contact-item {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 1.75rem;
    text-align: center; transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-icon { font-size: 1.6rem; color: var(--gold-dark); margin-bottom: 0.75rem; }
.contact-item h3 {
    font-size: 0.9rem; font-weight: 600; color: var(--ink);
    margin-bottom: 0.4rem; letter-spacing: 0.03em;
}
.contact-item a { color: var(--ink-3); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.contact-item a:hover { color: var(--gold-dark); }

/* ── FOOTER ── */
footer {
    background: var(--ink); color: var(--paper);
    padding: 3rem 2rem 2rem; text-align: center;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--paper);
}
.footer-logo span { color: var(--gold); }
footer p { color: rgba(250,249,246,0.45); font-size: 0.85rem; margin-bottom: 0.3rem; }
.footer-social { display: flex; justify-content: center; gap: 1.25rem; margin-top: 1.5rem; }
.footer-social a {
    color: rgba(250,249,246,0.45); font-size: 1.1rem;
    transition: all 0.2s ease; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid rgba(250,249,246,0.12);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ── SCROLL TOP ── */
.scroll-top-btn {
    position: fixed; bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--ink); color: var(--paper);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 999; border: none; font-size: 1rem;
    box-shadow: var(--shadow-md);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ── LIGHTBOX ── */
.lightbox {
    display: none; position: fixed; z-index: 10000;
    inset: 0; background: rgba(13,13,13,0.92);
    backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
}
.lightbox-content { position: relative; max-width: 860px; width: 90%; }
.lightbox img { width: 100%; border-radius: var(--radius-xl); }
.lightbox-close {
    position: absolute; top: -44px; right: 0;
    color: var(--paper); font-size: 2rem; cursor: pointer;
    transition: color 0.2s; opacity: 0.7;
}
.lightbox-close:hover { color: var(--gold); opacity: 1; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: var(--paper); font-size: 1.5rem; cursor: pointer;
    background: rgba(13,13,13,0.6); border-radius: 50%;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.lightbox-nav:hover { background: var(--gold-dark); }
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }
.lightbox-caption { color: rgba(250,249,246,0.7); padding: 16px; text-align: center; font-size: 0.9rem; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.7s ease forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(250,249,246,0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: center;
        padding: 1.5rem 0; gap: 0.25rem;
    }
    .nav-links.active { display: flex; }
    .about-container { grid-template-columns: 1fr; gap: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .identity-pillars { grid-template-columns: 1fr; }
    .vision-block { flex-direction: column; gap: 1rem; }
    .hero h1 { font-size: 2.4rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .section { padding: 4rem 1.25rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .certifications-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
