/* ======================================================================================================================
! RESET
======================================================================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  /* font-family: "Google Sans", sans-serif; */
  /* font-family: "Noto Sans SC", sans-serif; */
  padding-top: 79px;
  /* adjust if needed */
}

/* ======================================================================================================================
! CONTAINER
======================================================================================================================== */

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
}

/* ======================================================================================================================
! SIDEBAR OVERLAY (TABLET ONLY)
======================================================================================================================== */

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.5); /* dim */

  opacity: 0;
  pointer-events: none;

  transition: 0.3s ease;
  z-index: 1500; /* below sidebar (2000) */
}

/* Show overlay only when sidebar open */
.sidebar.open + .sidebar-overlay,
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Tablet only */
@media (max-width: 1024px) and (min-width: 601px) {
  .sidebar-overlay {
    display: block;
  }
}

/* Hide on desktop & phone */
@media (min-width: 1025px), (max-width: 600px) {
  .sidebar-overlay {
    display: none;
  }
}

/* ======================================================================================================================
! HEADER
======================================================================================================================== */

header {
  background: #002a66;
  padding: 16px 80px;
  color: #fff;

  position: fixed;   /* ✅ change */
  top: 0;
  left: 0;

  width: 100%;       /* ✅ important */
  z-index: 1000;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 48px; /* space between logo and nav */
}

/* Logo */
.logo img {
  height: 50px;
}

.logo a {
  display: inline-block;
}

.logo img {
  cursor: pointer;
}

/* ======================================================================================================================
! DESKTOP NAV
======================================================================================================================== */

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;

  font-weight: 600;
  font-size: 1.3rem; /* Increased size */

  opacity: 0.7;
  transition: 0.3s;
}

.nav-links a.active {
  font-weight: 600;
  border-bottom: 2px solid white; /* or your brand color */
  opacity: 1;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* ======================================================================================================================
! DESKTOP DROPDOWN
======================================================================================================================== */

@media (min-width: 1025px) {

  .dropdown {
    position: relative;
  }

  /* Panel */
  .dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;

    min-width: 220px;

    background: #002a66; /* Match header blue */
    border-radius: 6px;

    padding: 14px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.25s ease;

    box-shadow: 0 12px 30px rgba(0,0,0,0.4);

    z-index: 1000;
  }

  /* Accent Bar */
  .dropdown-menu::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #ffffff;
  }

  /* Items */
  .dropdown-menu a {
    display: block;

    padding: 12px 24px;

    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;

    color: #ffffff;
    opacity: 0.75;

    letter-spacing: 1px;

    transition: 0.2s;
  }

  /* Hover Item */
  .dropdown-menu a:hover {
    opacity: 1;
    background: rgba(255,255,255,0.08);
  }

  /* Hover Trigger */
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

}

/* Arrow */
.arrow {
  font-size: 1.1rem;
}


/* ======================================================================================================================
! HAMBURGER (MENU BUTTON)
======================================================================================================================== */

.menu-btn {
  display: none;
  font-size: 36px;
  cursor: pointer;
  color: #fff;
  margin-left: auto; /* pushes it to right */
}


/* ======================================================================================================================
! SIDEBAR (PHONE ONLY)
======================================================================================================================== */

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;

  height: 100vh;

  background: #002a66;
  color: #fff;

  z-index: 2000;

  transition: 0.3s ease;
  overflow-y: auto;

  min-width: 320px;
  max-width: 100%;
}

@media (max-width: 600px){
  .sidebar {
    opacity: 0.98;
  }
}

.sidebar.open {
  right: 0;
}

/* Sidebar header */
.sidebar-header {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
}

.close-btn {
  font-size: 26px;
  cursor: pointer;
}

/* Sidebar links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.sidebar-links a,
.sidebar-row {
  padding: 18px 24px;

  font-size: 1.1rem;
  font-weight: 700;

  color: #fff;
  text-decoration: none;

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;

  transition: 0.25s;
}

.sidebar-links a:hover,
.sidebar-row:hover {
  background: rgba(255,255,255,0.08);
}

/* Sidebar dropdown */
.sidebar .dropdown-menu {
  position: static;

  background: #003580;

  display: none;
  border-radius: 0;
}

