/* ------------------------------------------------------ */
/* GLOBAL STYLES                                          */
/* ------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #000000; /* black background */
    color: #ffffff; /* white text */
    line-height: 1.6;
    overflow-x: hidden;
    animation: pageFade 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    padding-top: 100px; /* To prevent content from hiding behind fixed header */
}


/* ------------------------------------------------------ */
/* HEADER & NAVIGATION STYLES                             */
/* ------------------------------------------------------ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    min-height: 90px; /* Slightly increased for breathing room */
    display: flex;
    align-items: center;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

/* Company Name Styling */
.brand a {
    text-decoration: none;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem; /* Slightly larger */
    font-weight: 800; /* Bolder weight */
    letter-spacing: 1px; /* Increased spacing for brand impact */
    text-transform: uppercase;
    white-space: nowrap;
}

/* Navigation Menu Toggle (Mobile Logic) */
.nav-checkbox {
    display: none;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: 0.3s;
}

/* Centered Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px; /* Adjusted gap for horizontal fit */
    list-style: none;
    position: absolute;
    left: 55%; /* Shifted slightly right to account for brand width */
    transform: translateX(-50%);
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: #f46c2c;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    white-space: nowrap; /* CRITICAL: Prevents text from breaking into two lines */
    display: block;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Active Link Styling */
.nav-links a.active {
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
}

/* Spacer to balance symmetry */
.header-spacer {
    width: 220px; /* Match width of brand to keep links centered */
}

/* --- REFINED ABOUT SECTION --- */
.about-section {
    padding: 100px 0;
}

.about-header {
    margin-bottom: 80px;
    text-align: center;
}

.about-split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.about-text-content h2 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    margin-bottom: 25px;
}

.about-text-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.lead-paragraph {
    font-size: 1.25rem;
    color: #fff !important;
    font-weight: 500;
}

