@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --off-white: #FAFAFA;
    --light-blue: #E3F2FD;
    --pink: #D24A57;
    --charcoal: #686963;
    --green: #8AA293;
    --light-primary: #7A6FED;
    --primary: #4C42B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    font-weight: 200 !important;
    font-style: normal;
    font-variation-settings:
        "XROT" 0,
        "YROT" 0;
}

small {
    font-size: 0.75rem;
}

a {
    color: var(--green);
    position: relative;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

a:not(.project-card):not(.cta-button):not([href^="mailto:"]):not([href^="#top"])::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: var(--green);
    width: 0;
    transition: width 0.3s;
}

a:hover {
    opacity: 0.75;
}

a:hover:not(.project-card):not(.cta-button):not([href^="mailto:"]):not([href^="#top"])::after {
    width: 100%;
}


body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

.header {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.header .header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 70px;
}

.nav {
    position: relative;
    width: 30%;
    max-width: 400px;
}

.header-sitemap {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    max-width: 350px;
}

.header-sitemap li a {
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--charcoal);
}

.our-projects {
    display: flex;
    justify-content: flex-end;
}

.nav-button {
    border-width: 2px;
    border-style: solid;
    border-color: var(--primary);
    color: var(--primary);
    background: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button:hover {
    background: var(--light-primary);
    border-color: var(--light-primary);
    transform: translateY(-1px);
    color: white;
}

.nav-button::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-button.active::after {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 2rem;
    min-width: 700px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: -1px;
    background: white;
    z-index: 10;
    margin-top: -2rem;
    padding-top: 2rem;
}

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

.project-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f8fc;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-card:hover {
    background: white;
    border-color: #6254EA;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(98, 84, 234, 0.1);
}

.project-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.project-info {
    flex: 1;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.hero {
    background: linear-gradient(135deg, rgba(108, 96, 236, 1) 0%, rgba(98, 84, 234, 1) 100%);
    background-blend-mode: multiply;
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('../assets/bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom -100%;
    z-index: -1;
}

@keyframes gridFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #6254EA;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.4s both, float 3s ease-in-out 1.4s infinite;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #1a1a1a;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.section-title.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(108, 96, 236, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #6254EA;
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }

.value-card.visible {
    animation: scaleIn 0.6s ease-out forwards;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(108, 96, 236, 0.15);
}

.value-card h3 {
    color: #6254EA;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: #4a4a4a;
    line-height: 1.7;
}

.mission-section {
    background: #f8f8fc;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-content p {
    font-size: 1.2rem;
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.mission-content p:nth-child(1) { animation-delay: 0.2s; }
.mission-content p:nth-child(2) { animation-delay: 0.4s; }

.mission-content p.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.highlight {
    color: #6254EA;
    font-weight: 600;
}

.story-section {
    background: white;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.story-content p:nth-child(1) { animation-delay: 0.2s; }
.story-content p:nth-child(2) { animation-delay: 0.4s; }

.story-content p.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.etymology {
    background: linear-gradient(135deg, #6C60EC 0%, #6254EA 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.6s forwards;
}

.etymology.visible {
    animation: scaleIn 0.8s ease-out forwards;
}

.etymology p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer .nav {
    width: 100%;
}

.footer .nav .sitemap {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

.footer .nav .sitemap li a {
    font-size: 0.75rem;
    text-decoration: none;
}

.footer .nav .sitemap li a::after {
    content: unset;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    width: 30%;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--charcoal);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .header .container {
        padding: 0;
    }

    .nav:first-of-type {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 100;
        padding-top: 5rem;
    }

    .nav:first-of-type.active {
        left: 0;
    }

    .header-sitemap {
        flex-direction: column;
        padding: 0;
    }

    .header-sitemap li {
        width: 100%;
    }

    .header-sitemap li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-sitemap li a:hover {
        background: #f8f8fc;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .dropdown {
        min-width: 90vw;
        right: -1rem;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding-top: 0;
    }

    .projects-grid {
        margin-top: 50px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 90%;
    }
}