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

html {
    scroll-behavior: smooth;
}

:root {
    --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 24px 48px rgba(15, 15, 15, 0.08);
    --shadow-strong: 0 32px 64px rgba(12, 12, 12, 0.14);
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

body.js-enabled .animate-item {
    opacity: 0;
    transform: translateY(26px);
}

.animate-item {
    transition: opacity 0.75s var(--ease-out-soft), transform 0.75s var(--ease-out-soft);
    transition-delay: var(--stagger-delay, 0ms);
    will-change: opacity, transform;
}

.animate-item.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto;
    }
}

p {
    font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 12px 30px rgba(15, 15, 15, 0.08);
    transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

nav.is-scrolled {
    padding-top: 16px;
    padding-bottom: 16px;
    box-shadow: 0 16px 36px rgba(15, 15, 15, 0.12);
}

nav img {
    max-height: 48px;
    display: block;
}

.nav-links {
    background: transparent;
    border: none;
    padding: 0;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #0c0c0c;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span + span {
    margin-top: 6px;
}

nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li a {
    color: #0c0c0c;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 8px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

nav ul li a:hover,
nav ul li a:focus-visible {
    color: #111;
    background-color: rgba(12, 12, 12, 0.06);
    transform: translateY(-1px);
    outline: none;
}

button.cta {
    background-color: #0c0c0c;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

button.cta:hover {
    background-color: #222;
    transform: translateY(-1px);
}

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    margin-top: -0.5rem;
    gap: 40px;
    background-color: #fff;
    isolation: isolate;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.65;
    z-index: -1;
    animation: orbitGlow 14s ease-in-out infinite;
}

.hero-section::before {
    width: 320px;
    height: 320px;
    top: -60px;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 217, 102, 0.28) 0%, rgba(255, 217, 102, 0) 72%);
}

.hero-section::after {
    width: 380px;
    height: 380px;
    right: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(12, 12, 12, 0.1) 0%, rgba(12, 12, 12, 0) 70%);
    animation-duration: 18s;
}

.hero-text {
    max-width:40%;
    padding-left: 2rem;
    transform: translate3d(calc(var(--hero-shift-x, 0px) * -0.35), calc(var(--hero-shift-y, 0px) * -0.2), 0);
    transition: transform 0.35s ease-out;
}

