:root {
  /* COLOR PALETTE */
  --dark: #181725;
  --light: #ECECEC;
  --accent: #11E497;
  --black: #000000;
  --white: #ffffff;
}

/* GLOBAL BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Karla', sans-serif;
}

body {
  line-height: 1.6;
  background: var(--light);
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  text-align: left;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.5rem; }

/* CONTAINERS */
section {
  padding: 80px 20px;
  background: var(--light);
  color: var(--dark);
}

section.invert {
  background: var(--dark);
  color: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* HERO SECTION */
#hero {
  background: none; /* keep your background image or gradient */
  color: var(--light);
  position: relative;
  width: 100%;
  height: 100vh; /* full viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 0; /* remove any global padding */
}


/* Hero Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: url('assets/hero-texture.webp') no-repeat center center;
  background-size: cover;
  z-index: 0;
  will-change: transform;
  transform: translateY(0);
}


/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding: 0 40px; /* consistent horizontal padding */
  min-width: 320px; /* prevents extreme shrinking on narrow screens */
  box-sizing: border-box;
}

/* Hero Logo */
.hero-logo {
  max-width: 350px;
  width: 100%;
  height: auto;
}

/* HERO HEADINGS */
#hero h1,
#hero h2 {
  white-space: nowrap;       /* keep text on one line */
  overflow: hidden;          /* hide overflow if too wide */
  text-overflow: ellipsis;   /* optional, shows "..." if extremely narrow */
}

/* Name */
#hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 8vw, 5rem); /* scales between 1.5rem and 5rem */
  letter-spacing: 2px;
  line-height: 1.1;
}

/* Title */
#hero h2 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(1rem, 5vw, 3rem);  /* scales between 1rem and 3rem */
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -10px;
}


/* Scroll Down Arrow */
.scroll-down-wrapper {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-down {
  position: relative;
  font-size: 2rem; 
  color: var(--accent);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.1s ease-out; /* smooth rotation */
}


/* Circle around arrow */
.scroll-down::before {
  content: '';
  position: absolute;
  top: 50%;       
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 2px solid rgba(17, 228, 151, 0.8);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  transition: background 0.3s ease;
}

.scroll-down:hover::before {
  background: rgba(255, 255, 255, 0.2);
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #hero h1 { font-size: 4rem; }
  #hero h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  #hero {
    height: auto; /* let content define height on smaller screens */
    padding: 80px 20px; /* maintain vertical spacing */
  }
  #hero h1 { font-size: 3rem; }
  #hero h2 { font-size: 2rem; }
  .hero-logo { max-width: 250px; }
  .scroll-down { font-size: 1.5rem; }
  .scroll-down::before { width: 40px; height: 40px; }
  .scroll-down-wrapper { bottom: 20px; }
}

@media (max-width: 480px) {
  #hero h1 { font-size: 2rem; }
  #hero h2 { font-size: 1.5rem; }
  .hero-logo { max-width: 200px; }
  .scroll-down { font-size: 1.2rem; }
  .scroll-down::before { width: 35px; height: 35px; }
  .scroll-down-wrapper { bottom: 15px; }
}


/* ABOUT SECTION */
#about {
  background: var(--light);
  color: var(--dark);
  height: 45vh;           /* full viewport height */
  display: flex;
  padding: 0;
  margin: 0;
}

.about-flex {
  display: flex;
  flex: 1;
  height: 100%;
}

.about-text {
  flex: 1;                /* take exactly 50% */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px;          /* keep text padding */
}

.about-image {
  flex: 1.25;
  padding: 0;
  overflow: hidden;
  perspective: 1000px; /* optional, gives a subtle depth effect */
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease, filter 0.5s ease; /* transform for parallax, filter for B&W */
  filter: grayscale(100%);
}

.about-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.05); /* zoom on hover */
}



