/* ---------------------------------------- */
/*                GENERAL                   */
/* ---------------------------------------- */

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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

@font-face {
    font-family: 'CS Canela';
    src: url('/fonts/CSCanela-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.dm-serif-text-regular {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
}

.dm-serif-text-regular-italic {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #b3b4b4;
    --accent-color: #f07f22;
    --text-color: #ffffff;
    --light-bg: #1e1e1e;
    --dark-bg: #3c3b3b;
    --black-bg: black;
    --white: #121212;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'DM Serif Text', serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--black-bg);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

h1 {
    line-height: 1.6;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

h3 {
    line-height: 1.6;
    height: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0%;
    color: var(--secondary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}



/* ---------------------------------------- */
/*              NAVIGATION                  */
/* ---------------------------------------- */
/* Navigation Styles */
.main-nav {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    z-index: 10;
}

.main-nav img {
    width: 250px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.02em;
    line-height: 1;
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-size: 1.5rem;
}

.main-nav .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-weight: bold;
}

.main-nav .nav-links a:hover {
    color: var(--accent-color);
}

.main-nav .nav-links a.active {
  color: var(--accent-color);
}

.main-nav .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.main-nav .mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* Hamburger to X animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}



/* ---------------------------------------- */
/*                  Footer                  */
/* ---------------------------------------- */
footer {
    background-color: var(--dark-bg);
    color: var(--text-color);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-section:first-child {
    align-items: flex-start;
    text-align: left;
}

.footer-section:last-child {
    align-items: flex-end;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}



/* ---------------------------------------- */
/*               HOME PAGE                  */
/* ---------------------------------------- */
/* Index page stylying */
/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 300px;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.hero-heading-container {
    position: relative;
    height: 7em;
    overflow: hidden;
    margin-bottom: 1rem;
    z-index: 11;
}

.hero-heading {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) translateX(100%);
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease;
}

.hero-heading.active {
    opacity: 1;
    visibility: visible;
}


/* Clients Section */
.clients {
    padding: 5rem 1rem;
    background-color: var(--dark-bg);
    text-align: center;
}

/* New Clients Video Section Styles */
.clients-video-section {
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    min-height: 300px;
}

.clients-video {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.clients-content-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.explore-button {
    background-color: #000;
    display: inline-block;
    padding: 1rem 2rem;
    background-color: none;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.explore-button:hover {
    transform: scale(1.03);
}

.mobile-video {
  display: none;
}


/* About Styles */
.intro {
    padding: 5rem 1rem;
    background-color: var(--light-bg);
    color: var(--text-color);
}

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

.about-content {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.about-grid {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 2.5rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item p {
    font-size: 1rem;
    margin-bottom: 0%;
}

.material-symbols-outlined {
    font-variation-settings: 
      'FILL' 1,
      'wght' 700,
      'GRAD' 0,
      'opsz' 48 !important;
    font-size: 4rem !important;
}



/* ---------------------------------------- */
/*             PORTFOLIO PAGE               */
/* ---------------------------------------- */
/* Portfolio Page Styles */
.portfolio-categories {
  padding: 15rem 1rem;
}

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

.category-grid a {
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform 0.3s ease;
}

.category-grid a:hover {
  transform: scale(1.03);
}

.category-image {
  position: relative;
  z-index: 1;
  aspect-ratio: 9 / 20;
  overflow: hidden;
  border: 2px solid white;
}

.category-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.category-content {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0%;
    margin: 0%;
    z-index: 2;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    pointer-events: none;
}



/* ---------------------------------------- */
/*             PORTFOLIO/INNER              */
/* ---------------------------------------- */
/* Brand Logos */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.company-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-card img {
  width: 100%;
  min-width: 400px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.company-card img:hover {
  transform: scale(1.05);
}

/* hero section at top */
.portfolio-hero {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 10rem 1rem 3rem;
}


/* Video styling */
.portfolio-grid {
  padding: 1rem 1rem;
}

.video-grid video{
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.video-grid iframe{
    width: 100%;
    min-height: 283px;
    max-height: 283px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.video-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Keep video styles as-is */
.custom-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  display: block;
}

/* Music note icon in corner */
.mute-toggle {
  position: absolute;
  bottom: 15px;
  right: 10px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.mute-toggle:hover {
  opacity: 1;
}

.fullscreen-toggle {
    font-size: 2.3rem !important;
    position: absolute;
    cursor: pointer;
    bottom: 9px;
    left: 1px;
    padding: 5px;
    border-radius: 5px;
}
.fullscreen-toggle .material-symbols-outlined {
    font-variation-settings: 
      'FILL' 1,
      'wght' 700,
      'GRAD' 0,
      'opsz' 28 !important;
    font-size: 2rem !important;
}


.fullscreen-toggle {
    transform: scale(1.03);
}

/* Position slider OVER the bottom of the video */
.video-timeline {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 4px;
  appearance: none;
  background: #ddd;
  accent-color: white;
  border-radius: 2px;
  cursor: pointer;
  z-index: 5;
}

/* Chrome/Safari thumb */
.video-timeline::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  border: none;
  margin-top: -4px;
}

/* Firefox thumb */
.video-timeline::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  border: none;
}
/* GRID LAYOUT CENTERED
If you want the videos to always
center use the three below */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.videos {
    flex: 0 1 350px;
}

.landscape-videos .videos {
    flex: 0 1 500px;
}

/* Fullscreen containment for landscape videos */
.video-wrapper:fullscreen,
.video-wrapper:-webkit-full-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    width: 100vw;
    height: 100vh;
}

.video-wrapper:fullscreen .custom-video,
.video-wrapper:-webkit-full-screen .custom-video {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}

/* Keep UI controls visible in fullscreen */
.video-wrapper:fullscreen .mute-toggle,
.video-wrapper:-webkit-full-screen .mute-toggle,
.video-wrapper:fullscreen .fullscreen-toggle,
.video-wrapper:-webkit-full-screen .fullscreen-toggle,
.video-wrapper:fullscreen .video-timeline,
.video-wrapper:-webkit-full-screen .video-timeline {
    z-index: 1000;
}

.year-section {
    margin-top: 6rem;
}

.caption {
    margin-top: 2rem;
}

/* GRID LAYOUT CLEAN
If you want the videos to stay
in a grid use the two below */
/* .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.portrait-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;  
} */

.credits {
    text-align: center;
}

.credits a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}





/* ---------------------------------------- */
/*              CONTACTS PAGE               */
/* ---------------------------------------- */
/* Contact Page Styles */
.contact-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    margin-top: 60px;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-content {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 2rem;
    margin-left: 40px;
}

.details {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.info-item a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #474747;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent-color);
}

.form-error {
    color: red;
    font-size: 0.9em;
    margin-top: 4px;
}



/* ---------------------------------------- */
/*                 MOBILE CSS               */
/* ---------------------------------------- */
@media (max-width: 768px) {


    /* ---------------------------------------- */
    /*                GENERAL                   */
    /* ---------------------------------------- */
    h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    }

    h2 {
        color: var(--text-color);
        margin-bottom: 1.5rem;
        font-size: 1.6rem;
    }

    h3 {
    height: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    }

    p {
        font-size: 0.8rem;
        line-height: 1.6;
        color: var(--secondary-color);
        margin: 0%;
    }

    /* ---------------------------------------- */
    /*               NAVIGATION                 */
    /*                 MOBILE                   */
    /* ---------------------------------------- */
    .main-nav img {
        width: 100px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .main-nav .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background-color: var(--black-bg);
        z-index: 999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        display: flex;
    }

    .main-nav .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .main-nav .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }

    body.menu-open {
        overflow: hidden;
    }


    /* ---------------------------------------- */
    /*                 FOOTER                   */
    /*                 MOBILE                   */
    /* ---------------------------------------- */
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .footer-section:first-child,
    .footer-section:last-child {
        align-items: center;
        text-align: center;
    }



    /* ---------------------------------------- */
    /*               HOME PAGE                  */
    /*                 MOBILE                   */
    /* ---------------------------------------- */
    .hero {
        height: 60vh;
    }

    .hero-video {
        height: 100px;
    }
    .hero-content {
        height: 60vh;
    }

    .hero-heading {
        padding: 0px 45px;
        font-size: 1.5rem;
    }

    .explore-button {
        font-size: 0.8rem;
    }

    .mobile-video {
        display: block;
    }

    .desktop-video {
        display: none;
    }

    .about-grid {
        max-width: 80%;
    }

    .features-list,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-item i,
    .feature-item .material-symbols-outlined {
        font-size: 3rem !important;
    }

    .about-grid {
        gap: 2rem;
    }



    /* ---------------------------------------- */
    /*             PORTFOLIO PAGE               */
    /*                 MOBILE                 */
    /* ---------------------------------------- */
    .portfolio-categories {
        padding: 8rem 1rem 5rem 1rem;
    }

    .category-grid {
        gap: 3rem;
    }

    .category-image {
        aspect-ratio: 9 / 6;
    }



    /* ---------------------------------------- */
    /*             PORTFOLIO/INNER              */
    /*                   MOBILE                 */
    /* ---------------------------------------- */

    .company-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .company-card img {
        min-width: 0px;
    }

    .video-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        padding: 1.2rem;
    }
    .year-section {
        margin-top: 5rem;
    }



    /* ---------------------------------------- */
    /*              CONTACTS PAGE               */
    /*                   MOBILE                 */
    /* ---------------------------------------- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .contact-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin-left: 0px;
    }
}

/* Futuristic video loader overlay */
#page-loader-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(.4,2,.6,1), visibility 0.5s;
  opacity: 1;
  visibility: visible;
}
#page-loader-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Animated dots loader */
.loader-dots {
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.loader-dots .dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin: 0 10px;
  border-radius: 50%;
  background: #00fff7;
  box-shadow: 0 0 16px #00fff7, 0 0 32px #00fff7aa;
  opacity: 0.85;
  animation: loader-dot-bounce 1.2s infinite cubic-bezier(.6,0,.4,1);
}
.loader-dots .dot-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.loader-dots .dot:nth-child(1) { animation-delay: 0s; }
.loader-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loader-dot-bounce {
  0%, 80%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  40% { transform: translateY(-18px) scale(1.2); opacity: 1; }
}

.loader-dots .loader-text {
  color: #00fff7;
  font-family: 'CSCanela-Regular', 'Segoe UI', Arial, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px #00fff7cc, 0 0 2px #fff;
  margin-top: 1.5rem;
  animation: flicker 2s infinite alternate;
}

/* Remove SVG loader styles */
.loader-animation svg { display: none !important; }
