/* tanso.group - Pastoral Romantic Carbon Organization */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f0e8;
    color: #1a1a2e;
    overflow-x: hidden;
    line-height: 1.7;
}

/* ---- Floating Elements ---- */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-leaf {
    position: absolute;
    will-change: transform;
}

.leaf-1 {
    top: 10%;
    left: 5%;
}

.leaf-2 {
    top: 30%;
    right: 8%;
}

.leaf-3 {
    top: 55%;
    left: 12%;
}

.leaf-4 {
    top: 70%;
    right: 15%;
}

.leaf-5 {
    top: 85%;
    left: 20%;
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
}

.hero-content {
    text-align: center;
    position: relative;
}

.hero-botanical {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.hero-tree {
    filter: blur(0.3px);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    color: #1a1a2e;
}

.hero-title-dot {
    color: #e8b84b;
    display: inline-block;
    animation: dotPulse 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: #6c757d;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
    max-width: 500px;
    margin: 0 auto;
}

.hero-scroll-indicator {
    margin-top: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.hero-scroll-indicator svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ---- Sections ---- */
.section {
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    text-align: center;
    color: #1a1a2e;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Mission Section ---- */
.mission-section {
    background-color: #f5f0e8;
}

.mission-text {
    font-size: 1.2rem;
    font-weight: 300;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
    color: #6c757d;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.mission-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    box-shadow: 0 20px 60px rgba(26, 26, 46, 0.08);
}

.value-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #1a1a2e;
}

.value-card p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.7;
}

/* ---- Timeline Section ---- */
.timeline-section {
    background-color: #1a1a2e;
    color: #f5f0e8;
    padding: 8rem 2rem;
}

.timeline-section .section-heading {
    color: #f5f0e8;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(74, 144, 217, 0.15);
}

.timeline-progress {
    position: absolute;
    left: 40px;
    top: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, #4a90d9, #e8b84b);
    transition: height 0.1s linear;
}

.timeline-node {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-botanical-node {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    justify-content: center;
}

.timeline-content {
    background: rgba(245, 240, 232, 0.05);
    border: 1px solid rgba(74, 144, 217, 0.12);
    border-radius: 12px;
    padding: 2rem;
    flex: 1;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.timeline-content:hover {
    border-color: rgba(74, 144, 217, 0.3);
    box-shadow: 0 10px 40px rgba(74, 144, 217, 0.08);
}

.timeline-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #e8b84b;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #f5f0e8;
}

.timeline-content p {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.7;
}

/* ---- Projects Section ---- */
.projects-section {
    background-color: #f5f0e8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    box-shadow: 0 20px 60px rgba(26, 26, 46, 0.08);
}

.project-illustration {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.project-illustration svg {
    width: 100%;
    height: auto;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #1a1a2e;
}

.project-card p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.7;
}

/* ---- Team Section ---- */
.team-section {
    background-color: #1a1a2e;
    color: #f5f0e8;
}

.team-section .section-heading {
    color: #f5f0e8;
}

.team-intro {
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.team-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 12px;
    background: rgba(245, 240, 232, 0.03);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    border-color: rgba(74, 144, 217, 0.25);
    box-shadow: 0 10px 40px rgba(74, 144, 217, 0.08);
}

.team-avatar {
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
}

.team-avatar svg {
    border-radius: 50%;
}

.team-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #f5f0e8;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 300;
    color: #e8b84b;
    letter-spacing: 0.02em;
}

/* ---- Contact Section ---- */
.contact-section {
    background-color: #f5f0e8;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.contact-botanical {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0.6;
}

.contact-botanical svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.contact-text {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    color: #6c757d;
    line-height: 1.8;
}

.contact-link {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 500;
    color: #4a90d9;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 60px;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    letter-spacing: 0.02em;
}

.contact-link:hover {
    background-color: #4a90d9;
    color: #f5f0e8;
    box-shadow: 0 10px 40px rgba(74, 144, 217, 0.2);
}

.footer-mark {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: -0.01em;
}

.footer-copy {
    font-size: 0.8rem;
    font-weight: 300;
    color: #6c757d;
}

/* ---- Magnetic Card Interaction State ---- */
.magnetic-card {
    will-change: transform;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .mission-values {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .section {
        padding: 5rem 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .timeline-node {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-line,
    .timeline-progress {
        display: none;
    }
}