/*
Theme Name: Hina Saif – Environmental Scientist & Writer
Theme URI: https://hinasaif.com
Author: Hina Saif
Author URI: https://hinasaif.com
Description: Personal academic and professional portfolio theme for Hina Saif — environmental scientist, researcher, and content writer.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hina-saif
Tags: portfolio, one-page, academic, science, responsive
*/

/* ========================================
   DESIGN TOKENS
======================================== */
:root {
  --teal-dark:   #1B4A5C;
  --teal-mid:    #2A6980;
  --teal-light:  #4A9CB5;
  --sage:        #7A9E7E;
  --sage-light:  #B5CDB7;
  --sand:        #F5EFE6;
  --sand-dark:   #EDE4D6;
  --off-white:   #FAFAF7;
  --charcoal:    #2D2D2D;
  --mid-grey:    #666666;
  --light-grey:  #DADADA;
  --accent:      #C47B3A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1140px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--teal-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: var(--space-sm); color: var(--mid-grey); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-xs);
}

/* ========================================
   LAYOUT UTILITIES
======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section { padding: var(--space-xl) 0; }
.section--alt { background: var(--sand); }
.section--dark { background: var(--teal-dark); color: var(--off-white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--off-white); }
.section--dark p { color: var(--sage-light); }
.section--dark .eyebrow { color: var(--teal-light); }

.section-header {
  margin-bottom: var(--space-lg);
  max-width: 620px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal-dark);
  color: var(--off-white);
  border-color: var(--teal-dark);
}
.btn-primary:hover { background: var(--teal-mid); border-color: var(--teal-mid); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn-outline:hover { background: var(--teal-dark); color: var(--off-white); }

.btn-white {
  background: var(--off-white);
  color: var(--teal-dark);
  border-color: var(--off-white);
}
.btn-white:hover { background: transparent; color: var(--off-white); border-color: var(--off-white); }

/* ========================================
   NAVIGATION
======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-grey);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: 0 2px 20px rgba(27,74,92,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-dark);
}
.site-logo span { color: var(--sage); }

.site-nav ul {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.site-nav a:hover { color: var(--teal-dark); border-bottom-color: var(--teal-light); }
.site-nav .btn { padding: 0.5rem 1.25rem; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--teal-dark);
  transition: all var(--transition);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  padding-top: 140px;
  padding-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 60%, #1e6e5e 100%);
  position: relative;
  overflow: hidden;
}

/* Botanical SVG background motif — the signature element */
.hero-botanical {
  position: absolute;
  right: -60px; top: -40px;
  width: 480px; height: 480px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.hero-content .eyebrow { color: var(--teal-light); }

.hero-title {
  color: var(--off-white);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--sage-light);
  margin-bottom: var(--space-md);
  max-width: 520px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255,255,255,0.12);
  color: var(--off-white);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-ctas { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 120px 120px 80px 80px;
  border: 4px solid rgba(255,255,255,0.22);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  display: block;
}

.hero-photo-placeholder {
  width: 260px; height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--teal-light) 0%, var(--sage) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  gap: var(--space-sm);
}

.hero-stats {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--off-white);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--sage-light);
  letter-spacing: 0.05em;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-aside {
  position: sticky;
  top: 90px;
}

.skills-card {
  background: var(--teal-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  color: var(--off-white);
}

.skills-card h3 { color: var(--off-white); margin-bottom: var(--space-md); }

.skill-item {
  margin-bottom: 1rem;
}
.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--sage-light);
}
.skill-bar {
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--teal-light));
  border-radius: 3px;
  transition: width 1.2s ease;
}

.lang-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-sm); }
.lang-tag {
  padding: 0.35rem 0.8rem;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--sage-light);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ========================================
   TIMELINE (Education & Experience)
======================================== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 2px; bottom: 0;
  background: linear-gradient(to bottom, var(--teal-light), var(--sage-light));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--light-grey);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.4rem; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal-dark);
  border: 3px solid var(--off-white);
  box-shadow: 0 0 0 2px var(--teal-light);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sage);
  background: var(--sand);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.timeline-org {
  font-size: 0.85rem;
  color: var(--teal-mid);
  font-weight: 500;
}

.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.9rem; }

/* ========================================
   PUBLICATIONS
======================================== */
.pub-card {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition);
  border-left: 4px solid var(--teal-light);
}
.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(27,74,92,0.1);
  border-left-color: var(--sage);
}

.pub-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--charcoal); }
.pub-meta { font-size: 0.8rem; color: var(--mid-grey); margin-bottom: 0.75rem; }
.pub-doi {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--teal-mid);
  font-weight: 500;
}
.pub-doi:hover { color: var(--sage); }
.pub-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: var(--sand);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

/* ========================================
   ACHIEVEMENTS
======================================== */
.achievement-list { display: grid; gap: 1rem; }
.achievement-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.achievement-year {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-light);
  min-width: 40px;
  padding-top: 2px;
}
.achievement-text {
  font-size: 0.9rem;
  color: var(--sage-light);
  margin: 0;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info-list { display: grid; gap: var(--space-sm); }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail { font-size: 0.85rem; color: var(--sage-light); }
.contact-detail strong { display: block; color: var(--off-white); margin-bottom: 2px; }

/* Contact Form */
.contact-form { display: grid; gap: 1rem; }
.form-group { display: grid; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--sage-light); letter-spacing: 0.05em; text-transform: uppercase; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-light);
  background: rgba(255,255,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--light-grey);
  text-align: center;
  padding: var(--space-md);
  font-size: 0.85rem;
}
.site-footer a { color: var(--sage-light); }
.site-footer a:hover { color: var(--teal-light); }

/* ========================================
   SCROLL TO TOP
======================================== */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--teal-dark);
  color: var(--off-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(27,74,92,0.3);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--teal-mid); transform: translateY(-3px); }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-nav ul { display: none; flex-direction: column; }
  .site-nav ul.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; background: var(--off-white); padding: var(--space-md); border-bottom: 1px solid var(--light-grey); }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  :root { --space-xl: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