.sidebar .dropdown.open .dropdown-menu {
  display: block;
}

.sidebar .dropdown-menu a {
  padding: 14px 40px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.dropdown.open .dropdown-menu {
  display: flex;
}

/* ======================================================================================================================
! HERO
======================================================================================================================== */

.hero {
  flex: 1;

  padding: 160px 80px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  /* Background Image */
  background: 
    linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.85)
    ),
    url("/assets/images/works-hero.jpg"); /* 1920x1080 */

  background-size: cover;
  background-position: center;
  background-repeat: repeat;
}

/* Hero content wrapper */
.hero-text {
  max-width: 900px;
}

/* Logo image (1200x600) */
.hero-logo {
  width: 70%;
  max-width: 600px;   /* Controls visual size */
  height: auto;

  margin-bottom: 4px;
}

/* Paragraph */
.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.7;

  max-width: 700px;
  /* margin: 4px auto 36px; */
  margin-bottom: 36px;

  color: #ffffff;
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {

  header{
    padding: 16px 40px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  /* Fixed sidebar width */
  .sidebar {
    width: 400px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 80px 40px;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

}

/* ================= PHONE ================= */

@media (max-width: 600px) {

  header {
    padding: 16px 24px;
  }

  .logo img {
    height: 40px;
  }

  /* Full width sidebar */
  .sidebar {
    width: 100%;
  }

  .hero {
    padding: 80px 24px;
  }

  .hero-logo {
    max-width: 320px;
  }

  .hero-text p {
    font-size: 0.8rem;
    padding: 0px 24px;
  }

  footer {
    padding: 32px 24px;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
  }

}

/* ======================================================================================================================
! INTRODUCTION
======================================================================================================================== */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 60px;

  padding: 48px 80px 64px; /* top left/right bottom */

  align-items: center;

  max-width: 1400px;
  margin: 0 auto;
}

.intro-text h1{
  font-size: 2.26rem;
}

.intro-text .intro-role {
  opacity: 0.6;
  max-width: 430px;
}


/* Image */
.intro-image {
  display: flex;
  align-items: center;      /* Vertical center */
  justify-content: center;  /* Horizontal center */
}

.intro-image img {
  width: 100%;
  height: auto;

  max-width: 450px;

  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);

  display: block;
}

/* Text */
.intro-text {
  text-align: left;
  max-width: 560px;
}

