/*
Theme Name: Asfaran
Theme URI: https://asfaran.com/
Author: Mohamed Asfaran
Author URI: https://asfaran.com/
Description: A responsive, SEO-friendly one-page personal portfolio theme for Mohamed Asfaran. Features smooth scroll animations, contact form, certification badges, portfolio showcase, and full timeline work history.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asfaran
Tags: one-page, portfolio, personal, responsive, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════
   ASFARAN THEME — MAIN STYLESHEET
   ═══════════════════════════════════════ */

/* ───────── VARIABLES ───────── */
:root {
  --ink: #0a0a0f;
  --paper: #f5f3ee;
  --cream: #ede9e0;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --rust: #b84a2e;
  --slate: #2d3a4a;
  --muted: #6b7280;
  --card: #ffffff;
  --border: rgba(201,168,76,0.25);
  --shadow: 0 4px 32px rgba(10,10,15,0.08);
  --radius: 4px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ───────── RESET ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ───────── SCROLLBAR ───────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ───────── WORDPRESS CORE CLASSES ───────── */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute !important;
}
.sticky { /* WP sticky post */ }
.bypostauthor { /* WP author highlight */ }

/* ───────── NAV ───────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(245,243,238,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#site-nav.scrolled { box-shadow: 0 2px 24px rgba(10,10,15,0.1); }
.site-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .875rem; font-weight: 500;
  color: var(--muted); transition: color .2s; letter-spacing: .03em;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--ink) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: .3s; }
#mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%;
  flex-direction: column; gap: 1.25rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--muted); }
#mobile-menu a:hover { color: var(--ink); }

/* ───────── SECTIONS COMMON ───────── */
section { padding: 100px 5%; }
.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 1rem;
}
.section-desc {
  color: var(--muted); font-size: 1.05rem; font-weight: 300;
  max-width: 55ch; line-height: 1.8;
}
.section-header { margin-bottom: 3.5rem; }
.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px; margin: 1rem 0;
}

/* ───────── HERO ───────── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden; gap: 4rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(184,74,46,0.05) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,76,0.12); border: 1px solid var(--border);
  color: var(--gold); font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 99px; margin-bottom: 1.5rem;
  animation: fadeUp .6s both;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  animation: pulse 2s infinite;
}
h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 1.25rem;
  animation: fadeUp .7s .1s both;
}
h1 .accent { color: var(--gold); }
.hero-desc {
  font-size: 1.1rem; color: var(--muted); font-weight: 300;
  max-width: 48ch; margin-bottom: 2rem;
  animation: fadeUp .7s .2s both; line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp .7s .3s both; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  border: none; letter-spacing: .01em;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 4px 20px rgba(201,168,76,0.35); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.4); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid rgba(10,10,15,0.2); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; animation: fadeUp .7s .4s both; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-num span { color: var(--gold); }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: .25rem; }
.hero-visual {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
  animation: fadeIn .9s .2s both;
}
.hero-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem;
  box-shadow: var(--shadow); width: 100%; max-width: 400px; position: relative;
}
.hero-card::before {
  content: '';
  position: absolute; top: -1px; left: 2rem; right: 2rem; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 0 0 4px 4px;
}
.card-avatar {
  width: 250px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--rust));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 800;
  color: white; margin-bottom: 1.25rem;
}
.card-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.card-role { font-size: .85rem; color: var(--gold); font-weight: 500; margin-bottom: 1.5rem; }
.card-detail { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-size: .875rem; color: var(--muted); }
.card-detail svg { flex-shrink: 0; color: var(--gold); }
.card-badge {
  display: inline-block; background: rgba(201,168,76,0.1); border: 1px solid var(--border);
  color: var(--gold); font-size: .7rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; padding: .25rem .7rem; border-radius: 99px; margin-top: .75rem;
}
.availability-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #22c55e; border-radius: 50%; margin-right: .4rem;
  animation: pulse 2s infinite;
}

/* ───────── ABOUT ───────── */
#about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 1.25rem; line-height: 1.9; font-weight: 300; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.highlight-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; transition: box-shadow .2s;
}
.highlight-item:hover { box-shadow: var(--shadow); }
.highlight-icon { font-size: 1.25rem; margin-bottom: .5rem; }
.highlight-text { font-size: .875rem; font-weight: 500; color: var(--slate); }

/* ───────── SKILLS ───────── */
#skills { background: var(--paper); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.skill-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.75rem;
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.skill-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-card:hover::after { transform: scaleX(1); }
.skill-cat {
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.skill-tag {
  font-size: .78rem; background: rgba(201,168,76,0.08);
  border: 1px solid var(--border); color: var(--slate);
  padding: .3rem .75rem; border-radius: 99px; font-weight: 500;
}

/* ───────── EXPERIENCE ───────── */
#experience { background: var(--cream); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item { position: relative; margin-bottom: 3rem; padding-left: 2rem; }
.timeline-dot {
  position: absolute; left: -2.55rem; top: .5rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}
.timeline-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.timeline-date { font-size: .78rem; font-weight: 600; color: var(--gold); letter-spacing: .05em; text-transform: uppercase; }
.timeline-company { font-size: .875rem; color: var(--muted); }
.timeline-role { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; color: var(--ink); }
.timeline-list { list-style: none; }
.timeline-list li {
  font-size: .9rem; color: var(--muted); padding: .35rem 0;
  padding-left: 1.25rem; position: relative; line-height: 1.7;
}
.timeline-list li::before { content: '›'; position: absolute; left: 0; color: var(--gold); font-weight: 700; font-size: 1rem; }

/* ───────── CERTIFICATIONS ───────── */
#certifications { background: var(--paper); }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.cert-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .2s, box-shadow .2s; text-decoration: none;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.cert-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.cert-icon.scrum { background: rgba(184,74,46,0.1); }
.cert-icon.google { background: rgba(66,133,244,0.1); }
.cert-icon.analytics { background: rgba(52,168,83,0.1); }
.cert-icon.linkedin { background: rgba(10,102,194,0.1); }
.cert-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.cert-issuer { font-size: .8rem; color: var(--muted); }
.cert-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--gold); margin-top: auto; }
.cert-link svg { transition: transform .2s; }
.cert-card:hover .cert-link svg { transform: translateX(3px); }

