/*-- ---------------------- -->
<---    SCROLL BAR COLOR    -->
<--- ---------------------- -*/
/* Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 12px; /* Total width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: var(--bg-color); /* Matches your page background */
}

::-webkit-scrollbar-thumb {
    background-color: var(--form-color); /* Subtle dark grey thumb */
    border-radius: 20px;       /* Makes it look like a modern pill */
    border: 3px solid var(--bg-color); /* Creates a 'gap' around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color); /* Lights up when hovered */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--form-color) var(--bg-color);
}

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

body {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color);
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

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

main, .content-wrapper { 
    flex: 1 0 auto; 
}

/*-- ---------------------- -->
<---    DEFINE VARIABLES    -->
<--- ---------------------- -*/

/* Scroll */
#top {
    position: absolute;
    top: 0;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

:root {
    /* Default Dark Mode */
    --bg-color: #1A2029;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --header-bg: #151515;
    --block-color: #161320;
    --form-color:#272B34;
    --copied-color: #53DAE3;
    --theme-icon: url('images/theme.png');
    --icon-filter: invert(1);
}

/* Light Mode */
.light-theme {
    --bg-color: #E8E8E8;
    --text-color: #1a1a1a;
    --accent-color: #1a1a1a;
    --header-bg: #eeeeee;
    --block-color: #ffffff;
    --form-color:#D4D4D4;
    --copied-color: #21A9C7;
    --theme-icon: url('images/theme.png');
    --icon-filter: invert(0);
}

