@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:wght@100;300;400&display=swap');

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

body {
    font-family: 'Instrument Serif', serif;
    background: white;
    min-height: 100vh;
    color: #333;
}

/* Header Section */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    font-family: 'Instrument Serif', serif;
    font-size: 36px;
    color: #333;
}

.header-left, .header-right {
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right span {
    background-color: #E9FFC0;
    padding: 2px 4px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 40px;
    max-width: 1400px;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: 104px;
    font-weight: 400;
    line-height: 1.1;
    color: #333;
    margin-bottom: 60px;
    letter-spacing: -2px;
}

.hero-caption {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: #333;
    max-width: 1200px;
    background-color: #E9FFC0;
    padding: 2px 4px;
    display: inline-block;
    text-align: center;
}

/* Hero Background Images */
.hero-bg-image {
    position: absolute;
    opacity: 0.6;
    transition: transform 0.3s ease;
    z-index: -1;
}

.hero-bg-image:hover {
    transform: scale(1.1);
}

.hero-bg-image.img1 {
    top: 5%;
    left: 2%;
    width: 80px;
}

.hero-bg-image.img2 {
    top: 8%;
    right: 3%;
    width: 60px;
}

.hero-bg-image.img3 {
    bottom: 5%;
    left: 5%;
    width: 70px;
}

.hero-bg-image.img4 {
    top: 15%;
    right: 25%;
    width: 50px;
}

.hero-bg-image.img5 {
    bottom: 8%;
    right: 3%;
    width: 75px;
}

.hero-bg-image.img6 {
    top: 12%;
    left: 25%;
    width: 65px;
}

/* Mouse Trail Effect */
.trail-image {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    width: 90px;
    height: auto;
    opacity: 1.0;
    animation: fadeOut 2s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1.0;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Services Section */
.services-section {
    padding: 100px 60px;
    max-width: 1600px;
    margin: 120px auto 0;
}

.services-title {
    font-family: 'Instrument Serif', serif;
    font-size: 36px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.services-divider {
    height: 2px;
    background-color: #333;
    margin-bottom: 80px;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.services-video {
    width: 100%;
    border-radius: 8px;
    margin-top: -170px;
}

.services-video video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transform: scale(0.75);
}

.services-text {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.service-item {
    margin-bottom: 20px;
    text-align: left;
}

.service-title {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
    background-color: #E9FFC0;
    padding: 2px 4px;
    display: inline-block;
    text-transform: uppercase;
}

.service-caption {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
}

.caption-first {
    font-style: italic;
    font-weight: 500;
}



/* Tree Painting Section */
.tree-painting-section {
    padding: 120px 20px;
    margin-top: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tree-painting-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('BG TOL5.png');
    background-size: 81%;
    background-position: center calc(100% - 150px);
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 0;
}

.copyright {
    font-family: 'Instrument Serif', serif;
    font-size: 16px;
    color: #333;
    margin: 0;
}

.container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.canvas-container {
    position: relative;
    display: inline-block;
}

.instruction-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2d5016;
    font-family: 'Instrument Serif', serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #2d5016, #4a7c3c, #689f38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    text-align: center;
    white-space: nowrap;
}

#revealCanvas, #baseCanvas {
    display: block;
    cursor: wait;
    max-width: 100%;
    height: auto;
    transition: cursor 0.3s ease;
}

#revealCanvas.interactive, #baseCanvas.interactive {
    cursor: crosshair;
}

#revealCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#baseCanvas {
    position: relative;
    z-index: 1;
}

/* Audio Toggle Button */
.audio-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.audio-toggle:hover {
    opacity: 0.7;
}

.audio-toggle svg {
    color: #333;
    transition: all 0.3s ease;
}

.audio-toggle.muted #soundWaves {
    opacity: 0.3;
    transform: scale(0.8);
}

.audio-toggle.muted svg {
    color: #999;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 88px;
    }
    
    .hero-caption {
        font-size: 18px;
        padding: 2px 4px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-caption {
        font-size: 13px;
    }
    
    .caption-first {
        font-style: italic;
        font-weight: 500;
    }
    
    .hero-bg-image.img1, .hero-bg-image.img2, .hero-bg-image.img3,
    .hero-bg-image.img4, .hero-bg-image.img5, .hero-bg-image.img6 {
        width: 50px;
    }
    
    .trail-image {
        width: 90px;
    }
    
    .tree-painting-section {
        padding: 96px 20px;
    }
}

@media (max-width: 968px) {
    .main-header {
        font-size: 27px;
        padding: 30px 40px;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-section {
        padding: 80px 40px;
    }
    
    .hero-title {
        font-size: 76px;
    }
    
    .hero-caption {
        font-size: 14px;
        padding: 2px 4px;
    }
    
    .tree-painting-section {
        padding: 84px 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        font-size: 21px;
        padding: 20px 30px;
    }
    
    .hero-section {
        padding: 60px 30px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .hero-caption {
        font-size: 12px;
        padding: 2px 4px;
    }
    
    .services-title {
        font-size: 24px;
    }
    
    .service-title {
        font-size: 14px;
    }
    
    .service-caption {
        font-size: 10px;
    }
    
    .caption-first {
        font-style: italic;
        font-weight: 500;
    }
    

    
    .hero-bg-image {
        opacity: 0.4;
    }
    
    .hero-bg-image.img1, .hero-bg-image.img2, .hero-bg-image.img3,
    .hero-bg-image.img4, .hero-bg-image.img5, .hero-bg-image.img6 {
        width: 20px;
    }
    
    .trail-image {
        width: 76px;
    }
    
    .tree-painting-section {
        padding: 78px 20px;
    }

}

@media (max-width: 480px) {
    .main-header {
        font-size: 15px;
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 58px;
    }
    
    .hero-caption {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .services-section {
        padding: 60px 20px;
    }
    
    .services-title {
        font-size: 18px;
    }
    
    .service-title {
        font-size: 14px;
    }
    
    .service-caption {
        font-size: 10px;
    }
    
    .caption-first {
        font-style: italic;
        font-weight: 500;
    }
    

    
    .hero-bg-image {
        opacity: 0.3;
    }
    
    .hero-bg-image.img1, .hero-bg-image.img2, .hero-bg-image.img3,
    .hero-bg-image.img4, .hero-bg-image.img5, .hero-bg-image.img6 {
        width: 20px;
    }
    
    .trail-image {
        width: 60px;
    }
    
    .tree-painting-section {
        padding: 72px 20px;
    }
} 