/* STACK TEXT ABOVE IMAGE ON MOBILE/TABLET */
@media (max-width: 1024px) {
  #about {
    height: auto;         /* section grows with content */
    padding-bottom: 0;    /* remove extra spacing */
  }

  .about-flex {
    flex-direction: column; /* stack vertically */
  }
  
  .about-text {
    width: 100%;
    padding: 40px 20px;   /* smaller padding for text */
  }
  
  .about-image {
    width: 100%;
    height: auto;          /* image scales naturally */
    margin-top: 0;         /* remove extra top margin */
  }
  
  .about-image img {
    width: 100%;
    height: auto;          /* keep proportions */
    display: block;
  }
}



/* DEMO REEL SECTION */
#work { 
  background: var(--dark);
  color: var(--light);
  padding: 80px 20px;
}

#work h2 { 
  margin-bottom: 40px; 
  text-align: left;
}

/* Video wrapper with fixed aspect ratio using padding */
.video-wrapper { 
  position: relative; 
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);

  /* make wrapper maintain 16:9 ratio */
  height: 0;
  padding-bottom: 56.25%;
}

/* iframe fills wrapper */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* Hover effect */
.video-wrapper:hover {
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

/* RESPONSIVE */
@media(max-width:768px){
  #work { padding: 60px 15px; }
}

@media(max-width:480px){
  #work h2 { font-size: 1.8rem; }
}


/* FEATURED WORK */
#featured {
  background: var(--light);
  color: var(--dark);
  padding: 80px 20px; /* default padding for all screens */
}

#featured h2 {
  margin-bottom: 40px;
  text-align: left;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Individual video items */
.video-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.video-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.video-item:hover img {
  transform: scale(1.05);
}

/* Overlay on hover */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 23, 37, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.overlay span {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.video-item:hover .overlay {
  opacity: 1;
}

/* MOBILE / TABLET */
@media (max-width: 768px) {
  #featured {
    padding: 60px 20px; /* add side padding for mobile */
  }

  .video-grid {
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}


  .video-item {
    width: 100%;
    margin: 0 auto;
  }
}


/* CLIENTS */
#clients {
  background-color: #181725; /* dark background */
  color: #ECECEC;            /* light text */
  padding: 80px 20px;
  text-align: left;
}

.clients-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.clients-header p {
  font-family: 'Karla', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 0 3rem 0;
  text-align: left;
}

/* Logos Grid */
.clients-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row on desktop */
  row-gap: 1rem;
  column-gap: 1rem;
  align-items: center;
  justify-items: center;
}

