/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-grey: #888888;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --easing-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.nav-logo {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Brand Typography */
.brand-title {
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    pointer-events: none;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s var(--easing-smooth);
}

.char.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hero Image Drop - CENTERED FIX */
.hero-img-wrapper {
    position: absolute;
    top: 50%; /* Vertical Center */
    left: 50%; /* Horizontal Center */
    width: 30vw;
    height: 60vh;
    z-index: 2;
    overflow: hidden;
    
    /* Start position: Centered horizontally (-50%), but way up vertically (-150vh) */
    transform: translate(-50%, -150vh); 
    transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-img-wrapper.dropped {
    /* End position: Centered horizontally (-50%) and vertically (-50%) */
    transform: translate(-50%, -50%) rotate(3deg);
}

.hero-img-inner {
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter:  contrast(1.3);
}

/* Bottom Static Content - CENTERED FIX */
.hero-bottom {
    position: absolute;
    bottom: 4rem;
    left: 0;
    width: 100%; /* Ensures full width so centering works */
    display: flex;
    flex-direction: column;
    align-items: center; /* Flex horizontal center */
    justify-content: center;
    z-index: 5;
    text-align: center;
}

.hero-subtext {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--accent-grey);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* --- DRAW BORDER BUTTON --- */
.btn-draw {
    position: relative;
    display: inline-block;
    padding: 1rem 3rem;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-draw div {
    position: absolute;
    background: white;
    transition: all 0.3s ease;
}

.btn-draw .border-top { top: 0; left: 0; width: 0; height: 1px; }
.btn-draw .border-right { top: 0; right: 0; width: 1px; height: 0; }
.btn-draw .border-bottom { bottom: 0; right: 0; width: 0; height: 1px; }
.btn-draw .border-left { bottom: 0; left: 0; width: 1px; height: 0; }

.btn-draw:hover .border-top { width: 100%; transition-delay: 0s; }
.btn-draw:hover .border-right { height: 100%; transition-delay: 0.1s; }
.btn-draw:hover .border-bottom { width: 100%; transition-delay: 0.2s; }
.btn-draw:hover .border-left { height: 100%; transition-delay: 0.3s; }

.btn-draw .border-left { transition-delay: 0s; }
.btn-draw .border-bottom { transition-delay: 0.1s; }
.btn-draw .border-right { transition-delay: 0.2s; }
.btn-draw .border-top { transition-delay: 0.3s; }

/* --- SECTION 2: SCROLL REVEAL --- */
.scroll-reveal-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
    background: var(--bg-color);
}

.reveal-content {
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal-content.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.reveal-content p {
    color: var(--accent-grey);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- SECTION 3: STACKED SERVICES --- */
.stacked-container {
    position: relative;
}

.stack-card {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
    filter: grayscale(00%);
    transition: transform 1s ease;
}

.stack-card:hover .card-bg {
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.card-number {
    font-size: 10rem;
    font-weight: 900;
    opacity: 0.1;
    display: block;
    line-height: 0.5;
}

.card-content h3 {
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card-content p {
    font-size: 1.2rem;
    color: #ccc;
}

/* --- SECTION 4: HORIZONTAL SCROLL --- */
.horizontal-scroll-section {
    height: 400vh;
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.horizontal-track {
    display: flex;
    gap: 50px;
    padding-left: 5vw;
    will-change: transform;
}

.h-item {
    width: 60vw;
    height: 70vh;
    flex-shrink: 0;
    overflow: hidden;
}

.h-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(00%);
}

.h-text-overlay {
    position: absolute;
    bottom: 5vh;
    left: 5vw;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.h-text-overlay.visible {
    opacity: 1;
}

.h-text-overlay h2 {
    font-size: 3rem;
    text-transform: uppercase;
    background: #000;
    padding: 10px 20px;
}

/* --- FOOTER / CONTACT --- */
.contact-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #050505;
    padding: 4rem 2rem;
}

.contact-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--accent-grey);
    margin-bottom: 4rem;
}

.contact-form input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 1rem;
    width: 300px;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus {
    outline: none;
    border-color: white;
}

.footer-bottom {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 2px;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 768px) {
    .navbar { padding: 1.5rem; }
    .nav-links { display: none; }
    .hero-img-wrapper { width: 70vw; height: 50vh; }
    .card-content h3 { font-size: 2.5rem; }
    .card-number { font-size: 6rem; }
    .h-item { width: 80vw; }

    /* Custom style for Nav Buttons to make them smaller */
.nav-btn-style {
    padding: 0.5rem 1.5rem !important; /* Smaller padding */
    margin-left: 1rem; /* Space between buttons */
    font-size: 0.8rem; /* Slightly smaller text */
}

/* Update Nav container to handle the new button sizes */
.nav-links {
    display: flex;
    align-items: center;
}

/* Remove the old simple link styles to avoid conflicts */
.nav-links a {
    opacity: 1; /* Reset opacity so borders are visible */
    /* The rest is handled by btn-draw class */
}

.form-status-msg {
    margin-top: 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    height: 20px; /* Prevents layout jump */
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-status-msg.success {
    color: #4caf50; /* Green for success */
    opacity: 1;
}

.form-status-msg.error {
    color: #f44336; /* Red for error */
    opacity: 1;
}

}