/* ============================================
   SHERAZ AHMAD - PROFESSIONAL PORTFOLIO
   Dark Luxury Theme with Amber Accents
   ============================================ */

:root {
  /* Colors */
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #18181b;
  --bg-card: rgba(24, 24, 27, 0.6);
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.15);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  
  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Background Effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 800px;
  background: radial-gradient(ellipse at center top, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -1px;
}

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

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-smooth);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--text-primary);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--bg-primary) !important;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

.mobile-toggle.active span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-toggle.active span:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.pulse {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  animation: fadeInUp 0.8s ease-out backwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.typed-text {
  color: var(--accent);
  font-weight: 500;
}

.cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  max-width: 600px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.hero-stats.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-padding) 40px;
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.section-header.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.about-content.revealed {
  opacity: 1;
  transform: translateY(0);
}

.about-text .lead-text {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-text p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-frame {
  position: relative;
  width: 320px;
  height: 400px;
}

.frame-decoration {
  position: absolute;
  inset: -20px;
  border: 2px solid var(--accent);
  border-radius: 24px;
  transform: rotate(3deg);
  opacity: 0.3;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder svg {
  width: 120px;
  height: 120px;
  color: var(--text-muted);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px);
}

.skill-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:nth-child(1) { transition-delay: 0.05s; }
.skill-card:nth-child(2) { transition-delay: 0.1s; }
.skill-card:nth-child(3) { transition-delay: 0.15s; }
.skill-card:nth-child(4) { transition-delay: 0.2s; }
.skill-card:nth-child(5) { transition-delay: 0.25s; }
.skill-card:nth-child(6) { transition-delay: 0.3s; }
.skill-card:nth-child(7) { transition-delay: 0.35s; }
.skill-card:nth-child(8) { transition-delay: 0.4s; }

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -20px var(--accent-glow);
}

.skill-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.skill-card:hover .skill-icon {
  background: var(--accent);
}

.skill-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  transition: var(--transition-fast);
}

.skill-card:hover .skill-icon svg {
  color: var(--bg-primary);
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.skill-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  border-radius: 2px;
  transition: width 1s ease-out;
}

/* ============================================
   WORK SECTION
   ============================================ */
.work-section {
  background: var(--bg-secondary);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px);
}

.project-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
  position: relative;
  overflow: hidden;
}

.project-card.featured .project-image {
  aspect-ratio: unset;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
}

.project-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
}

.project-content {
  padding: 32px;
}

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

.project-tags span {
  padding: 6px 14px;
  background: var(--accent-glow);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.project-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-content > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-features {
  list-style: none;
  margin-bottom: 24px;
}

.project-features li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.project-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

.project-link:hover {
  gap: 12px;
}

.project-link svg {
  transition: var(--transition-fast);
}

.project-link:hover svg {
  transform: translate(3px, -3px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.contact-wrapper.revealed {
  opacity: 1;
  transform: translateY(0);
}

.contact-info .section-header {
  text-align: left;
  margin-bottom: 24px;
}

.contact-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateX(8px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-label span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-label strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  transition: var(--transition-fast);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-group textarea ~ label {
  top: 20px;
  transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -12px;
  left: 16px;
  font-size: 12px;
  color: var(--accent);
  background: var(--bg-card);
  padding: 2px 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -1px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.5);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  color: var(--bg-primary);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .about-image {
    order: -1;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card.featured {
    grid-column: span 1;
    display: block;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }
  
  .navbar {
    padding: 16px 24px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    border-left: 1px solid var(--border);
    transition: var(--transition-smooth);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .hero {
    padding: 120px 24px 60px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 32px;
  }
  
  .section {
    padding: var(--section-padding) 24px;
  }
  
  .image-frame {
    width: 260px;
    height: 320px;
  }
  
  .contact-form {
    padding: 28px;
  }
  
  .footer {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .skill-card {
    padding: 24px;
  }
  
  .project-content {
    padding: 24px;
  }
  
  .project-content h3 {
    font-size: 20px;
  }
}