/* Fonts */
@font-face {
    font-family: 'Monument'; 
    src: url('fonts/MonumentExtended-Regular.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'DMSansRegular'; 
    src: url('fonts/DMSans-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'DMSansMedium'; 
    src: url('fonts/DMSans-Medium.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'DMSansBold'; 
    src: url('fonts/DMSans-Bold.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'OpenDyslexic'; 
    src: url('fonts/OpenDyslexic-Regular') format('opentype');
    font-weight: normal;
}

/*-- ---------------------- -->
<---       TOP BAR       -->
<--- ---------------------- -*/
/* Prevents links Google style purple-underline */
.nav-links a, 
.nav-links a:visited {
    text-decoration: none !important; 
    color: var(--text-color);
}

/* Top Bar */
.top-bar {
    view-transition-name: main-header;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    height: 50px;
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
    font-family: 'DMSansMedium', sans-serif; 
    transition: background-color 0.3s ease;
}

/* Top Bar Logo */
.logo-container,
.logo-container:visited {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 12px; /* Distance Between Logo & Name */
}

/* Top Bar Logo Image */
.logo-img {
    height: 35px;
    width: auto;
    display: block;
}

/* Top Bar Name */
.site-name {
    font-family: 'DMSansMedium', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

/* Top Bar Nav Section */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 35px; /* Distance Between Links */
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Nav Link Item */
.nav-links a {
    position: relative;
    text-decoration: none !important;
    color: var(--text-color);
    display: inline-block;
    text-align: center;
    padding: 0 5px;
    transition: color 0.3s ease;
}

/* Nav Link Text */
.nav-links a::before {
    display: block;
    content: attr(data-text); /* Text From HTML Attribute */
    font-weight: bold;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

/* Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10px; /* Create 10px Gap To Shorten Underline */
    width: 0; 
    height: 2px; /* Underline Thickness */
    opacity: 1;
    transition: 
        width 0.4s cubic-bezier(0.65, 0, 0.35, 1), /* Underline Reveal Animation */
        opacity 0.3s ease-in-out;
    transform: translateZ(0); /* GPU Acceleration */
    pointer-events: none;
}


/* Hover State */
@media (hover: hover) {
    body .nav-links a:hover::after {
        width: calc(100% - 20px) !important; /* Remove 20px From Text Width To Get 10px Margins */
        opacity: 1 !important;
    }
}

/* Static Pages */
.nav-links a.current-page:not([href*="#contact"])::after {
    width: calc(100% - 20px);
    opacity: 1;
}

/* Contact Scroll (Active) */
.nav-links a[data-active="true"]::after {
    width: calc(100% - 20px) !important;
    opacity: 1 !important;
}


/* Transition Override To Final State */
body.is-instant .nav-links a[data-active="true"]::after {
    transition: none !important;
    width: calc(100% - 20px) !important;
    opacity: 1 !important;
}

/* Lock To Prevent Contact Underline From Running On All Page */
.nav-links a[href*="#contact"]:not([data-active="true"]):not(:hover)::after {
    width: 0 !important;
    opacity: 0 !important;
    transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease-in-out !important;
}

/* Unique Underline Colors  */
.nav-links a:nth-child(1)::after { background-color: #52D1ED; } /* Work */
.nav-links a:nth-child(2)::after { background-color: #8BEB4D; } /* About */
.nav-links a:nth-child(3)::after { background-color: #F47D8B; } /* Services */
.nav-links a:nth-child(4)::after { background-color: #AD00DA; } /* Contact */

/* Mobile Adjustments */
@media (max-width: 768px) {
    .top-bar {
        padding: 1rem 0.8rem; /* Reduce Distance To Page Edges */
    }

    .logo-container {
        width: 100px; /* Smaller Logo Container */
        gap: 5px; /* Smaller Gap Between Logo & Title */
    }

    .site-name {
    font-size: 1rem; /* Smaller Text For Site Name */
    }

    .logo-img {
    height: 15px; /* Smaller Logo Size */
    }

    .nav-links {
        display: flex;
        align-items: center;
        height: 100%;
        font-size: 0.9rem; /* Smaller Nav Link Text Size */
        margin: 0; /*Remove Margins */
        gap: 0.1rem; /* Smaller gap */
        left: 60%; /* Offset Links Group To The Right */
    }
}

/* Small Screens */
@media (max-width: 380px) {
    .nav-links {
        font-size: 0.8rem;
        margin: 0;
    }
}


/*-- ---------------------- -->
<---         THEME          -->
<--- ---------------------- -*/
/* Theme button */
.theme-btn {
    width: 20px;
    height: 20px;
    background-color: transparent;
    background-image: var(--theme-icon);
    background-size: contain;  /* Make The PNG Fit */
    background-position: center;
    border: none;  
    cursor: pointer; /* Show Interactable */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Fades During Transition */
    padding: 0;
    /* Inverse Color During Theme Switch */
    filter: var(--icon-filter);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Scale And Fade A Bit On Hover Feedback */
.theme-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Global Theme Fade */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease; /* Fade Entire Page in 0.3sec */
}

/* Top Bar Fade */
.top-bar {
    view-transition-name: main-header;
    background-color: var(--header-bg);
    transition: background-color 0.3s ease;
}

/* Cleaner Transition */
.no-transition {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/*-- ---------------------- -->
<---      HERO BANNER       -->
<--- ---------------------- -*/

/* Hero Container */
.hero {
    view-transition-name: hero-main; /*Designated Transition Identifier */
    contain: layout; /* Keep It Independent */
    height: 60ch;
    max-height: 500px;
    min-height: 28ch;
    margin-bottom: 20px;
    margin-top: 50px !important;
    padding-top: 0px;
    top: auto !important;
    position: relative; /* Required For Absolute Video */
    overflow: visible;
    background: #000;
    
    /* Hero Text */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    align-items: center;
    gap: 30px;
    color: white;
    text-align: center;
    font-family: 'Monument', sans-serif;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* Refine Hero Banner Transition Animation */
::view-transition-group(hero-main) {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 3. Prevent Transition FLickering */
::view-transition-old(hero-main),
::view-transition-new(hero-main) {
    mix-blend-mode: normal;
}

/* Hero Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fills Container Height */
    object-fit: cover;
    z-index: 1; /* Place In The Back */
}

/* Video Dark Overlay */
.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: calc(100% + 1px); /* Add 1PX To Fix Chrome Bottom Gap */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 2; /* Above Video */
    pointer-events: none; /* No Pointer Triggers */
}

/* Hero Text & Logo Container */
.hero-content {
    position: relative;
    padding-top: 60px;
    z-index: 3;
    width: 100%;
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Anchors At The Bottom */
    padding-bottom: 10px;
}

/* Place Hero Content & Hitbox In Front */
.hero-content, .hitbox {
    position: relative;
    z-index: 10; /* Above Video */
}

/*-- ---------------------- -->
<---     ANIMATED LOGO      -->
<--- ---------------------- -*/

.logo-wrapper {
  display: grid;
  z-index: 4;
  place-items: center; 
  width: 200px;
  height: 200px;
  margin: 20px auto 0 auto;
}



.hitbox {
    
  grid-area: 1 / 1;
  width: 200px;
  height: 115px;
  z-index: 3;
  transform: translateY(155px);
}

.hero-logo {
  grid-area: 1 / 1;
  pointer-events: none;
}

.branch {
  clip-path: inset(0 0 0 0); /* Default 0.5 */
}

@keyframes reveal {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes hide {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

.anim-reveal {
  animation: reveal 0.8s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.anim-hide {
  animation: hide 0.8s cubic-bezier(0.45, 0, 0.55, 1) forwards;
  animation-delay: var(--d, 0s); /* Staggered delay applied here */
}

.hero-content h1 {
    font-size: 1.7rem;
    margin-bottom: 0px;
}
@media (max-width: 760px) {
    .hero {
        /* 1. Override the height */
        height: 40vh !important; 
        
        /* 2. CRITICAL: Reset any minimum height from desktop */
        min-height: 23ch !important; 
        
        /* 3. Reset padding that might be pushing the height out */
        padding: 0 !important;
        
        /* 4. Ensure it's not using a fixed pixel height elsewhere */
        max-height: 40vh !important; 
    }

    .hero-content {
        /* Ensure the content inside isn't taller than 40vh */
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 1.2rem; /* 1rem might be too tiny to read! */
        margin: 0;
        padding-bottom: 60px;
    }
}

.hero-content, 
.hero-content h1 {
    pointer-events: none; 
}

.logo-wrapper,
.hitbox,
.branch {
    pointer-events: auto !important;
    z-index: 10; /* Ensure this is higher than the H1 */
}


/*-- ---------------------- -->
<---       INTRO TEXT       -->
<--- ---------------------- -*/
.intro-text {
    position: relative;
    padding: 20px 20px;
    padding-bottom: 60px; 
    text-align: center;
    margin-bottom: 30px; 
}

.intro-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    
    
    width: 2px;
    height: 50px; 
    
    
    background-color: var(--text-color, #000);
    opacity: 0.5; 
}

.intro-text a, 
.intro-text a:visited {
    color: var(--copied-color) !important; /* Forces your custom cyan/blue */
    text-decoration: underline;
    text-underline-offset: 4px; /* Makes it look cleaner */
    transition: opacity 0.3s ease;
}

.intro-text a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.intro-text .container {
    max-width: 900px; /* Prevents lines from becoming too long to read */
    margin: 0 auto;
}

.intro-text p {
    margin: 0; /* Removes browser defaults to ensure perfect centering */
    font-family: 'DMSansMedium', sans-serif;
    font-size: 1.3rem;
    line-height: 1.1;
    color: var(--text-color);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

/* Optional: Emphasize bold words with your accent color */
.intro-text strong {
    color: var(--accent-color);
    font-weight: normal;
    font-family: 'DMSansBold', sans-serif;
}



/*-- ---------------------- -->
<---      INDEX BLOCKS      -->
<--- ---------------------- -*/
/* Prepare Blocks */
@property --reveal {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

/* Blocks */
.oblique-block {
    display: flex;
    align-items: center;
    background-color: var(--block-color);
    min-height: 300px;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;

    opacity: 0;
    transition: opacity 0.5s ease; 
}

.oblique-block.is-initialized {
    opacity: 1;
    visibility: visible;
}

/* Tweak First Block Margin */
.oblique-block:first-of-type {
    margin-top: 0px; 
}

/* Block Text */
.block-info {
    flex: 1;
    align-content: center;
    display: flex;            
    flex-direction: column;    
    justify-content: center;
    padding: 0 8%;
    color: var(--text-color);
    margin-left: 2%;
    opacity: 0;
    will-change: transform, opacity;
    
    transition: 
        opacity 0.8s ease-out 0.3s, 
        transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
    /* Animate Text On Scroll */
    transform: translateX(-15px); 
}

/* Block Becomes Visible When Observed */
.oblique-block.is-visible .block-info {
    opacity: 1;
    transform: translateX(0);
}

/* Even Blocks Flipped text Animation */
.oblique-block:nth-child(even) .block-info {
    transform: translateX(15px);
}

.oblique-block:nth-child(even).is-visible .block-info {
    transform: translateX(0);
}

/* Block Title */
.block-info .title {
    font-family: 'Monument', sans-serif;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    line-height: 1.2;
    font-size: 1.7rem;
    font-weight: 200;
}
/* Block Description */
.block-info .description {
    font-family: 'DMSansRegular', sans-serif;
    color: var(--accent-color);
    opacity: 0.8;
    font-size: 1rem;
    font-weight: 1;
    line-height: 1.6;
    max-width: 500px;
    text-align: left;
    line-height: 1.6;
    text-wrap: balance;
}

/* Image Clip Mask */
.block-visual-mask {
    flex: 1.2;
    height: 100%;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    
    /* Default: Angled Mask */
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    
    /* Animation Settings */
    transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    
    /* Close Mask When Not Visible */
    will-change: clip-path;
    transform: translateZ(0); 
    backface-visibility: hidden;
}

/* Start State */
.oblique-block:not(.is-visible) .block-visual-mask {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

/* Even Blocks */
.oblique-block:nth-child(even):not(.is-visible) .block-visual-mask {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.oblique-block:nth-child(even).is-visible .block-visual-mask {
    clip-path: polygon(0 0, 75% 0, 100% 100%, 0% 100%);
}

/* Scale Image On Scroll */
.img-layer-top {
    z-index: 2;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    
    transform: scale(1.1);
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.oblique-block.is-visible .img-layer-top {
    transform: scale(calc(1 + (var(--reveal, 0) * 0.003)));
}

.oblique-block:nth-child(even) {
    flex-direction: row-reverse;
}

/* Flip Mask Angle On Even Blocks */
.oblique-block:nth-child(even) .block-visual-mask {
    clip-path: polygon(0 0, 75% 0, 100% 100%, 0% 100%);
}

.oblique-block .img-layer-top {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* If JS Fails, Make Sure They Are Not Hidden */
.oblique-block {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Visible On Observer */
.oblique-block.is-visible {
    opacity: 1;
}

/* No-JS Fallback */
.no-js .oblique-block {
    opacity: 1;
}

/* Set Transition Data */
::view-transition-old(oblique-image),
::view-transition-new(oblique-image) {
    mix-blend-mode: normal;
    animation: none;
    height: 100%;
    overflow: hidden;
}

/* Mobile Adjustements */
@media (max-width: 767px) {

    .intro-text {
    padding: 20px 20px;
    text-align: center;
    margin-bottom: 30px;
    margin-top: -10px;
    padding-bottom: 80px;
}

.intro-text p {
    font-size: 2.3ch;
}

  /* Reset Parent */
  .oblique-block, .oblique-block:nth-child(even) {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    clip-path: none !important;
    opacity: 1 !important; /* Ensure it stays visible */
  }

  /* 2. Fix the Mask Height */
  .oblique-block .block-visual-mask,
  .oblique-block:nth-child(even) .block-visual-mask {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 200px !important;    /* Change Image Height */
    min-height: 0 !important;   /* Overrides Desktop min-height */
    order: -1 !important;
    margin: 0 !important;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%) !important;
  }

/* Odd Blocks: Wipe Right-to-Left */
  .oblique-block:nth-child(odd):not(.is-visible) .block-visual-mask {
    clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%) !important;
  }

  /* Even Blocks: Wipe Left-to-Right) */
  .oblique-block:nth-child(even):not(.is-visible) .block-visual-mask {
    clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%) !important;
  }

  /* Image Fill */
  .image-wrapper, 
  .img-layer-top {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    transform: none !important; /* Stops the scale animation from causing gaps */
  }

  /* 4. Fix Text Gap */
  .oblique-block .block-info,
  .oblique-block:nth-child(even) .block-info {
    flex: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 8% !important;
    
    transform: none !important;
    text-align: left;
  }

  .block-info .title {
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    line-height: 1.2;
    font-size: 1.2rem;
    }
}


/*-- ---------------------- -->
<---        CONTACT         -->
<--- ---------------------- -*/
.contact-section {
    max-width: 600px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
    color: var(--accent-color);
    scroll-margin-top: 70px; 
}

/* Header & Accent */
.contact-title {
    font-family: 'Monument', sans-serif;
    letter-spacing: 0.05em;
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-family: 'DMSansRegular', sans-serif;
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Form Styling */
.contact-form {
    max-width: 600px; 
    margin: 0 auto;   /* Keeps the form block in the middle of the page */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    margin-top: 10px;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* Selection */
.form-group select {
    width: 50%;
    padding: 12px;
    margin-bottom: 15px;
    background: var(--form-color);
    border: 1px solid rgba(255, 255, 255, 0.0);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'DMSansRegular', sans-serif;
    appearance: none; /* Remove Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='white' d='M0 3l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

@media (max-width: 767px) {
    .form-group select {
        width: 70%; /* Stretch Selection Tool To Fit Text On Mobile */
    }
}

/* Drop Down Menu Theme */
.form-group select option {
    background-color: var(--form-color);
    color: var(--text-color);
}

.form-group label {
    font-family: 'DMSansMedium', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-color);
    opacity: 0.8;
}

/* Input Boxes */
.form-group input, 
.form-group textarea {
    width: 100%; 
    box-sizing: border-box;
    padding: 8px;
    background: var(--text-color);
    background-color: var(--form-color); 
    border: 1px solid var(--text-color);
    border-color: rgba(var(--text-color-rgb, 255, 255, 255), 0.0); /* Hide Borders */
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'DMSansRegular', sans-serif;
    box-sizing: border-box;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

/* Submit Button */
.submit-btn {
    background: transparent;
    color: var(--text-color);
    border: none;
    font-family: 'DMSansMedium', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px 0;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.submit-btn:hover {
    opacity: 0.6;
}

/* Contact Section Ready For Jump */
#contact {
    scroll-margin-top: 80px; 
}

/*-- ---------------------- -->
<---      WORK GALLERY      -->
<--- ---------------------- -*/
/* Gallery Layout */
.gallery-container {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    max-width: 1000px;
    padding: 40px 20px 0 20px;
    margin: 0 auto;
    width: 100%;
}

.gallery-header {
    width: 100%;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-grid {
    display: grid;
    /* Flexible Grid To Fit As Many 300px Columns As Possible */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
    margin-top: 50px;
    width: 100%;
}

.grid-item {
    overflow: hidden;
    background-color: var(--block-color);
    border-radius: 4px;
    transition: transform 0.4s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Hover Animation */
.grid-item:nth-child(1):hover { transform: translate(-10px, -10px); } /* Odyssey */
    .grid-item:nth-child(2):hover { transform: translateY(-10px); }      /* Meg9 */
    .grid-item:nth-child(3):hover { transform: translate(10px, -10px); }  /* Chroma */
    .grid-item:nth-child(4):hover { transform: translate(-10px, 10px); } /* Inflow */
    .grid-item:nth-child(5):hover { transform: translateY(10px); }      /* SOS */
    .grid-item:nth-child(6):hover { transform: translate(10px, 10px); }  /* Gridiron */



/* Cut Animations On Mobile */
@media (max-width: 600px) {
    .grid-item:nth-child(1):hover { transform: translate(0px, 0px); } /* Odyssey */
    .grid-item:nth-child(2):hover { transform: translateY(0px, 0px); }      /* Meg9 */
    .grid-item:nth-child(3):hover { transform: translate(0px, 0px); }  /* Chroma */
    .grid-item:nth-child(4):hover { transform: translate(0px, 0px); } /* Inflow */
    .grid-item:nth-child(5):hover { transform: translateY(0px, 0px); }      /* SOS */
    .grid-item:nth-child(6):hover { transform: translate(0px, 0px); }  /* Gridiron */

}

/* Work Grid Images */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-item.wide {
    grid-column: span 2;
}

/*-- ---------------------- -->
<---      PROJECT PAGE      -->
<--- ---------------------- -*/
.project-hero-banner {
    width: 100%;
    height: 200px;
    background-size: cover;
    margin-top: 50px;
    background-position: center;
    background-repeat: no-repeat;
}
/* TOP BACK LINK */
.breadcrumb {
    margin-bottom: 15px; 
    padding-top: 10px;
    margin-left: 150px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    text-decoration: none;
    font-family: 'DMSansBold', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #8a8a8a; 
    
    transition: color 0.3s ease, transform 0.3s ease;
}

.arrow-icon {
    font-size: 0.7rem; 
    display: inline-block;
    
    transform: translateY(-1px); 
}

.back-link:hover {
    color: var(--text-color); 
    transform: translateX(-4px); 
}

/* PROJECT TITLE */
.project-header-content {
    margin-left: 150px;
    margin-right: 150px;
}

@media (max-width: 768px) {

    .project-header-content {
    margin-left: 20px;
    margin-right: 20px;
}
}

.monument-title {
    font-family: 'Monument', sans-serif;
    font-size: clamp(2rem, 6vw, 1rem);
    letter-spacing: 0.05em;
    line-height: 0.9; 
    margin: 0;      
}

.project-type {
    font-family: 'DMSansBold', sans-serif;
    font-size: 1.2rem;
    color: var(--copied-color);
    margin-top: 2px;
    margin-bottom: 25px;
    display: block;
}

.project-pitch {
    font-family: 'DMSansBold';
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.8;
}

.project-divider {
    border: none;               /* Remove default browser styling */
    border-top: 2px solid var(--text-color); /* Subtle white line */
    opacity: 0.25;
    margin-top: 20px;           /* Space between text and line */
    margin-bottom: 10px;        /* Space before the next section starts */
    width: 100%;                /* Span the width of the container */
}

/* PROJECT OVERVIEW */
.overview-container {
    display: flex;
    flex-direction: row;
    gap: 80px; /* Gap between the columns */
    margin-left: 150px;
    margin-right: 150px;
    margin-bottom: 30px;
}

.sub-label {
    font-family: 'Monument', sans-serif;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}
.overview-text p {
    font-family: 'DMSansRegular', sans-serif;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}


/*-- ---------------------- -->
<---    PROJECT GALLERY     -->
<--- ---------------------- -*/
.content-gallery {
    /* Fixed side margins for the whole gallery */
    padding: 0 150px; 
}

.gallery-row {
    display: flex;
    gap: 1vw;
    margin-bottom: 1vw;
    align-items: stretch; /* Forces items in the same row to have the same height */
}

.gallery-video {
    flex: 0 1 40%; /* Do not grow, allow to shrink, and set base width to 40% */
    max-width: 600px; /* Optional: Sets a hard limit on how large it can get */
}

.gallery-item img, 
.gallery-item video {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
}

/* BOTTOM BACK BUTTON */
.footer-back {
    width: 100%;
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    margin-top: 20px;
}

.footer-back .back-link .arrow-icon {
    position: relative; /* Ensuring position is active */
    top: 1px !important; /* The !important is a last resort to override the global -1px */
}

@media (max-width: 768px) {
    .gallery-row {
        flex-direction: column;
        gap: 5px; /* Space between the stacked projects */
    }

    .gallery-item img {
        /* 1. Reset any fixed heights that might be causing the crop */
        height: auto !important; 
        
        /* 2. Ensure it takes up the full width of the phone screen */
        width: 100%; 
        
        /* 3. 'unset' or 'initial' prevents the browser from forcing a crop */
        object-fit: cubic-bezier(0.65, 0, 0.35, 1); /* Optional: smooths the transition */
        object-fit: contain; 
        
        /* 4. If you have a specific aspect ratio, ensure it matches your source art */
        aspect-ratio: auto; 
    }
}

/* --- Gallery Reveal Logic --- */

/* Base Transition */
.gallery-item.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity 0.8s ease-out, 
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

/* Add Class When Visible */
.gallery-item.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delayed Reveal Based On Row Order */
.gallery-row .gallery-item.reveal-up:nth-child(2) {
    transition-delay: 0.15s;
}

.gallery-row .gallery-item.reveal-up:nth-child(3) {
    transition-delay: 0.3s;
}

.gallery-item.featured.reveal-up {
    transition-duration: 0.9s;
}

/* Vertical Movement */
@keyframes slide-out-up {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

@keyframes slide-in-up {
    from { transform: translateY(100vh); }
    to { transform: translateY(0); }
}

/* 2. Hook View Transition API */
::view-transition-old(root) {
    animation: 0.7s cubic-bezier(0.7, 0, 0.3, 1) both slide-out-up;
}

::view-transition-new(root) {
    animation: 0.7s cubic-bezier(0.7, 0, 0.3, 1) both slide-in-up;
}

/* Prevents Header From Fading */
::view-transition-group(main-header) {
    animation-duration: 0s;
}


/*-- ---------------------- -->
<---      SKILLS BOX        -->
<--- ---------------------- -*/
.project-details-box {
    position: relative;
    flex: 1;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    border: none;
    width: 240px;
    height: fit-content;
    margin-top: 20px;
    opacity: 1;
    transition: none;
}

.project-details-box::before,
.project-details-box::after {
    content: '';
    position: absolute;
    width: 20px;  /* Length Of Horizontal Corner Lines */
    height: 40px; /* Length Of Vertical Corner Lines */
    border: 2px solid var(--copied-color);
    border-style: solid;
    
    transition: none !important; /* Remove Animation For Now */
    pointer-events: none;
}

.project-details-box::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px; 
}

/* Bottom Right Corner */
.project-details-box::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0; 
}

.project-details-box .details-content {
    opacity: 1;
}

.details-content {
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    text-align: left;
    padding: 10px 5px; 
}

.detail-group {
    margin-bottom: 40px; /* Spacing Between SKILLS and SOFTWARE */
}

/* Skill & Software Title */
.detail-group h3 {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;    /* Gap Between Header And List */
}

/* List */
.detail-group p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.9;
}

/* Fix Margin Bottom */
.detail-group:last-child {
    margin-bottom: 0;
}

/* Mobile Fixes */
@media (max-width: 768px) {

    .breadcrumb {
    margin-left: 20px;
}

    .project-header-content {
    margin-left: 20px;
    margin-right: 20px;
    }

    
    .overview-container {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    margin-right: 20px;
    }

    .overview-text {
        margin-bottom: -70px;
    }

    .project-details-box {
        width: 100%;
        padding-top: 0px;
    }

    .content-gallery {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }

}

/*-- ---------------------- -->
<---         ABOUT          -->
<--- ---------------------- -*/
.about-section {
    padding: 100px 0;
    display: flex;
    justify-content: center;
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-image-wrapper {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    max-width: 300px; /* Max Portrait Size */
    display: block;
    object-position: center;
    object-fit: cover; 
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-color);
}

.name-title {
    font-family: 'Monument', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
    margin-top: 0;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--text-color);
}

.about-text p {
    font-family: 'DMSansRegular', sans-serif;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* Mobile Fixes */
@media (max-width: 767px) {
    .about-container {
    display: flex;
    flex-direction: column; /* Put Image Above Text */
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    }

    .image-wrapper {
    display: flex;
    justify-content: top;
    max-height: 60vh;
    }

.profile-img {
    width: 100%;
    height: 100%;
    max-width: 80vh;
    max-height: 60vh;
    display: block;
    object-position: center;
    object-fit: cover; 
    }

}

/*-- ---------------------- -->
<---       SERVICES         -->
<--- ---------------------- -*/

/* Mostly Same Index Block Logic */
.services-container {
    padding-top: 40px;
}

/*-- ---------------------- -->
<---      BOTTOM BAR        -->
<--- ---------------------- -*/
.bottom-bar {
    position: sticky;
    top: 100vh;
    width: 100%;
    height: 30px;
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

/* Copyright Text */
.copyright-text {
    font-family: 'DMSansRegular', sans-serif;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.light-theme .bottom-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

