/* ═══════════════════════════════════════════
   TAREK SHARBO PORTFOLIO — styles.css
   Theme: High-Tech Dark Mode (Board / Cyber)
═══════════════════════════════════════════ */

:root {
  /* Colors */
  --bg-main: #0B0C10;
  --bg-card: #13151A;
  --bg-nav: rgba(11, 12, 16, 0.85);

  --accent-primary: #00FFD1;  /* Neon Cyan */
  --accent-hover: #00D1AB;
  --accent-muted: rgba(0, 255, 209, 0.15);

  --text-main: #E0E2E8;
  --text-muted: #8A8F98;
  --text-dark: #0B0C10;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* Geometry & Effects */
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
  --border-accent: 1px solid rgba(0, 255, 209, 0.2);
}

/* ── Reset & Base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("bg-image.jpg");
  background-size: cover;
  background-position: center center;
  opacity: 0.15;
  filter: grayscale(100%);
  z-index: -2;
  pointer-events: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #FFF;
  line-height: 1.2;
}

.section {
  padding: 100px 0;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography & Headers ── */
.section-header {
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-primary);
  border-radius: 2px;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition);
  padding: 24px 0;
}

.navbar.scrolled {
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 209, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 209, 0); }
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

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

.nav-cta {
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary) !important;
  padding: 8px 20px;
  border-radius: 4px;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.greeting {
  font-family: var(--font-display);
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: #FFF;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 30px;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 40px;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--text-dark);
  font-weight: 600;
  font-family: var(--font-display);
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid var(--accent-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-muted);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFF;
  font-weight: 500;
  padding: 16px 24px;
  transition: var(--transition);
}

.btn-secondary:hover {
  color: var(--accent-primary);
}

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-box {
  background-color: var(--bg-card);
  border: var(--border-subtle);
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background-color: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-box:hover::before {
  transform: scaleX(1);
}

.stat-box h3 {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 10px;
  font-weight: 700;
}

/* ── Experience Timeline ── */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 0 2px rgba(0, 255, 209, 0.2);
}

.timeline-content {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 10px;
  display: inline-block;
}

.timeline-header {
  margin-bottom: 20px;
}

.timeline-header h3 {
  font-size: 1.4rem;
  color: #FFF;
  margin-bottom: 5px;
}

.timeline-header h4 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.timeline-list {
  padding-left: 20px;
  color: var(--text-muted);
}

.timeline-list li {
  margin-bottom: 8px;
  position: relative;
  list-style-type: none;
}

.timeline-list li::before {
  content: '▹';
  position: absolute;
  left: -20px;
  color: var(--accent-primary);
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.project-card {
  background-color: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}

.project-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(19, 21, 26, 0.9));
}

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

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

.project-info {
  padding: 30px;
  position: relative;
  margin-top: -40px;
  z-index: 2;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: rgba(0, 255, 209, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── Skills & Capabilities ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background-color: var(--bg-card);
  border: var(--border-subtle);
  padding: 30px;
  border-radius: var(--radius-lg);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.skill-tags span:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.glow-tag {
  border-color: rgba(0, 255, 209, 0.3) !important;
  color: var(--accent-primary) !important;
}

/* ── Education ── */
.edu-card {
  background-color: var(--bg-card);
  border: var(--border-subtle);
  padding: 40px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent-primary);
}

.edu-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-top h3 {
  font-size: 1.4rem;
}

.edu-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-primary);
  background-color: var(--accent-muted);
  padding: 4px 12px;
  border-radius: 20px;
}

.edu-card h4 {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 5px;
}

.edu-grade {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.edu-proj, .edu-courses {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.edu-proj strong, .edu-courses strong {
  display: block;
  color: #FFF;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.edu-proj p, .edu-courses p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Footer ── */
.footer {
  background-color: var(--bg-card);
  border-top: var(--border-subtle);
  padding: 60px 0 40px;
  margin-top: 100px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand .logo {
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 350px;
}

.footer-links {
  text-align: right;
}

.socials {
  margin-bottom: 20px;
}

.socials a {
  color: var(--text-muted);
  display: inline-block;
  padding: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
}

.socials a:hover {
  color: var(--accent-primary);
  transform: translateY(-3px);
  background-color: var(--accent-muted);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Animations ── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.offset-delay {
  transition-delay: 0.2s;
}

.offset-delay-2 {
  transition-delay: 0.4s;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-content {
    margin-top: 40px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    border-left: var(--border-subtle);
  }

  .nav-links.open {
    right: 0;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .hamburger {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }
}
