/* ============================================================
   DizMe Portfolio – style.css
   ============================================================ */

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

:root {
  --orange:   #e8521a;
  --orange-lt:#f6704d;
  --blue:     #1a8fe8;
  --dark:     #111318;
  --mid:      #444;
  --light:    #f9f9fb;
  --white:    #ffffff;
  --grey:     #888;
  --border:   #e8e8e8;
  --shadow:   0 12px 40px rgba(0,0,0,.08);

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --ease-out: cubic-bezier(.22,1,.36,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; width: 100%; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2;
      stroke-linecap: round; stroke-linejoin: round; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Buttons --------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .75rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
  letter-spacing: .02em;
}
.btn-primary:hover {
  background: var(--orange-lt);
  border-color: var(--orange-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,82,26,.35);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--dark);
  cursor: pointer;
  transition: all .25s;
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* ---- Social Icons ----------------------------------------- */
.soc-icon {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid);
  transition: all .25s;
}
.soc-icon svg { width: 16px; height: 16px; }
.soc-icon:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ---- Section Common -------------------------------------- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  color: var(--orange);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: .8rem;
}
.section-sub {
  color: var(--grey);
  max-width: 520px;
  margin: 0 auto;
  font-size: .95rem;
}

/* ---- Highlight -------------------------------------------- */
.highlight-orange { color: var(--orange); }
.highlight-blue   { color: var(--blue); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 0;
}
/* ---- Logo image ------------------------------------------- */
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  /* The logo.png has a black background — invert it on light navbar */
  filter: brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(5deg);
  transition: transform .25s, filter .25s;
}
.logo:hover .logo-img { transform: scale(1.06); }

/* Dark navbar when scrolled keeps logo readable */
.navbar.scrolled .logo-img {
  filter: brightness(0) invert(0);
  /* keep the orange tone of the logo on white bg */
  filter: none;
}

/* Footer logo — white-orange on dark bg */
.logo-img-footer {
  height: 44px;
  filter: brightness(1.1) saturate(1.2);
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark);
  display: flex; align-items: center; gap: .35rem;
  flex-shrink: 0;
}
.logo-icon { font-style: normal; }



.nav-links {
  display: flex; gap: 1.8rem; margin-left: auto; align-items: center;
}
.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--mid);
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-link.active, .nav-link:hover { color: var(--orange); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--dark);
  display: block; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  background: var(--white);
}