/* Logos */
.clients-logos img {
  max-width: 150px; /* hard cap so they never get huge */
  width: 100%;
  height: auto;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

/* Hover effect */
.clients-logos img:hover {
  transform: translateY(-4px) scale(1.15) rotate(-5deg);
}

/* Tablet */
@media (max-width: 1024px) {
  .clients-logos {
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
  }
  .clients-logos img {
    max-width: 120px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .clients-logos {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
  .clients-logos img {
    max-width: 100px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .clients-logos {
    grid-template-columns: 1fr; /* 1 per row */
  }
  .clients-logos img {
    max-width: 90px;
  }
}

/* CONTACT */
#contact {
  background: #f6f0e9;
  color: var(--dark);
  padding: 100px 20px;
}

.contact-wrap {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Headline & sub */
.contact-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.contact-sub {
  text-align: center;
  font-size: 15px;
  color: var(--dark);
  max-width: 600px;
  margin: 0 auto 50px;
  opacity: 0.75;
}

/* Form */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.hidden {
  display: none;
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.input-underline,
.textarea-underline {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(24, 23, 37, 0.25); /* dark blue baseline */
  padding: 12px 8px;
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: var(--dark);
  transition: border-color .18s ease;
}

.input-underline::placeholder,
.textarea-underline::placeholder {
  color: var(--dark);
  opacity: 0.6;
}

.input-underline:focus,
.textarea-underline:focus {
  border-bottom-color: var(--dark);
}

.textarea-underline {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 20px;
}

/* Footer container for the button */
.form-footer {
  display: flex;
  justify-content: flex-end; /* pushes button to the right */
  margin-top: 20px; /* optional spacing from form inputs */
}

/* Button styling */
.contact-form button {
  border-radius: 9999px; /* pill style */
  padding: 12px 24px;
  background-color: var(--dark);
  color: var(--light);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-footer {
  display: flex;
  justify-content: flex-end; /* button stays right-aligned */
  align-items: center;
}

.btn-outline {
  position: relative;
  overflow: hidden;
  min-width: 140px; /* keeps button width consistent */
  display: flex;
  align-items: center;
  justify-content: center; /* centers text horizontally */
  height: 40px;            /* optional fixed height */
  padding: 0 1rem;
  background-color: var(--secondary); /* normal button bg */
  border: none;            /* default border */
  z-index: 0;
  cursor: pointer;
  transition: background-color 0.3s, border 0.3s, color 0.3s;
}

/* text spans inside button */
.btn-text,
.btn-thank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* initially hide thank you */
.btn-thank {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(-100%);
  color: var(--dark);
  font-weight: 700; /* bold text */
  z-index: 1;
}

/* flip to thank you */
.btn-outline.thank .btn-text {
  opacity: 0;
  transform: translateY(100%);
}

.btn-outline.thank .btn-thank {
  opacity: 1;
  transform: translateY(0);
}

/* add stroke when in thank you state */
.btn-outline.thank {
  border: 2px solid var(--dark);
}

/* normal hover for Send Message */
.btn-outline:hover {
  background-color: var(--dark);
  color: var(--secondary);
}

/* disable all hover/focus/active effects in THANK YOU state */
.btn-outline.thank,
.btn-outline.thank:hover,
.btn-outline.thank:focus,
.btn-outline.thank:active {
  background-color: var(--secondary); /* keep bg */
  color: var(--dark);                 /* keep text dark */
  border: 2px solid var(--dark);      /* stroke */
  cursor: default;                     /* show not clickable */
}





/* Button hover effect */
.contact-form button:hover {
  transform: scale(1.05); /* slight grow */
  background-color: var(--accent); /* swap colors on hover */
  color: var(--dark);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* Email & socials grouped below form */
.contact-extra {
  margin-top: 50px;
  text-align: center;
}

.contact-email {
  display: block;        /* makes it act like a block */
  text-align: center;    /* centers text inside */
  margin: 30px 0;        /* optional spacing */
  font-size: 1.1rem;     /* optional styling */
}

/* Base hide mobile */
.contact-form-mobile {
  display: none;
}

/* On mobile: show mobile, hide desktop */
@media (max-width: 768px) {
  .contact-form-desktop {
    display: none;
  }
  .contact-form-mobile {
    display: block;
  }
}



/* Socials container */
.contact-social {
  display: flex;
  justify-content: center;  /* horizontal center */
  align-items: center;
  gap: 12px;                /* spacing between icons */
  margin-top: 30px;
}

/* Social links */
.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;    /* desktop size */
  height: 44px;
  transition: transform 0.3s ease;
}

/* Social icon images */
.contact-social a img {
  width: 100%;    /* fill the link container */
  height: auto;
  filter: brightness(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effect */
.contact-social a:hover {
  transform: translateY(-4px) scale(1.15) rotate(-5deg);
}

.contact-social a:hover img {
  filter: brightness(1.5); /* slightly brighter on hover */
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 480px) {
  .contact-social a {
    width: 32px;  /* smaller icons on mobile */
    height: 32px;
  }
  
.contact-form-mobile input,
.contact-form-mobile textarea {
  padding: 14px 10px; /* Increased padding for better touch interaction */
}

  .contact-social {
    gap: 10px; /* tighter spacing on small screens */
  }
}

#footer {
  position: relative; 
  left: auto;
  right: auto;

  background-color: var(--dark);
  color: var(--accent);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  box-sizing: border-box;
}


/* Responsive */
@media (max-width: 720px) {
  .contact-form .row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-footer {
    justify-content: center;
  }
}


