@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg: #f4efe8;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --surface-dark: #14212f;
    --text: #18212c;
    --muted: #5b6775;
    --line: rgba(24, 33, 44, 0.12);
    --primary: #d95f33;
    --primary-dark: #b74b25;
    --secondary: #1d4c63;
    --accent: #f2c97d;
    --shadow: 0 24px 60px rgba(24, 33, 44, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(217, 95, 51, 0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(29, 76, 99, 0.12), transparent 22%),
        linear-gradient(180deg, #fbf7f2 0%, #f1ebe4 100%);
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(251, 247, 242, 0.84);
    border-bottom: 1px solid rgba(24, 33, 44, 0.08);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 82px;
}

.logo img {
    width: 150px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    transition: 0.25s ease;
    opacity: 0;
    animation: navani 0.4s ease forwards;
    animation-delay: calc(0.12s * var(--navAni));
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(217, 95, 51, 0.1);
}

#click {
    display: none;
}

.mainicon {
    display: none;
}

.menu {
    font-size: 1.8rem;
    color: var(--secondary);
}

.mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(29, 76, 99, 0.08);
    color: var(--primary);
    cursor: pointer;
}

.mode input {
    display: none;
}

.mode i {
    font-size: 1.2rem;
}

.hero-section {
    padding: 4.5rem 0 2.5rem;
}

.main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 3rem;
    align-items: center;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.detail h3 {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: topSideAni 0.8s ease forwards;
}

.detail h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.02;
    margin-bottom: 1rem;
    opacity: 0;
    animation: leftSideAni 0.8s ease forwards;
    animation-delay: 0.25s;
}

.detail h1 span {
    color: var(--primary);
}

.hero-copy {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.05rem;
    opacity: 0;
    animation: topSideAni 0.9s ease forwards;
    animation-delay: 0.4s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #ec8a4f);
    box-shadow: 0 14px 30px rgba(217, 95, 51, 0.22);
}

.button-secondary {
    color: var(--secondary);
    background: rgba(29, 76, 99, 0.08);
    border: 1px solid rgba(29, 76, 99, 0.18);
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-card {
    padding: 1.1rem 1.1rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 33, 44, 0.08);
    box-shadow: 0 14px 30px rgba(24, 33, 44, 0.06);
}

.highlight-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.highlight-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.social a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(29, 76, 99, 0.34);
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(24, 33, 44, 0.1);
    transition: 0.25s ease;
    opacity: 0;
    animation: SocialAni 0.9s ease forwards;
    animation-delay: calc(0.12s * var(--socialAni));
}

.social a:hover {
    color: #fff;
    background: var(--secondary);
    transform: translateY(-3px);
}

.img-sec {
    display: flex;
    justify-content: center;
}

.images {
    position: relative;
    width: min(100%, 420px);
    opacity: 0;
    animation: imageAni 0.95s ease forwards;
    animation-delay: 0.55s;
}

.images::before {
    content: "";
    position: absolute;
    inset: 4% -6% -6% 8%;
    background: linear-gradient(135deg, rgba(29, 76, 99, 0.2), rgba(217, 95, 51, 0.14));
    border-radius: 30px;
    z-index: 0;
}

.img-w {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.section-block {
    padding: 4.8rem 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.section-heading h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
}

.section-heading p:last-child {
    color: var(--muted);
    font-size: 1rem;
}

.skills-cluster {
    display: grid;
    gap: 1.8rem;
}

.skills-container {
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(24, 33, 44, 0.08);
    box-shadow: 0 18px 40px rgba(24, 33, 44, 0.06);
}

.skills-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
}

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

.skill-item {
    padding: 1.2rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 237, 231, 0.92));
    border: 1px solid rgba(24, 33, 44, 0.08);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(24, 33, 44, 0.09);
}

.skill-img {
    width: 78px;
    height: 78px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    object-fit: cover;
    padding: 0.3rem;
    background: rgba(217, 95, 51, 0.08);
}

.skill-name {
    font-weight: 700;
    font-size: 0.96rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.3rem;
}

.service {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.service img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 24, 32, 0.18), rgba(16, 24, 32, 0.88));
}

.service-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 1.4rem;
    color: #fff;
}

.service-tag {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    font-weight: 700;
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
}

.service-overlay p:last-child {
    color: rgba(255, 255, 255, 0.82);
}

.service:hover img {
    transform: scale(1.06);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-strong);
    border: 1px solid rgba(24, 33, 44, 0.08);
    box-shadow: 0 18px 36px rgba(24, 33, 44, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(24, 33, 44, 0.12);
}

.project-image {
    width: 100%;
    height: 215px;
    object-fit: cover;
}

.project-info {
    padding: 1.35rem;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.18rem;
    margin-bottom: 0.65rem;
    color: var(--text);
}

.project-description {
    color: var(--muted);
    font-size: 0.96rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.project-link-secondary {
    background: rgba(29, 76, 99, 0.1);
    color: var(--secondary);
}

.startup-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(242, 201, 125, 0.15), transparent 28%),
        linear-gradient(135deg, #13283a 0%, #1e425a 55%, #d95f33 120%);
    box-shadow: 0 28px 60px rgba(19, 40, 58, 0.24);
}

.startup-heading {
    margin-bottom: 1.4rem;
}

.startup-heading h2,
.startup-heading .section-kicker,
.startup-section .startup-copy {
    color: #fff;
}