.hero-link {
    display: flex;
    gap: 16px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0c0c0c;
    border-radius: 16px;
    color: #0c0c0c;
    background-color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(12, 12, 12, 0.08);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover,
.social-link:focus {
    background-color: #0c0c0c;
    color: #fff;
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 18px 34px rgba(12, 12, 12, 0.16);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.hero-text p {
    font-size: 20px;
    margin-top: 2rem;
}

.hero-text h1 {
    font-size: 100px;
    font-weight: 600;
}

.hero-image img {
    width: 100%;
    transform: translate3d(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px), 0) scale(var(--hero-scale, 1));
    transform-origin: center;
    transition: transform 0.45s var(--ease-out-soft), filter 0.45s var(--ease-out-soft);
    filter: drop-shadow(0 20px 34px rgba(12, 12, 12, 0.14));
}

hr {
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.services-section {
    background-color: #fff;
    padding: 60px 0 40px;
}

.services-section h2 {
    margin: 0 auto;
    text-align: center;
    font-size: 36px;
    max-width: 680px;
    line-height: 1.1;
}

.services-description {
    margin: 1rem auto 0;
    text-align: center;
    font-size: 18px;
    max-width: 720px;
    line-height: 1.9;
    color: #4d4d4d;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 24px;
    margin: 2.5rem auto 0;
    width: min(1120px, 100%);
    padding: 0 20px;
}

.service-card {
    position: relative;
    background-color: #fff;
    border-radius: 24px;
    padding: 30px;
    min-height: 320px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 217, 102, 0.22) 0%, rgba(255, 217, 102, 0) 72%);
    transform: translate3d(-20px, -20px, 0);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0.8;
    pointer-events: none;
}


    .service-card h3 {
        margin-bottom: 1rem;
        font-size: 26px;
    }

    .service-card:hover {
       background-color: #0c0c0c;
        color: #fff;
        transform: translateY(-10px) scale(1.01);
        box-shadow: var(--shadow-strong);
    }

    .service-card:hover::before {
        transform: translate3d(48px, 48px, 0) scale(1.2);
        opacity: 1;
    }

    .service-box {
        background-color: #0c0c0c;
        color: #fff;
        border-radius: 14px;
        padding: 14px 18px;
        margin-top: 1.5rem;
        text-align: center;
        font-size: 15px;
        display: inline-block;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
        transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .service-box:hover {
        background-color: #fff;
        color: #0c0c0c;
        transform: translateY(-2px);
}

.about-section {
    background-color: #fff;
    padding: 64px 32px 96px;
    max-width: 100%;
    margin: 0 auto 4rem;
}

.about-section h2 {
    text-align: center;
    font-size: 44px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.about-section > p {
    margin: 0 auto 3rem;
    max-width: 760px;
    text-align: center;
    line-height: 1.8;
    color: #4a4a4a;
    font-size: 18px;
}

.about-section h2 + .about-box-container,
.about-section h2 + p + h2 {
    margin-top: 2rem;
}

.about-box-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.about-box {
    background: linear-gradient(180deg, #0c0c0c 0%, #1a1a1a 100%);
    border-radius: 28px;
    padding: 32px 28px;
    color: #f7f7f7;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 24px 60px rgba(12, 12, 12, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 68px rgba(12, 12, 12, 0.18);
}

.about-number {
    font-size: 26px;
    font-weight: 700;
    color: #ffd966;
    letter-spacing: 0.1em;
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(255, 217, 102, 0.12);
    width: fit-content;
    margin-bottom: 1.6rem;
}

.about-box p {
    font-size: 18px;
    line-height: 1.7;
    color: #f0f0f0;
    margin: 0;
}

.about-more {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 3rem;
    justify-items: center;
    align-items: stretch;
}

.about-more h3 {
    font-size: 40px;
    margin-bottom: 0.5rem;
    color: #0c0c0c;
}

.about-more p {
    margin: 0;
    color: #555;
    font-size: 16px;
}

.about-more .about-stat {
    background: #f7f7f7;
    border-radius: 22px;
    padding: 30px 22px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 48px rgba(15, 15, 15, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-more .about-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15, 15, 15, 0.12);
}

.count-up {
    display: inline-block;
    min-width: 3ch;
}

.float-card {
    animation: floatCard 5.8s ease-in-out infinite;
    animation-delay: var(--float-delay, 0ms);
}

.float-card:hover {
    animation-play-state: paused;
}

.skills-section h2 {
    text-align: center;
    font-size: 44px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.skills-text {
    margin: 0 auto 3rem;
    max-width: 760px;
    text-align: center;
    color: #0c0c0c;
    font-size: 18px;
}

.project-container {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 32px;
    padding: 0 32px 72px;
}

.project {
    padding-top: 32px;
    margin-top: 3rem;
}

.project h2,
.project-text {
    text-align: center;
}

.project h2 {
    font-size: 44px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.project-text {
    margin: 0 auto;
    max-width: 760px;
    color: #4a4a4a;
    font-size: 18px;
}

.project-grid  {
    --project-tilt-x: 0deg;
    --project-tilt-y: 0deg;
    --project-lift: 0px;
    --project-glow-opacity: 0;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: 40px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    box-shadow: var(--shadow-soft);
    transform: perspective(1200px) rotateX(var(--project-tilt-x)) rotateY(var(--project-tilt-y)) translateY(var(--project-lift));
    transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(12, 12, 12, 0.06);
}

.project-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 217, 102, 0.22), transparent 45%);
    opacity: var(--project-glow-opacity);
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.project-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateY(calc(var(--project-lift) * -0.35));
    transition: transform 0.35s var(--ease-out-soft);
}

.project-container > .project-card {
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    box-shadow: var(--shadow-soft);
}

.project-image img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(15, 15, 15, 0.08);
    transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s ease, filter 0.35s ease;
}

.project-grid:hover,
.project-grid:focus-within {
    --project-lift: -8px;
    --project-glow-opacity: 1;
    box-shadow: var(--shadow-strong);
    border-color: rgba(12, 12, 12, 0.12);
}

.project-grid:hover .project-image img,
.project-grid:focus-within .project-image img {
    transform: scale(1.03);
    box-shadow: 0 28px 58px rgba(15, 15, 15, 0.14);
    filter: saturate(1.05);
}

.project-card h3 {
    font-size: 30px;
    color: #0c0c0c;
}

.project-card p {
    font-size: 17px;
    line-height: 1.8;
    color: #4d4d4d;
}

.project-button {
    width: fit-content;
    text-decoration: none;
    background-color: #0c0c0c;
    color: #fff;
    border: 1px solid #0c0c0c;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 30px rgba(12, 12, 12, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.project-button:hover,
.project-button:focus-visible {
    background-color: #fff;
    color: #0c0c0c;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(12, 12, 12, 0.16);
    outline: none;
}

@keyframes orbitGlow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, 24px, 0) scale(1.08);
    }
}

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


