/* --- FONT IMPORT & ROOT VARIABLES --- */
@font-face { font-family: 'The Bold Font'; src: url('fonts/THEBOLDFONT-FREEVERSION.ttf') format('truetype'); font-weight: normal; font-style: normal; }

:root {
    --main-yellow: #ffc55a;
    --accent-red: #FD4723;
    --accent-blue: #7296cb;
    --dark-bg: #121212;
    --light-text: #f5f5f5;
    --grey-text: #888;
    --card-bg: #1e1e1e;
    --primary-font: 'Poppins', sans-serif;
    --heading-font: 'The Bold Font', 'Montserrat', sans-serif;
    --cursor-x: 50vw;
    --cursor-y: 50vh;
}

/* This is the definitive fix for the default cursor reappearing */
a,
button,
input,
textarea,
.path {
    cursor: none;
}

/* --- BASE & CORE --- */
*, *::before, *::after { box-sizing: border-box; }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    font-family: var(--primary-font);
    background-color: var(--dark-bg);
    color: var(--light-text);
    margin: 0;
    overflow-x: hidden;
    cursor: none;
}

/* --- New Services Title --- */
.services-title {
    font-family: var(--primary-font);
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--grey-text);
    margin-top: 5rem; /* This adds the space below the "View Our Work" button */
    margin-bottom: -1rem; /* This slightly reduces the default bottom margin */

    /* Animation: This uses the same system as the cards to fade in */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.services-title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- VISUAL FOUNDATION (CURSOR, BACKGROUND, GRID) --- */
#dynamic-gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(
        80vmax at var(--cursor-x) var(--cursor-y),
        rgba(114, 150, 203, 0.15),
        transparent
    ),
    radial-gradient(
        60vmax at calc(100vw - var(--cursor-x)),
        rgba(255, 197, 90, 0.1),
        transparent
    );
    transition: background 0.5s ease-out;
}

/* Instantly hide preloader on returning visits to prevent flash */
body:not(.is-new-visitor) #preloader {
    display: none;
}

#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
}

.cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--main-yellow);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

#site-background-particles { display: none; } 

/* --- CONTENT & TRANSITIONS --- */
#main-content-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: transparent;
    opacity: 0; /* START INVISIBLE - JS will reveal it */
    transition: opacity 0.6s ease-in-out;
	padding-top: 120px;
}
#main-content-container.visible {
    opacity: 1;
}
/* New transition for the cutscene */
#main-content-container.slide-up-reveal {
    animation: slideUpFromBottom 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

#page-transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--accent-blue);
    z-index: 9998;
    transform: translateX(100%);
    pointer-events: none;
}
body.is-transitioning #page-transition-curtain {
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}
body.is-loaded #page-transition-curtain {
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1) 0.2s; /* Delay out-transition */
}

/* New Desktop Navigation */
.desktop-nav-new {
    display: none; /* Hidden on mobile by default */
    align-items: center;
    gap: 2.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 2rem;
    border-radius: 30px;
    background-color: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(10px);
}
.desktop-nav-new a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
.desktop-nav-new a:hover {
    color: var(--main-yellow);
}
#nav-indicator {
    position: absolute;
    bottom: 6px;
    height: 3px;
    background-color: var(--main-yellow);
    border-radius: 3px;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Mobile-Only Menu Button */
.mobile-menu-button {
    display: flex; /* Shown by default, hidden by media query */
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}
.mobile-menu-button .hamburger-icon {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mobile-menu-button .hamburger-icon span {
    width: 100%;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

.page-transition-curtain {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 51vw;
    background: var(--dark-bg);
    z-index: 9998;
    pointer-events: none;
}
.curtain-left { left: 0; transform: translateX(-100%); }
.curtain-right { right: 0; transform: translateX(100%); }

body.is-transitioning .page-transition-curtain {
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}
body.is-loaded .page-transition-curtain {
    transform: translateX(calc(var(--direction) * 100%));
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1) 0.2s;
}
body.is-loaded .curtain-left { --direction: -1; }
body.is-loaded .curtain-right { --direction: 1; }

/* --- NEW HEADER & FULLSCREEN NAV --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    opacity: 1; /* Make it always visible */
}

