/* ========================================
   VARIABLES & RESET
   ======================================== */

/* CSS custom properties for easy theming */
:root {
  --accent: #0366d6;
  --bg: #fff;
  --text: #222;
  --muted: #666;
  --max-width: 1000px;
}

/* Box model reset */
* { 
  box-sizing: border-box; 
}

html, body { 
  margin: 0; 
  padding: 0; 
  height: 100%; 
}

/* ========================================
   TYPOGRAPHY & BODY
   ======================================== */

body {
  font-family: "articulat-cf", sans-serif;
  font-weight: 300;
  font-style: normal;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  padding-top: 60px; /* offset for fixed header */
}

@media (max-width: 768px) {
  body {
    padding-top: 93px;
  }
}

/* Apply display font to all headings */
h1.site-title, h2, h3, h4, h5 {
  font-family: "rl-limo", sans-serif !important;
  font-weight: 400;
}

.about-text h2 {
  font-family: "rl-limo", sans-serif;
  font-weight: 400;
  color: #0e1227; /* or whatever colour you want */
  font-size: 1.8rem; 
  line-height: 1.4;
  margin-top: 1.5rem;
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   HEADER (FIXED NAVIGATION)
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #000526;
}

.site-title {
  display: inline-block;
  margin: 0;
  padding: 1rem 0;
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 500;
}

.site-nav {
  float: right;
  padding-top: 0.9rem;
}

.site-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: #ffcc66;
}


/* ===============================
   SPLIT LOGO INTRO ANIMATION
   =============================== */

   .intro-split {
    height: 60vh;
    width: 100%;
    background: #000526;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
  }
  
  .logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-half {
    width: 270px;
    max-width: 40vw;
    transition: transform 1.2s ease, opacity 1s ease;
    position: relative;
    z-index: 2;
  }
  
  /* Left half starts centred */
  .logo-half.left {
    transform: translateX(0);
  }
  
  /* Right half starts centred */
  .logo-half.right {
    transform: translateX(0);
  }
  
  /* -------------------------------
     HOVER EFFECT
     ------------------------------- */
  .intro-split:hover .logo-half.left {
    transform: translateX(-45vw); /* Move left half off screen */
  }
  
  .intro-split:hover .logo-half.right {
    transform: translateX(45vw); /* Move right half off screen */
  }
  
  /* Reveal text */
  .intro-split:hover .center-text {
    opacity: 1;
    transform: scale(1);
  }
  
  /* ========================================
   REVEAL TEXT IN SPLIT LOGO INTRO
   ======================================== */

.center-text {
  font-family: "rl-limo", sans-serif;
  font-weight: 400;
  font-size: 6rem; /* change to any size you want */
  color: #f3f5fa;

  position: absolute;
  text-align: center;
  max-width: 60vw;
  line-height: 1.3;

  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;

  z-index: 1;
}

@media (max-width: 600px) {
  .center-text {
    font-size: 1.6rem;
  }
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 6px; /* ← controls the space between the logo halves */
  position: relative;
}

.logo-half {
  display: block;
}


/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  height: 33vh;
  display: flex;
  align-items: center;
  background-color: #24283a;
  color: white;
  padding: 0.3rem 0;
  border-bottom: 4px solid #e6e6e6;
}

.hero-inner {
  width: 100%;
  max-width: var(--wrapper-width, 1100px);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
}

.hero .container {
  max-width: none;
  padding: 0 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin: 0.2rem 0;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0.2rem 0;
}

/* ========================================
   FULL-SCREEN INTRO SECTION
   ======================================== */

.intro-section {
  height: 60vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e9fcff;
  position: relative;
  overflow: hidden;
}

.intro-logo {
  width: 400px;
  max-width: 60vw;
  height: auto;
  display: block;
  fill: #ff6666;
  animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
  padding: 4rem 1rem;
  background: #e9fcff;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.about-section p {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
}

/* ========================================
   FULL-WIDTH BANNER
   ======================================== */

.banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   PROJECTS SECTION (BRANDING & ILLUSTRATION)
   ======================================== */

/* Projects section wrapper */
.projects {
  width: 100vw;
  margin: 0;
  padding: 0;
}

#projects {
  padding: 4rem;
}

/* Section title images */
.section-title-img {
  display: block;
  margin: 0 auto 2rem;
  max-width: 300px;
  height: auto;
}

#illustration .section-title-img {
  padding: 4rem 0;
}

/* Grid layout for both branding and illustration projects */
#projects .project-list,
#illustration .project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  justify-items: center;
  width: 100%;
  max-width: 1600px;
}

/* Individual project item */
.project {
  position: relative;
  overflow: hidden;
}

.project-link {
  display: block;
  position: relative;
  text-decoration: none;
}

/* Project images */
.project-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.2s ease;
}

.project-link:hover .project-img {
  filter: brightness(70%);
  transform: scale(1.05);
  opacity: 0.8;
}

/* Hover overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.overlay h4 {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

.project-link:hover .overlay {
  opacity: 1;
}

/* ========================================
   CAROUSEL ANIMATION (FOR WIDE IMAGES)
   ======================================== */

