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

:root {
    --background: #040607;
    --background-soft: #080c0e;
    --surface: rgba(15, 22, 24, 0.88);
    --surface-solid: #101719;
    --surface-light: #172124;
    --cyan: #36dbe8;
    --cyan-light: #9af6ee;
    --orange: #ff8438;
    --orange-light: #ffd08a;
    --text: #f7f9f9;
    --text-muted: #aab4b7;
    --border: rgba(91, 224, 226, 0.22);
    --border-warm: rgba(255, 139, 70, 0.24);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    --cyan-glow: 0 0 28px rgba(54, 219, 232, 0.23);
    --orange-glow: 0 0 28px rgba(255, 132, 56, 0.20);
    --brand-gradient: linear-gradient(110deg, var(--cyan) 0%, var(--cyan-light) 42%, var(--orange-light) 67%, var(--orange) 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
    background: var(--background);
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(54, 219, 232, 0.09), transparent 31%),
        radial-gradient(circle at 86% 75%, rgba(255, 132, 56, 0.08), transparent 30%),
        var(--background);
    color: var(--text);
    font-family: 'Nunito Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

p {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 2rem;
    font-weight: 400;
    letter-spacing: 0.015rem;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    margin-bottom: 12px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    text-align: center;
    text-transform: uppercase;
}

.section-title span,
.hero-text .highlight {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Shared buttons */
.cta,
.cta-button,
.green-button,
.projectLinks {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #061012;
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(54, 219, 232, 0.12), 0 10px 28px rgba(255, 132, 56, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.cta:hover,
.cta-button:hover,
.green-button:hover,
.projectLinks:hover {
    transform: translateY(-3px);
    filter: saturate(1.12) brightness(1.05);
    box-shadow: var(--cyan-glow), var(--orange-glow);
}

.cta:focus-visible,
.cta-button:focus-visible,
.green-button:focus-visible,
.projectLinks:focus-visible,
#header a:focus-visible {
    outline: 3px solid rgba(154, 246, 238, 0.78);
    outline-offset: 4px;
}

/* Header */
#header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    width: 100%;
}

#header .header {
    min-height: 82px;
    background: rgba(4, 6, 7, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background-color 250ms ease, box-shadow 250ms ease;
}

#header .nav-bar {
    width: min(100%, 1300px);
    height: 100%;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    width: auto;
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(54, 219, 232, 0.12));
}

#header .nav-list ul {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 90;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background:
        radial-gradient(circle at 25% 18%, rgba(54, 219, 232, 0.14), transparent 34%),
        radial-gradient(circle at 78% 78%, rgba(255, 132, 56, 0.12), transparent 35%),
        rgba(4, 6, 7, 0.98);
    transition: left 420ms cubic-bezier(.2,.8,.2,1);
}

#header .nav-list ul.active {
    left: 0;
}

#header .nav-list ul a {
    display: block;
    padding: 16px 24px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 180ms ease, transform 180ms ease;
}

#header .nav-list ul li:hover a {
    color: var(--cyan-light);
    transform: translateX(4px);
}

#header .nav-list ul a::after {
    content: none;
}

#header .hamburger {
    position: relative;
    z-index: 101;
    width: 52px;
    height: 52px;
    margin-right: 4px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255,255,255,0.025);
    box-shadow: inset 0 0 20px rgba(54, 219, 232, 0.04);
}

#header .hamburger::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(255, 132, 56, 0.20);
    border-radius: inherit;
    animation: hamburgerPulse 2.4s ease-out infinite;
}

#header .hamburger .bar,
#header .hamburger .bar::before,
#header .hamburger .bar::after {
    width: 25px;
    height: 2px;
    background: var(--cyan-light);
    transition: transform 250ms ease, top 250ms ease, bottom 250ms ease, background-color 250ms ease;
}

#header .hamburger .bar {
    position: relative;
}

#header .hamburger .bar::before,
#header .hamburger .bar::after {
    content: '';
    position: absolute;
    left: 0;
}

#header .hamburger .bar::before { bottom: 7px; }
#header .hamburger .bar::after { top: 7px; }
#header .hamburger.active .bar { background: transparent; }
#header .hamburger.active .bar::before { bottom: 0; transform: rotate(45deg); }
#header .hamburger.active .bar::after { top: 0; transform: rotate(-45deg); }

@keyframes hamburgerPulse {
    0% { opacity: .7; transform: scale(1); }
    75%, 100% { opacity: 0; transform: scale(1.35); }
}

/* Hero */
#hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    padding-top: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4,6,7,.97) 0%, rgba(4,6,7,.90) 43%, rgba(4,6,7,.60) 100%),
        url('img/hero-bg2.png') center/cover no-repeat;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 72% 48%, rgba(54, 219, 232, 0.13), transparent 26%),
        radial-gradient(circle at 81% 58%, rgba(255, 132, 56, 0.10), transparent 28%);
}

#hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    z-index: -1;
    background: linear-gradient(to bottom, transparent, var(--background));
}

.hero-content {
    width: min(100%, 1240px);
    min-height: calc(100vh - 82px);
    margin: 0 auto;
    padding: 100px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
}

.hero-text {
    flex: 1.05;
    min-width: 290px;
    max-width: 660px;
    text-align: left;
}

.hero-text h1 {
    margin-bottom: 24px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.7rem, 7.4vw, 6.5rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero-text p {
    max-width: 590px;
    margin-bottom: 34px;
    color: #bdc7ca;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    line-height: 1.72;
}

.hero-image {
    flex: .85;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: min(100%, 500px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 34px rgba(54, 219, 232, 0.15)) drop-shadow(0 0 38px rgba(255, 132, 56, 0.10));
    animation: logoFloat 5.5s ease-in-out infinite;
}

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

/* Skills */
#skills {
    position: relative;
    padding: 120px 0;
    background: var(--background);
}

#skills .container {
    min-height: auto;
    padding: 0 24px;
    flex-direction: column;
    text-align: center;
}

#skills .service-top {
    max-width: 760px;
    margin-bottom: 18px;
}

#skills .service-top p {
    color: var(--text-muted);
}

.new-service-cards {
    width: 100%;
    max-width: 1120px;
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.card {
    position: relative;
    min-height: 360px;
    padding: 34px 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.035), transparent 40%),
        var(--surface);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 2px;
    background: var(--brand-gradient);
    opacity: .9;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(154, 246, 238, .46);
    box-shadow: var(--shadow), var(--cyan-glow);
}

.card:nth-child(2) {
    border-color: rgba(255, 208, 138, 0.24);
}

.card:nth-child(2):hover,
.card:nth-child(3):hover {
    box-shadow: var(--shadow), var(--orange-glow);
}

.card h2 {
    margin-bottom: 8px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.card .subtitle {
    margin-bottom: 22px;
    color: var(--cyan-light);
    font-family: 'Outfit', sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
}

.card:nth-child(2) .subtitle { color: var(--orange-light); }

.card ul {
    width: 100%;
    margin-bottom: 28px;
    padding: 0;
    list-style: none;
}

.card ul li {
    position: relative;
    margin: 12px 0;
    padding-bottom: 12px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

.card ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,.06);
}

.card .cta-button {
    margin-top: auto;
}

/* Projects */
#projects {
    padding: 120px 0;
    background:
        radial-gradient(circle at 8% 36%, rgba(54, 219, 232, 0.055), transparent 26%),
        radial-gradient(circle at 95% 68%, rgba(255, 132, 56, 0.05), transparent 28%),
        var(--background-soft);
}

#projects .projects {
    width: min(92%, 1120px);
    min-height: auto;
    margin: 0 auto;
    flex-direction: column;
}

#projects .projects-header h1 {
    margin-bottom: 54px;
}

#projects .all-projects {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
}

#projects .project-item {
    width: 100%;
    max-width: 980px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 26px;
    background:
        linear-gradient(140deg, rgba(54, 219, 232, 0.035), transparent 35%),
        var(--surface-solid);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

#projects .project-item:hover {
    transform: translateY(-6px);
    border-color: rgba(54, 219, 232, 0.32);
    box-shadow: var(--shadow), 0 0 34px rgba(54, 219, 232, 0.08);
}

#projects .project-info {
    width: 100%;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: var(--text);
}

#projects .project-info h2 {
    margin-bottom: 12px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

#projects .project-info p {
    max-width: 62ch;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.72;
}

.projectLinks {
    margin-top: 24px;
    align-self: flex-start;
}

#projects .project-img {
    position: relative;
    width: 100%;
    min-height: 320px;
    padding: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(54, 219, 232, 0.07), transparent 55%),
        #06090a;
    display: flex;
    align-items: center;
    justify-content: center;
}

#projects .project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.38);
}

#projects .project-img img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: contain;
    border-radius: 14px;
    transition: transform 400ms ease;
}

#projects .project-item:hover .project-img img {
    transform: scale(1.018);
}

/* About */
#about {
    padding: 120px 0;
    background: var(--background);
}

#about .about {
    width: min(100%, 1180px);
    min-height: auto;
    margin: 0 auto;
    padding: 0 28px;
    gap: 64px;
    flex-direction: column-reverse;
    text-align: center;
}

#about .col-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#about .col-right {
    width: 100%;
}

#about .col-right h2 {
    margin-bottom: 20px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: .02em;
}

#about .col-right p {
    margin-bottom: 24px;
    text-align: left;
}

#about .col-right .cta {
    margin-top: 12px;
}

#about .col-left .about-img {
    position: relative;
    width: min(300px, 74vw);
    aspect-ratio: 1;
    padding: 5px;
    border-radius: 50%;
    background: var(--brand-gradient);
    box-shadow: var(--cyan-glow), var(--orange-glow);
}