#main-header .logo-container img { height: 50px; }
.nav-menu-button {
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}
.nav-menu-button .hamburger-icon {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.nav-menu-button .hamburger-icon span {
    width: 100%;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}
#fullscreen-nav-overlay.is-active .nav-menu-button .hamburger-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#fullscreen-nav-overlay.is-active .nav-menu-button .hamburger-icon span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

#fullscreen-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}
#fullscreen-nav-overlay.is-active {
    transform: translateY(0);
}
.fullscreen-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.fullscreen-link {
    font-family: var(--heading-font);
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--light-text);
    text-decoration: none;
    line-height: 1.1;
    overflow: hidden; /* For the reveal effect */
    display: block;
    padding: 0.2em 0;
}
.fullscreen-link > * {
    will-change: transform;
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
#fullscreen-nav-overlay.is-active .fullscreen-link > * {
    transform: translateY(0);
}
/* Staggered animation delays for the links */
#fullscreen-nav-overlay.is-active .fullscreen-link:nth-child(1) > * { transition-delay: 0.2s; }
#fullscreen-nav-overlay.is-active .fullscreen-link:nth-child(2) > * { transition-delay: 0.28s; }
#fullscreen-nav-overlay.is-active .fullscreen-link:nth-child(3) > * { transition-delay: 0.36s; }
#fullscreen-nav-overlay.is-active .fullscreen-link:nth-child(4) > * { transition-delay: 0.44s; }
.fullscreen-link span {
    font-size: 0.2em;
    font-family: var(--primary-font);
    font-weight: 300;
    margin-right: 0.5em;
    color: var(--grey-text);
}


}
#main-content-container.is-visible {
    opacity: 1; /* Class to fade it in */
}
#main-content-container.fade-out { opacity: 0 !important; }

main { flex-grow: 1; }
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--dark-bg); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 1; transition: opacity 0.5s ease-out; }
.preloader-content { text-align: center; }
.preloader-logo { height: 120px; width: auto; animation: pulse 1.5s infinite ease-in-out; }

header { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1.5rem; position: sticky; top: 0; background-color: rgba(18, 18, 18, 0.8); backdrop-filter: blur(10px); width: 100%; z-index: 1000; }
.logo-container { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.header-logo { height: 50px; width: auto; }
.logo-main { font-family: var(--heading-font); font-size: 1.5rem; color: var(--light-text); }
.desktop-nav { display: flex; gap: 0.5rem; }
.desktop-nav a { color: var(--light-text); text-decoration: none; font-weight: 600; padding: 0.5rem 1rem; border: 1px solid var(--grey-text); border-radius: 20px; transition: background-color 0.3s, color 0.3s; }
.desktop-nav a:hover { background-color: var(--main-yellow); color: var(--dark-bg); border-color: var(--main-yellow); }

/* --- CUTSCENE --- */
#cutscene-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #05050a; z-index: 9990; overflow: hidden; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.5s ease-out; }
#cutscene-container.visible { display: flex; opacity: 1; }
#scene-text-container { position: relative; width: 90%; max-width: 1000px; height: 100px; display: flex; justify-content: center; align-items: center; }
.scene-text { font-family: var(--heading-font); font-size: clamp(2rem, 5vw, 3.5rem); color: var(--light-text); text-align: center; position: absolute; width: 100%; left: 0; opacity: 0; will-change: transform, opacity, filter; }
.scene-text.animate-in { animation: slide-in-focus 1s forwards cubic-bezier(0.19, 1, 0.22, 1); }
.scene-text.animate-out { animation: recede-and-fade 1.2s forwards ease-in; }
#text-final { white-space: nowrap; }
#text-final.animate-in { animation: final-slam 0.5s 0.2s forwards cubic-bezier(0.165, 0.84, 0.44, 1); }
#cutscene-container.finale-impact { animation: shake 0.5s, flash 0.5s; }
#text-final.recede-up { animation: recede-up 1s forwards ease-out; }
#final-brand-signature { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1rem; opacity: 0; }
#final-brand-signature.animate-in { animation: signature-fade-in 1.5s forwards; }
#signature-logo { height: 80px; opacity: 0; transform: scale(0.8); animation: forge-logo 1.5s forwards cubic-bezier(0.19, 1, 0.22, 1); }
#signature-text { font-family: var(--heading-font); font-size: 2rem; color: var(--light-text); opacity: 0; animation: fade-in-slow 1s 0.5s forwards; }
#skip-intro-btn { position: fixed; bottom: 2rem; right: 2rem; background: transparent; border: 1px solid var(--grey-text); color: var(--grey-text); font-family: var(--primary-font); font-weight: 600; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; transition: all 0.3s; opacity: 0; animation: fadeIn 1s 1s forwards; }
#skip-intro-btn:hover { background-color: var(--light-text); color: var(--dark-bg); }

/* --- HOMEPAGE HUB --- */
.selection-hub { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; text-align: center; }
.main-title { font-family: var(--heading-font); font-size: clamp(2.5rem, 8vw, 3.5rem); color: var(--light-text); margin-bottom: 3rem; animation: fadeInUp 1s ease-out 0.8s both; }

.main-subtitle {
    font-size: 1.1rem;
    color: var(--grey-text);
    max-width: 600px;
    margin: -2rem auto 2.5rem; /* Positions it nicely below the title */
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards; /* Fades in after the title */
}

/* --- DEFINITIVE HOMEPAGE BUTTON STYLE --- */

/* This is the button's STARTING state: invisible and down */
#home-cta-button {
    opacity: 0;
    transform: translateY(30px);
    margin-bottom: 4rem;
    /* This transition handles ALL state changes: fade-in and hover */
    transition: opacity 1s ease-out, 
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* This class, added by JS, triggers the fade-in animation */
#home-cta-button.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* This is the PERMANENT hover state. It no longer conflicts with anything. */
#home-cta-button:hover {
    transform: translateY(-6px) scale(1.1); /* Bounce effect */
    animation: glow-pulse 1.5s ease-in-out infinite alternate;
}

