/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1115;
    --bg-surface: #16181d;
    --bg-card: #1c1f26;
    --border-color: #2d3239;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #2A67F1;
    --accent-hover: #1E4BB7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(42, 103, 241, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

.section {
    padding: 6rem 0;
    scroll-margin-top: 6rem;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.section__description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    color: var(--accent-primary);
}

/* Scroll Reveal – transform og opacity for ytelse */
.reveal {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
    opacity: 1;
}

.reveal--left {
    transform: translateX(-40px);
}

.reveal--left.is-visible {
    transform: translateX(0);
}

.reveal--right {
    transform: translateX(40px);
}

.reveal--right.is-visible {
    transform: translateX(0);
}

.reveal--up {
    transform: translateY(30px);
}

.reveal--up.is-visible {
    transform: translateY(0);
}

.reveal[style*="--delay"] {
    transition-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none !important;
        transition: none;
    }
    .hero__title-main,
    .hero__title-line,
    .hero__buttons {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .hero__cursor {
        animation: none;
        opacity: 1;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.85) 0%, rgba(15, 17, 21, 0) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(22, 24, 29, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-color);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(42, 103, 241, 0.4) 50%, transparent 100%);
    opacity: 0.8;
    pointer-events: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav__logo:hover {
    transform: scale(1.05);
}

.nav__logo-img {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: lighten;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav__link:hover::after {
    width: 80%;
}

.nav__link--button {
    padding: 0.6rem 1.75rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #235dd4 50%, var(--accent-hover) 100%);
    border-radius: 2rem;
    color: var(--text-primary) !important;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 12px rgba(42, 103, 241, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 0.5rem;
}

.nav__link--button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.nav__link--button:hover::before {
    left: 100%;
}

.nav__link--button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 103, 241, 0.4);
    color: var(--text-primary) !important;
}

.nav__link--button span,
.nav__link--button {
    position: relative;
    z-index: 1;
}

.nav__link--button {
    z-index: 1;
}