@media (max-width: 1024px) {
    .hero-section,
    .services-container,
    .about-box-container,
    .about-more,
    .project-grid {
        gap: 20px;
    }

    .hero-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text {
        max-width: 100%;
        padding-left: 0;
        transform: none;
    }

    .services-container {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        width: min(960px, 100%);
        
    }

    .about-box-container,
    .about-more {
        grid-template-columns: 1fr 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
        --project-tilt-x: 0deg !important;
        --project-tilt-y: 0deg !important;
    }

    .project-image {
        order: 2;
    }
}

@media (max-width: 720px) {
    body.js-enabled .animate-item {
        transform: translateY(18px);
    }

    .animate-item {
        transition-duration: 0.55s;
    }

    nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
        position: relative;
    }

    .logo {
        margin-bottom: 14px;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        top: 18px;
        right: 20px;
    }

    .nav-links {
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        padding: 20px 20px 14px;
        box-shadow: 0 12px 30px rgba(15, 15, 15, 0.08);
        border-radius: 0 0 24px 24px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        flex-direction: column;
        gap: 18px;
        align-items: center;
        display: flex;
        opacity: 0;
        transform: translateY(-12px);
        transform-origin: top center;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.35s ease, padding 0.3s ease;
    }

    nav.open .nav-links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        max-height: 420px;
    }

    nav ul {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    nav ul li a {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 14px 18px;
        background: rgba(12, 12, 12, 0.03);
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    nav ul li a:active {
        transform: scale(0.98);
        background: rgba(12, 12, 12, 0.08);
    }

    button.cta {
        display: none;
    }

    nav.open button.cta {
        display: block;
        width: calc(100% - 40px);
        margin: 12px 20px 0;
        align-self: center;
    }

    .hero-section {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 20px 22px;
        border-radius: 0 0 32px 32px;
    }

    .hero-section::before {
        width: 220px;
        height: 220px;
        top: -80px;
        left: -90px;
    }

    .hero-section::after {
        width: 260px;
        height: 260px;
        right: -110px;
        bottom: -110px;
    }

    .hero-text {
        max-width: 100%;
        padding-left: 0;
    }

    .hero-text h1 {
        font-size: 54px;
        line-height: 1.05;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-image {
        width: 100%;
        margin-top: 28px;
        animation: mobileHeroLift 4.8s ease-in-out infinite;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
        transform: none;
    }

    .hero-link {
        gap: 12px;
    }

    .social-link {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .social-link:active {
        transform: scale(0.94);
    }

    .services-container,
    .about-box-container,
    .about-more {
        grid-template-columns: 1fr;
    }

    .services-container {
        width: 100%;
        padding: 0 10px;
    }

    .service-card,
    .about-box,
    .about-more .about-stat {
        transition-duration: 0.22s;
    }

    .service-card:active,
    .about-box:active,
    .about-more .about-stat:active {
        transform: scale(0.985);
        box-shadow: 0 18px 36px rgba(15, 15, 15, 0.1);
    }

    .float-card {
        animation: none;
    }

    .about-section {
        padding: 42px 20px 72px;
    }

    .project {
        padding-top: 20px;
    }

    .project-container {
        padding: 0 20px 56px;
    }

    .project-grid {
        padding: 22px;
    }

    .project-grid:hover,
    .project-grid:focus-within {
        --project-lift: -4px;
    }

    .project h2 {
        font-size: 36px;
    }

    .project-card h3 {
        font-size: 26px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .project-grid,
    .project-card,
    .project-image img,
    .project-grid::before {
        transform: none !important;
    }

    .project-grid:hover,
    .project-grid:focus-within {
        box-shadow: var(--shadow-soft);
    }
}