/* --- UPGRADED: Service Path Styles --- */
/* --- DEFINITIVE SERVICE CARD STYLE --- */
.paths-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* This is the key: Create two equal columns */
    gap: 2rem;
    max-width: 900px;
    width: 100%;
    margin-top: 4rem; /* Adds some extra space below the main button */
}

/* This is the card's STARTING state: invisible and down */
.path {
    background-color: var(--card-bg);
    border: 1px solid #2a2a2a;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    /* The crucial starting state and transition */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, 
                transform 1s ease-out; /* The fade-in transition */
}

/* This is the card's VISIBLE state. JS will add this class. */
.path.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* The hover effect now uses transition, NOT animation, to prevent conflicts. */
.path:hover {
    /* JS still handles the dynamic rotation, but we add a smooth transition back */
    transition: transform 0.2s ease-out, box-shadow 0.4s ease-out;
}

/* All the child elements (.path::after, .path-content, etc.) remain the same */
.path::after { content: ''; position: absolute; top: var(--glare-y, 50%); left: var(--glare-x, 50%); transform: translate(-50%, -50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.path:hover::after { opacity: 1; }
.path::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 0; opacity: 0.3; transition: opacity 0.4s, transform 0.4s; }
#web-dev::before { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
#media-prod::before { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?q=80&w=1964&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
#marketing-design::before { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1607863680198-23d4b2565df0?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
#business-ops::before { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
.path-content { position: relative; z-index: 1; transform: translateY(40%); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.path:hover .path-content { transform: translateY(0); }
.path h2 { font-family: var(--heading-font); font-size: 1.8rem; margin: 0 0 1rem; color: var(--main-yellow); }
.path p { font-size: 1rem; line-height: 1.6; opacity: 0; transition: opacity 0.3s; }
.path:hover p { opacity: 1; }

.path::after {
    content: '';
    position: absolute;
    /* Use the CSS variables set by Javascript */
    top: var(--glare-y, 50%);
    left: var(--glare-x, 50%);
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease; /* Simplified transition */
    pointer-events: none;
}
.path:hover::after {
    opacity: 1;
    width: 600px;
    height: 600px;
}
.path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.3;
    transition: opacity 0.4s, transform 0.4s;
}
#web-dev::before   { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
#media-prod::before { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?q=80&w=1964&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
#marketing-design::before { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1607863680198-23d4b2565df0?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
#business-ops::before { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
.path-content { position: relative; z-index: 1; transform: translateY(40%); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.path:hover .path-content { transform: translateY(0); }
.path h2 { font-family: var(--heading-font); font-size: 1.8rem; margin: 0 0 1rem; color: var(--main-yellow); }
.path p { font-size: 1rem; line-height: 1.6; opacity: 0; transition: opacity 0.3s; }
.path:hover p { opacity: 1; }


/* --- GENERIC PAGE STYLES --- */
.hero-section { max-width: 800px; margin: 4rem auto; text-align: center; padding: 0 1.5rem; animation: fadeIn 1s ease-out; }
.hero-section h1 { font-family: var(--heading-font); font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1.3; color: var(--main-yellow); margin-bottom: 1.5rem; }
.hero-section p { font-size: 1.1rem; line-height: 1.8; color: var(--grey-text); }
.feature-section { max-width: 900px; margin: 4rem auto; padding: 0 1.5rem; animation: fadeIn 1s ease-out; }
.feature-section h2 { text-align: center; font-family: var(--heading-font); font-size: 2.2rem; margin-bottom: 3rem; }
.feature-list { list-style: none; padding: 0; border-top: 1px solid #2a2a2a; }
/* ADD THIS NEW CONSOLIDATED RULE */
.feature-list li, .project-item, .fade-in-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ADD THIS NEW CONSOLIDATED RULE */
.feature-list li.in-view, .project-item.in-view, .fade-in-item.in-view {
    opacity: 1;
    transform: translateY(0);
}
.feature-list li span { font-family: var(--heading-font); font-size: 1.2rem; color: var(--main-yellow); font-weight: 700; padding-top: 0.3rem; }
.feature-list li div h3 { font-family: var(--heading-font); font-size: 1.5rem; margin: 0 0 0.5rem 0; }
.feature-list li div p { margin: 0; color: var(--grey-text); line-height: 1.7; }
.policy-content { max-width: 800px; margin: 2rem auto 6rem auto; padding: 0 1.5rem; animation: fadeIn 1s ease-out; }
.policy-content h2 { font-family: var(--heading-font); font-size: 1.5rem; color: var(--main-yellow); margin-top: 2.5rem; margin-bottom: 1rem; }
.policy-content p { font-size: 1rem; line-height: 1.8; color: var(--grey-text); }
.portfolio-container { max-width: 1100px; margin: 4rem auto; padding: 0 1.5rem; }

/* --- NEW: Portfolio Project Separator --- */

.project-item {
    /* This creates the space for the line and separates the projects */
    padding-bottom: 6rem;
    margin-bottom: 6rem;

    /* This is the visual separator line */
    border-bottom: 1px solid #2a2a2a; 
}

/* This is a crucial detail: it removes the line from the very last project on the page */
.project-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.project-item-reversed .project-image-container { order: 2; }
.project-image-container img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.project-details h3 { font-family: var(--heading-font); font-size: 2rem; color: var(--main-yellow); margin: 0 0 1rem 0; }
.project-details .project-description { font-size: 1.1rem; color: var(--grey-text); line-height: 1.7; margin-bottom: 2rem; }
.project-details h4 { font-family: var(--heading-font); font-size: 1.2rem; color: var(--light-text); margin: 0 0 0.5rem 0; border-left: 3px solid var(--main-yellow); padding-left: 1rem; }
.project-details ul { list-style: none; padding: 0 0 0 1.2rem; margin: 0 0 2rem 0; }
.project-details li { margin-bottom: 0.5rem; color: var(--grey-text); }

/* --- MODAL STYLES --- */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    /* This allows the container itself to scroll if the content is too big */
    overflow-y: auto; 
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

/* Find and replace this rule in your style.css */
.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s;
    /* Add vertical margins to ensure space from the top and bottom edges of the screen */
    margin-top: 5rem;
    margin-bottom: 5rem;
    /* This ensures the modal content shrinks to fit if needed, but flexbox handles most of it */
    flex-shrink: 0;
}
.modal-container.visible { opacity: 1; visibility: visible; }
.modal-container.visible .modal-content { transform: scale(1); }
.close-button { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--grey-text); font-size: 2rem; cursor: pointer; transition: color 0.3s; }
.close-button:hover { color: var(--light-text); }
.modal-content h2 { color: var(--main-yellow); font-size: 1.8rem; margin: 0 0 1rem; }
.modal-content p { color: var(--grey-text); margin-bottom: 1.5rem; }
.modal-content p.about-text { line-height: 1.8; color: var(--light-text); text-align: left; }

/* --- FORM STYLES --- */
.contact-section { background-color: #1a1a1a; padding: 4rem 1.5rem; text-align: center; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a;}
.contact-section h2 { font-size: 2.2rem; color: var(--main-yellow); }
.contact-section p { color: var(--grey-text); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
form { display: flex; flex-direction: column; gap: 1rem; max-width: 600px; margin: 0 auto; }
form input, form textarea { padding: 1rem; border: 1px solid #2a2a2a; border-radius: 8px; font-family: var(--primary-font); font-size: 1rem; background-color: #252525; color: var(--light-text); }
form input:focus, form textarea:focus { outline: none; border-color: var(--main-yellow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid input { width: 100%; }
form input[type="tel"] { width: 100%; }
form textarea { resize: none; min-height: 120px; }
.service-options { border: 1px solid #2a2a2a; border-radius: 8px; padding: 1rem 1.5rem; margin-top: 0.5rem; text-align: left; }
.service-options legend { font-weight: 600; color: var(--grey-text); padding: 0 0.5em; margin-left: -0.5em; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-grid label { display: flex; align-items: center; cursor: pointer; font-size: 0.9rem; position: relative; user-select: none; transition: color 0.2s ease; }
.service-grid label:hover { color: var(--light-text); }
.service-grid input[type="checkbox"] { opacity: 0; position: absolute; }
.service-grid label span { padding-left: 30px; }
.service-grid label span::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; background-color: #252525; border: 1px solid #444; border-radius: 4px; transition: all 0.2s ease; }
.service-grid label:hover span::before { border-color: var(--main-yellow); }
.service-grid input[type="checkbox"]:checked + span::before { background-color: var(--main-yellow); border-color: var(--main-yellow); }
.service-grid label span::after { content: '✓'; position: absolute; left: 4px; top: 50%; transform: translateY(-50%) scale(0); font-size: 16px; font-weight: bold; color: var(--dark-bg); transition: transform 0.2s ease; }
.service-grid input[type="checkbox"]:checked + span::after { transform: translateY(-50%) scale(1); }


/* --- NEW: Particle Button Styles --- */
.cta-button-new {
    display: inline-block;
    position: relative;
    padding: 1rem 2rem;
    background-color: var(--accent-red);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    /* cursor: pointer; <-- We use the custom cursor now */
    overflow: hidden;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    align-self: center; /* Center buttons in flex layouts */
    margin-top: 1rem;
}
.cta-button-new:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(253, 71, 35, 0.4);
}
.cta-button-new span { position: relative; z-index: 2; }
.particle-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--main-yellow);
    opacity: 0;
    will-change: transform, opacity;
}
.cta-button-new:hover .particle { animation: explode 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards; }

.cta-button-new.sending { background-color: var(--accent-blue) !important; transform: translateY(0) scale(1); }
.cta-button-new.sent { background-color: #28a745 !important; transform: translateY(0) scale(1); cursor: default; }

.thank-you-container .cta-button-new {
    background-color: var(--main-yellow);
    color: var(--dark-bg);
}
.thank-you-container .cta-button-new:hover {
    box-shadow: 0 10px 25px rgba(255, 197, 90, 0.4);
}


/* --- FOOTER & MOBILE MENU --- */
footer { background-color: #0c0c0c; border-top: 1px solid #2a2a2a; padding: 2rem 1.5rem; position: relative; z-index: 2; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: var(--grey-text); font-size: 0.9rem; }
.footer-nav a { color: var(--grey-text); text-decoration: none; transition: color 0.3s; }
.footer-nav a:hover { color: var(--main-yellow); }
#hamburger-btn { display: none; width: 30px; height: 24px; position: relative; background: transparent; border: none; cursor: pointer; z-index: 1600; }
#hamburger-btn span { display: block; position: absolute; height: 3px; width: 100%; background: var(--light-text); border-radius: 3px; left: 0; transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, top 0.3s ease-in-out; }
#hamburger-btn span:nth-child(1) { top: 0px; }
#hamburger-btn span:nth-child(2) { top: 10px; }
#hamburger-btn span:nth-child(3) { top: 20px; }
#hamburger-btn.is-active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
#hamburger-btn.is-active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
#hamburger-btn.is-active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }
#mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(18, 18, 18, 0.85); backdrop-filter: blur(15px); z-index: 1500; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
#mobile-menu-overlay.visible { opacity: 1; visibility: visible; }
.mobile-links { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mobile-links a { font-family: var(--heading-font); font-size: 2.5rem; color: var(--light-text); text-decoration: none; transition: color 0.3s; opacity: 0; transform: translateY(20px); }
.mobile-links a:hover { color: var(--main-yellow); }
#mobile-menu-overlay.visible .mobile-links a { animation: fadeInUp 0.5s forwards; }
#mobile-menu-overlay.visible .mobile-links a:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu-overlay.visible .mobile-links a:nth-child(2) { animation-delay: 0.2s; }
#mobile-menu-overlay.visible .mobile-links a:nth-child(3) { animation-delay: 0.3s; }
#mobile-menu-overlay.visible .mobile-links a:nth-child(4) { animation-delay: 0.4s; }
.mobile-close-button { position: absolute; top: 2rem; right: 2rem; background: transparent; border: 1px solid var(--grey-text); color: var(--grey-text); border-radius: 50%; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; /* cursor: pointer; */ transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); opacity: 0; transform: scale(0.8); }
.mobile-close-button svg { transition: transform 0.4s ease; }
.mobile-close-button span { display: none; }
.mobile-close-button:hover { border-color: var(--main-yellow); color: var(--main-yellow); transform: scale(1.1) rotate(90deg); }
.mobile-close-button:hover svg { transform: rotate(90deg); }
#mobile-menu-overlay.visible .mobile-close-button { opacity: 1; transform: scale(1); animation: fadeIn 0.5s 0.6s forwards; }
.thank-you-container { max-width: 600px; margin: 6rem auto; text-align: center; animation: fadeInUp 1s ease-out; }
.thank-you-container h1 { font-family: var(--heading-font); font-size: clamp(2.5rem, 8vw, 3.5rem); color: var(--main-yellow); margin-bottom: 1rem; }
.thank-you-container p { font-size: 1.1rem; color: var(--grey-text); line-height: 1.8; margin-bottom: 2.5rem; }
.checkmark-container { width: 100px; height: 100px; margin: 0 auto 2rem auto; }
.checkmark-icon { width: 100px; height: 100px; }
.checkmark-circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 3; stroke-miterlimit: 10; stroke: var(--main-yellow); fill: rgba(255, 197, 90, 0.1); animation: stroke-draw 1s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards; }
.checkmark-check { transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; stroke-width: 4; stroke: var(--main-yellow); animation: stroke-draw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 1.2s forwards; }

/* --- KEYFRAMES --- */
@keyframes stroke-draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes background-glow { 50% { background-color: #0d0d1a; } }
@keyframes slide-in-focus { from { opacity: 0; transform: translateY(100px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); text-shadow: 0 0 15px rgba(255, 197, 90, 0.4); } }
@keyframes recede-and-fade { from { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); } to { transform: translateY(-80px) scale(0.7); opacity: 0; filter: blur(4px); } }
@keyframes final-slam { from { opacity: 0; transform: scale(2.5); filter: blur(5px); } to { opacity: 1; transform: scale(1); filter: blur(0); text-shadow: 0 0 15px rgba(255, 197, 90, 0.6), 0 0 40px rgba(216, 0, 55, 0.4); } }
@keyframes shake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } }
@keyframes flash { from { box-shadow: inset 0 0 150px 50px rgba(255, 255, 255, 0.4); } to { box-shadow: none; } }
@keyframes recede-up { to { transform: translateY(-80px); opacity: 0; } }
@keyframes signature-fade-in { to { opacity: 1; } }
@keyframes forge-logo { to { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 10px rgba(114, 150, 203, 0.5)); } }
@keyframes fade-in-slow { to { opacity: 0.8; } }
@keyframes explode {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
/* Assign random delays and end positions to each particle */
.cta-button-new:hover .particle:nth-child(1) { --tx: -80px; --ty: -50px; animation-delay: 0.02s; }
.cta-button-new:hover .particle:nth-child(2) { --tx: -30px; --ty: 90px; animation-delay: 0.1s; }
.cta-button-new:hover .particle:nth-child(3) { --tx: 90px; --ty: -20px; animation-delay: 0.05s; }
.cta-button-new:hover .particle:nth-child(4) { --tx: 60px; --ty: 80px; animation-delay: 0.12s; }
.cta-button-new:hover .particle:nth-child(5) { --tx: -90px; --ty: 10px; animation-delay: 0.04s; }
.cta-button-new:hover .particle:nth-child(6) { --tx: 20px; --ty: -90px; animation-delay: 0.08s; }
.cta-button-new:hover .particle:nth-child(7) { --tx: -65px; --ty: 40px; animation-delay: 0.15s; }
.cta-button-new:hover .particle:nth-child(8) { --tx: 75px; --ty: -70px; animation-delay: 0.03s; }
.cta-button-new:hover .particle:nth-child(9) { --tx: -50px; --ty: -80px; animation-delay: 0.11s; }
.cta-button-new:hover .particle:nth-child(10) { --tx: 85px; --ty: 60px; animation-delay: 0.06s; }
.cta-button-new:hover .particle:nth-child(11) { --tx: -75px; --ty: -10px; animation-delay: 0.07s; }
.cta-button-new:hover .particle:nth-child(12) { --tx: 100px; --ty: 20px; animation-delay: 0.14s; }
.cta-button-new:hover .particle:nth-child(13) { --tx: -20px; --ty: 75px; animation-delay: 0.01s; }
.cta-button-new:hover .particle:nth-child(14) { --tx: 40px; --ty: -60px; animation-delay: 0.09s; }
.cta-button-new:hover .particle:nth-child(15) { --tx: -100px; --ty: 30px; animation-delay: 0.13s; }
.cta-button-new:hover .particle:nth-child(16) { --tx: 60px; --ty: -100px; animation-delay: 0.02s; }
.cta-button-new:hover .particle:nth-child(17) { --tx: -40px; --ty: 60px; animation-delay: 0.08s; }
.cta-button-new:hover .particle:nth-child(18) { --tx: 70px; --ty: 30px; animation-delay: 0.1s; }
.cta-button-new:hover .particle:nth-child(19) { --tx: -70px; --ty: -70px; animation-delay: 0.06s; }
.cta-button-new:hover .particle:nth-child(20) { --tx: 90px; --ty: 90px; animation-delay: 0.11s; }

/* --- Cutscene Particle Background --- */
#cutscene-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#cutscene-particles .particle-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    background: transparent;
    animation: move-particles 150s linear infinite;
}
#cutscene-particles .layer-1 {
    animation-duration: 50s;
    box-shadow: 1836px 1560px #FFF, 1479px 653px #FFF, 1599px 1277px #FFF, 911px 933px #FFF, 1876px 1477px #FFF, 143px 1475px #FFF, 1307px 113px #FFF, 1530px 1526px #FFF, 1683px 1215px #FFF, 106px 1205px #FFF, 1334px 1238px #FFF, 497px 1490px #FFF, 226px 899px #FFF, 127px 1974px #FFF, 1432px 133px #FFF, 893px 1319px #FFF, 1502px 1479px #FFF, 1184px 1742px #FFF, 947px 1470px #FFF, 103px 1855px #FFF, 231px 402px #FFF, 519px 194px #FFF, 93px 852px #FFF, 617px 601px #FFF, 1636px 1494px #FFF, 1729px 1386px #FFF, 715px 1867px #FFF, 35px 337px #FFF, 1545px 395px #FFF, 1639px 1664px #FFF, 819px 535px #FFF, 411px 1833px #FFF, 1318px 1802px #FFF, 1782px 283px #FFF, 360px 1917px #FFF, 1829px 966px #FFF, 1108px 843px #FFF, 1458px 1018px #FFF, 686px 81px #FFF, 1024px 308px #FFF;
}
#cutscene-particles .layer-2 {
    animation-duration: 100s;
    width: 2px;
    height: 2px;
    box-shadow: 1113px 1684px #FFF, 1928px 1039px #FFF, 24px 1255px #FFF, 1189px 1122px #FFF, 1195px 321px #FFF, 517px 780px #FFF, 1827px 1693px #FFF, 1708px 1419px #FFF, 248px 158px #FFF, 189px 913px #FFF, 1373px 1989px #FFF, 870px 1830px #FFF, 1121px 441px #FFF, 130px 1891px #FFF, 401px 868px #FFF, 1740px 580px #FFF, 632px 1354px #FFF, 1528px 338px #FFF, 888px 153px #FFF, 544px 1681px #FFF;
}
#cutscene-particles .layer-3 {
    animation-duration: 150s;
    width: 3px;
    height: 3px;
    box-shadow: 421px 182px #FFF, 1631px 1700px #FFF, 1194px 1402px #FFF, 1281px 192px #FFF, 1203px 569px #FFF, 1799px 728px #FFF, 1870px 1335px #FFF, 1157px 875px #FFF, 105px 456px #FFF, 735px 91px #FFF, 1989px 406px #FFF, 333px 1459px #FFF, 981px 1776px #FFF, 1493px 941px #FFF;
}

@keyframes move-particles {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    header { padding: 0.8rem 1rem; }
    .logo-main { font-size: 1.2rem; }
    .desktop-nav { display: none; }
    #hamburger-btn { display: block; }
    .paths-container { grid-template-columns: 1fr; max-width: 400px; gap: 1.5rem; }
    .path { height: 350px; }
    .feature-list li { grid-template-columns: 1fr; gap: 0.5rem; text-align: center; }
    .feature-list li span { padding-top: 0; }
    .project-item, .project-item-reversed { grid-template-columns: 1fr; }
    .project-item-reversed .project-image-container { order: 1; }
    .project-details { text-align: center; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .modal-container { align-items: flex-start; overflow-y: auto; padding-top: 2rem; padding-bottom: 2rem; }
    .modal-content { width: 90%; max-width: 450px; }
    .form-grid, .service-grid { grid-template-columns: 1fr; }
    .cta-button-new:hover { transform: translateY(0) scale(1); } /* Disable hover lift on mobile */
    .cta-button-new:hover .particle { animation: none; } /* Disable particles on mobile */
    .desktop-nav-new { display: none; }
    #fullscreen-nav-overlay { display: flex; } /* Ensure it's visible on mobile */
}

/* --- Mobile Modal Fixes --- */
.modal-container {
    /* 1. Stop centering the modal vertically */
    align-items: flex-start;
    /* 2. Enable scrolling for the entire overlay if the content is too tall */
    overflow-y: auto;
    /* 3. Add some breathing room at the top and bottom */
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* 4. Make the two-column form grids stack into a single column */
.form-grid,
.service-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 769px) {
    .desktop-nav-new { display: flex; }
    .mobile-menu-button { display: none; }
}

@keyframes glow-pulse {
    from {
        opacity: 1;
        box-shadow: 0 10px 25px rgba(253, 71, 35, 0.4), /* <-- NEW Orange-Red */
                    0 0 20px rgba(255, 100, 60, 0.7);  /* <-- NEW Orange Glow */
    }
    to {
        opacity: 1;
        box-shadow: 0 10px 35px rgba(253, 71, 35, 0.6), /* <-- NEW Orange-Red */
                    0 0 40px rgba(255, 100, 60, 1);    /* <-- NEW Orange Glow */
    }
}