.intro-text p {
  font-size: 1rem;
  line-height: 1.7;

  opacity: 0.85;

  margin-bottom: 28px;
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {

  .intro {
    grid-template-columns: 1fr 1fr;

    gap: 40px;

    padding: 42px 48px 42px;
  }

  .intro-text .intro-role{
    max-width: 400px;
  }

  .intro-text h1 {
    font-size: 2.4rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .intro-image img {
    max-width: 360px;
  }
}

/* ================= TABLET (<=800px) ================= */

@media (max-width: 800px) {

  .intro {
    grid-template-columns: 1fr;

    gap: 40px;

    padding: 28px 18px 28px;
  }

  .intro-text {
    text-align: center;
    max-width: 100%;
  }
  
  .intro-text h1 {
    font-size: 2.4rem;
  }

  .intro-text .intro-role {
    max-width: 400px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-text p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0px 40px;
  }

  .intro-image img {
    max-width: 360px;
  }
}

/* ================= PHONE ================= */

@media (max-width: 600px) {

  .intro {
    grid-template-columns: 1fr;

    gap: 36px;

    padding: 20px 0px 20px;
  }

  .intro-text {
    text-align: center;
    max-width: 100%;
  }
  
  .intro-text h1 {
    font-size: clamp(1.6rem, 7.6vw, 1.9rem);
  }

  .intro-text .intro-role {
    max-width: 400px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-text p {
    font-size: 0.84rem;
    line-height: 1.6;
    padding: 0px 40px;
  }

  .intro-image img {
    max-width: 280px;
  }
}

/* ======================================================================================================================
! SOFTWARE
======================================================================================================================== */

.icon-text{
  display: flex;
  flex-direction: column;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0px 0px 20px;
  align-items: center;
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {

  .icon-text {
    font-size: 1.2rem;
  }

}


/* ================= PHONE ================= */

@media (max-width: 600px) {

  .icon-text {
    font-size: 1.2rem;
  }

}

/* Icon container */
.davinci { transform: scale(1); }
.blender { transform: scale(1.1)}
.figma   { transform: scale(0.9); }
.vscode  { transform: scale(0.85); }
.cubase  { transform: scale(0.9); }
.obs     { transform: scale(1); }
.vmix    { transform: scale(0.85); }
.flstudio { transform: scale(1.15); }

.svg-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: 0.3s ease;
}

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* KEY */
  gap: 8px;

  max-width: 600px;
  margin: 0 auto;
  padding: 0px 20px 20px;
}

.icon-grid img {
  width: 64px;
  height: 64px;
  justify-self: center;
}

@media (max-width: 600px) {

  .icon-grid {
    max-width: 460px;
  }

  .svg-icon {
    flex: 0 0 64px;
  }

}

/* ======================================================================================================================
! SHOWREEL
======================================================================================================================== */

.showreel-section {
  display: grid;
  grid-template-columns: minmax(420px, 55%) 1fr;
  background: #002a66;
  color: white;
  min-height: 180px;
}


/* Video Area */
.showreel-video {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 14px 0px;        /* 👈 adjust size */
  box-sizing: border-box;
}

.showreel-video video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* like background-size: cover */
  filter: brightness(1) contrast(1.1);
}

/* Text Area */
.showreel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 60px;
  gap: 32px;
}

.showreel-content h1 {
  font-size: clamp(2.2rem, 3vw, 4rem);
  line-height: 1.2;
}

/* Button */
.showreel-btn {
  display: inline-block;

  padding: 16px 24px;      /* ⬅ bigger click area */
  font-size: 1.5rem;      /* ⬅ bigger text */

  background: white;
  color: #002a66;
  border: 2px solid white;

  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;     /* ⬅ slightly rounder */

  transition: 0.3s ease;
  cursor: pointer;
}


.showreel-btn:hover {
  background: #002a66;
  color: #ffffff;
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {

  .showreel-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto; /* 2 rows */
  }

  .showreel-content {
    align-items: center;
    text-align: center;
    padding: 40px;
  }

  .showreel-content h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  }

  .showreel-btn {
    padding: 16px 24px;      /* ⬅ bigger click area */
    font-size: 1.5rem;      /* ⬅ bigger text */
  }


}

/* ================= PHONE ================= */

@media (max-width: 600px) {

  .showreel-section {
    min-height: auto;
  }

  .showreel-content {
    padding: 30px 20px;
  }

  .showreel-content h1 {
    font-size: 2rem;
  }

  .showreel-btn {
    width: 100%;
    text-align: center;
  }

}

/* ======================================================================================================================
! WORKS GRID
======================================================================================================================== */

.works-section {
  padding: 60px 60px 0px;
  color: white;
}

.works-title {
  color:#002a66;
  font-size: 3.5rem;
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center;
}

/* Grid Layout */
.works-grid {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  gap: 7px;
  padding: 0px 10px;
}

/* Work Card */
.work-card {
  position: relative;
  display: block;
  /* border-radius: 2px; */
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 20 / 12; /* rectangle */
}

/* Image */
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Overlay */
.work-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.6rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  color: white;

  transition: 0.3s ease;
}

/* Hover Effect */
.work-card:hover img {
  transform: scale(1.08);
}

.work-card:hover .work-overlay {
  background: rgba(0, 0, 0, 0.65);
}

/* ================= TABLET ================= */

