/* Funnel Sans Font */
@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('assets/fonts/FunnelSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

@keyframes zoom-in {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Funnel Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Header */
header {
    background-color: #000;
    color: #fff;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    transition: transform 0.3s ease;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo:hover {
    transform: scale(1.02);
}

.burger-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-toggle img {
    width: 28px;
    height: 28px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.burger-toggle.active img {
    transform: rotate(90deg);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    opacity: 0.8;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    animation: zoom-in 0.85s ease forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

/* Hero Section */
.hero {
    padding: 10rem 0 8rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out;
}

.subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.875rem);
    color: #333;
    margin-bottom: 2rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.credentials {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    margin-bottom: 4rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3.5rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid #000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: #000;
    color: #fff;
}

.services h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3.5rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.service-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service-card:hover {
    border-color: #fff;
    color: #000;
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 1.125rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* Technology Section */
.technology {
    padding: 8rem 0;
    background: #fafafa;
}

.technology h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tech-description {
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    max-width: 900px;
    margin: 0 auto 5rem;
    color: #333;
    line-height: 1.8;
}

.tech-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tech-tag {
    padding: 2rem 1.5rem;
    background: #fff;
    border: 2px solid #000;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 #000;
}

.tech-tag:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: #000;
    color: #fff;
}

.about h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.9;
}

.about-content p {
    margin-bottom: 2rem;
}

.highlight {
    background: #fff;
    color: #000;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
    display: inline-block;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: #fff;
    color: #000;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-info {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: #333;
    font-weight: 400;
}

.contact-email {
    color: #000;
    text-decoration: none;
    border-bottom: 3px solid #000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    padding-bottom: 0.25rem;
    display: inline-block;
}

.contact-email:hover {
    border-bottom-color: transparent;
    transform: translateY(-6px);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    background: #000;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, 0.9);
}

footer p {
    transition: color 0.3s ease;
}

footer:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Get to Top Button */
#get-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#get-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#get-to-top:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#get-to-top img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    transition: filter 0.3s ease;
}

#get-to-top:hover img {
    filter: invert(0);
}

#get-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    #get-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    #get-to-top img {
        width: 20px;
        height: 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    header .container {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .burger-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #000;
        flex-direction: column;
        gap: 0;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        font-size: 1.25rem;
        padding: 1.25rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover {
        padding-left: 1rem;
        opacity: 1;
    }

    .hero {
        padding: 6rem 0 5rem;
        min-height: 80vh;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2.5rem 2rem;
    }

    .services,
    .technology,
    .about,
    .contact {
        padding: 5rem 0;
    }

    .tech-tags {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.25rem;
    }

    .tech-tag {
        padding: 1.5rem 1rem;
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}