 @import url('https://fonts.googleapis.com/css2?family=Anton&family=Cutive+Mono&display=swap');
 :root {
            --bg-color: #f4f4f4;
            --accent-color: #1a1a1a;
            --border-color: #aaa;
        }

        body {
            background-color: #5072A7;
            /* background-image: url(/assets/images/background-gray.png); */
            font-family: 'Courier New', Courier, monospace;
            margin: 0;
            color: var(--accent-color);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            box-sizing: border-box;
        }

        .frame {
            border: 1px solid var(--border-color);
            background-image: url(/assets/images/fabric.jpg);
            background-color: #fcfcfc;
            border-radius: 20px;
            width: 100%;
            height: 100%;
            min-height: 85vh;
            position: relative;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-sizing: border-box;
            transition: all 0.5s ease;
            overflow: hidden;
        }

        /* Top Bar Layout */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            z-index: 10;
        }

        .logo { font-weight: bold; font-size: 1.2rem; background-color: white; }
        .version-tag { font-family: monospace; font-size: 10px; color: #111111; display: block; margin-top: 5px; background-color: white;}

        nav a { 
            display: block; 
            text-decoration: none; 
            color: black; 
            font-size: 15px; 
            margin-bottom: 5px; 
            text-align: right;
            transition: opacity 0.3s;
            background-color: white;
            padding-left: 10px;
            
        }
        nav a:hover { background-color: black; color: white; }

        /* Main Content Area */
        #main-content {
            flex-grow: 1;
            display: flex;
            flex-direction: row; /* Change from column to row */
            justify-content: space-between; /* Pushes H1 to left, CTA to right */
            align-items: flex-end; /* Keeps both at the bottom */
            transition: opacity 0.4s ease-out;
            gap: 40px; /* Prevents text from touching if screen narrows */
        }

        h1 { 
            font-size: clamp(1.8rem, 4.1vw, 2.5rem); 
            text-transform: uppercase; 
            margin: 0; 
            line-height: 1.1; 
            max-width: 600px;
        }

        /* Updated Bottom Controls */
        .bottom-right {
            /* align-self: flex-end; -> Removed, handled by parent flex */
            text-align: right;
            margin-top: 0; /* Removed top margin */
            z-index: 10;
            flex-shrink: 0; /* Prevents the description box from squishing too much */
        }

        h1 span { font-style: italic; font-weight: lighter; }
        /* Shared layout for all sections */
        .page-section {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: flex-end;
            width: 100%;
            min-height: 70vh; /* Gives content a baseline height */
            transition: all 0.5s ease;
        }

        /* Expanded state for non-home pages */
        .expanded-content {
            align-items: center; /* Centers content vertically since graphic is gone */
            justify-content: center;
            gap: 60px;
        }

        .feature-item h3 {
            font-size: 18px;
            margin-bottom: 5px;
            font-family: "Cutive Mono", monospace;  
            /* text-decoration: underline; */
            background-color: white;

        }
        .feature-item {
            background-color: white;
            padding: 10px;
        }
        .box-title{
            font-size: clamp(1rem, 1.2rem, 1.5rem);
        }
        .feature-item p {
            font-size: clamp(12px, 1rem, 1.3rem);
            line-height: 1.1;
            font-family: "Cutive Mono", monospace;
            color: #111111;
            background-color: white;
        }

        /* Updated hidden state */
        .hidden-content {
            display: none !important; /* Removes it from the layout entirely */
            opacity: 0;
        }
        /* Responsive Graphic */
        .graphic-placeholder {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: clamp(200px, 40vw, 400px);
            height: clamp(200px, 40vw, 400px);
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            pointer-events: none;
            z-index: 1;
        }
        .description { font-size: 12px; width: 100%; max-width: 250px; margin-bottom: 10px; color: #0f0f0f; padding: 10px; margin-left: auto; background-color: white;}
        
        .cta {
            border: 1px solid black;
            padding: 10px 70px;
            border-radius: 20px;
            display: inline-block;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 1px;
            color: white;
            background-color: #131313;
            cursor: pointer;
            transition: background 0.3s;
        }
        .cta:hover { background-color: #ebebeb; color: black;}

        /* Hidden State for One-Page logic */
        .hidden-content {
            opacity: 0 !important;
            pointer-events: none;
        }


        .page-section.expanded-content {
            display: flex;
            flex-direction: row;
            align-items: stretch; /* This makes both sides equal height */
            justify-content: center;
            gap: 20px;
            max-width: 1100px;
            margin: 0 auto;
        }

        /* Left Hero Box */
        .hero-text-container {
            background-color: white;
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: center; /* Centers text vertically inside the stretched box */
            border: 1px solid var(--border-color); /* Matches the grid items */
            flex: 1; /* Allows it to grow/shrink */
            min-width: 300px;
        }

        .hero-title {
            font-size: 2.5rem;
            margin: 0 0 15px 0;
            text-transform: uppercase;
        }
        .hero-sub{
            line-height: 1.3;
        }

        /* Right Grid */
        .feature-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            flex: 1.5; /* Gives the grid slightly more room than the title */
        }

        .feature-item {
            background-color: white;
            padding: 20px;
            border: 1px solid var(--border-color);
        }
        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .frame { padding: 25px; }
            .top-bar { flex-direction: column; gap: 20px; }
            nav { text-align: left; }
            nav a { text-align: left; }
            h1 { margin-bottom: 10px; } /* Space for graphic */
            .description { margin-left: 0; text-align: left; }
            #main-content {
                flex-direction: column; /* Stacks them back up for mobile */
                justify-content: flex-end;
            }
            .bottom-right {
                text-align: left;
            }
            .page-section.expanded-content {
                flex-direction: column; /* Stacks Hero on top, Grid below */
                align-items: flex-start;
                margin-top: 5vh;
            }

            .hero-text-container {
                min-height: auto;
                min-width: 0;
            }

            .feature-grid {
                grid-template-columns: 1fr; /* Stacks features 1 through 4 vertically */
                width: 100%;
            }
            .page-section {
                margin-top: 3vh;
                justify-content: end;
                flex-direction: column;
            }
            .contact-font{
                font-size: 1.2rem;
            }
        }