/* Internal Pillars Styling */
.about-pillars-mini {
    display: flex;
    justify-content: space-around;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pillar-stat {
    text-align: center;
}

.pillar-icon {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 15px;
}

.pillar-stat p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Floating Image Box Logic */
.about-visual-content .display-box {
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ------------------------------------------------------ */
/* HERO SECTION (HOME PAGE)                               */
/* ------------------------------------------------------ */
.hero-main {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.hero-content {
    max-width: 800px;
}

h1.main-heading {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.main-heading .plus-sign {
    color: #f46c2c;
    margin: 0 10px;
}

p.sub-heading {
    color: #d0d0d0;
    font-size: 1rem;
    max-width: 650px;
    line-height: 1.8;
}

.hero-cta {
    align-self: flex-end;
    margin-top: -100px; 
}

.btn-primary {
    background-color: #f46c2c;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #ff8240;
    transform: translateY(-2px);
}

/* ------------------------------------------------------ */
/* HOME PAGE - PORTFOLIO BRIEF SECTION                    */
/* ------------------------------------------------------ */
.portfolio-brief {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-brief .outline-heading {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgb(255, 255, 255);
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Reusing the Portfolio Item Layout for consistency */
.portfolio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.project-num {
    display: block;
    color: #f46c2c;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.btn-link {
    color: #f46c2c;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    transition: gap 0.3s ease;
}

.btn-link:hover {
    gap: 15px;
    text-decoration: underline;
}

.display-box {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.display-box img {
    width: 125%;
    height: 100%;
    object-fit: cover;
}

/* ------------------------------------------------------ */
/* HOME PAGE - ABOUT BRIEF SECTION                        */
/* ------------------------------------------------------ */
.about-brief {
    padding: 100px 0;
    background-color: #050505; /* Subtle variation in black */
}

.about-text h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-text p {
    color: #d0d0d0;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-visual .visual-placeholder {
    height: 350px;
    background: #111;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.display-box-home {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.display-box-home img {
    width: 125%;
    height: 100%;
    object-fit: cover;
}

/* ------------------------------------------------------ */
/* HOME PAGE - CONTACT/CTA BRIEF                          */
/* ------------------------------------------------------ */
.cta-simple {
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-simple h2 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 15px;
}

.cta-simple p {
    font-size: 1.2rem;
    color: #d0d0d0;
    margin-bottom: 40px;
}

/* ------------------------------------------------------ */
/* UTILITIES & RESPONSIVE BASES                           */
/* ------------------------------------------------------ */
.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* ------------------------------------------------------ */
/* STACKED SERVICES EFFECT                                */
/* ------------------------------------------------------ */

.services-stacked-container {
    background-color: #000;
}

.service-stack-item {
    position: sticky;
    top: 0;
    height: 100vh; /* Each section takes full screen height */
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.stack-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.stack-text {
    flex: 1;
    max-width: 550px;
}

.stack-text h2 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    margin: 20px 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.stack-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}

.stack-visual {
    flex: 1;
    height: 400px;
    background: #111;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-visual .display-box {
    width: 100%;
    height: 100%;
}

.stack-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-visual:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.stack-visual:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

.visual-placeholder {
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Specific Section Backgrounds to differentiate merging */
.media-bg { background-color: #000000; }
.wellness-bg { background-color: #050505; }
.studio-bg { background-color: #0a0a0a; }
.strategy-bg { background-color: #0f0f0f; }

/* "Coming Soon" B&W / Muted Effect */
.upcoming-stack {
    filter: grayscale(100%);
    opacity: 0.9;
}

.upcoming-stack:hover {
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.5s ease;
}

/* Status Tags */
.status-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background: #f46c2c;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), filter 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.upcoming-stack .status-tag {
    background: #333;
}

/* ------------------------------------------------------ */
/* SERVICE SUB-LIST STYLING                               */
/* ------------------------------------------------------ */
.service-sub-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column list for better spacing */
    gap: 10px 20px;
}

.service-sub-list li {
    font-size: 0.95rem;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-sub-list li i {
    color: #f46c2c; /* Brand Orange for the icons */
    font-size: 0.8rem;
}

/* ------------------------------------------------------ */
/* ECOSYSTEM HORIZONTAL CARD STYLES                      */
/* ------------------------------------------------------ */
.ecosystem-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header-left {
    text-align: left;
    margin-bottom: 50px;
}

.section-header-left .label {
    color: #f46c2c;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.section-header-left h2 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    line-height: 1.1;
}

.ecosystem-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eco-card-horizontal {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 15px;
    padding: 40px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.eco-card-horizontal::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    800px circle at var(--mx, 50%) var(--my, 50%),
    rgba(244, 108, 44, 0.10),
    transparent 60%
  );
  transition: opacity 350ms ease;
  pointer-events: none;
}

.eco-card-horizontal:hover::before {
  opacity: 1;
}

.eco-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.eco-text {
    flex: 1;
}

.eco-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.eco-text p {
    color: #888;
    max-width: 700px;
}

/* Active State */
.active-branch {
    border-color: #f46c2c;
}

.active-branch .status-tag {
    background-color: #f46c2c;
    color: #fff;
}

/* Coming Soon - Black & White Effect */
.upcoming {
    filter: grayscale(100%); /* Turns the card B&W */
    opacity: 0.5;
    cursor: not-allowed;
}

.upcoming .status-tag {
    background-color: #222;
    color: #666;
}

.eco-card-horizontal:hover {
    transform: translateX(10px);
    background-color: #111;
}

.upcoming:hover {
    transform: none; /* Disables hover movement for B&W cards */
}

/* ------------------------------------------------------ */
/* REIMAGINED PORTFOLIO STYLES                            */
/* ------------------------------------------------------ */

.outline-heading-large {
    font-size: clamp(3rem, 12vw, 10rem); /* Dynamic scaling */
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.685);
    line-height: 0.8;
    margin-bottom: 80px;
    text-transform: uppercase;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 150px;
    padding-bottom: 100px;
}

.portfolio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;
}

/* Alternate project layout (Every second project info on right) */
.portfolio-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
    max-width: 450px;
}

.project-tags {
    display: flex;
    gap: 10px;
    list-style: none;
    margin-top: 25px;
}

.project-tags li {
    font-size: 0.75rem;
    border: 1px solid #333;
    padding: 5px 12px;
    border-radius: 20px;
    color: #888;
}

.project-display {
    flex: 1.5;
}

.display-box:hover {
    transform: scale(1.02);
}

/* CLIENT MARQUEE (Moving Logos) */
.client-marquee-section {
    background: #000;
    padding: 100px 0;
    overflow: hidden;
}

.label-center {
    text-align: center;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 50px;
}

.marquee-wrapper {
    display: flex;
    width: 200%; /* Enough for scrolling content */
}

.marquee-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-content img {
    max-height: 80px; 
    filter: none; 
    opacity: 0.8; 
    transition: all 0.3s ease;
    margin: 0 30px;
}

.marquee-content img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ------------------------------------------------------ */
/* SERVICES PAGE STYLES                                   */
/* ------------------------------------------------------ */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.process-cards-container, .services-cards-container {
    background-color: #f5f5f5;
    padding: 80px 0;
    margin-top: 40px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-card {
    background-color: #1a1a1a;
    color: #fff;
    padding: 30px;
    border-radius: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    color: #000;
    text-align: left;
}

/* ------------------------------------------------------ */
/* CONTACT PAGE STYLES                                    */
/* ------------------------------------------------------ */
.contact-info .outline-heading {
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgb(255, 255, 255);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.contact-section {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

select, input[type="text"], input[type="email"], input[type="tel"], textarea {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    font-family: "Poppins", sans-serif;
    width: 100%; 
    appearance: none; 
    cursor: pointer;
}

.form-group {
    position: relative;
}

.form-group::after {
    content: '▼';
    font-size: 0.8rem;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    position: absolute;
    color: #666;
    pointer-events: none;
}

/* ------------------------------------------------------ */
/* REFINED COMPACT FOOTER & LEGAL BUTTONS                */
/* ------------------------------------------------------ */
footer {
    background-color: #000000; 
    padding: 30px 0; 
    color: #bfbfbf; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.footer-content {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    font-size: 0.85rem;
    color: #666; 
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-legal, .footer-cta {
    display: flex;
    gap: 20px;
}

.footer-legal a, .footer-cta-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease; 
}

.footer-legal a {
    color: #888; 
}

.footer-cta-link {
    color: #f46c2c; 
}

.footer-legal a:hover, .footer-cta-link:hover {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    gap: 15px;
    font-size: 1.1rem;
}

.footer-socials a {
    color: #888;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #f46c2c;
}

/* ------------------------------------------------------ */
/* FLOATING COOKIE CARD                                  */
/* ------------------------------------------------------ */
.cookie-popup-card {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: calc(100% - 50px);
    max-width: 400px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-popup-card.revealed {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.btn-primary-tiny, .btn-ghost-tiny {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary-tiny { background: #f46c2c; color: #fff; border: none; }
.btn-ghost-tiny { background: transparent; color: #fff; border: 1px solid #333; }

/* ------------------------------------------------------ */
/* ANIMATION PACK                                         */
/* ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  background: rgba(244, 108, 44, 0.85);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active::after {
  background: rgba(0,0,0,0.6);
  transform: scaleX(1);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  transition: left 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::before {
  left: 120%;
}

.btn-primary:active {
  transform: translateY(0px) scale(0.98);
}

/* ------------------------------------------------------ */
/* CONSOLIDATED RESPONSIVE REFACTOR                      */
/* ------------------------------------------------------ */

@media (max-width: 992px) {
    .container { padding: 0 30px; }

    /* Mobile Navigation Drawer */
    .menu-toggle { display: flex; }
    .header-spacer { display: none; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        left: auto;
        transform: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }

    .nav-checkbox:checked ~ .nav-links {
        right: 0;
    }

    .nav-checkbox:checked ~ .menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-checkbox:checked ~ .menu-toggle span:nth-child(2) { opacity: 0; }
    .nav-checkbox:checked ~ .menu-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Content Layout Adjustments */
    .hero-main, .about-text-content, .about-brief { text-align: center; align-items: center; }
    .hero-cta { align-self: center; margin-top: 20px; }

    .service-stack-item { position: relative; height: auto; padding: 60px 0; }
    .stack-content { flex-direction: column; gap: 40px; }
    .stack-text { max-width: 100%; order: 1; }
    .stack-visual { width: 100%; height: 300px; order: 2; }
}

@media (max-width: 768px) {
    /* Grid Stacking */
    .process-grid, .services-grid, .about-split-row, .contact-section {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .portfolio-item, .portfolio-item:nth-child(even) {
        flex-direction: column !important;
        gap: 40px;
        text-align: left;
    }

    .service-sub-list { grid-template-columns: 1fr; }
    
    .eco-content { flex-direction: column; align-items: flex-start; gap: 20px; }

    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .footer-right { flex-direction: column; gap: 20px; }
}

/* ============================================================
   ENHANCED ANIMATIONS & INTERACTIONS — Wild Uchi Media
   (appended layer — all existing rules unchanged above)
   ============================================================ */

/* ----------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
    --primary:      #f46c2c;
    --primary-dim:  rgba(244, 108, 44, 0.15);
    --text-muted:   #888;
    --surface-1:    #0a0a0a;
    --surface-2:    #111;
    --border:       rgba(255,255,255,0.07);
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ----------------------------------------------------------
   PAGE TRANSITIONS
   ---------------------------------------------------------- */
body {
    animation: pageFade 550ms var(--ease-out) both;
}

body.page-exit {
    animation: pageExit 380ms var(--ease-out) forwards;
}

@keyframes pageExit {
    to { opacity: 0; transform: translateY(-10px); }
}

@keyframes pageFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}


/* ----------------------------------------------------------
   HERO ENTRANCE ANIMATIONS
   ---------------------------------------------------------- */
.hero-animate {
    opacity: 0;
    animation: heroSlideIn 800ms var(--ease-out) 80ms forwards;
}

.hero-sub-animate {
    opacity: 0;
    animation: heroFadeUp 700ms var(--ease-out) forwards;
}

@keyframes heroSlideIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Parallax drift on hero */
.hero-main {
    transform: translateY(var(--parallax-y, 0));
    will-change: transform;
}


/* ----------------------------------------------------------
   SCROLL REVEAL — richer entrance
   ---------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 700ms var(--ease-out),
                transform 700ms var(--ease-out);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-child {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 520ms var(--ease-out),
                transform 520ms var(--ease-out);
}

.stagger-child.stagger-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Headings slide from left */
.reveal h1, .reveal h2 {
    transition-delay: 50ms;
}


/* ----------------------------------------------------------
   ENHANCED NAVIGATION
   ---------------------------------------------------------- */

/* Nav backdrop overlay (mobile) */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms var(--ease-out);
}

.nav-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Brand hover glow */
.brand a {
    transition: color 250ms ease, text-shadow 250ms ease;
}

.brand a:hover {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(244, 108, 44, 0.45);
}

/* Nav links — refined underline already exists; add glow on active */
.nav-links a.active {
    box-shadow: 0 0 18px rgba(255,255,255,0.12);
}


/* ----------------------------------------------------------
   ENHANCED BUTTONS
   ---------------------------------------------------------- */
.btn-primary {
    transition: background-color 280ms ease,
                transform 200ms var(--ease-spring),
                box-shadow 280ms ease;
    will-change: transform;
}

.btn-primary:hover {
    background-color: #ff8240;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(244, 108, 44, 0.40);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: none;
}

/* Ghost / link button */
.btn-link {
    position: relative;
    transition: color 250ms ease, gap 300ms ease;
}

.btn-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 350ms var(--ease-out);
}

.btn-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Tiny cookie buttons */
.btn-primary-tiny {
    transition: background-color 200ms ease, transform 150ms ease;
}
.btn-primary-tiny:hover {
    background: #ff8240;
    transform: translateY(-1px);
}

.btn-ghost-tiny {
    transition: border-color 200ms ease, color 200ms ease;
}
.btn-ghost-tiny:hover {
    border-color: #fff;
    color: #fff;
}


/* ----------------------------------------------------------
   SERVICE STACK ITEMS — entrance fade per item
   ---------------------------------------------------------- */
.service-stack-item {
    transition: opacity 400ms ease;
}

/* Progress indicator dots */
.stack-indicator {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 500;
    pointer-events: none;
}

.stack-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 300ms ease, transform 300ms var(--ease-spring);
}

.stack-dot.active {
    background: var(--primary);
    transform: scale(1.6);
}

@media (max-width: 992px) {
    .stack-indicator { display: none; }
}


/* ----------------------------------------------------------
   ENHANCED DISPLAY BOXES (tilt via JS)
   ---------------------------------------------------------- */
.display-box,
.display-box-home {
    transition: transform 300ms var(--ease-out),
                box-shadow 300ms ease;
    will-change: transform;
}

.display-box:hover,
.display-box-home:hover {
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}


/* ----------------------------------------------------------
   PROCESS + SERVICE CARDS — spotlight via JS + hover lift
   ---------------------------------------------------------- */
.process-card {
    position: relative;
    overflow: hidden;
    transition: transform 350ms var(--ease-out),
                box-shadow 350ms ease,
                border-color 350ms ease;
    border: 1px solid transparent;
}

.process-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(244, 108, 44, 0.09),
        transparent 55%
    );
    transition: opacity 350ms ease;
    pointer-events: none;
    border-radius: 15px;
}

.process-card:hover::before {
    opacity: 1;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    border-color: rgba(244, 108, 44, 0.25);
}

/* Icon pulse on card hover */
.process-card:hover .icon-box-small i,
.service-card:hover .icon-box i {
    animation: iconPulse 600ms var(--ease-spring);
    color: var(--primary);
}

@keyframes iconPulse {
    0%   { transform: scale(1);    }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1);    }
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 10px;
    transition: background-color 300ms ease, transform 300ms var(--ease-out);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(
        500px circle at var(--mx, 50%) var(--my, 50%),
        rgba(244, 108, 44, 0.07),
        transparent 55%
    );
    transition: opacity 350ms ease;
    pointer-events: none;
    border-radius: 10px;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
}


/* ----------------------------------------------------------
   ECOSYSTEM CARDS — refined hover
   ---------------------------------------------------------- */
.eco-card-horizontal {
    transition: transform 380ms var(--ease-out),
                background-color 300ms ease,
                border-color 300ms ease,
                box-shadow 300ms ease;
}

.active-branch:hover {
    border-color: #ff8240;
    box-shadow: 0 0 0 1px rgba(244, 108, 44, 0.3),
                0 16px 48px rgba(244, 108, 44, 0.12);
}

.eco-text h3 {
    transition: color 250ms ease;
}

.eco-card-horizontal:not(.upcoming):hover .eco-text h3 {
    color: var(--primary);
}


/* ----------------------------------------------------------
   PORTFOLIO ITEMS — staggered entrance + hover
   ---------------------------------------------------------- */
.project-display {
    transition: transform 500ms var(--ease-out);
}

.portfolio-item:hover .project-display {
    transform: translateY(-6px);
}

.project-tags li {
    transition: border-color 250ms ease, color 250ms ease;
}

.project-tags li:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.project-num {
    position: relative;
    display: inline-block;
}

.project-num::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 400ms var(--ease-out);
}

.portfolio-item:hover .project-num::after {
    transform: scaleX(1);
}


/* ----------------------------------------------------------
   FORM FIELDS — focus states
   ---------------------------------------------------------- */
select, input[type="text"], input[type="email"],
input[type="tel"], textarea {
    transition: border-color 250ms ease,
                box-shadow   250ms ease;
    outline: none;
}

.field-focused {
    border-color: rgba(244, 108, 44, 0.6) !important;
    box-shadow:   0 0 0 3px rgba(244, 108, 44, 0.12) !important;
}

.field-error {
    border-color: rgba(220, 60, 60, 0.6) !important;
    box-shadow:   0 0 0 3px rgba(220, 60, 60, 0.10) !important;
}

.field-success {
    border-color: rgba(60, 180, 100, 0.5) !important;
}


/* ----------------------------------------------------------
   STATUS TAG — entrance pop
   ---------------------------------------------------------- */
.status-tag {
    animation: tagPop 500ms var(--ease-spring) both;
}

@keyframes tagPop {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}


/* ----------------------------------------------------------
   ABOUT PAGE — pillar icons bounce-in
   ---------------------------------------------------------- */
.pillar-stat {
    transition: transform 300ms var(--ease-spring);
}

.pillar-stat:hover {
    transform: translateY(-6px);
}

.pillar-icon {
    transition: transform 350ms var(--ease-spring), color 250ms ease;
}

.pillar-stat:hover .pillar-icon {
    transform: scale(1.25) rotate(-5deg);
}


/* ----------------------------------------------------------
   MARQUEE — pause on hover
   ---------------------------------------------------------- */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}


/* ----------------------------------------------------------
   COOKIE BANNER — slide-up entrance
   ---------------------------------------------------------- */
.cookie-popup-card {
    transform: translateY(20px);
}

.cookie-popup-card.revealed {
    transform: translateY(0);
}


/* ----------------------------------------------------------
   FOOTER — link hover underline sweep
   ---------------------------------------------------------- */
.footer-legal a,
.footer-cta-link {
    position: relative;
}

.footer-legal a::after,
.footer-cta-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 280ms var(--ease-out);
}

.footer-legal a:hover::after,
.footer-cta-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-socials a {
    transition: color 250ms ease, transform 250ms var(--ease-spring);
}

.footer-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px) scale(1.15);
}


/* ----------------------------------------------------------
   REDUCED MOTION — override all enhancements
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration:   0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration:  0.01ms !important;
    }
    .hero-main { transform: none !important; }
}