@media (max-width: 1024px){

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;

  }

  .works-grid > :last-child {
    grid-column: auto;
  }

  .works-section {
    padding: 60px 30px;
  }

  .works-title {
    text-align: center;
    font-size: 3rem;
  }

   .work-card {
    aspect-ratio: 14 / 6; /* rectangle */
  }

  .work-overlay {
    font-size: 1.7rem;
  }

}

/* ================= TABLET (<=800px) ================= */

@media (max-width: 800px){
  .works-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    padding: 0px 0px;

    
  }

  .works-section {
    padding: 60px 0px;
  }

  .work-card {
    aspect-ratio: 14 / 6.6; /* rectangle */
  }

}

/* ================= PHONE ================= */

@media (max-width: 600px) {

  .works-grid {
    grid-template-columns: 1fr;
    gap: 0px;
    padding: 0px 0px;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 90vh;

  }

  .works-title {
    font-size: clamp(2rem, 8vw, 3rem);
    text-align: center;
  }

  .works-section {
    padding: 60px 0px 40px;
  }

  .work-overlay {
    font-size: clamp(1.4rem, 5vw, 1.7rem);
  }

  .work-card {
    aspect-ratio: 14 / 5; /* rectangle */
    position: relative;

    flex: 1;

    overflow: hidden;
    text-decoration: none;
  }
}

/* ======================================================================================================================
! DETAIL
======================================================================================================================== */

.detail-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 40px;

  padding: 30px 80px 80px; /* top left/right bottom */

  align-items: center;

  max-width: 1400px;
  margin: 0 auto;
}

/* Image */
.detail-1-image {
  display: flex;
  align-items: center;      /* Vertical center */
  justify-content: center;  /* Horizontal center */
}

.detail-1-image img {
  width: 100%;
  height: auto;

  max-width: 450px;

  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);

  display: block;
}

/* Text */
.detail-1-text {
  text-align: right;
  max-width: 560px;
}

.detail-1-text h1{
  font-size: clamp(1.8rem, 3.7vw, 2.6rem);
  padding-bottom: 24px;
} 

.detail-1-text p {
  font-size: 1rem;
  line-height: 1.7;

  opacity: 0.85;

  margin-bottom: 24px;

  
}

@media (min-width: 1025px){
  .detail-1-text p{
    margin-left: auto;
    max-width: 450px;
  }

}

/* ================= TABLET ================= */

@media (max-width: 1024px) {

  .detail-1 {
    grid-template-columns: 1fr 1fr;

    gap: 40px;

    padding: 30px 48px 80px;
  }

  .detail-1-text .detail-1-role{
    max-width: 400px;
  }

  .detail-1-text h1 {
    font-size: clamp(1.8rem, 3.7vw, 2.6rem);
  }

  .detail-1-text p {
    font-size: 1rem;
  }

  .detail-1-image img {
    max-width: 360px;
  }
}

/* ================= TABLET (<=800px) ================= */

@media (max-width: 800px) {

  .detail-1 {
    grid-template-columns: 1fr;

    gap: 20px;

    padding: 20px 48px 60px;
  }

  .detail-1-text {
    text-align: center;
    max-width: 100%;
  }
  
  .detail-1-text h1 {
    font-size: 2.4rem;
  }

  .detail-1-text p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0px 8px;
  }

  .detail-1-image img {
    max-width: 360px;
  }
}

/* =========================
   Phone (≤600px)
========================= */

@media (max-width: 600px) {

  .detail-1 {
    grid-template-columns: 1fr;

    gap: 30px;

    padding: 20px 0px 60px;
  }

  .detail-1-text {
    text-align: center;
    max-width: 100%;
  }
  
  .detail-1-text h1 {
    font-size: 1.9rem;
  }

  .detail-1-text p {
    font-size: 0.84rem;
    line-height: 1.6;
    padding: 0px 40px;
  }

  .detail-1-image img {
    max-width: 360px;
  }
}

/* ======================================================================================================================
! EXPERTISE GRID
======================================================================================================================== */

.expertise-grid {
  display: flex;
  flex-direction: column;

  width: 100%;
  height: 75vh;

  max-width: 1000px;
  margin: 0 auto;
  padding: 0px 60px 80px;
  gap: 6px;
  
}

