/* ============================================
   MEELAD SAMADI PORTFOLIO — STYLE.CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;900&family=Dancing+Script:wght@700&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red:       #c8102e;
  --red-dark:  #8b0000;
  --red-glow:  rgba(200, 16, 46, 0.35);
  --black:     #070709;
  --dark:      #0f0d10;
  --dark2:     #181418;
  --white:     #f5f0ef;
  --grey:      #7a7278;
  --grey-lt:   #b0aab0;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-script:'Dancing Script', cursive;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--red);
  pointer-events: none; transform: translate(-50%,-50%);
  transition: transform 0.12s var(--ease), opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 10000;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); pointer-events: none;
  transform: translate(-50%,-50%);
  transition: transform 0.04s;
}
body:hover .cursor { opacity: 1; }
body .cursor.hovering { transform: translate(-50%,-50%) scale(2.2); background: var(--red-glow); border-color: transparent; }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s, padding 0.4s;
}
#navbar.scrolled {
  background: rgba(7,7,9,0.92);
  backdrop-filter: blur(16px);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(200,16,46,0.15);
}
.logo-mark {
  font-family: var(--font-head); font-size: 1.6rem;
  color: var(--white); letter-spacing: 2px;
  background: var(--red); padding: 4px 10px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--grey-lt);
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--red);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white);
  border: 1.5px solid var(--red); padding: 10px 24px;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--red); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); transition: 0.3s; }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 950;
  background: var(--black); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 24px; text-align: center; }
.mobile-menu a { font-family: var(--font-head); font-size: 3rem; letter-spacing: 4px; color: var(--white); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--red); }
.mobile-close { position: absolute; top: 28px; right: 40px; background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: none; }

/* ── HERO ── */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: saturate(1.3); }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,7,9,0.88) 0%, rgba(80,0,0,0.55) 50%, rgba(7,7,9,0.92) 100%);
}
.hero-noise {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* corner tags */
.hero-tag {
  position: absolute; z-index: 2;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(245,240,239,0.45);
  line-height: 1.7;
}
.hero-tag-tl { top: 90px; left: 40px; }
.hero-tag-tr { top: 90px; right: 40px; text-align: right; }
.hero-tag-bl { bottom: 48px; left: 40px; }
.hero-tag-br { bottom: 48px; right: 40px; font-family: var(--font-head); font-size: 1rem; letter-spacing: 3px; color: rgba(245,240,239,0.6); }

/* main hero content */
.hero-content {
  position: relative; z-index: 2;
  text-align: left; padding: 0 40px;
  max-width: 1200px; width: 100%;
}
.hero-subtitle {
  font-size: 1.1rem; font-weight: 500; letter-spacing: 6px;
  text-transform: uppercase; color: rgba(245,240,239,0.7);
  margin-bottom: 4px; opacity: 0; animation: fadeUp 0.8s 0.3s var(--ease) forwards;
}
.hero-title {
  position: relative; line-height: 0.85;
  margin-bottom: 20px;
}
.hero-title-main {
  display: block; font-family: var(--font-head);
  font-size: clamp(5rem, 14vw, 13rem);
  letter-spacing: -2px; color: var(--white);
  opacity: 0; animation: fadeUp 0.9s 0.5s var(--ease) forwards;
  position: relative; z-index: 2;
  text-shadow: 0 0 80px var(--red-glow);
}
.hero-title-script {
  display: block;
  font-family: 'Dancing Script', 'Scheherazade New', 'Traditional Arabic', cursive;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  color: var(--red); position: absolute;
  bottom: -20px; right: 60px; z-index: 3;
  opacity: 0; animation: fadeIn 1s 1s var(--ease) forwards;
  text-shadow: 0 0 30px rgba(200,16,46,0.6);
  direction: rtl; letter-spacing: 2px;
}
.hero-meta {
  display: flex; gap: 32px; align-items: center;
  opacity: 0; animation: fadeUp 0.8s 0.9s var(--ease) forwards;
}
.hero-role {
  font-size: 0.9rem; font-weight: 300; letter-spacing: 4px;
  text-transform: uppercase; color: var(--grey-lt);
}
.hero-year {
  font-family: var(--font-head); font-size: 1.4rem;
  color: var(--red); letter-spacing: 4px;
}

/* progress bar */
.hero-progress-wrap {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  height: 3px; background: rgba(255,255,255,0.08);
}
.hero-progress-bar {
  height: 100%; background: var(--red); width: 0;
  animation: progressLoad 2.5s 0.5s var(--ease) forwards;
}
@keyframes progressLoad { to { width: 60%; } }

/* scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeIn 1s 1.5s ease forwards;
}
.scroll-arrow {
  display: block; width: 20px; height: 20px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  animation: bounceArrow 1.4s ease infinite;
}
.scroll-label {
  font-size: 0.6rem; letter-spacing: 3px; color: var(--grey); text-transform: uppercase;
}
@keyframes bounceArrow { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} }

/* ── MARQUEE ── */
.marquee-section {
  overflow: hidden; padding: 18px 0;
  background: var(--red); border-top: 1px solid rgba(255,255,255,0.1);
}
.marquee-track {
  display: flex; gap: 40px; align-items: center;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
}
.marquee-dot { color: rgba(255,255,255,0.5) !important; font-size: 0.6rem !important; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── SECTION COMMON ── */
.section-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 1px; line-height: 1; color: var(--white);
  margin-bottom: 32px;
}
.italic-accent { font-family: var(--font-script); font-style: normal; color: var(--red); font-size: 1.15em; }

/* ── ABOUT ── */
.about-section { padding: 120px 0; background: var(--dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: 4px;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s;
}
.about-img-wrap:hover .about-img { filter: grayscale(0%) contrast(1.1); }
.about-img-border {
  position: absolute; inset: -10px; border: 1.5px solid var(--red);
  border-radius: 4px; z-index: -1; opacity: 0.4;
  transition: opacity 0.4s;
}
.about-img-wrap:hover .about-img-border { opacity: 0.9; }
.about-img-tag {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--red); padding: 16px 20px;
  display: flex; flex-direction: column; align-items: center;
}
.about-img-tag-num { font-family: var(--font-head); font-size: 2rem; }
.about-img-tag-label { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; }
.about-bio {
  color: var(--grey-lt); font-size: 1rem; line-height: 1.8;
  margin-bottom: 18px;
}
.about-bio strong { color: var(--white); font-weight: 600; }
.about-stats { display: flex; gap: 40px; margin: 36px 0; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-head); font-size: 3.2rem; color: var(--white);
  line-height: 1;
}
.stat-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; padding: 16px 36px;
  border: none; cursor: none; position: relative; overflow: hidden;
  transition: color 0.3s;
}
.btn-primary {
  background: var(--red); color: var(--white);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-100%); transition: transform 0.35s var(--ease);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-full { width: 100%; justify-content: center; }

