/* ============================================================
   GEORGE WALTERS — PERSONAL PORTFOLIO
   style.css
   
   HOW TO EDIT COLOURS:
   All colours are set in the :root block below.
   Change --accent to any colour you like and the whole site updates.
   ============================================================ */

:root {
  --accent:        #C0392B;   /* Bold red — change this to retheme the site */
  --accent-dark:   #96281B;
  --accent-light:  #F9EBEA;
  --navy:          #1A2332;
  --navy-mid:      #2C3E50;
  --off-white:     #F8F6F3;
  --mid-grey:      #8A8A8A;
  --border:        #E2DDD8;
  --white:         #FFFFFF;
  --text-body:     #2D2D2D;
  --text-muted:    #6B6B6B;

  --font-display:  Tahoma, Geneva, sans-serif;
  --font-body:     Tahoma, Geneva, sans-serif;

  --max-width:     1100px;
  --section-gap:   6rem;
}

/* ── Reset ── */
*, *::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(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utility ── */
.container {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 1.5rem 0 2.5rem;
}

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 35, 50, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 4px;
  border-bottom: none !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

/* Geometric background pattern */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(192,57,43,0.12) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
}

/* Large decorative letter */
#hero::after {
  content: 'GW';
  position: absolute;
  right: -2rem;
  bottom: -4rem;
  font-family: var(--font-display);
  font-size: clamp(12rem, 25vw, 22rem);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 1.5rem;
}
.hero-name em {
  font-style: normal;
  color: var(--accent);
  display: block;
}
.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-tagline strong {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero-photo {
  width: 280px;
  height: 340px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  position: relative;
  z-index: 1;
}
/* Placeholder shown when no photo */
.hero-photo-placeholder {
  width: 280px;
  height: 340px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}
.hero-photo-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}
/* Red offset border behind photo */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  z-index: 0;
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ── About ── */
#about {
  padding: var(--section-gap) 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  color: var(--text-body);
  margin-bottom: 1.2rem;
  font-size: 1.0rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-card {
  background: var(--off-white);
  border-radius: 6px;
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  transition: transform 0.2s;
}
.about-card:hover { transform: translateY(-3px); }
.about-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.about-card-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.about-card-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Skills ── */
#skills {
  padding: var(--section-gap) 0;
  background: var(--navy);
}
#skills .section-title { color: var(--white); }
#skills .divider { background: var(--accent); }
#skills .section-label { color: rgba(255,255,255,0.5); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.skill-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.skill-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.skill-level {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 1rem;
}
.skill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.skill-dot.filled { background: var(--accent); }

/* ── Education ── */
#education {
  padding: var(--section-gap) 0;
  background: var(--off-white);
}
.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.edu-item {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: box-shadow 0.2s;
}
.edu-item:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.edu-institution {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.edu-degree {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.edu-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.edu-modules {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.edu-tag {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
}
.edu-badge {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  height: fit-content;
}

/* ── Projects ── */
#projects {
  padding: var(--section-gap) 0;
  background: var(--white);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.project-header {
  background: var(--navy);
  padding: 2rem;
  position: relative;
}
.project-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  line-height: 1;
}
.project-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.project-body {
  padding: 1.5rem 2rem;
  background: var(--white);
}
.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--off-white);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ── CV Section ── */
#cv {
  padding: var(--section-gap) 0;
  background: var(--off-white);
}
.cv-intro {
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.cv-experience {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cv-item {
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.cv-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.cv-logo {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
}
.cv-role {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
}
.cv-org {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}
.cv-meta {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0.75rem;
}
.cv-bullets {
  list-style: none;
}
.cv-bullets li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.cv-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
}
.cv-download-wrap {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.btn-download:hover { background: var(--navy-mid); }

/* ── Interests ── */
#interests {
  padding: var(--section-gap) 0;
  background: var(--white);
}
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.interest-item {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.interest-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.interest-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.interest-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.interest-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Contact ── */
#contact {
  padding: var(--section-gap) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(192,57,43,0.06);
  pointer-events: none;
}
#contact .section-title { color: var(--white); }
#contact .divider { background: var(--accent); }
#contact .section-label { color: rgba(255,255,255,0.5); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-intro {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}
.contact-link:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.contact-link-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--accent-dark); }

/* ── Footer ── */
footer {
  background: rgba(0,0,0,0.3);
  text-align: center;
  padding: 1.75rem 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  background-color: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .edu-item { grid-template-columns: 1fr; }
  .edu-badge { justify-self: start; }
}

@media (max-width: 700px) {
  :root { --section-gap: 4rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .nav-hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .about-cards { grid-template-columns: 1fr; }
  .cv-item { grid-template-columns: 1fr; }
  .cv-logo { width: 40px; height: 40px; }
}