.nav__toggle,
.nav__close {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 1.5rem 80px;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(42, 103, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(42, 103, 241, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero__container {
    max-width: 920px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(42, 103, 241, 0.12);
    border: 1px solid rgba(42, 103, 241, 0.3);
    border-radius: 2rem;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero__title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.2em;
    white-space: nowrap;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero__title-main {
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.03em;
    animation: heroFadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero__title-line {
    display: inline-block;
    min-width: 0.3em;
    text-align: left;
    animation: heroFadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero__typewriter {
    color: var(--accent-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    text-shadow: 0 0 40px rgba(42, 103, 241, 0.35);
}

.hero__cursor {
    display: none;
}

.hero__buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn--primary {
    background: var(--accent-primary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn--primary:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(42, 103, 241, 0.35);
}

.btn--primary > * {
    position: relative;
    z-index: 1;
}


.btn--primary svg {
    transition: transform 0.3s ease;
}

.btn--primary:hover svg {
    transform: translateX(3px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--secondary {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn--secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    opacity: 0.1;
    transition: left 0.4s ease;
    z-index: 0;
}

.btn--secondary > * {
    position: relative;
    z-index: 1;
}

.btn--secondary:hover::before {
    left: 0;
}

.btn--secondary:hover {
    background-color: rgba(42, 103, 241, 0.08);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Mindre og mer elegant knapp i prosjektkort */
.project-card__actions {
    margin-top: 1.25rem;
}

.project-card__actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 999px;
}

.project-card__actions .btn--secondary {
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--accent-primary);
}

.project-card__actions .btn--secondary:hover {
    background-color: rgba(42, 103, 241, 0.12);
    border-color: var(--accent-primary);
}

/* Services Section */
.services {
    background-color: var(--bg-surface);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: rgba(42, 103, 241, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 0.04;
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    color: var(--accent-primary);
}

.service-card:nth-child(1) .service-card__icon {
    animation-delay: 0s;
}

.service-card:nth-child(2) .service-card__icon {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) .service-card__icon {
    animation-delay: 0.4s;
}

.service-card:nth-child(4) .service-card__icon {
    animation-delay: 0.6s;
}

.service-card:nth-child(5) .service-card__icon {
    animation-delay: 0.8s;
}

.service-card:nth-child(6) .service-card__icon {
    animation-delay: 1s;
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) translateY(-2px);
}

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

.service-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
    color: var(--accent-primary);
}

.service-card__description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Projects Section */
.projects {
    background-color: var(--bg-primary);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 0.04;
}

.project-card:hover {
    border-color: rgba(42, 103, 241, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.project-card__icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.project-card:hover .project-card__icon {
    transform: scale(1.1) translateY(-2px);
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1.2) rotateY(15deg) translateY(-5px);
    }
    50% {
        transform: scale(1.25) rotateY(20deg) translateY(-8px);
    }
}

.project-card__icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.project-card__icon-img--invert {
    filter: invert(1);
}

.project-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-card__title {
    color: var(--accent-primary);
}

.project-card__description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tag:hover {
    background-color: rgba(42, 103, 241, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* About Section */
.about {
    background-color: var(--bg-surface);
}

.about__content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about__text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    max-width: 800px;
}

.about__list li {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.about__list li::before {
    content: "▸";
    color: var(--accent-primary);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    line-height: 1.8;
    transition: transform 0.3s ease;
}

.about__list li:hover::before {
    transform: translateX(5px);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat__number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.stat:hover .stat__label {
    color: var(--accent-primary);
}

/* Footer */
.footer {
    background-color: var(--bg-surface);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

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

.footer__logo {
    height: 72px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
    object-fit: contain;
    mix-blend-mode: lighten;
    opacity: 0.95;
}

.footer__subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.footer__link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link {
    position: relative;
    transition: all 0.3s ease;
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.footer__link:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.footer__link:hover::after {
    width: 100%;
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer__social-link {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer__social-link:hover {
    transform: scale(1.2);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 0;
        scroll-margin-top: 5rem;
    }

    .section__header {
        margin-bottom: 2.5rem;
    }

    .section__description {
        padding: 0 0.5rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--bg-surface);
        padding: 4rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__title-main,
    .hero__title-accent {
        font-size: 3rem;
    }

    .hero__title-line {
        margin-top: 0.1em;
    }

    .section__title {
        font-size: 2rem;
    }

    .services__grid,
    .projects__grid {
        grid-template-columns: 1fr;
    }

    /* Prosjektseksjonen alltid synlig på mobil (unngår reveal-trigger-problem) */
    .projects.reveal,
    .projects .project-card.reveal {
        opacity: 1;
        transform: none;
    }

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

    .contact__content {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: none;
        width: 100%;
    }

    .contact__info {
        width: 100%;
    }

    .contact__form {
        width: 100%;
        min-width: 0;
    }

    .contact__item {
        gap: 1rem;
    }

    .contact__icon {
        font-size: 1.5rem;
    }

    .form__input {
        font-size: 16px;
        min-height: 48px;
        padding: 0.875rem 1rem;
    }

    .form__textarea {
        min-height: 100px;
    }

    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__title-main,
    .hero__title-accent {
        font-size: 2.25rem;
    }

    .hero__title-line {
        margin-top: 0.1em;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .section__header {
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .contact .section__header {
        margin-bottom: 2rem;
    }

    .contact__content {
        gap: 2.5rem;
    }

    .contact #contact-form {
        padding-bottom: 4rem;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .stat__number {
        font-size: 2.5rem;
    }
}

@media (max-width: 360px) {
    .hero__title,
    .hero__title-main,
    .hero__title-accent {
        font-size: 1.75rem;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Contact Section */
.contact {
    background-color: var(--bg-primary);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact__icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.contact__item:hover .contact__icon {
    transform: scale(1.1);
}

.contact__item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact__link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.contact__link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

.contact__link:hover::after {
    width: 100%;
}

.contact__text {
    color: var(--text-secondary);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    position: relative;
}

.form__input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.25rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(42, 103, 241, 0.15);
}

.form__input:hover {
    border-color: rgba(42, 103, 241, 0.4);
}

.form__input::placeholder {
    color: var(--text-secondary);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(42, 103, 241, 0.4);
}
