:root {
    --bg: #0a0a0a;
    --surface: #111;
    --surface2: #181818;
    --text: #f5f5f5;
    --muted: #a5a5a5;
    --line: #292929;
    --accent: #ffd400;
    --max: 1180px;
    --radius: 18px
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6
}

body.light {
    --bg: #f7f7f2;
    --surface: #fff;
    --surface2: #eee;
    --text: #111;
    --muted: #555;
    --line: #d7d7d0
}

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

button,
input,
textarea {
    font: inherit
}

.container {
    width: min(92%, var(--max));
    margin: auto
}

.muted-copy,
.project-info p,
.service-card p,
.skill-card p,
.timeline p,
.content-narrow,
.profile-description {
    color: var(--muted)
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line)
}

.navbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -2px
}

.logo span {
    color: var(--accent)
}

.logo b {
    color: var(--accent);
    font-size: 1.2em
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px
}

.nav-links a {
    font-size: .9rem;
    color: var(--muted)
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text)
}

.nav-links a.active {
    position: relative
}

.nav-links a.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--accent)
}

.theme-toggle,
.menu-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer
}

.menu-toggle {
    display: none;
    border-radius: 10px
}

.hero {
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 60px
}

.hero h1,
.page-hero h1 {
    font-size: clamp(3.2rem, 8vw, 7rem);
    line-height: .92;
    letter-spacing: -.06em
}

.hero h1 span,
.page-hero h1 span {
    color: var(--accent)
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 25px 0;
    max-width: 700px
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 13px 21px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 800;
    transition: .25s;
    margin-top: 20px;
}

.btn-primary {
    background: var(--accent);
    color: #111;
    border-color: var(--accent)
}

.btn-outline {
    background: transparent
}

.btn-dark {
    background: #111;
    color: #fff;
    border-color: #111
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px #0004
}

.hero-visual {
    display: grid;
    place-items: center
}

.visual-card {
    width: min(100%, 430px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden
}

.hero-visual img {
    display: block;
    /* width: 400px !important; */
    max-width: 100%;
    height: auto;
    object-fit: contain
}

.section {
    padding: 110px 0
}

.section-dark {
    background: var(--surface)
}

.section-accent {
    background: var(--accent);
    color: #111
}

.section-heading {
    /* display: flex;
    align-items: end;
    justify-content: space-between;
    flex-direction: column;
    gap: 20px; */
    margin-bottom: 35px
}

.section-heading h2,
.cta h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    margin-bottom: 35px
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px
}

.project-grid-4 {
    grid-template-columns: repeat(2, 1fr)
}

.project-card,
.skill-card,
.service-card,
.price-card,
.process-grid>div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .3s
}

.project-card:hover,
.skill-card:hover,
.service-card:hover,
.price-card:hover,
.process-grid>div:hover {
    transform: translateY(-6px);
    border-color: #555
}



.code-image{
    width: 100%;
}
.code-image img{
    object-fit: 1/1;
    width: 100%;
}
.project-image {
    /* aspect-ratio: 16/10; */
    overflow: hidden;
    background: var(--surface2)
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain
}

.project-info {
    padding: 22px
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-weight: 700
}

.profile-gallery,
.developer-profile {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 35px;
    align-items: center
}
h1{
      text-align: center;
    }
    .gallery{
      display: flex;
      margin: auto;
      gap: 20px;
      overflow-x: auto;
      padding: 60px;
      scroll-behavior: smooth;
      scrollbar-width: none;
    }
    .gallery-item{
      position: relative;
      flex: 0 0 280px;
      height: 400px;
      border-radius: 15px;
      transition: transorm 0.4s ease;
      
    }
    .gallery-item img{
      border-radius: 12px;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .overlay{
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      grid-area: 0;
      justify-content: flex-end;
      padding: 20px;
      color: #fff;
      background: linear-gradient(to top, rgba(0,0,0,.5) ,transparent);
      opacity: 0;
      transition: opacity 0.4s ease;
      
    }
    .gallery-item:hover{
      transform: scale(1);
      z-index: 1;
      border-radius: 12px;
    }
    .gallery-item:hover img{
      transform: scale(1.2);
     
    }
    .gallery-item:hover .overlay{
      border-radius: 12px;
      border: 2px solid gold;
      transform: scale(1.2);
      opacity: 1;
    }

.profile-main,
.profile-photo {
    overflow: hidden;
}

.profile-main img,
.profile-photo img {
    width: 100%;
    display: block;
    object-fit: cover
}

.mini-grid,
.experience-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 25px
}

.mini-grid div,
.experience-row div {
    text-align: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    background: var(--surface2);
}
.mini-grid span,
.experience-row small {
    display: block;
    color: var(--muted);
    margin-top: 5px

}

.profile-details h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 10px
}

.profile-meta,
.tag-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px
}

.profile-meta span,
.tag-list span {
    text-align: center;
    border: 1px solid var(--line);
    padding:0 12px;
    border-radius: 999px;
    color: var(--accent);
    font-size: 2rem;
    background: var(--bg);
}