#about .col-left .about-img::before {
    content: '';
    position: absolute;
    inset: 5px;
    z-index: 1;
    border-radius: inherit;
    box-shadow: inset 0 0 30px rgba(0,0,0,.35);
    pointer-events: none;
}

#about .col-left .about-img::after {
    content: '';
    position: absolute;
    inset: -14px;
    z-index: -1;
    border: 1px solid rgba(154, 246, 238, .18);
    border-radius: 50%;
}

#about .col-left .about-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 7px solid var(--background);
    border-radius: 50%;
}

/* Contact */
#contact {
    position: relative;
    background:
        radial-gradient(circle at 50% 100%, rgba(54,219,232,.07), transparent 36%),
        var(--background-soft);
}

#contact .contact {
    width: min(92%, 1100px);
    min-height: auto;
    margin: 0 auto;
    padding: 110px 0;
    flex-direction: column;
}

#contact .contact-items {
    width: 100%;
    margin-top: 38px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

#contact .contact-item {
    width: 100%;
    min-height: 180px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

#contact .contact-item:nth-child(2) {
    border-color: var(--border-warm);
}

#contact .contact-item:hover {
    transform: translateY(-6px);
    border-color: rgba(154, 246, 238, .42);
    box-shadow: var(--shadow), var(--cyan-glow);
}

#contact .contact-item:nth-child(2):hover {
    border-color: rgba(255, 208, 138, .42);
    box-shadow: var(--shadow), var(--orange-glow);
}

#contact .icon {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
}

#contact .icon img {
    object-fit: contain;
    filter: saturate(.75) hue-rotate(125deg);
}

#contact .contact-info h1 {
    margin-bottom: 6px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
}

#contact .contact-info h2 {
    color: var(--text-muted);
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1.6;
}

#contact .contact-info a {
    color: var(--cyan-light) !important;
}

/* Footer */
#footer {
    position: relative;
    background:
        radial-gradient(circle at 18% 0%, rgba(54,219,232,.08), transparent 30%),
        radial-gradient(circle at 82% 100%, rgba(255,132,56,.07), transparent 32%),
        #050809;
    border-top: 1px solid rgba(255,255,255,.06);
}

#footer .footer {
    min-height: 280px;
    padding: 52px 20px 26px;
    flex-direction: column;
    text-align: center;
}

#footer .footer-logo {
    width: auto;
    height: 130px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(54,219,232,.12));
}

#footer .social-icon {
    margin-bottom: 26px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

#footer .social-item {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,.025);
    transition: transform 180ms ease, border-color 180ms ease;
}

#footer .social-item:hover {
    transform: translateY(-3px);
    border-color: var(--border);
}

#footer .social-item img {
    filter: grayscale(1) opacity(.78);
    transition: filter 180ms ease;
}

#footer .social-item:hover img {
    filter: grayscale(0) opacity(1);
}

#footer p {
    color: #849094;
    font-size: .96rem;
    letter-spacing: .035em;
}

/* Tablet and desktop */
@media (min-width: 768px) {
    #projects .project-item {
        min-height: 440px;
        flex-direction: row;
        align-items: stretch;
    }

    #projects .project-info {
        flex: 1 1 62%;
        padding: 44px;
    }

    #projects .project-img {
        flex: 0 0 38%;
        width: 38%;
        min-height: 440px;
        padding: 26px;
    }

    #projects .project-img img {
        max-height: 390px;
    }

    #about .about {
        flex-direction: row;
        text-align: left;
    }

    #about .col-left {
        flex: 0 0 360px;
    }

    #about .col-right {
        flex: 1;
    }

    #about .section-title {
        text-align: left;
    }

    #contact .contact-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #contact .contact-item {
        flex-direction: row;
        text-align: left;
    }

    #contact .icon {
        flex: 0 0 70px;
        margin: 0 22px 0 0;
    }
}

@media (min-width: 1200px) {
    #header .hamburger {
        display: none;
    }

    #header .nav-list ul {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        gap: 4px;
        overflow: visible;
    }

    #header .nav-list ul li {
        display: inline-block;
    }

    #header .nav-list ul a {
        position: relative;
        padding: 12px 16px;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: .06em;
    }

    #header .nav-list ul a::before {
        content: '';
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 6px;
        height: 2px;
        border-radius: 999px;
        background: var(--brand-gradient);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 180ms ease;
    }

    #header .nav-list ul a:hover::before {
        transform: scaleX(1);
    }
}

@media (max-width: 900px) {
    .new-service-cards {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .card {
        min-height: 330px;
    }
}

@media (max-width: 767px) {
    .hero-content {
        padding: 70px 22px 90px;
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image img {
        width: min(86vw, 430px);
    }

    #skills,
    #projects,
    #about {
        padding: 90px 0;
    }

    #projects .project-info {
        padding: 30px 24px 34px;
    }

    #about .col-right p {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.project-tech{
    margin: 18px 0 24px;
    color: var(--cyan-light);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}