/* ───────── PORTFOLIO ───────── */
#portfolio { background: var(--cream); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.portfolio-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.portfolio-thumb {
  height: 140px; display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem; position: relative;
}
.portfolio-thumb.shopify { background: linear-gradient(135deg, #96bf48, #5a8a14); }
.portfolio-thumb.laravel { background: linear-gradient(135deg, #fb503b, #c0392b); }
.portfolio-thumb.magento { background: linear-gradient(135deg, #f26322, #c44d00); }
.portfolio-thumb.wp { background: linear-gradient(135deg, #21759b, #0a4a6e); }
.portfolio-info { padding: 1.25rem; }
.portfolio-platform { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.portfolio-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.portfolio-link { font-size: .8rem; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: .3rem; }

/* ───────── EDUCATION ───────── */
#education { background: var(--paper); }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.edu-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem; position: relative; overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
}
.edu-year { font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .07em; text-transform: uppercase; margin-bottom: .5rem; }
.edu-degree { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.edu-school { font-size: .9rem; color: var(--muted); }

/* ───────── CONTACT ───────── */
#contact { background: var(--ink); color: var(--paper); }
#contact .section-title { color: var(--paper); }
#contact .section-label { color: var(--gold); }
#contact .section-desc { color: rgba(245,243,238,0.6); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--gold);
}
.contact-item-label { font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); margin-bottom: .25rem; }
.contact-item-value { font-size: .95rem; color: rgba(245,243,238,0.85); }
.contact-item-value a { color: inherit; transition: color .2s; }
.contact-item-value a:hover { color: var(--gold); }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-link {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,243,238,0.6); transition: background .2s, color .2s, transform .2s;
}
.social-link:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-label { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(245,243,238,0.5); }
.form-input, .form-textarea {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: .85rem 1rem; color: var(--paper);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s, background .2s; outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(245,243,238,0.3); }
.form-input:focus, .form-textarea:focus { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit {
  background: var(--gold); color: var(--ink); border: none;
  border-radius: var(--radius); padding: 1rem 2rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
}
.form-submit:hover { background: var(--gold-light); transform: translateY(-1px); }
.form-success {
  display: none;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #86efac; border-radius: var(--radius); padding: 1rem;
  text-align: center; font-size: .9rem;
}
.form-error {
  display: none;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5; border-radius: var(--radius); padding: 1rem;
  text-align: center; font-size: .9rem;
}

/* ───────── FOOTER ───────── */
#colophon {
  background: #050508; color: rgba(245,243,238,0.4);
  text-align: center; padding: 2rem 5%; font-size: .85rem;
}
#colophon a { color: var(--gold); }

/* ───────── ANIMATIONS ───────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.5; transform:scale(1.3); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; padding-top: 100px; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  section { padding: 70px 5%; }
  .about-highlights { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}

/* ═══════════════════════════════════════
   SUPPRESS THIRD-PARTY INJECTED ELEMENTS
   ═══════════════════════════════════════ */

/* WordPress admin bar */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* Astra theme header/footer */
.ast-site-header-wrap,
#ast-fixed-header,
.ast-primary-header-bar,
.site-footer.ast-site-footer { display: none !important; }

/* OceanWP header/footer */
#site-header,
#site-header-inner,
#footer-widgets,
#footer-bottom { display: none !important; }

/* GeneratePress header/footer */
.site-header.grid-container,
.site-footer { display: none !important; }

/* Storefront header/footer */
.storefront-primary-navigation,
.storefront-handheld-footer-bar,
footer.site-footer { display: none !important; }

/* Twenty Twenty / Twenty Twenty-One default header */
.site-header .site-branding,
.site-header nav.main-navigation { display: none !important; }

/* Twenty Twenty-Four block theme header/footer template parts */
header.wp-block-template-part,
footer.wp-block-template-part { display: none !important; }

/* Revolution Slider container */
.rev_slider_wrapper,
.rev_slider,
.tp-banner-container { display: none !important; }

/* Smart Slider 3 */
.n2-ss-slider-wrapper,
.smartslider3 { display: none !important; }

/* LayerSlider */
.ls-container,
.layerslider-wrapper { display: none !important; }

/* Generic full-width slider classes commonly used by themes */
.home-slider,
.main-slider,
.hero-slider,
.slider-section:not(#hero),
.wp-block-cover:not(#hero .wp-block-cover) { display: none !important; }