.logo-frame {
    width: 170px;
    height: 170px;
    margin: 0 auto 1.5rem;
    padding: 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.logo-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.startup-copy {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.24);
}

.social-links a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.clients-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.client-card {
    padding: 1.3rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(24, 33, 44, 0.12);
    box-shadow: 0 16px 34px rgba(24, 33, 44, 0.08);
    text-align: center;
    transition: transform 0.25s ease;
}

.client-card:hover {
    transform: translateY(-5px);
}

.client-card img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.05) saturate(1.05);
}

.client-name {
    margin-top: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

.contact-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(24, 33, 44, 0.12);
}

.contact-form {
    padding: 2.4rem;
    background: linear-gradient(180deg, #152432 0%, #10202d 100%);
    color: #fff;
}

.contact-form h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info {
    padding: 2.4rem;
    background: linear-gradient(180deg, #f2ece4 0%, #e8dfd3 100%);
}

.contact-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.contact-info > p {
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.input-box {
    position: relative;
    margin-bottom: 1.1rem;
}

.input-box input,
.input-box textarea {
    width: 100%;
    padding: 1rem 1rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
}

.input-box textarea {
    min-height: 130px;
    resize: vertical;
}

.input-box label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.68);
    transition: 0.2s ease;
    pointer-events: none;
    font-size: 0.94rem;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box textarea:focus ~ label,
.input-box textarea:valid ~ label {
    top: -0.55rem;
    left: 0.85rem;
    padding: 0 0.35rem;
    background: #152432;
    color: var(--accent);
    font-size: 0.78rem;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.35rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #ef8a53);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid rgba(24, 33, 44, 0.08);
}

.info-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.info-item i {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(29, 76, 99, 0.1);
    color: var(--secondary);
    font-size: 1.25rem;
}

.info-item h4 {
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
}

.info-item p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
}

footer {
    padding: 1.2rem 0;
    text-align: center;
    color: #fff;
    background: #14212f;
}

.dark-mode {
    --bg: #0f1720;
    --surface: rgba(20, 31, 43, 0.86);
    --surface-strong: #16212c;
    --surface-dark: #09131c;
    --text: #e6edf5;
    --muted: #9eb0c1;
    --line: rgba(255, 255, 255, 0.08);
    --secondary: #8fc8de;
    background:
        radial-gradient(circle at top left, rgba(217, 95, 51, 0.2), transparent 22%),
        radial-gradient(circle at top right, rgba(143, 200, 222, 0.12), transparent 22%),
        linear-gradient(180deg, #0d151d 0%, #121c26 100%);
}

.dark-mode body {
    color: var(--text);
}

.dark-mode .site-header {
    background: rgba(13, 21, 29, 0.84);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dark-mode .nav-links a {
    color: var(--text);
}

.dark-mode .nav-links a:hover,
.dark-mode .nav-links a.active {
    color: var(--primary);
    background: rgba(217, 95, 51, 0.12);
}

.dark-mode .mode {
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .social a {
    color: #d8ecf5;
    background: rgba(143, 200, 222, 0.14);
    border-color: rgba(143, 200, 222, 0.34);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.dark-mode .social a:hover {
    color: #0d151d;
    background: #8fc8de;
}

.dark-mode .highlight-card,
.dark-mode .skills-container,
.dark-mode .skill-item,
.dark-mode .project-card,
.dark-mode .client-card {
    background: rgba(20, 31, 43, 0.88);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.dark-mode .clients-section {
    background: linear-gradient(180deg, rgba(143, 200, 222, 0.06), rgba(255, 255, 255, 0));
}

.dark-mode .client-card img {
    mix-blend-mode: normal;
    filter: brightness(1.08) contrast(1.08);
}

.dark-mode .project-title,
.dark-mode .skills-header,
.dark-mode .skill-name,
.dark-mode .client-name,
.dark-mode .contact-info h3,
.dark-mode .section-heading h2,
.dark-mode .detail h1,
.dark-mode .detail h3 {
    color: var(--text);
}

.dark-mode .project-description,
.dark-mode .hero-copy,
.dark-mode .highlight-card span,
.dark-mode .section-heading p:last-child,
.dark-mode .contact-info > p,
.dark-mode .info-item p {
    color: var(--muted);
}

.dark-mode .contact-info {
    background: linear-gradient(180deg, #18222d 0%, #101821 100%);
}

.dark-mode .info-item {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .info-item i {
    background: rgba(143, 200, 222, 0.12);
    color: #8fc8de;
}

.dark-mode footer {
    background: #09131c;
}

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

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

@keyframes topSideAni {
    from {
        transform: translateY(-35px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes imageAni {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
    }

    .img-sec {
        order: -1;
    }

    .images {
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .mainicon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(29, 76, 99, 0.08);
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 82px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 82px);
        padding: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        background: rgba(251, 247, 242, 0.98);
        transition: left 0.28s ease;
    }

    #click:checked ~ .nav-links {
        left: 0;
    }

    .dark-mode .nav-links {
        background: rgba(13, 21, 29, 0.98);
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .section-block {
        padding: 4rem 0;
    }
}

@media (max-width: 640px) {
    .page-header {
        min-height: 74px;
    }

    .logo img {
        width: 128px;
    }

    .hero-section {
        padding-top: 3.2rem;
    }

    .button {
        width: 100%;
    }

    .services,
    .projects-grid,
    .skills-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .contact-info,
    .startup-section {
        padding: 1.6rem;
    }

    .section-heading {
        margin-bottom: 2rem;
    }
}
