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

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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: #f5f5f5;

    background:
        radial-gradient(circle at top right, rgba(255, 140, 26, 0.12), transparent 20%),
        radial-gradient(circle at bottom left, rgba(255, 140, 26, 0.08), transparent 24%),
        #0d0d0d;

    line-height: 1.6;
}


img {
    display: block;

    max-width: 100%;
}


a {
    text-decoration: none;
}

/* =========================================================
   NAVBAR — SAME AS INDEX
   ========================================================= */

.nav {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */

  gap: 1.5rem;

  padding: 16px 5%;

  min-height: 76px;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 64px;
  width: 200px;
  object-fit: cover;
}

/* Navigation links */

.nav ul {
  display: flex;
  align-items: center;

  gap: 30px;

  list-style: none;

  margin-left: 300px;
  padding: 0;

  flex-wrap: nowrap;
}

.nav li {
  color: var(--muted);

  white-space: nowrap;

  transition: color 0.25s ease;
}

.nav li:hover {
  color: #fff;
}

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

/* Contact / CTA */

.nav .about-button {
  flex-shrink: 0;

  white-space: nowrap;

  padding: 11px 22px;

  border-radius: 999px;
}

/* =========================================================
   RESPONSIVE NAVBAR — SAME AS INDEX
   ========================================================= */

@media (max-width: 1120px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav ul {
    justify-content: center;
    width: 100%;
    margin-left: auto;
  }
  
}

@media (max-width: 720px) {
  .nav {
    padding: 24px 4%;
  }
}

@media (max-width: 520px) {
  .nav ul {
    gap: 16px;
  }
}

/* =========================================================
   VARIABLES
========================================================= */

:root {
    --orange: #ff8c1a;
    --orange-light: #ffb65c;

    --black: #0d0d0d;

    --gray: #c4c4c4;

    --light: #121212;

    --border: rgba(255, 140, 26, 0.14);
}


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

.services-header {
    padding: 35px 0 100px;

    background:
        linear-gradient(180deg, rgba(13, 13, 13, 0.95), rgba(13, 13, 13, 0.9)),
        url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=900&q=85') center/cover no-repeat;
}


.header-container {
    width: min(1200px, 92%);

    margin: 0 auto;
}


.back-home {
    display: inline-flex;

    align-items: center;

    margin-bottom: 75px;

    color: var(--gray);

    font-size: 15px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.back-home:hover {
    color: var(--orange);

    transform: translateX(-5px);
}


/* =========================================================
   HEADER CONTENT
========================================================= */

.header-content {
    display: grid;

    grid-template-columns:
        1fr 0.9fr;

    gap: 80px;

    align-items: center;
}


.header-text {
    max-width: 600px;
}


.tag {
    margin-bottom: 18px;

    color: var(--orange);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


.header-text h1 {
    margin-bottom: 25px;

    color: #ffffff;

    font-size: clamp(
        4rem,
        7vw,
        7rem
    );

    line-height: 0.9;

    letter-spacing: -0.06em;

    font-weight: 900;
}


.header-text > p:last-child {
    max-width: 530px;

    color: var(--gray);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   HEADER IMAGE
========================================================= */

.header-image {
    height: 360px;

    overflow: hidden;

    border-radius: 30px;

    background: #eee;
}


.header-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease;
}


.header-image:hover img {
    transform: scale(1.05);
}


/* =========================================================
   SERVICE SECTION
========================================================= */

.service-section {
    padding: 120px 0;

    background: #0d0d0d;
}


.service-section:nth-of-type(odd) {
    background: #121212;
}


.service-container {
    width: min(1200px, 92%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    gap: 90px;

    align-items: center;
}


/* =========================================================
   REVERSE SECTION
========================================================= */

.service-section.reverse
.service-container {
    grid-template-columns:
        1.15fr 0.85fr;
}


/* =========================================================
   SERVICE TEXT
========================================================= */

.service-text {
    max-width: 500px;
}


.service-number {
    display: inline-flex;

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

    width: 48px;
    height: 48px;

    margin-bottom: 22px;

    border-radius: 50%;

    background: rgba(255, 140, 26, 0.16);

    color: var(--orange);

    font-size: 14px;

    font-weight: 800;
}


.service-text h2 {
    margin-bottom: 25px;

    color: #ffffff;

    font-size: clamp(
        2.4rem,
        4vw,
        4rem
    );

    line-height: 1;

    letter-spacing: -0.04em;
}


.service-description {
    margin-bottom: 28px;

    color: var(--gray);

    font-size: 17px;

    line-height: 1.75;
}


/* =========================================================
   SERVICE LIST
========================================================= */

.service-list {
    list-style: none;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.service-list li {
    position: relative;

    padding-left: 25px;

    color: #f5f5f5;

    font-size: 15px;
}


.service-list li::before {
    content: "";

    position: absolute;

    left: 0;

    top: 9px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--orange);
}


/* =========================================================
   SERVICE IMAGE
========================================================= */

.service-image {
    width: 100%;

    height: 520px;

    overflow: hidden;

    border-radius: 35px;

    background: #1a1a1a;

    border: 1px solid var(--border);

    box-shadow:
        0 25px 70px
        rgba(255, 140, 26, 0.12);
}


.service-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease;
}


.service-image:hover img {
    transform: scale(1.04);
}


/* =========================================================
   TECHNOLOGY
========================================================= */

.technology-section {
    padding: 140px 0;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(255, 140, 26, 0.12),
            transparent 25%
        ),
        #0d0d0d;
}


.technology-container {
    width: min(1050px, 90%);

    margin: 0 auto;

    padding: 70px;

    display: grid;

    grid-template-columns:
        1fr 0.9fr;

    gap: 80px;

    background: #121212;

    border:
        2px solid
        var(--orange);

    box-shadow:
        0 30px 80px
        rgba(255, 140, 26, 0.12);
}


/* =========================================================
   TECHNOLOGY CONTENT
========================================================= */

.technology-content h2 {
    margin-bottom: 25px;

    font-size: 3.5rem;

    line-height: 1;

    letter-spacing: -0.04em;
}


.technology-content p {
    margin-bottom: 20px;

    color: var(--gray);

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================================
   TECHNOLOGY TOOLS
========================================================= */

.technology-tools {
    display: flex;

    flex-direction: column;

    gap: 22px;

    justify-content: center;
}


.tool {
    display: flex;

    align-items: center;

    gap: 18px;

    color: #f5f5f5;

    font-size: 17px;

    font-weight: 600;
}


/* =========================================================
   TOOL ICONS
========================================================= */

.tool-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 8px;

    font-size: 16px;

    font-weight: 800;

    color: #ffffff;
}


.blender {
    background: #f29b1c;
}


.maya {
    background: #3b8da8;
}


.ae {
    background: #292052;

    color: #b69cff;
}


.animate {
    background: #e34d13;
}


.photoshop {
    background: #123f66;

    color: #49bfff;
}


.unreal {
    background: #171717;
}


.harmony {
    background: #10aec4;
}


/* =========================================================
   CTA
========================================================= */

.services-cta {
    padding: 150px 20px;

    text-align: center;

    background: #151515;

    color: #fff;
}


.services-cta .tag {
    margin-bottom: 20px;
;
}


.services-cta h2 {
    max-width: 800px;

    margin: 0 auto 25px;

    font-size: clamp(
        3rem,
        6vw,
        5rem
    );

    line-height: 0.98;

    letter-spacing: -0.05em;
}


.services-cta h2 span {
    color: var(--orange);
}


.services-cta > p:not(.tag) {
    margin-bottom: 40px;

    color: #999;

    font-size: 17px;
}


/* =========================================================
   CTA BUTTON
========================================================= */

.cta-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    padding: 16px 28px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--orange),
            var(--orange-light)
        );

    color: #151515;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.cta-button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 40px
        rgba(255, 140, 26, 0.2);
}


