* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #161415;
    color: #F3E2C8;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Urbanist', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #161415;
}

::-webkit-scrollbar-thumb {
    background: #F35226;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6842;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #F35226 #161415;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border: 2px solid #F35226;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-width 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hovering {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

button, input, a, textarea {
    cursor: pointer !important;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: #161415;
    border-bottom: 1px solid rgba(243, 226, 200, 0.1);
}

/* Logo Container with Hover Effect */
.nav-logo-container {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav-logo-symbol {
    height: 30px;
    width: auto;
    position: relative;
    z-index: 2;
    transition: none;
}

.nav-logo-text {
    height: 30px;
    width: auto;
    position: absolute;
    left: 60px; /* Moved from 35px to 60px */
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.nav-logo-container:hover .nav-logo-text {
    opacity: 1;
    transform: translateX(0);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: #F3E2C8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: #F35226;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F35226;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-external {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid #F35226;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link-external::after {
    display: none;
}

.nav-link-external:hover {
    background: #F35226;
    color: #161415;
}

/* Page Wrapper & Views */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow: hidden;
}

.page-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.page-view.active {
    transform: translateX(0);
}

.home-view {
    position: relative;
    transform: translateX(0);
}

.home-view.pushed-left {
    transform: translateX(-100%);
}

/* Home View - Centered Content with Equal Padding */
.home-view .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Canvas Container */
.canvas-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 12rem); /* Full height minus padding */
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#threejs-container {
    width: 100%;
    height: 100%;
}

/* Profile Card */
.profile-card {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #161415;
    border: 2px solid #F35226;
    border-radius: 8px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(243, 82, 38, 0.4);
    transform: translate(-50%, -50%);
}

.profile-card.active {
    pointer-events: all;
}

.profile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #DBCBA9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #DBCBA9;
    font-size: 1.5rem;
    line-height: 1;
}

.profile-close:hover {
    border-color: #F35226;
    color: #F35226;
    transform: rotate(90deg);
}

.profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 2px solid #F35226;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F3E2C8;
    margin-bottom: 0.5rem;
    text-align: center;
}

.profile-title {
    font-size: 1rem;
    color: #F35226;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 600;
}

.profile-location {
    font-size: 0.9rem;
    color: #DBCBA9;
    text-align: center;
    opacity: 0.8;
}

/* About View */
.about-view,
.contact-view {
    padding: 8rem 3rem 6rem;
    overflow-y: auto;
    background: #F3E2C8;
    color: #161415;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.close-pane {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid #F35226;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F35226;
    font-size: 2rem;
    z-index: 200;
    transition: all 0.3s ease;
}

.close-pane:hover {
    background: #F35226;
    color: #F3E2C8;
    transform: translateY(-50%) rotate(90deg);
}

.pane-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.pane-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #161415;
    margin-bottom: 3rem;
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.about-section h3 {
    font-size: 1.25rem;
    color: #F35226;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-section p {
    margin-bottom: 0;
    line-height: 1.8;
    color: #161415;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    padding: 0.75rem 0;
    color: #161415;
    border-bottom: 1px solid rgba(22, 20, 21, 0.1);
    font-weight: 300;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list li::before {
    content: '→';
    color: #F35226;
    margin-right: 1rem;
    font-weight: 600;
}

/* Contact View */
.contact-intro {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    color: #161415;
}

.contact-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #161415;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(22, 20, 21, 0.05);
    border: 1px solid rgba(22, 20, 21, 0.15);
    border-radius: 4px;
    color: #161415;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F35226;
    background: rgba(22, 20, 21, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.cf-turnstile {
    margin: 2rem 0;
}

.cta-button {
    padding: 1rem 2rem;
    background: #F35226;
    color: #F3E2C8;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: #ff6842;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 82, 38, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #161415;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #161415;
}

/* Footer - Matching Height with Navigation */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: rgba(243, 226, 200, 0.5);
    z-index: 50;
    background: #161415;
    border-top: 1px solid rgba(243, 226, 200, 0.1);
    pointer-events: none;
}

.main-footer * {
    pointer-events: all;
}

.footer-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.footer-copyright {
    margin: 0;
    white-space: nowrap;
    font-size: 0.8rem;
}

.footer-center {
    flex: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(219, 203, 169, 0.85);
    margin: 0;
    font-weight: 400;
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    gap: 1.5rem;
}

.footer-right a {
    color: rgba(243, 226, 200, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

.footer-right a:hover {
    color: #F35226;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-nav,
    .main-footer {
        padding: 0 2rem;
    }
    
    /* Unfix header and footer on mobile for proper scrolling */
    .main-nav {
        position: relative;
    }
    
    .main-footer {
        position: relative;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .home-view .container {
        padding: 5rem 1.5rem;
    }

    .canvas-container {
        height: calc(100vh - 10rem);
    }

    .about-view,
    .contact-view {
        padding: 6rem 2rem 4rem;
    }

    .close-pane {
        right: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-footer {
        flex-direction: column;
        height: auto;
        padding: 1.5rem 2rem;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-left,
    .footer-right {
        order: 2;
    }

    .footer-center {
        order: 1;
    }

    .footer-copyright {
        white-space: normal;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .nav-logo-symbol,
    .nav-logo-text {
        height: 26px;
    }
    
    .nav-logo-text {
        left: 30px;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-link-external {
        padding: 0.4rem 1rem;
    }

    .canvas-container {
        height: calc(100vh - 12rem);
        min-height: 400px;
    }

    .profile-card {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-copyright {
        font-size: 0.7rem;
    }

    .footer-tagline {
        font-size: 0.75rem;
    }

    .footer-right {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .close-pane {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
        transform: none;
    }
    
    .close-pane:hover {
        transform: rotate(90deg);
    }
    
    /* Add padding to content to account for repositioned close button */
    .pane-content {
        padding-top: 3rem;
    }
}