/* ── SKILLS ── */
.skills-section { padding: 120px 0; background: var(--black); }
.skills-header { margin-bottom: 60px; }
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.skill-card {
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.06);
  padding: 36px 32px; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0; transform: translateY(30px);
}
.skill-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s; }
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--red);
  transition: height 0.4s var(--ease);
}
.skill-card:hover::before { height: 100%; }
.skill-card:hover { border-color: rgba(200,16,46,0.4); transform: translateY(-4px); }
.skill-icon { font-size: 2rem; margin-bottom: 16px; }
.skill-card h3 { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 10px; }
.skill-card p { font-size: 0.83rem; color: var(--grey-lt); line-height: 1.7; margin-bottom: 20px; }
.skill-bar-wrap { height: 2px; background: rgba(255,255,255,0.08); }
.skill-bar { height: 100%; background: var(--red); width: 0; transition: width 1.2s var(--ease); }

/* ── WORK ── */
.work-section { padding: 120px 0; background: var(--dark); }
.work-header { margin-bottom: 72px; }
.projects-list { display: flex; flex-direction: column; gap: 100px; }
.project-item {
  display: grid; grid-template-columns: auto 1fr 1fr;
  gap: 48px; align-items: center;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.project-item.visible { opacity: 1; transform: translateY(0); }
.project-item-reverse { direction: rtl; }
.project-item-reverse > * { direction: ltr; }
.project-number {
  font-family: var(--font-head); font-size: 5rem;
  color: rgba(200,16,46,0.18); letter-spacing: -2px;
  line-height: 1; user-select: none; min-width: 80px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid rgba(200,16,46,0.5); color: var(--red);
  padding: 4px 12px;
}
.project-title { font-family: var(--font-head); font-size: 2.8rem; letter-spacing: 1px; margin-bottom: 16px; }
.project-desc { font-size: 0.9rem; color: var(--grey-lt); line-height: 1.8; margin-bottom: 24px; }
.project-link {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 2px;
  transition: letter-spacing 0.3s;
}
.project-link:hover { letter-spacing: 5px; }
.project-img-wrap {
  overflow: hidden; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.project-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(200,16,46,0.12);
  opacity: 0; transition: opacity 0.4s;
}
.project-img-wrap:hover::after { opacity: 1; }
.project-img { width: 100%; transition: transform 0.6s var(--ease); }
.project-img-wrap:hover .project-img { transform: scale(1.04); }

/* ── TESTIMONIALS ── */
.testimonials-section { padding: 120px 0; background: var(--black); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card {
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.06);
  padding: 40px 32px; position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover { border-color: rgba(200,16,46,0.4); transform: translateY(-4px); }
.testimonial-quote { font-family: var(--font-head); font-size: 5rem; color: var(--red); opacity: 0.3; line-height: 0.6; margin-bottom: 16px; }
.testimonial-card p { font-size: 0.9rem; color: var(--grey-lt); line-height: 1.9; margin-bottom: 28px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.72rem; color: var(--grey); }

/* ── CONTACT ── */
.contact-section { padding: 120px 0; background: var(--dark); position: relative; overflow: hidden; }
.contact-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(200,16,46,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-title {
  font-family: var(--font-head); font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: 1px; line-height: 0.95; margin-bottom: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-detail {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.88rem; color: var(--grey-lt);
  transition: color 0.3s; border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 18px;
}
.contact-detail:hover { color: var(--white); }
.contact-detail-icon {
  width: 36px; height: 36px; background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.3); display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
  color: var(--red);
}

/* form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); padding: 14px 18px; font-family: var(--font-body);
  font-size: 0.9rem; outline: none; width: 100%;
  transition: border-color 0.3s;
  appearance: none; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--red);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--grey); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark); }
.form-success {
  display: none; background: rgba(200,16,46,0.15); border: 1px solid rgba(200,16,46,0.4);
  color: var(--white); padding: 14px 18px; font-size: 0.85rem; letter-spacing: 1px;
  text-align: center;
}
.form-success.show { display: block; }

/* ── FOOTER ── */
.footer {
  padding: 36px 0; background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-left p { font-size: 0.78rem; color: var(--grey); }
.footer-motto { font-size: 0.78rem; color: var(--grey); letter-spacing: 2px; text-transform: uppercase; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
  color: var(--grey-lt); transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.social-link:hover { border-color: var(--red); color: var(--white); background: rgba(200,16,46,0.1); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-item { grid-template-columns: auto 1fr; }
  .project-img-wrap { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #navbar { padding: 16px 24px; }
  .hero-tag-tl, .hero-tag-tr { display: none; }
  .hero-content { padding: 0 24px; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .project-item { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
}
