/* Custom font declarations */
@font-face {
    font-family: 'Ultralight';
    src: url('fonts/Ultralight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rounded-Thin';
    src: url('fonts/Rounded-Thin.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Ultralight', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    background: #ffffff;
    height: 200vh; /* Extra height for scrolling */
    margin: 0;
    padding: 0;
    width: 100%;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-sizing: border-box;
    max-width: 100vw;
}

.tree-section {
    position: fixed;
    width: 60%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
    left: 5%;
    top: 0;
}

.tree {
    max-width: 100%;
    max-height: 100vh;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform-origin: bottom center;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    position: absolute;
    bottom: 0;
}

.leaves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.leaf {
    pointer-events: none;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3));
}

.company-section {
    position: fixed;
    width: 35%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 5%;
    top: 0;
}

.company-name {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #333333;
    text-shadow: none;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.2;
}

.contact-section {
    position: fixed;
    bottom: -100px;
    right: 5%;
    z-index: 100;
    text-align: center;
    width: 35%;
}

.contact-dropdown {
    position: relative;
    display: inline-block;
}

.contact-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rounded-Thin', 'Ultralight', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    color: #333333;
    text-decoration: none;
    padding: 15px 30px;
    background: rgba(248, 248, 248, 0.95);
    border-radius: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 300;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-trigger:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.contact-trigger:active {
    transform: scale(0.98);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #666666;
}

.contact-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95) translateY(-10px);
    min-width: 200px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.contact-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    font-family: 'Rounded-Thin', 'Ultralight', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: #333333;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 8px;
    margin: 4px;
    font-weight: 300;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #000000;
}

.dropdown-item:active {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(0.98);
}

.dropdown-item:first-child {
    margin-top: 8px;
}

.dropdown-item:last-child {
    margin-bottom: 8px;
}

.dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.dropdown-item:hover svg {
    opacity: 1;
}

/* Success feedback */
.dropdown-item.copied {
    color: #16a34a;
}

.dropdown-item.copied svg {
    opacity: 1;
}

.scroll-spacer {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 100vh;
}

/* Responsive design */
@media (max-width: 768px) and (orientation: portrait) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .container {
        flex-direction: column;
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .tree-section {
        width: 100%;
        height: 100vh;
        left: 0;
        padding: 0 20px;
    }

    .company-section {
        width: 100%;
        height: 100vh;
        right: 0;
        top: 25%;
        transform: translateY(-50%);
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .company-name {
        font-size: clamp(2rem, 8vw, 3rem);
        text-align: center;
        line-height: 1.3;
    }

    .tree {
        max-width: 90%;
        max-height: 70vh;
    }

    .contact-section {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .contact-trigger {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .dropdown-menu {
        min-width: 180px;
        left: 0;
        right: 0;
        transform: translateX(0) scale(0.95) translateY(-10px);
    }

    .contact-dropdown.open .dropdown-menu {
        transform: translateX(0) scale(1) translateY(0);
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .tree-section {
        width: 50%;
        height: 100vh;
        left: 0;
    }

    .company-section {
        width: 50%;
        height: 100vh;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .company-name {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .tree {
        max-width: 85%;
        max-height: 85vh;
    }

    .contact-section {
        width: calc(50% - 40px);
        right: 20px;
    }

    .contact-trigger {
        font-size: 1rem;
        padding: 10px 18px;
    }

    .dropdown-menu {
        min-width: 160px;
    }
}

/* Small mobile */
@media (max-width: 480px) and (orientation: portrait) {
    .company-section {
        top: 20%;
    }

    .company-name {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
    }

    .tree {
        max-width: 95%;
        max-height: 60vh;
    }

    .contact-trigger {
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .dropdown-menu {
        min-width: 160px;
    }
}

/* Leaf animation variations */
.leaf:nth-child(odd) {
    border-radius: 100% 0 100% 0;
}

.leaf:nth-child(3n) {
    border-radius: 50%;
}

.leaf:nth-child(4n) {
    border-radius: 20% 80% 20% 80%;
}