@media screen and (max-width: 400px) {
    html {
        font-size: 16px;
    }
}
@media screen and (max-width: 700px) {
    html {
        font-size: 17px;
    }
}
@media screen and (max-width: 1200px) {
    html {
        font-size: 22px;
    }
}
@media screen and (min-width: 1200px) {
    html {
        font-size: 18px;
    }
}
@media screen and (min-width: 1600px) {
    html {
        font-size: 22px;
    }
}
@media screen and (min-width: 2200px) {
    html {
        font-size: 28px;
    }
}
@media screen and (min-width: 3200px) {
    html {
        font-size: 36px;
    }
}
@media screen and (min-width: 3800px) {
    html {
        font-size: 42px;
    }
}
@media screen and (min-width: 4600px) {
    html {
        font-size: 50px;
    }
}
@media screen and (min-width: 5200px) {
    html {
        font-size: 60px;
    }
}
@media screen and (min-width: 6200px) {
    html {
        font-size: 72px;
    }
}

.glass-btn {
    padding: 0.3rem 2rem;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.4rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    transition: all 0.4s ease;
}

.glass-btn::before,
.glass-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.4rem;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    letter-spacing: 1px;
}

.glass-btn:hover::before {
    animation: borderAnim 1.5s linear infinite;
    border-color: rgba(255, 255, 255, 0.4);
}

.glass-btn:hover::after {
    animation: borderAnim 1.5s linear infinite 0.75s;
    border-color: rgba(255, 255, 255, 0.4);
}

@keyframes borderAnim {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.glass-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-container-hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.mobile-menu-container-visible {
    display: block;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.header-site {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0);
}

.header-menu-container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.logo-image {
    height: 2rem;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-link {
	font-size: 1rem;
    color: #ffffff;
    transition: color 0.15s ease;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
    border-color: rgba(0, 0, 0, 0);
    text-decoration: none;
}

.menu-link:hover {
    color: #c6d8ff;
}

.mobile-menu-button {
    display: none;
}

.menu-toggle-button {
    background-color: rgba(0, 0, 0, 0);
    border-color: rgba(0, 0, 0, 0);
    transition: color 0.15s ease;
}

.menu-toggle-button:hover {
    color: #dedede;
}

.menu-toggle-button:focus {
    outline: none;
}

.menu-icon {
    font-size: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.125s ease;
}

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

body {
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    overflow-x: hidden;
}

.header {
    min-height: 100vh;
    background: linear-gradient(-45deg, #6366f1, #8b5cf6, #4f46e5, #7c3aed);
    background-image: url("/assets/images/a_background.webp");
    background-size: 130% 100%;
    position: relative;
    overflow: hidden;
    animation: gradientFlow 15s ease infinite;
}

.header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    top: -50%;
    left: -50%;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.header-content {
    position: relative;
    padding: 2rem;
    max-width:98%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.header-text {
    color: white;
    max-width: 50%;
    animation: fadeInUp 0.75s ease-out;
}

.header-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    opacity: 0;
    animation: slideInRight 0.75s ease-out forwards;
    animation-delay: 0.3s;
}

.header-text p {
    font-size: 1.1rem;
    opacity: 0;
    animation: slideInRight 0.75s ease-out forwards;
    animation-delay: 0.6s;
    margin-bottom: 2rem;
}

.section {
    padding: 2rem 2rem;
    position: relative;
}

.container {
    max-width:98%;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 2rem;
    max-width: 95%;
}

.section-title h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    color: #666;
    font-size: 1.25rem;
}

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

.work-item {
    background: white;
    padding: 3rem;
    border-radius: 1.1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.1);
}

.work-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: 6s ease-in-out infinite;
}

.vision-section {
    background: white;
    border-radius: 1.7rem;
    margin: 2rem;
    padding: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-section.visible {
    opacity: 1;
    transform: scale(1);
}

.vision-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.vision-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.vision-text h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.vision-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

@media (max-width: 1000px) {
    .header-text {
        max-width: 100%;
    }
    .header-menu-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-top: 0.5rem;
    }

    .logo-image {
        max-width: 95%;
    }

    .mobile-menu-button {
        display: block;
        background-color: rgba(0, 0, 0, 0);
        border-color: rgba(0, 0, 0, 0);
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu-container-visible {
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        height: 100vh;
        padding-top: 6rem;
        padding-bottom: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        background: linear-gradient(to bottom, #000d1d, #036bc1);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        min-height: max-content;
        min-width: max-content;
    }

    .mobile-menu-text {
        color: rgba(255, 255, 255);
        font-size: 1.2rem;
        transition: color 0.15s ease;
        background-color: rgba(0, 0, 0, 0);
        border-color: rgba(0, 0, 0, 0);
        text-decoration: none;
    }

    .mobile-menu-text:hover {
        color: rgba(255, 255, 255, 0.5);
    }

    .header-text h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 1rem 0.75rem;
        margin-bottom: 0rem;
    }

    .section-title {
        padding: 1rem;
        ;
        font-size: 1.1rem;
    }

    .section-title p {
        font-size: 1.1rem;
    }

    .work-item {
        padding: 1.25rem;
    }

    .work-icon {
        width: 1.8rem;
        height: 1.8rem;
        border-radius: 0.4rem;
        margin-bottom: 1.2rem;
        animation: 6s ease infinite;
    }

    .vision-section {
        margin: 1rem;
        padding: 1.5rem;
    }

    .vision-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        margin-bottom: 2.25rem;
    }

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

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

    .container {
        padding: 0;
    }

    .vision-section {
        margin: 0.8rem;
        padding: 1rem;
    }

    .vision-text h3 {
        font-size: 1.25rem;
    }

    .vision-text p {
        font-size: 1.1rem;
    }

    .vision-image {
        display: none;
    }

    .header-site {
        padding: 0.3rem 0.5rem;
    }
}

@media screen and (max-width: 400px) {
    html {
        font-size: 18px;
    }
}