/* Paint splashes */
.splash {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: .45;
  pointer-events: none;
}
.splash-tl {
  width: 420px; height: 320px;
  background: linear-gradient(135deg, #f9e5ff 0%, #c9e8ff 60%, #ffe8d6 100%);
  top: -80px; left: -80px;
}
.splash-tr {
  width: 350px; height: 280px;
  background: linear-gradient(135deg, #ffe8d6 0%, #ffd6d6 50%, #e8d6ff 100%);
  top: 0; right: -60px;
}
.splash-br {
  width: 300px; height: 260px;
  background: linear-gradient(135deg, #d6ffe8 0%, #d6f0ff 100%);
  bottom: 0; right: 200px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0 6rem;
  position: relative; z-index: 2;
}

.hero-greeting {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: .2rem;
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.05;
  margin-bottom: .5rem;
}
.hero-sub {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero-desc {
  color: var(--mid);
  max-width: 380px;
  margin-bottom: 2rem;
  font-size: .97rem;
}
.hero-actions {
  display: flex; align-items: center; gap: 1.5rem;
}
.social-icons { display: flex; gap: .6rem; }

/* Hero image */
.hero-image-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  padding-bottom: 1rem;
}
.hero-img-bg {
  position: absolute;
  width: 340px; height: 340px;
  background: linear-gradient(135deg, #f5f0ff 0%, #e8f5ff 60%, #fff5f0 100%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.hero-img {
  width: 300px; height: 360px;
  object-fit: cover; object-position: top;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  position: relative; z-index: 1;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Tool badges */
.tool-badge {
  position: absolute; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  animation: float 4s ease-in-out infinite;
}
.ai-badge {
  background: #ff6f00;
  color: var(--white);
  font-weight: 900; font-size: 1.1rem; font-family: var(--font-head);
  width: 54px; height: 54px;
  top: 30px; left: 40px;
  animation-delay: .5s;
  box-shadow: 0 8px 24px rgba(255,111,0,.35);
  border-radius: 14px;
}
.ps-badge {
  background: #001e36;
  color: #34afe4;
  font-weight: 900; font-size: 1.1rem; font-family: var(--font-head);
  width: 54px; height: 54px;
  top: 30px; right: 20px;
  animation-delay: 1s;
  box-shadow: 0 8px 24px rgba(0,30,54,.4);
  border-radius: 14px;
}
.fig-badge {
  background: var(--white);
  width: 54px; height: 54px;
  bottom: 30px; right: 40px;
  animation-delay: 1.5s;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 14px;
}

/* Scroll mouse */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse-icon {
  width: 26px; height: 42px;
  border: 2px solid var(--grey);
  border-radius: 13px;
  display: flex; justify-content: center; padding-top: 6px;
}
.mouse-wheel {
  width: 4px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 6rem 0;
  background: var(--light);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.feat-icon-wrap {
  width: 72px; height: 72px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  transition: border-color .3s;
}
.feature-card:hover .feat-icon-wrap { border-color: var(--orange); }
.feat-icon {
  width: 30px; height: 30px;
  color: var(--orange);
}
.feature-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .6rem;
}
.feature-card p {
  color: var(--grey);
  font-size: .9rem;
  line-height: 1.6;
}

/* ============================================================
   DESIGNER SECTION
   ============================================================ */
.designer-section {
  padding: 7rem 0;
  background: var(--white);
}
.designer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Left */
.designer-left {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.deco-number {
  position: absolute;
  font-family: var(--font-head);
  font-size: 12rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px #f0c06e;
  top: -60px; left: -20px;
  line-height: 1;
  z-index: 0;
  user-select: none;
}
.designer-img-frame {
  width: 320px; height: 380px;
  border-radius: 50% 50% 48% 52% / 42% 42% 58% 58%;
  overflow: hidden;
  position: relative; z-index: 1;
  box-shadow: 0 24px 60px rgba(0,0,0,.13);
  animation: float 5s ease-in-out infinite;
}
.designer-img { width: 100%; height: 100%; object-fit: cover; }

.stat-bubble {
  position: absolute; z-index: 2;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  padding: .9rem 1.2rem;
  display: flex; align-items: center; gap: .6rem;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--dark);
  line-height: 1;
}
.stat-ok { font-size: 1.6rem; color: var(--blue); }
.stat-label {
  font-size: .78rem;
  color: var(--grey);
  line-height: 1.3;
}
.years-bubble  { bottom: 50px; left: -10px; }
.projects-bubble { bottom: -10px; right: -10px; }

.brush-stroke-deco {
  position: absolute;
  bottom: -30px; right: -40px;
  width: 160px; height: 60px;
  background: linear-gradient(135deg, #c9e8ff, #e8d6ff);
  border-radius: 50%;
  filter: blur(20px);
  opacity: .6;
}

/* Right */
.designer-right {}
.designer-right .section-label { text-align: left; }
.designer-right .section-title  { text-align: left; max-width: 420px; }
.designer-desc {
  color: var(--mid);
  margin: 1.2rem 0 2rem;
  font-size: .97rem;
  max-width: 460px;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-section {
  padding: 7rem 0;
  background: var(--light);
}
.portfolio-filters {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.pf-btn {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: .45rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all .25s;
  color: var(--mid);
}
.pf-btn.active, .pf-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.port-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.port-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease-out);
}
.port-item:hover img { transform: scale(1.08); }
.port-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,82,26,.85), rgba(26,143,232,.7));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.port-item:hover .port-overlay { opacity: 1; }
.port-overlay span {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
}

/* hidden by filter */
.port-item.hidden {
  display: none;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-section {
  padding: 7rem 0;
  background: var(--white);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.blog-img-wrap {
  position: relative;
  height: 200px; overflow: hidden;
}
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease-out); }
.blog-card:hover .blog-img-wrap img { transform: scale(1.06); }
.blog-date {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 20px;
}
.blog-body { padding: 1.4rem 1.4rem 1.8rem; }
.blog-cat {
  display: inline-block;
  background: #fff0eb;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 20px;
  margin-bottom: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.blog-body h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .6rem;
  line-height: 1.35;
}
.blog-body p { color: var(--grey); font-size: .9rem; margin-bottom: 1rem; }
.read-more {
  color: var(--orange);
  font-weight: 600;
  font-size: .9rem;
  transition: gap .2s;
}
.read-more:hover { letter-spacing: .03em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 7rem 0;
  background: var(--light);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.8rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.ci-icon {
  font-size: 1.5rem;
  width: 52px; height: 52px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item strong { font-family: var(--font-head); font-weight: 700; display: block; margin-bottom: .2rem; }
.contact-item p { color: var(--grey); font-size: .93rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea, .full-input {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1.1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  width: 100%;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus, .full-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,82,26,.1);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--grey); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 2.5rem 0;
  color: rgba(255,255,255,.6);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { color: var(--white); }
.footer-logo .logo-icon { color: var(--orange); }
.footer p { font-size: .9rem; }
.footer-socials { display: flex; gap: .5rem; }
.footer .soc-icon { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.6); }
.footer .soc-icon:hover { border-color: var(--orange); color: var(--orange); }

/* ---- Typing cursor --------------------------------------- */
.typing-cursor::after {
  content: '|';
  color: var(--orange);
  animation: blink .75s step-end infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-anim] {
  opacity: 0;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-anim="fade-up"]    { transform: translateY(40px); }
[data-anim="fade-right"] { transform: translateX(-40px); }
[data-anim="fade-left"]  { transform: translateX(40px); }

[data-anim].in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { gap: 2rem; }
  .designer-inner { gap: 3rem; }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    transform: translateY(-120%);
    transition: transform .35s var(--ease-out);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-inner > .btn-outline { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 0 4rem;
  }
  .hero-text { order: 2; }
  .hero-image-wrap { order: 1; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-img { width: 240px; height: 280px; }
  .hero-img-bg { width: 270px; height: 270px; }

  .designer-inner { grid-template-columns: 1fr; }
  .designer-right .section-title { text-align: center; }
  .designer-right .section-label { text-align: center; }
  .designer-right { text-align: center; }
  .designer-right .btn-primary { margin: 0 auto; display: table; }
  .designer-left { min-height: 380px; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.4rem; }
  .section-title { font-size: 1.7rem; }
  .deco-number { font-size: 8rem; }
}
