@charset "utf-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* =========================================
	NAV BAR (cant figure out how to keep the
			on all pages)
   ========================================= */
header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    
    /* Fixed Dimensions - This stops the jumping */
    height: 70px;          /* The "Small" height you prefer */
    width: 100%;
    padding: 0 40px;       /* Fixed side padding */
    
    background-color: #ffffff;
    border-bottom: 1px solid #f4f4f4;
    position: relative;
    z-index: 1000;         /* Ensures it stays above Wonderland chaos */
}

/* This forces the logo to be the EXACT same size on every single pixel of the internet */
.logo-container img {
    height: 30px !important;    /* Use !important to override any page-specific leaks */
    width: auto !important;      /* Maintains the aspect ratio */
    min-height: 30px !important; /* Prevents collapsing */
    max-height: 30px !important; /* Prevents growing */
    display: block !important;
}

/* Ensure the link container doesn't add its own weird padding */
.logo-container {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;             /* Fixed gap between links */
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.9rem;      /* The smaller font-size you prefer */
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;    /* Prevents text from ever wrapping */
}

nav a:hover {
    color: #fe1717;
}
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: sans-serif;
    overflow-x: hidden;
}

/* =========================================
   FOOTER: FIXED & CENTERED
   ========================================= */
footer {
    width: 100%;
    padding: 60px 20px;
    background-color: #ffffff;
    border-top: 1px solid #f4f4f4;
    
    /* Flexbox forces everything to the center line */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column; /* Stacks links on top of copyright */
    gap: 15px;             /* Space between links and copyright */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fe1717;
}

footer p {
    font-size: 0.8rem;
    color: #888;
    margin: 0; /* Removes default browser margins that cause shifts */
}

/* =========================================
   HOME PAGE
   ========================================= */

#hero {
    text-align: center;
    max-width: 850px;
    margin: 100px auto 60px auto; /* Centered with breathing room */
    padding: 0 20px;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

#hero .subtitle {
    font-size: 1.2rem;
    color: #fe1717; /* Your signature red */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-description p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.hero-description span {
    font-weight: bold;
    color: #1a1a1a;
}

/* THE HORIZON */
.horizon-track {
    position: relative;
    width: 100%;           /* Changed to 100% to fix the left-shift */
    height: 140px;
    background-color: #f8f8f8;
    border-bottom: 5px solid #fe1717; /* Thick red line for merging */
    margin-top: 60px;
    overflow: visible;     /* Allows assets to sit slightly "in" the line */
}

#character {
    position: absolute;
    bottom: -5px;          /* Sinks character 5px INTO the red line */
    left: 0;
    z-index: 10;
}

#character img {
    width: 70px;           /* Adjust based on your SVG proportions */
    height: auto;
    display: block;
}

.rabbit-hole {
    position: absolute;
    right: 15%;            /* Fixed distance from right */
    bottom: -10px;         /* Sinks the dirt mound deeper than the character */
    z-index: 5;
    transition: transform 0.3s ease;
}

.rabbit-hole img {
    width: 180px;          /* Making it a more significant target */
    height: auto;
    display: block;
}

.rabbit-hole:hover {
    transform: scale(1.05); /* Subtle grow when hovering the mound */
}
/* =========================================
   PAGE TRANSITIONS 
   ========================================= */
/* This gives a smooth fade */
main {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* =========================================
   PROJECTS PAGE STYLES 
   ========================================= */
#projects-hero {
    text-align: center;
    padding: 60px 20px 20px 20px;
}

.project-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
    min-height: 400px; /* Keeps the page height stable */
}

/* Hide all rows by default */
.project-row {
    display: none; 
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

/* Only show the row with the 'active' class, and animate it in */
.project-row.active {
    display: flex;
    animation: riseUp 0.6s ease-out forwards;
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(60px); /* Starts lower */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Rises to normal position */
    }
}

/* =========================================
   PROJECTS PAGE STYLES
   ========================================= */

.project-row {
    display: none; /* Hidden until .active is added by JS */
    flex-direction: row;
    align-items: center;
    gap: 60px; /* Space between image and text */
    margin-top: 40px;
}

.project-row.active {
    display: flex;
    animation: riseUp 0.6s ease-out forwards;
}