/* Card */
.expertise-card {
  position: relative;

  flex: 1; /* Equal height */
  width: 100%;

  overflow: hidden;
  text-decoration: none;

  cursor: pointer;
}

/* Image */
.expertise-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}

/* Overlay (Your Reference) */
.expertise-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  color: white;

  transition: 0.3s ease;
}

/* ================= TABLET ================= */

@media (max-width: 1024px){
  .expertise-grid {
  padding: 0px 30px 30px;
  
  }
}

/* Director */
.expertise-card.director img {
  object-position: center 30%;
}

/* Cinematographer */
.expertise-card.cine img {
  object-position: center 40%;
}

/* Editor */
.expertise-card.editor img {
  object-position: center 90%;
}

/* Colorist */
.expertise-card.colorist img {
  object-position: center 68%;
}

/* VFX */
.expertise-card.vfx img {
  object-position: center 37%;
}

/* ================= TABLET (<=800px) ================= */

@media (max-width: 800px){

  .expertise-grid {
  padding: 0px 0px 0px;
  gap: 0px;
  }

  .expertise-overlay{
    font-size: 2rem;
  }

}

/* ================= PHONE ================= */

@media (max-width: 600px){
  .expertise-grid {
  padding: 0px 0px 0px;
  gap: 0px;
  
  }

  .expertise-overlay{
    font-size: clamp(1.4rem, 7vw, 2rem);
  }
}

/* Hover Effects (Your Reference) */
.expertise-card:hover img {
  transform: scale(1.08);
}

.expertise-card:hover .expertise-overlay {
  background: rgba(0, 0, 0, 0.65);
}

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

/* Footer */
footer {
  background: #002a66;
  color: #ffffff;
  padding: 40px 80px;
  /* border-top: 1px solid rgba(255,255,255,0.1); */
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content p {
  font-size: 0.85rem;
  opacity: 0.6;
  
}

/* Main Grid */
.contact-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;

  justify-content: center;
  flex-wrap: wrap;
  align-items: start; /* 🔥 override center */

  gap: 40px;
  padding: 0px 0 40px;
}

/* Left */
.contact-left {
  text-align: left;
  align-self: start;  /* 🔥 force top */
  justify-self: start; /* 🔥 force left */
}

.contact-left h3 {
  margin-bottom: 6px;
  font-size: 1.7rem;
}

/* Center */
.contact-center {
  display: flex;
  justify-content: center;
}

.contact-logo {
  max-width: 260px;   /* smaller logo */
  height: auto;
  /* opacity: 0.9; */
}

.contact-center a {
  display: inline-block;
}

.contact-logo {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Right */
.contact-right {
  text-align: right;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 12px;
}

.contact-right h3 {
  margin-bottom: 6px;
  font-size: 1.7rem;
}

/* Instagram Links */
.ig-link {
  display: flex;
  align-items: center;
  gap: 8px;

  color: inherit;
  text-decoration: none;

  font-size: 0.95rem;

  transition: opacity 0.2s ease;
}

.ig-link img {
  width: 18px;
  height: 18px;
}

.ig-link:hover {
  opacity: 0.7;
}

/* ================= BREAKPOINT: 980px ================= */

@media (max-width: 980px) {

  .contact-section {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;

    grid-template-areas:
      "logo logo"
      "contact social";

    gap: 32px;

    align-items: start; /* 🔥 override center */
    padding-bottom: 64px;
  }

  .contact-left {
    grid-area: contact;
    text-align: left;
    align-self: start;  /* 🔥 force top */
    justify-self: start; /* 🔥 force left */
  }

  .contact-center {
    grid-area: logo;
    justify-content: center;
  }

  .contact-right {
    grid-area: social;
    text-align: right;
    align-items: flex-end;
    align-self: start; /* optional: align top too */
  }

}

/* ================= BREAKPOINT: 800px ================= */

@media (max-width: 800px) {

  .contact-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "contact"
      "social";

    text-align: center;
    gap: 24px;

    padding-bottom: 60px;
  }

  .contact-left,
  .contact-right {
    text-align: center;
    align-items: center;
    justify-self: center;

  }

  .contact-left{
    padding-bottom: 20px;
  }


  .contact-center {
    justify-content: center;
  }

}