/* ========= NEW GALLERY ======== */
h1{
      text-align: center;
    }
    .gallery{
      display: flex;
      justify-content: center;
      gap: 20px;
      overflow-x: auto;
      padding-block: 60px;
    padding-inline: max(20px, calc((100% - 280px) / 2));
      scroll-behavior: smooth;
      scrollbar-width: none;
    }
    .gallery-item{
      position: relative;
      flex: 0 0 280px;
      height: 400px;
      border-radius: 15px;
      
    }
    .gallery-item img{
      border-radius: 12px;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .overlay{
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      
      justify-content: flex-end;
      padding: 20px;
      color: #fff;
      background: linear-gradient(to top, rgba(0,0,0,.5) ,transparent);
      opacity: 0;

      
    }
    .gallery-item:hover {
    transform: scale(1.08);
    z-index: 10;
}
    /* ===== NEW GALLERY END ======= */


.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1050px;
    margin: auto
}

.price-card {
    padding: 30px
}

.price-card strong {
    display: block;
    font-size: 2.5rem;
    margin: 10px 0
}
.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent)
}

.cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px
}



.page-hero {
    padding: 120px 0 80px
}

.content-narrow {
    max-width: 800px;
    font-size: 1.15rem
}

.content-narrow p+p {
    margin-top: 25px
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px
}

.process-grid>div {
    padding: 25px
}

.process-grid b,
.service-card>b,
.timeline b {
    color: var(--accent)
}

.search-box {
    max-width: 650px;
    margin-bottom: 20px
}

.search-box label{
    display: block;
    margin-bottom: 8px;
    font-weight: 700
}

.search-box input{
    width: 100%;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    outline: none
}

.search-box input:focus{
    border-color: var(--accent)
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px
}

.filter {
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer
}

.filter.active,
.filter:hover {
    background: var(--accent);
    color: #111;
    border-color: var(--accent)
}

.project-hero-image {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--line)
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px
}

.feature-list div {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px
}

.skill-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
}

.skill-card,
.service-card {
    padding: 30px
}
.service-card img{
    width: 100%;
}
.skill-top {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 15px;
    align-items: center
}

.skill-top img {
    width: 64px;
    height: 64px
}

.skill-top>b {
    color: var(--accent);
    font-size: 1.1rem
}

.skill-card h3 {
    font-size: 1.5rem
}

.skill-bar {
    height: 6px;
    background: var(--line);
    margin-top: 20px;
    border-radius: 99px;
    overflow: hidden
}

.skill-bar i {
    display: block;
    width: var(--level);
    height: 100%;
    background: var(--accent)
}


.service-card h2 {
    margin: 12px 0;
    font-size: 2rem;
}

.timeline {
    max-width: 800px;
    margin: auto;
    border-left: 1px solid var(--line)
}

.timeline>div {
    padding: 0 0 55px 35px;
    position: relative
}

.timeline>div:before {
    content: "";
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent)
}

.contact-details h2 {
    font-size: 3rem;
    margin-bottom: 35px
}

.contact-item {
    border-top: 1px solid var(--line);
    padding: 18px 0
}

.contact-item small {
    display: block;
    color: var(--muted);
    margin-bottom: 4px
}

.contact-item a {
    color: var(--accent)
}

.contact-form {
    display: grid;
    gap: 10px
}

.contact-form .btn {
    margin-top: 10px
}

.contact-img img{
    width: 100%;
}

.site-footer {
    background: #050505;
    color: #aaa;
    border-top: 1px solid #222;
    padding: 60px 0 25px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 45px
}

.footer-grid h3 {
    color: #fff;
    margin-bottom: 15px
}

.footer-grid .logo {
    color: #fff
}

.footer-grid p {
    max-width: 320px;
    margin-top: 10px
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px
}

.footer-grid>a {
    display: block;
    margin: 7px 0
}

.footer-grid a:hover {
    color: var(--accent)
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #222;
    margin-top: 45px;
    padding-top: 20px;
    font-size: .9rem
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: .25s
}

.back-top.show {
    opacity: 1;
    pointer-events: auto
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 30px
}

.project-item.is-hidden {
    display: none
}

.wide-media {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface)
}

.wide-media img {
    width: 100%;
    height: min(62vw, 620px);
    min-height: 280px;
    display: block;
    object-fit: cover
}
/* Footer Connect links */
.site-footer > .container:first-child > div:last-child { display:flex; flex-direction: column; gap:10px;}
.site-footer > .container:first-child > div:last-child a { display: block; padding:10px 14px; border-radius:10px; transition:border-color .25s ease, color .25s ease, background-color .25s ease; width: max-content; }
.site-footer > .container:first-child > div:last-child a:hover { border-color:var(--accent); color:var(--accent); }
/* FAQ */
.faq-list { display:grid; gap:12px; max-width:850px; margin-inline:auto; }
.faq-list details { border:1px solid var(--line); border-radius:12px; padding:16px 18px; }
.faq-list summary { cursor:pointer; font-weight:600; }
.faq-list details p { margin:12px 0 0; }
