/* ═══════════════════════════════════════════
   main.css — Portfolio Styles
   Shahnaz Kulsoom
   ═══════════════════════════════════════════ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --primary:       #0ea5e9;
  --primary-light: #e0f2fe;
  --primary-dark:  #0369a1;
  --accent:        #06b6d4;
  --accent2:       #818cf8;
  --bg:            #f8fafc;
  --bg2:           #ffffff;
  --text:          #0f172a;
  --text2:         #475569;
  --text3:         #94a3b8;
  --border:        #e2e8f0;
  --shadow:        0 4px 24px rgba(14,165,233,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-hover:  0 12px 40px rgba(14,165,233,0.18), 0 2px 8px rgba(0,0,0,0.08);
  --nav-height:    68px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center; padding: 0 2.5rem;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(14,165,233,0.08); }
.nav-inner {
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 1.2rem; color: var(--primary-dark);
  text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text2);
  text-decoration: none; position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-blog-link { color: var(--primary) !important; font-weight: 600 !important; }

/* ── ANIMATIONS ── */
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-height) + 4rem) 2.5rem 5rem;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 40%, #f8fafc 100%);
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -150px; left: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,0.10) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}
.hero-inner { max-width: 1100px; width: 100%; margin: 0 auto; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 16px; font-size: 0.82rem; font-weight: 500; color: var(--primary-dark);
  margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(14,165,233,0.1);
  opacity: 0; animation: slideUp 0.6s 0.1s forwards;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em; color: var(--text);
  margin-bottom: 0.5rem; opacity: 0; animation: slideUp 0.7s 0.2s forwards;
}
.highlight { color: var(--primary); position: relative; }
.highlight::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px; opacity: 0.3;
}
.hero-sub {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem); font-weight: 600; color: var(--text2);
  margin-bottom: 1.5rem; opacity: 0; animation: slideUp 0.7s 0.3s forwards;
}
.hero-desc {
  max-width: 560px; font-size: 1.05rem; color: var(--text2); font-weight: 300;
  margin-bottom: 2.5rem; opacity: 0; animation: slideUp 0.7s 0.4s forwards;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: slideUp 0.7s 0.5s forwards;
}
.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  padding-top: 3rem; border-top: 1px solid var(--border);
  opacity: 0; animation: slideUp 0.7s 0.65s forwards;
}
.stat-num {
  font-family: 'Raleway', sans-serif; font-size: 2rem;
  font-weight: 800; color: var(--primary-dark); line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--text3); margin-top: 2px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  font-weight: 500; font-size: 0.95rem; padding: 12px 28px;
  border-radius: 100px; text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(14,165,233,0.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,0.45); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary-dark);
  font-weight: 500; font-size: 0.95rem; padding: 12px 28px;
  border-radius: 100px; text-decoration: none;
  border: 1.5px solid var(--primary); transition: background 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-white {
  background: #fff; color: var(--primary-dark); font-weight: 600;
  font-size: 0.95rem; padding: 13px 28px; border-radius: 100px;
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-white:hover { opacity: 0.92; transform: translateY(-2px); }

/* ── SECTIONS ── */
.section { padding: 6rem 2.5rem; background: var(--bg2); }
.section--alt { background: var(--bg); }
.section--contact {
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #06b6d4 100%);
  color: #fff;
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem;
}
.section--contact .section-label { color: rgba(255,255,255,0.7); }
.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.03em; color: var(--text); margin-bottom: 1rem;
}
.section--contact .section-title { color: #fff; }
.section-desc { font-size: 1.05rem; color: var(--text2); font-weight: 300; max-width: 520px; margin-bottom: 3rem; }
.section--contact .section-desc { color: rgba(255,255,255,0.8); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; }
.about-card-bg { width: 100%; aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; }
.about-card-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.4s; }
.about-card-bg:hover img { transform: scale(1.04); }
.about-floating {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow);
}
.about-floating-num { font-family: 'Raleway', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.about-floating-label { font-size: 0.8rem; color: var(--text3); }
.about-body { font-size: 0.95rem; color: var(--text2); font-weight: 300; margin-bottom: 1.5rem; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.skill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 0.82rem; font-weight: 500; padding: 6px 14px;
  border-radius: 100px; border: 1px solid rgba(14,165,233,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.skill-tag:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(14,165,233,0.2); }

/* ── EXPERIENCE ── */
.exp-timeline { position: relative; padding-left: 2.5rem; }
.exp-timeline::before {
  content: ''; position: absolute; top: 0; left: 10px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent2), transparent);
}
.exp-item {
  position: relative; margin-bottom: 3rem;
  opacity: 0; transform: translateX(-20px); transition: opacity 0.5s, transform 0.5s;
}
.exp-item.visible { opacity: 1; transform: translateX(0); }
.exp-item::before {
  content: ''; position: absolute; left: -2.05rem; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
}
.exp-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem 2rem; box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}
.exp-card:hover { box-shadow: var(--shadow-hover); transform: translateX(6px); }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
.exp-title { font-family: 'Raleway', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.exp-company { font-size: 0.9rem; font-weight: 500; color: var(--primary); margin-top: 2px; }
.exp-period { font-size: 0.8rem; font-weight: 500; color: var(--text3); background: var(--bg); padding: 4px 12px; border-radius: 100px; border: 1px solid var(--border); white-space: nowrap; }
.exp-desc { font-size: 0.92rem; color: var(--text2); font-weight: 300; line-height: 1.7; }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0; transform: translateY(24px);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent2));
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.project-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.4rem; }
.project-title { font-family: 'Raleway', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.project-desc { font-size: 0.9rem; color: var(--text2); font-weight: 300; line-height: 1.7; margin-bottom: 1.25rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag { font-size: 0.75rem; font-weight: 500; color: var(--primary-dark); background: var(--primary-light); padding: 3px 10px; border-radius: 100px; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px; padding: 1rem 1.25rem; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.contact-item:hover { background: rgba(255,255,255,0.2); transform: translateX(6px); }
.contact-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-label { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { font-size: 0.95rem; font-weight: 500; color: #fff; }
.contact-form {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px; padding: 12px 16px; color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color 0.2s, background 0.2s; resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.18); }
.contact-form textarea { min-height: 110px; }

/* ── FOOTER ── */
footer { text-align: center; padding: 2rem; background: var(--text); color: var(--text3); font-size: 0.85rem; }
footer span { color: var(--primary); }

/* ── SCROLL ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .exp-timeline { padding-left: 1.5rem; }
  .section { padding: 4rem 1.25rem; }
}