/* ======================================================================================================================
! PROJECT CARD
======================================================================================================================== */

.projects-section {
  padding: 40px 20px 30px;
}

.projects-container {
  max-width: 1500px;
  margin: 0 auto;
}

/* Grid */
.projects-grid {
  display: grid;

  grid-template-columns: repeat(
    auto-fill,
    minmax(250px, 1fr)
  );

  gap: 15px;

  justify-content: start;
  padding-bottom: 40px;
}

.projects-grid.home{
  grid-template-columns: repeat(
    auto-fill,
    minmax(480px, 1fr)
  );

}

.projects-grid.work{
  grid-template-columns: repeat(
    auto-fill,
    minmax(300px, 1fr)
  );

}

@media (max-width: 600px){
  .projects-grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .projects-grid.home{
    grid-template-columns: 1fr;
    justify-content: center;
  }
}

/* ===========================
   Card
=========================== */

.project-card {
  display: flex;
  flex-direction: column;

  width: 100%;
  aspect-ratio: 16/14;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s ease;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.5);
}

.projects-grid.home .project-card {
  aspect-ratio: 16/10;
}

.project-card:visited,
.project-card:hover,
.project-card:active {
  text-decoration: none;
  color: inherit;
}

/* Image Wrapper */
.project-image {
  position: relative;
  flex: 1;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;



  display: flex;
  align-items: flex-end;

  /* transition: transform 0.25s ease; */
}

/* Hover Effect */
.project-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 12px 28px rgba(0,0,0,0.25); */
}

/* ===========================
   Content
=========================== */

.project-content {
  width: 100%;
  background: #002a66;
  padding: 14px 18px;

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 10px;

  
}

/* Title */
.project-title {
  grid-column: 1 / 2;

  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;

  text-shadow: 0 2px 4px rgba(0,0,0,0.4);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  max-width: 100%;
}

.projects-grid.home .project-title {
  font-size: 1.4rem;
}

/* Category */
.project-desp{
  grid-column: 1 / 2;

  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.9;

  line-height: 1.4;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-grid.home .project-desp{
  font-size: 1rem;
}

/* Views */
.project-views {
  grid-column: 2 / 3;
  grid-row: 1 / 3;

  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

/* Play Icon */
.play-icon {
  font-size: 1.1rem;
}

@media (max-width: 600px){
  .projects-grid.home .project-title{
    font-size: clamp(0.96rem, 4vw, 1.4rem);
  }

  .projects-grid.home .project-desp{
    font-size: clamp(0.75rem, 3vw, 1rem);
  }
}

/* ======================================================================================================================
! FEATURED WORKS
======================================================================================================================== */

.featured-text{
  padding: 0px 30px 15px;
}

.featured-text h1 {
  color: #002a66;
  font-size: 2rem;
}

.featured-text.home h1 {
  color: #002a66;
  font-size: 3rem;
  padding-bottom: 20px;
}

.container-line {
  width: 100%;
  max-width: 1435px;

  margin: 0 auto;

  border: none;
  border-top: 3px solid #002a66;
  padding-bottom: 20px;
}

@media (max-width: 797px){
  .featured-text h1{
    text-align: center;
    font-size: clamp(1rem, 8vw, 2rem);
  }
  
  .featured-text.home h1{
    text-align: center;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .featured-text {
    padding: 0px 0px 15px;
  }
}

/* ======================================================================================================================
! YOUTUBE PLAYER
======================================================================================================================== */

/* YouTube Responsive Wrapper */
.yt-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Same as your video player */
  background: black;
  overflow: hidden;
}

/* Fill container */
.yt-wrapper iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
}

.yt-wrapper--home {
  padding: 40px 84px 10px;
}