/* GLOBAL */

html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden; /* Prevent mobile clipping */
}

body {
  display: flex;
  flex-direction: column;
  background: #0D1A26;
  color: #E6E8EB;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:root {
  --text-primary: #E6E8EB;
  --text-secondary: #B4B8BE;

  --accent1: #B9856F;
  --accent1-hover: #A67362;
  --accent2: #C48A7A;
  --accent2-dark: #b06f5f;

  --max-content: 800px;

  --space-lg: clamp(60px, 10vw, 120px);
  --space-md: clamp(32px, 6vw, 60px);
  --space-sm: clamp(16px, 3vw, 32px);
}

/* CONTAINER */

.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  box-sizing: border-box; /* Prevent overflow */
}

/* HEADER */

header {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) 20px;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: clamp(0.9rem, 1.6vw, 0.95rem);
  transition: 0.25s ease;
}

nav a:hover {
  color: var(--accent1);
}

/* MAIN */

main {
  flex: 1;
  padding: var(--space-md) 0 var(--space-sm);
}

/* HERO */

.hero {
  padding: clamp(32px, 5vw, 72px) 20px var(--space-md);
  text-align: center;
}

.hero-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent2);
  margin: 0;
}

.hero-role {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 400;
  color: var(--accent2-dark);
  margin: 0.4rem 0 var(--space-sm);
}

.hero-accent {
  width: 100%;
  height: 2px;
  background: var(--accent2);
  opacity: 0.35;
  margin: 0 auto;
}

/* FOCUS SECTION */

.focus {
  padding: var(--space-sm) 20px;
}

.focus-text {
  max-width: var(--max-content);
  margin: 0 auto;
}

.focus-text p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.focus-text a {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(196, 138, 122, 0.35);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.focus-text a:hover {
  color: var(--accent1);
  border-color: rgba(185, 133, 111, 0.5);
}

/* EMAIL LINK */

.email-link {
  color: var(--accent1);
  text-decoration: none;
  font-weight: 600;
}

.email-link:hover {
  color: var(--accent1-hover);
}

/* FOOTER */

footer {
  padding: var(--space-sm) 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 1.6vw, 0.85rem);
  border-top: 1px solid #1F2E3C;
  margin-top: var(--space-md);
}

/* ABOUT PAGE */

.about-image {
  padding: clamp(24px, 4vw, 40px) 20px 0;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.about-summary {
  padding: clamp(24px, 4vw, 40px) 20px var(--space-sm);
  max-width: var(--max-content);
  margin: 0 auto;
  box-sizing: border-box; /* Prevent overflow */
}

.about-heading {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 1rem;
  text-align: left;
}

.about-summary p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.8;
}

/* ABOUT PANEL — HARMONISED TRIPTYCH */

.about-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
  margin-top: var(--space-md);
  background: linear-gradient(90deg, #0b1a2a 0%, #132b44 50%, #0b1a2a 100%);
  padding: 24px 0;
  box-sizing: border-box;
}

.about-panel img {
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Architectural sketches */
.about-panel img:nth-child(1),
.about-panel img:nth-child(3) {
  width: clamp(100px, 14vw, 150px);
  filter: brightness(0.75) saturate(0.75) opacity(0.85);
  box-shadow: 0 0 20px rgba(227, 134, 92, 0.15);
}

/* Portrait photo */
.about-panel img:nth-child(2) {
  width: clamp(120px, 16vw, 180px);
  border-radius: 50%;
  filter: brightness(0.95) saturate(0.95);
  background-color: rgba(227, 134, 92, 0.05);
}


/* PROJECTS PAGE */

.projects-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.projects-heading {
  font-weight: 600;
  color: var(--accent2);
  margin: 0 0 0.4rem;
  text-align: left;
}

.projects-container > .projects-heading {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.projects-block > .projects-heading {
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  margin-bottom: 0.4rem;
}

.projects-text {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  margin: 0.4rem 0 0.8rem;
}

.projects-block {
  margin-top: clamp(20px, 3vw, 32px);
  padding: 0;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  header {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .about-panel {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .about-panel img {
    width: 65%;
    max-width: 200px;
  }
}

@media (max-width: 600px) {
  .mobile-break {
    display: block;
  }
}

@media (max-width: 365px) {
  .hero-name {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

/* CONTACT PAGE */

.contact-container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.contact-heading {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--accent2);
  margin: 0 0 0.8rem;
  text-align: left;
}

.contact-text {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  margin: 0.4rem 0 1rem;
}

.contact-email {
  margin-top: 1rem;
}