/* Square frame container */
.carousel-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Wide image that pans smoothly */
.carousel-img {
  width: 300%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  animation: smoothPan 20s linear infinite alternate;
}

@keyframes smoothPan {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-66.66%);
  }
}

.project-link:hover .carousel-img {
  animation-play-state: paused;
}

/* ========================================
   PROJECT PAGE LAYOUT
   ======================================== */

.project-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.back-link {
  display: inline-block;
  margin: 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Two-column intro layout */
.project-intro {
  display: flex;
  gap: 5rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  font-size: 1.2rem;
  line-height: 1.6;
}

.intro-block {
  flex: 1;
  min-width: 250px;
}

.intro-block p {
  margin: 0;
  line-height: 1.6;
}

.project-intro .intro-block:last-child {
  font-size: 0.9rem;
  color: #666;
}

/* Project details section */
.project-details h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ========================================
   PROJECT PAGE IMAGES & MEDIA
   ======================================== */

/* Large single images */
.project-img-large,
.project-img-full {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 2rem auto;
  border-radius: 10px;
  height: auto;
  object-fit: contain;
}

.project-img-full {
  max-width: 900px;
  border-radius: 8px;
}

/* Inline images (for side-by-side) */
.project-img-inline,
.project-img-half {
  width: 48%;
  margin: 1%;
  border-radius: 8px;
}

/* Side-by-side image layout */
.side-by-side,
.image-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.side-by-side .project-img-half,
.image-row img {
  width: 48%;
  border-radius: 8px;
  object-fit: cover;
  height: auto;
  display: block;
}

/* Video embeds */
.project-video {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 4px;
}

/* ========================================
   ILLUSTRATION GALLERY
   ======================================== */

.illustration-gallery {
  margin-top: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.gallery-grid img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========================================
   PROCESS SECTIONS (ALTERNATING LAYOUT)
   ======================================== */

.process-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem 0;
}

.process-container.alternate {
  flex-direction: row-reverse;
}

.process-images {
  flex: 1 1 45%;
}

.process-images img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.process-text {
  flex: 1 1 50%;
}

.process-text h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.process-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* ========================================
   SCROLL FADE-IN ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-container.alternate.fade-in {
  transform: translateX(40px);
}

.process-container.alternate.fade-in.visible {
  transform: translateX(0);
}

/* ========================================
   NEXT PROJECT NAVIGATION
   ======================================== */

.next-project {
  display: block;
  text-align: center;
  margin: 3rem auto;
  text-decoration: none;
  font-weight: bold;
  color: #0366d6;
  font-size: 1.1rem;
}

.next-project:hover {
  color: #ffcc66;
}

/* ========================================
   CONTACT MODAL
   ======================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  margin-top: 0;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  width: 100vw;
  background-color: #000526;
  color: white;
  text-align: center;
  padding: 5rem 0 8rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-logo {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

.site-footer p {
  line-height: 1.8;
  margin: 0.5rem 0;
}

.site-footer a {
  color: white;
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: none;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet breakpoint */
@media (max-width: 900px) {
  #projects .project-list,
  #illustration .project-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  /* Stack process containers */
  .process-container {
    flex-direction: column;
  }
  
  /* Disable fancy animations on mobile */
  .fade-in,
  .process-container.alternate.fade-in {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

@media (max-width: 700px) {
  /* Stack project intro columns */
  .project-intro {
    flex-direction: column;
  }
  
  /* Full-width images */
  .image-row img {
    width: 100%;
  }
}

/* Small mobile breakpoint */
@media (max-width: 640px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .site-nav {
    float: none;
    padding-top: 0.2rem;
    margin-top: 0.25rem;
  }
}

@media (max-width: 600px) {
  #projects .project-list,
  #illustration .project-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   PAGE-SPECIFIC STYLES
   ======================================== */

body.home {
  background-color: #fff;
}

/* ===============================
   ABOUT PAGE LAYOUT
   =============================== */

.about-container {
  display: flex;
  align-items: flex-start; /* ← this forces top alignment */
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}


.about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* optional, improves cropping behaviour */
}


.about-text h1 {
  font-family: "rl-limo", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  margin-bottom: 20px;
  color: #0e1227;
}

.about-text p {
  font-family: "articulat-cf", sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #0e1227;
}
@media (max-width: 800px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text {
    text-align: left; /* Keep normal text aligned left */
    max-width: 600px;
  }
}

/* Responsive layout */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;  /* Stack vertically on mobile */
    padding: 40px;
    gap: 30px;
  }
}
.about-heading {
  font-family: "rl-limo", sans-serif;
  font-weight: 400;
  font-size: 6rem;      /* adjust to your preference */
  color: #0e1227;

  text-align: left;     /* change to center if you want */
  line-height: 1.1;
  margin: 0 0 1rem 0;   /* spacing above/below */

  /* REMOVE animation-related styles */
  opacity: 1;
  transform: scale(1);
  position: static;
}
