/*
Theme Name: Tariq Portfolio
Theme URI: https://theghlexpert.com
Author: Tariq Uttera
Author URI: https://theghlexpert.com
Description: A clean, single-page portfolio theme for CRM Automation Specialists.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tariq-portfolio
*/

:root {
  --bg: #fafafa;
  --bg-dark: #0b1120;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-dark: #1e40af;
  --green: #059669;
  --green-light: #d1fae5;
  --border: #e5e7eb;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 40px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-dark) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 40px 80px;
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  font-size: 17px;
  color: #94a3b8;
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid #334155; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #1e293b;
}

.hero-stat-num { font-size: 32px; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 13px; color: #64748b; margin-top: 2px; }

/* ===== SECTIONS ===== */
.site-section { padding: 80px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(37,99,235,0.08);
  transform: translateY(-4px);
}

.service-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== HOW I WORK ===== */
.how-section { background: var(--bg-dark); color: #fff; overflow: hidden; }
.how-section .section-eyebrow { color: var(--accent); }
.how-section .section-title { color: #fff; }
.how-section .section-desc { color: #94a3b8; }

.how-timeline {
  display: flex;
  gap: 0;
  position: relative;
}

.how-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 0; right: 0;
  height: 2px;
  background: #1e293b;
  z-index: 0;
}

.how-step {
  flex: 1;
  position: relative;
  padding: 0 16px;
  text-align: center;
}

.how-step-dot {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.how-step:hover .how-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.how-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.how-step p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

/* ===== PROJECTS ===== */
.projects-section { background: #f3f4f6; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(37,99,235,0.08);
  transform: translateY(-4px);
}

.project-img {
  width: 100%;
  height: 180px;
  background: #f0f2f5;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

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

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

.project-header { padding: 20px 28px 0; display: flex; align-items: center; gap: 12px; }

.project-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.tag-blue { background: var(--accent-light); color: var(--accent-dark); }
.tag-green { background: var(--green-light); color: var(--green); }
.tag-purple { background: #ede9fe; color: #6d28d9; }
.tag-amber { background: #fef3c7; color: #b45309; }
.tag-teal { background: #ccfbf1; color: #0d9488; }
.tag-rose { background: #ffe4e6; color: #e11d48; }

.project-card h3 { font-size: 18px; font-weight: 600; padding: 14px 28px 8px; }
.project-card > p { font-size: 13px; color: var(--text-light); padding: 0 28px 16px; line-height: 1.7; }

.project-results {
  padding: 0 28px 16px;
  display: flex;
  gap: 24px;
}

.project-result {
  text-align: center;
}

.project-result-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.project-result-label {
  font-size: 10px;
  color: var(--text-light);
}

.project-deliverables { padding: 0 28px 24px; display: flex; flex-wrap: wrap; gap: 6px; }

.deliverable {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f3f4f6;
  color: var(--text-light);
}

/* ===== TOOLS MARQUEE ===== */
.tools-section { background: #fff; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tools-section .section-inner { text-align: center; }
.tools-section .section-desc { margin-left: auto; margin-right: auto; }

.tools-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.tools-label.native { background: var(--accent-light); color: var(--accent-dark); }
.tools-label.thirdparty { background: #fef3c7; color: #b45309; }

.tools-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 16px 0;
}

.tools-marquee-wrapper::before,
.tools-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.tools-marquee-wrapper::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.tools-marquee-wrapper::after { right: 0; background: linear-gradient(to left, #fff, transparent); }

.tools-marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.tools-marquee.reverse { animation-direction: reverse; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tools-marquee:hover { animation-play-state: paused; }

.tool-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tool-pill:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.tool-pill-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.tool-pill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.tool-pill-type {
  font-size: 10px;
  color: var(--text-light);
}

.tools-row-label {
  text-align: center;
  margin-bottom: 4px;
}

.tools-row { margin-bottom: 12px; }

/* ===== EXPERIENCE ===== */
.exp-timeline { display: flex; flex-direction: column; gap: 24px; }

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  gap: 32px;
}

.exp-date { min-width: 160px; font-size: 13px; font-weight: 600; color: var(--accent); }
.exp-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.exp-content .company { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.exp-content p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== SKILLS ===== */
.skills-section { background: var(--bg-dark); color: #fff; }
.skills-section .section-eyebrow { color: var(--accent); }
.skills-section .section-title { color: #fff; }
.skills-section .section-desc { color: #94a3b8; }

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.skill-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.skill-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.skill-item h4 { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.skill-item p { font-size: 11px; color: #64748b; margin-top: 4px; }

/* ===== EDUCATION ===== */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.edu-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.edu-card .institution { font-size: 14px; color: var(--accent); margin-bottom: 4px; }
.edu-card p { font-size: 13px; color: var(--text-light); }

/* ===== CONTACT ===== */
.contact-section { background: #f3f4f6; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.contact-info p { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 24px; }

.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-detail-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.contact-detail-text span { font-size: 13px; color: var(--text-light); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}

.contact-form h3 { font-size: 18px; font-weight: 600; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); background: #fff; }

.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.form-submit:hover { background: var(--accent-dark); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message { margin-top: 16px; padding: 12px; border-radius: 6px; font-size: 13px; display: none; }
.form-message.success { display: block; background: var(--green-light); color: var(--green); border: 1px solid var(--green); }
.form-message.error { display: block; background: #fee2e2; color: #dc2626; border: 1px solid #dc2626; }

/* ===== CTA ===== */
.cta-section { background: var(--accent); color: #fff; text-align: center; }
.cta-section .section-eyebrow { color: rgba(255,255,255,0.7); }
.cta-section .section-title { color: #fff; }
.cta-section .section-desc { color: rgba(255,255,255,0.8); margin-left: auto; margin-right: auto; }
.btn-white { background: #fff; color: var(--accent); font-weight: 600; }
.btn-white:hover { background: #f0f0f0; color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: #64748b;
  text-align: center;
  padding: 32px 40px;
  font-size: 13px;
  border-top: 1px solid #1e293b;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .site-section { padding: 60px 20px; }
  .section-title { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .exp-card { flex-direction: column; gap: 12px; }
  .exp-date { min-width: auto; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .how-timeline { flex-direction: column; gap: 24px; }
  .how-timeline::before { display: none; }
  .project-results { flex-wrap: wrap; }
}