/* 1. Constraint the Image Side */
.project-visual { 
    flex: 0 0 55%; /* Image takes up exactly 55% of the row */
    max-width: 55%;
}

.project-visual img {
    width: 100%;       /* Forces image to stay inside the 55% container */
    height: auto;      /* Keeps the aspect ratio perfect */
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 2. Give the Text Room to Breathe */
.project-details { 
    flex: 0 0 40%; /* Text takes up 40% (leaving 5% for the gap) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* Ensures text stays left-aligned in its column */
}

/* 3. Handle the Placeholders (if still using them) */
.visual-placeholder {
    width: 100%;
    height: 400px; /* Increased height for better presence */
    background: #1a1a1a;
    border-radius: 4px;
}
.project-row:hover .visual-placeholder {
    transform: scale(1.03); 
    box-shadow: 0 15px 40px rgba(254, 23, 23, 0.2); 
}
.view-project {
    display: inline-block;
    text-decoration: none;
    color: #fe1717;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.view-project:hover {
    color: #1a1a1a;
    transform: translateX(10px);
}

/* The Descent Button Container */
.descent-container {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}
/* Overriding the absolute position of the standard rabbit hole for this page */
.descent-btn {
    position: relative;
    right: auto;
    bottom: auto;
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */
#about-content {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

#about-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#about-content p {
    font-size: 1.1rem;
    color: #444; 
}
/* =========================================
   SERVICES / PROCESS PAGE STYLES
   ========================================= */
.process-container {
    max-width: 900px;
    margin: 0 auto 100px auto; 
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Forces equal space between the cards */
}

.process-step {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #ffffff; /* Clean white card background */
    padding: 40px; /* Large internal padding for breathing room */
    border-radius: 8px;
    border-left: 6px solid #fe1717; /* Thick red accent line */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Soft baseline shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Premium Hover Effect */
.process-step:hover {
    transform: translateY(-8px); /* Card glides up smoothly */
    box-shadow: 0 15px 35px rgba(254, 23, 23, 0.15); /* Subtle red glow in the shadow */
}

.step-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fe1717;
    line-height: 1;
    opacity: 0.9;
    min-width: 80px; /* Keeps numbers perfectly aligned */
}

.step-details h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #1a1a1a;
}

.step-details p {
    margin: 0;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
}
/* =========================================
   CONTACT PAGE STYLES
   ========================================= */
.contact-container {
    max-width: 1000px;
    margin: 0 auto 100px auto;
    padding: 0 5%;
    display: flex;
    gap: 60px;
}

/* Left Side: Info Text */
.contact-info {
    flex: 1;
    text-align: left; /* Ensures this overrides any old centered text */
}

.contact-info p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: #fe1717;
    transform: translateX(5px);
}

/* Right Side: The Form */
.contact-form-wrapper {
    flex: 1;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 6px solid #fe1717;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.form-group input, 
.form-group textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #fe1717;
    box-shadow: 0 0 8px rgba(254, 23, 23, 0.2);
    background: #ffffff;
}

.submit-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #fe1717;
    transform: translateY(-3px);
}

/* =========================================
   THE WANDERING CHARACTER ANIMATION
   ========================================= */

#walking-character {
    position: fixed;
    bottom: 0;
    left: -100px; /* Starts slightly off-screen */
    width: 60px;  /* Small size for the "patrol" effect */
    z-index: 9999; /* Ensures he walks on top of everything */
    pointer-events: none; /* Allows users to click "through" him if he's over a link */
    
    /* The Animation: 20 seconds, linear movement, loops forever */
    animation: walkBackAndForth 25s linear infinite;
}

#walking-character img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes walkBackAndForth {
    0% {
        left: -5%;
        transform: scaleX(1); /* Facing Right */
    }
    45% {
        left: 105%;
        transform: scaleX(1); /* Still Facing Right at the edge */
    }
    50% {
        left: 105%;
        transform: scaleX(-1); /* Flip to face Left */
    }
    95% {
        left: -5%;
        transform: scaleX(-1); /* Still Facing Left at the start */
    }
    100% {
        left: -5%;
        transform: scaleX(1); /* Flip back to face Right for the next loop */
    }
}