/* 
   BEEEM - Design by Lawrence Watusi
   Main Stylesheet
*/

:root {
    --main-bg-color: #000;
    --main-text-color: #fff;
    --accent-color: rgba(255, 255, 255, 0.7);
    --accent-color-hover: rgba(255, 255, 255, 1);
    --grid-color: rgba(255, 255, 255, 0.03);
    --transition-speed: 0.3s;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --form-bg-color: rgba(0, 0, 0, 0.2);
    --form-border-color: rgba(255, 255, 255, 0.1);
    --form-focus-color: rgba(255, 255, 255, 0.5);
    --cursor-blink-speed: 0.75s;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
}

/* Three.js Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
    overflow: hidden;
}

#canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
}

/* Content Layers */
.content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 140px 7vw 60px;
    position: relative;
}

.impact-statement {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 90%;
}

.brand {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 4vh;
    line-height: 0.9;
    position: relative;
    mix-blend-mode: difference;
    opacity: 0; /* Start hidden for fade-in */
    animation: titleFadeIn 1.5s ease forwards 0.5s;
}

.statement {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    max-width: 85%;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    margin: 0;
}

.statement .cursor {
    display: inline-block;
    color: var(--main-text-color);
    font-weight: 100;
    animation: blink 0.75s step-end infinite;
    margin-left: -5px;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Capabilities Section */
.capabilities {
    min-height: 100vh;
    padding: 140px 7vw 100px;
    position: relative;
}

.section-header {
    margin-bottom: 10vh;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 6vh 5vw;
    width: 100%;
    margin-bottom: 80px;
}

.capability-item {
    position: relative;
    padding-top: 40px;
}

.capability-number {
    font-family: var(--font-mono);
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.4;
}

.capability-item h3 {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.capability-item p {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 90%;
    opacity: 0.8;
    line-height: 1.5;
}

/* Skills Container */
.skills-container {
    margin-top: 40px;
    padding: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.skills-header {
    margin-bottom: 40px;
}

.skills-header h3 {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.skills-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 15px;
}

@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-category h4 {
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    opacity: 0.85;
    position: relative;
    padding-left: 20px;
}

.skill-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
}

/* Portfolio Section */
.work {
    padding: 140px 0 0;
    position: relative;
}

.work .section-header {
    padding: 0 7vw;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.project-item {
    display: flex;
    width: 100%;
    min-height: 450px;
    margin-bottom: 0;
}

.project-image {
    flex: 1;
    min-height: 100%;
    position: relative;
}

.project-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.project-content h3 {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.project-content p {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    white-space: nowrap;
}

.view-details-btn {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 14px;
    background: transparent;
    color: var(--main-text-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.view-details-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.view-details-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact {
    min-height: 100vh;
    padding: 140px 7vw 140px;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    width: 100%;
}

.portrait-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portrait-container:hover .portrait-image {
    transform: scale(1.05);
}

.contact-info h3 {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.contact-info p {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 90%;
    opacity: 0.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(5px);
    border-radius: 4px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.contact-link {
    color: var(--main-text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    position: relative;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    padding-bottom: 4px;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--main-text-color);
    transition: width var(--transition-speed) ease;
}

.contact-link:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(3px);
}

.contact-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    margin-left: 0;
    backdrop-filter: blur(4px);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-link:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link svg {
    opacity: 0.9;
    transition: all var(--transition-speed) ease;
    z-index: 1;
    width: 22px;
    height: 22px;
}

.social-link:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Form */
.contact-form-container {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    background-color: var(--form-bg-color);
    backdrop-filter: blur(5px);
    padding: 40px;
    border: 1px solid var(--form-border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--form-border-color);
    color: var(--main-text-color);
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--form-focus-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--main-text-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    margin-top: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 50px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-container.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background-color: var(--main-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    max-height: min-content;
    transform: translateY(30px);
    transition: transform 0.5s ease;
}

.modal-container.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--main-text-color);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    width: 100%;
    overflow-y: auto;
}

/* Project Detail Styles */
.project-detail {
    padding-bottom: 60px;
}

.project-header {
    padding: 60px 60px 40px;
    position: relative;
}

.project-header h2 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-hero {
    text-align: center;
    padding: 4rem 2rem 0;
    margin-bottom: 0;
}

.project-hero-image {
    width: 100%;
    height: 60vh;
    max-height: 600px;
}

.project-overview {
    padding: 40px 60px;
    background-color: rgba(255, 255, 255, 0.03);
}

.project-overview h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.project-overview p {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 800px;
}

.project-details {
    padding: 60px;
}

.project-section {
    margin-bottom: 40px;
}

.project-section h3 {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.project-section p {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 20px;
}

.feature-list {
    list-style-position: inside;
    margin-left: 20px;
}

.feature-list li {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 10px;
}

/* Navigation */
nav {
    position: fixed;
    top: 38px;
    right: 40px;
    z-index: 10;
    mix-blend-mode: difference;
}

nav a {
    font-family: var(--font-mono);
    color: var(--main-text-color);
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity var(--transition-speed) ease;
    position: relative;
}

nav a:hover {
    opacity: 0.6;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--main-text-color);
    transition: width var(--transition-speed) ease;
}

nav a:hover::after {
    width: 100%;
}

/* Navigation ripple effect */
.nav-ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    animation: ripple 0.6s forwards;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Detail Elements */
.corner-detail {
    position: fixed;
    bottom: 38px;
    left: 40px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    mix-blend-mode: difference;
    opacity: 0.6;
    letter-spacing: 1px;
}

.scroll-prompt {
    position: absolute;
    bottom: 40px;
    left: 7vw;
    transform: none;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 1;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
}

.scroll-arrow {
    font-size: 20px;
    margin-top: 8px;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

.scroll-prompt.hidden {
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loader-text {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    position: relative;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loader-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: loadingBar 2s infinite;
}

@keyframes loadingBar {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    50.1% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* Footer Styles */
.site-footer {
    padding: 80px 7vw;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration: none;
    color: var(--main-text-color);
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 120px 7vw 40px;
    }
    
    .statement {
        max-width: 100%;
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        line-height: 1.15;
        margin-bottom: 2rem;
    }
    
    .statement .cursor {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
    
    .capabilities {
        padding: 100px 7vw 80px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 5vh 0;
        margin-bottom: 50px;
    }
    
    .capability-item p {
        max-width: 100%;
    }
    
    .work {
        padding: 100px 0 0;
    }
    
    .work .section-header {
        padding: 0 7vw;
    }
    
    .project-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .project-image {
        min-height: 250px;
    }
    
    .project-content {
        padding: 40px 7vw;
    }
    
    .contact {
        padding: 100px 7vw 100px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .portrait-container {
        width: 100px;
        height: 100px;
    }
    
    .contact-info p {
        max-width: 100%;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .project-header, 
    .project-overview, 
    .project-details {
        padding: 30px;
    }
    
    .project-hero-image {
        height: 40vh;
    }
    
    nav {
        top: 25px;
        right: 20px;
    }
    
    nav a {
        margin-left: 15px;
        font-size: 12px;
    }
    
    .corner-detail {
        bottom: 20px;
        left: 20px;
        font-size: 10px;
    }
    
    .scroll-prompt {
        left: 7vw;
    }
    
    .site-footer {
        padding: 60px 7vw;
    }
    
    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .skills-container {
        padding: 30px 20px;
        margin-top: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skill-category {
        margin-bottom: 10px;
    }
}

/* Case Study Styles */
.project-detail {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* Hero Section */
.project-hero.full-width {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

/* Only keep frames for image placeholders */
.hero-image {
    position: relative;
    background: #1A1A1A;
    border-radius: 12px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Introduction Grid */
.intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
}

/* Remove background and border from stat items */
.stat-item {
    text-align: center;
    padding: 2rem 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

/* Feature Showcase */
.feature-showcase {
    padding: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

/* Keep frames for feature items as they're image placeholders */
.feature-item {
    position: relative;
    background: #1A1A1A;
    border-radius: 12px;
    min-height: 300px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.feature-item.large {
    grid-column: span 2;
    padding-bottom: 42.85%; /* 21:9 Aspect Ratio for large feature */
}

/* Technical Showcase */
.technical-showcase {
    padding: 4rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* Keep frames for showcase items as they're image placeholders */
.showcase-item {
    position: relative;
    background: #1A1A1A;
    border-radius: 12px;
    min-height: 400px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-item.full-width {
    padding-bottom: 42.85%; /* 21:9 Aspect Ratio for full width */
}

/* Interface Flow */
.interface-flow {
    padding: 4rem;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Keep frames for flow items as they're image placeholders */
.flow-item {
    position: relative;
    background: #1A1A1A;
    border-radius: 12px;
    min-height: 250px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Results Section */
.results {
    padding: 4rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

/* Keep frame for results image as it's an image placeholder */
.results-image {
    position: relative;
    background: #1A1A1A;
    border-radius: 12px;
    min-height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-content {
    padding: 0;
}

/* Text Styles */
.project-section h2,
.project-section h3 {
    margin-bottom: 1.5rem;
}

.project-section p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Keep the placeholder styling */
[data-placeholder]::before {
    content: attr(data-placeholder);
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Mono', monospace;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .project-hero.full-width {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .flow-grid {
        grid-template-columns: 1fr;
    }

    .feature-item.large {
        grid-column: span 1;
        padding-bottom: 56.25%;
    }
}

/* Next Project Navigation */
.project-section.next-project {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--grid-color);
}

.next-project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    color: var(--main-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.next-project-link:hover {
    transform: translateX(8px);
}

.next-project-content {
    display: flex;
    flex-direction: column;
}

.next-label {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.next-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.next-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-color);
}

.next-project-link:hover .next-arrow svg {
    stroke: var(--accent-color-hover);
}

/* Video Container Styles */
.hero-image,
.feature-item,
.showcase-item {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px;
}

.hero-image video,
.feature-item video,
.showcase-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Video Captions */
.video-caption,
.feature-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
} 

/* Project Thumbnail Styles */
.project-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #1A1A1A;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Container Styles - Core Interactions (Tall Videos) */
.feature-item.tall-video {
    padding-bottom: 177.78%; /* 9:16 Aspect Ratio */
}

/* Video Container Styles - Responsive Design (Wide Video) */
.showcase-item.wide-video {
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 8px;
}

.showcase-item.wide-video video {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

@media (max-width: 768px) {
    .showcase-item.wide-video {
        height: auto;
        padding-bottom: 0;
    }
    
    .showcase-item.wide-video video {
        position: relative;
        width: 100%;
        height: auto;
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item.tall-video,
    .feature-item.natural-ratio-video {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .feature-grid {
        gap: 1.25rem;
    }
    
    .feature-item.natural-ratio-video video {
        max-width: 600px;
    }
}

@media (min-width: 1025px) {
    .feature-item.natural-ratio-video {
        margin-bottom: 2rem;
    }
}

.project-logo {
    margin-bottom: 2rem;
    max-width: 400px;
    width: 100%;
}

.animated-logo {
    width: 100%;
    height: auto;
    display: block;
}

.identity-showcase {
    padding: 4rem 0;
    background: #f5f5f5;
    margin: 2rem 0;
}

.app-icon-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.app-icon {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-logo {
        max-width: 300px;
    }
    
    .app-icon-container {
        padding: 0 1rem;
    }
}

/* Add styles for Empathy Guitars template */

/* Visit site link in hero section */
.visit-site {
    margin-top: 1.5rem;
}

.visit-site a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.visit-site a:hover {
    color: var(--accent-color-hover);
    transform: translateX(4px);
}

/* Hero video styling */
.hero-video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 70vh;
    object-fit: cover;
}

/* Feature images */
.feature-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.02);
}

/* Showcase images */
.showcase-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* CTA button */
.results-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .results-grid {
        flex-direction: column;
    }
    
    .results-cta {
        padding: 1rem 0;
        align-items: center;
    }
    
    .hero-video {
        max-height: 50vh;
    }
}

/* Hero Video with 720p Aspect Ratio - Improved Alignment */
.hero-video-container {
    width: 100%;
    margin: 2rem 0 3rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: none;
    background: #000;
}

.hero-video.aspect-720p {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    display: block;
    max-height: none;
}

/* Simplified grid layout with no hover effects */
.irregular-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
    margin: 2rem 0;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.grid-item.large {
    grid-column: span 8;
    grid-row: span 2;
}

.grid-item.medium {
    grid-column: span 4;
    grid-row: span 2;
}

.grid-item.small {
    grid-column: span 4;
    grid-row: span 1;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: none;
    border: none;
    background: none;
}

/* Removing the image-caption class and related styles */

.grid-item.product-details img {
    object-fit: contain;
    background: none;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .irregular-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .grid-item.large {
        grid-column: span 6;
    }
    
    .grid-item.medium {
        grid-column: span 3;
    }
    
    .grid-item.small {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .irregular-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .grid-item.large,
    .grid-item.medium,
    .grid-item.small {
        grid-column: 1;
        margin-bottom: 1rem;
    }

    .hero-video.aspect-720p {
        height: auto;
        width: 100%;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .irregular-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .grid-item.large {
        grid-column: span 6;
        grid-row: span 2;
    }
    
    .grid-item.medium,
    .grid-item.product-details {
        grid-column: span 3;
        grid-row: span 2;
    }
    
    .grid-item.small {
        grid-column: span 3;
        grid-row: span 1;
    }
    
    .project-hero.full-width {
        padding: 3rem 2rem;
    }
}

/* Large desktop adjustments */
@media (min-width: 1441px) {
    .hero-video-container {
        max-width: 1600px;
    }
    
    .hero-content {
        max-width: 1000px;
    }
    
    .irregular-grid {
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 2rem 1rem 0;
    }
    
    .hero-video-container {
        margin: 1.5rem 0 2rem;
        border-radius: 6px;
    }
}

/* Main Video Container for Today Tomorrow template */
.main-video-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 3rem;
    text-align: center;
    padding: 0 1.5rem;
}

.main-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* Natural ratio video for reordering demo in Today Tomorrow */
.feature-item.natural-ratio-video {
    grid-column: 1 / -1; /* Span all columns */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 2rem;
}

.feature-item.natural-ratio-video video {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Add media query for mobile */
@media (max-width: 768px) {
    .main-video {
        max-height: none; /* Remove max-height constraint on mobile */
    }
    
    .feature-item.natural-ratio-video {
        margin-bottom: 1.5rem;
    }
}