.cta-button span {
    font-size: 22px;
}


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

footer {
    padding: 70px 0 30px;

    background: #0d0d0d;

    color: #aaa;
}


.footer-container {
    width: min(1200px, 92%);

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    gap: 60px;
}


.footer-brand h3 {
    margin-bottom: 12px;

    color: #fff;

    letter-spacing: 0.12em;
}


.footer-brand p {
    max-width: 350px;

    color: #777;

    line-height: 1.7;
}


.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 25px;
}


.footer-links a {
    color: #aaa;

    transition:
        color 0.25s ease;
}


.footer-links a:hover {
    color: var(--orange);
}


.footer-bottom {
    width: min(1200px, 92%);

    margin: 50px auto 0;

    padding-top: 25px;

    border-top:
        1px solid
        #242424;

    color: #666;

    font-size: 13px;
}


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

@media (max-width: 900px) {

    .header-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .header-image {
        height: 400px;
    }


    .service-container,
    .service-section.reverse .service-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .service-section.reverse
    .service-image {
        order: -1;
    }


    .service-text {
        max-width: 700px;
    }


    .service-image {
        height: 450px;
    }


    .technology-container {
        grid-template-columns: 1fr;

        gap: 50px;

        padding: 50px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .services-header {
        padding:
            25px 0
            70px;
    }


    .back-home {
        margin-bottom: 50px;
    }


    .header-text h1 {
        font-size: 4rem;
    }


    .header-text > p:last-child {
        font-size: 15px;
    }


    .header-image {
        height: 280px;

        border-radius: 22px;
    }


    .service-section {
        padding: 80px 0;
    }


    .service-container {
        width: 90%;
    }


    .service-text h2 {
        font-size: 2.8rem;
    }


    .service-description {
        font-size: 15px;
    }


    .service-image {
        height: 320px;

        border-radius: 24px;
    }


    .technology-section {
        padding: 80px 0;
    }


    .technology-container {
        width: 90%;

        padding: 35px 25px;

        gap: 40px;
    }


    .technology-content h2 {
        font-size: 2.8rem;
    }


    .tool {
        font-size: 15px;
    }


    .services-cta {
        padding: 100px 20px;
    }


    .services-cta h2 {
        font-size: 3rem;
    }


    .footer-container {
        flex-direction: column;

        gap: 40px;
    }


    .footer-links {
        gap: 18px;
    }

}


/* =========================================================
   GSAP ANIMATION SUPPORT
   ========================================================= */

/*
   Important:
   GSAP only changes opacity/transform while elements are
   entering. "once: true" is used in the HTML so a revealed
   element is never hidden again by ScrollTrigger.
*/

.back-home,
.header-text .tag,
.header-text h1,
.header-text > p:last-child,
.header-image,
.service-number,
.service-text h2,
.service-description,
.service-list li,
.service-image,
.technology-content h2,
.technology-content p,
.tool,
.services-cta .tag,
.services-cta h2,
.services-cta > p:not(.tag),
.cta-button,
.footer-brand,
.footer-links a,
.footer-bottom {
    will-change: transform, opacity;
}


/* Keep images contained during GSAP scale animation. */

.header-image,
.service-image {
    overflow: hidden;
}


/* Prevent hover CSS and GSAP from fighting over image scale. */

.header-image img,
.service-image img {
    will-change: transform;
}


/* Better touch behaviour for interactive images/buttons. */

.service-image,
.cta-button,
.back-home {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

