:root {
    --primary-color: #6d6e31;
    --secondary-color: #edeae1;
    --dark-bg: #0a0a0a;
    color-scheme: dark;
}

/* Cross-browser optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    background: #000000;
    background: radial-gradient(circle at center, rgba(20, 20, 20, 1) 0%, rgba(0, 0, 0, 1) 70%);
}

/* Vignette effect */
.vignette, .bg-shapes, .shape {
    pointer-events: none;
}

/* Vignette overlay */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 1);
}

@media (min-width: 768px) {
    .vignette {
        box-shadow: inset 0 0 1500px rgba(0, 0, 0, 1);
    }
}

/* Moving shapes background */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.07;
    transition: transform 0.5s;
    -webkit-transition: -webkit-transform 0.5s;
    will-change: transform; /* GPU acceleration hint */
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    transform: rotate(15deg);
    top: 20%;
    left: 10%;
    animation: float1 25s ease-in-out infinite alternate;
}

.shape-2 {
    width: 550px;
    height: 550px;
    background-color: var(--secondary-color);
    transform: rotate(-10deg);
    bottom: 10%;
    right: 15%;
    animation: float2 30s ease-in-out infinite alternate;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background-color: var(--primary-color);
    transform: rotate(25deg);
    top: 5%;
    right: 30%;
    animation: float3 35s ease-in-out infinite alternate;
}

.shape-4 {
    width: 350px;
    height: 200px;
    background-color: var(--secondary-color);
    transform: rotate(-5deg);
    bottom: 15%;
    left: 5%;
    animation: float4 28s ease-in-out infinite alternate;
}

.shape-5 {
    width: 200px;
    height: 400px;
    background-color: var(--primary-color);
    transform: rotate(20deg);
    top: 40%;
    right: 5%;
    animation: float5 32s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(-50px, 20px) rotate(20deg); }
    100% { transform: translate(30px, -40px) rotate(10deg); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) rotate(-10deg); }
    50% { transform: translate(40px, -30px) rotate(-15deg); }
    100% { transform: translate(-25px, 25px) rotate(-5deg); }
}

@keyframes float3 {
    0% { transform: translate(0, 0) rotate(25deg); }
    50% { transform: translate(-20px, 40px) rotate(35deg); }
    100% { transform: translate(35px, -30px) rotate(15deg); }
}

@keyframes float4 {
    0% { transform: translate(0, 0) rotate(-5deg); }
    50% { transform: translate(35px, 25px) rotate(-10deg); }
    100% { transform: translate(-40px, -20px) rotate(0deg); }
}

@keyframes float5 {
    0% { transform: translate(0, 0) rotate(20deg); }
    50% { transform: translate(-30px, -30px) rotate(25deg); }
    100% { transform: translate(25px, 35px) rotate(15deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 65vh;
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .logo-container {
        transform: translateX(38px);
    }
}

.logo {
    width: 400px;
    max-width: 90vw;
    height: auto;
    -webkit-animation: growLogo 5s ease-out forwards;
    animation: growLogo 5s ease-out forwards;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: -webkit-linear-gradient(
        left,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 48%,
        rgba(237, 234, 225, 0.8) 50%,
        rgba(255, 255, 255, 0.6) 52%,
        rgba(255, 255, 255, 0) 100%
    );
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 48%,
        rgba(237, 234, 225, 0.8) 50%,
        rgba(255, 255, 255, 0.6) 52%,
        rgba(255, 255, 255, 0) 100%
    );
    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
    -webkit-animation: shine 4s ease-in-out 5s infinite;
    animation: shine 4s ease-in-out 5s infinite;
    opacity: 0;
    mix-blend-mode: overlay;
    -webkit-box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    will-change: transform, opacity; /* GPU acceleration hint */
}

section {
    margin: 3rem 0;
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-animation: fadeIn 1s ease-out forwards;
    animation: fadeIn 1s ease-out forwards;
    will-change: transform, opacity; /* GPU acceleration hint */
}

@-webkit-keyframes fadeIn {
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 0.8rem 0;
}

.contact-info p {
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.footer {
    text-align: center;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(109, 110, 49, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation-delay: 1s;
    font-size: 0.9rem;
}

.footer h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.footer h2 {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.copyright {
    font-size: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(109, 110, 49, 0.2);
    color: rgba(237, 234, 225, 0.7);
}

@media (min-width: 769px) {
    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 100;
        border-radius: 10px 10px 0 0;
    }
    
    .container {
        padding-bottom: 9rem; /* Add padding for desktop to prevent content from being hidden behind fixed footer */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        width: 400px;
        animation: growLogo 8s ease-out forwards;
    }
    
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
        border-radius: 0;
        width: 100%;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        margin-bottom: 0;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0;
    }
    
    .copyright {
        margin-top: 1rem;
        padding-top: 0.5rem;
        font-size: 0.7rem;
    }
}

/* SVG Animation Styles */
.st0 {
    fill: #6d6e31;
    stroke: #6d6e31;
    stroke-width: 0.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.st1 {
    fill: #edeae1;
    stroke: #edeae1;
    stroke-width: 0.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes drawPath {
    0% {
        stroke-dashoffset: 500;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes fillPath {
    0%, 70% {
        fill-opacity: 0;
    }
    100% {
        fill-opacity: 1;
    }
}

@-webkit-keyframes growLogo {
    0% {
        -webkit-transform: scale(0.85);
        transform: scale(0.85);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes growLogo {
    0% {
        -webkit-transform: scale(0.85);
        transform: scale(0.85);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@-webkit-keyframes shine {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100%) rotate(30deg);
        transform: translateX(-100%) rotate(30deg);
    }
    10% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: translateX(100%) rotate(30deg);
        transform: translateX(100%) rotate(30deg);
    }
}

@keyframes shine {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100%) rotate(30deg);
        transform: translateX(-100%) rotate(30deg);
    }
    10% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: translateX(100%) rotate(30deg);
        transform: translateX(100%) rotate(30deg);
    }
}

.st0, .st1 {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: 
        drawPath 8s ease forwards,
        fillPath 3s ease forwards;
    fill-opacity: 0;
}

/* Animated Cursor Styles */
* {
    cursor: none;
}

.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-left: -6px;
    margin-top: -6px;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.3s;
    opacity: 0; /* Start invisible and fade in on mouse move */
}

.cursor-active {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    background-color: var(--secondary-color);
}

.cursor-click {
    transform: scale(0.7);
    transition: transform 0.1s;
}

.cursor-border {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(109, 110, 49, 0.8);
    border-radius: 50%;
    margin-left: -20px;
    margin-top: -20px;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.2s ease-out, opacity 0.3s;
    opacity: 0; /* Start invisible and fade in on mouse move */
}

.cursor-border-active {
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    background-color: rgba(109, 110, 49, 0.2);
    border-color: var(--primary-color);
}

.cursor-border-click {
    transform: scale(0.9);
    background-color: rgba(109, 110, 49, 0.3);
}

