/* ==============================================
   CUNNET — Personal Portfolio Light (Exact Template Match)
   ============================================== */

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

:root {
  --teal-bg:     #3c8a98;
  --bg-light:    #f2f3f7;
  --bg-work:     #0d2338;
  --bg-footer:   #091827;
  --text-dark:   #111111;
  --text-muted:  #666666;
  --white:       #ffffff;
  --ff: 'Epilogue', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff); background: var(--bg-light); color: var(--text-dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--ff); }

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(170deg, #4495a4 0%, #307a88 50%, #256673 100%);
  color: var(--white);
  padding: 32px 64px 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Giant Top Title Bar */
.hero__top-title-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; position: relative; z-index: 2;
}
.hero__giant-title-left {
  font-size: clamp(4rem, 12vw, 11rem); font-weight: 900;
  letter-spacing: -.03em; line-height: .85; color: var(--white);
}
.hero__giant-title-right {
  display: flex; align-items: center; gap: 20px;
  font-size: clamp(4rem, 12vw, 11rem); font-weight: 900;
  letter-spacing: -.03em; line-height: .85; color: var(--white);
}
.hero__plus-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: transparent; color: var(--white);
  border: 2px solid var(--white); font-size: 1.8rem; font-weight: 300;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s;
}
.hero__plus-circle:hover { background: var(--white); color: var(--text-dark); }

/* Header Topbar */
.topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 40px; position: relative; z-index: 10;
}
.topbar__nav-grid { display: flex; flex-direction: column; gap: 8px; }
.nav-row { display: flex; gap: 40px; }
.tnav {
  font-size: .8rem; font-weight: 700; color: var(--white);
  letter-spacing: .08em; text-transform: uppercase; opacity: .9;
  transition: opacity .2s;
}
.tnav:hover { opacity: 1; text-decoration: underline; }

.topbar__right-actions { display: flex; align-items: center; gap: 24px; }
.btn-start-project {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  color: var(--white); text-transform: uppercase;
}
.social-pills { display: flex; gap: 10px; }
.btn-social-pill {
  background: var(--white); color: var(--text-dark);
  padding: 8px 20px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  transition: background .2s;
}
.btn-social-pill:hover { background: #e2e2e2; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* Main Hero Body */
.hero__main-body {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex: 1; position: relative; z-index: 5;
}

/* Left Panel */
.hero__left-panel {
  display: flex; flex-direction: column; gap: 40px;
  padding-bottom: 60px; width: 260px; flex-shrink: 0;
}
.hero__avatar-circle {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  border: 2px solid #e05d3b; background: #e05d3b;
}
.hero__avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.hero__left-bottom { display: flex; gap: 20px; align-items: flex-end; }
.hero__thumb-card {
  width: 140px; height: 90px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.hero__thumb-card img { width: 100%; height: 100%; object-fit: cover; }
.hero__left-divider { width: 1px; height: 80px; background: rgba(255,255,255,.3); }

.hero__service-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hero__service-list li a {
  font-size: .88rem; font-weight: 400; color: var(--white);
  opacity: .88; transition: opacity .2s;
}
.hero__service-list li a:hover { opacity: 1; text-decoration: underline; }

/* Center Portrait & Overlay */
.hero__center-portrait-wrap {
  position: relative; flex: 1; display: flex; justify-content: center; align-items: flex-end;
  max-width: 750px; margin: 0 auto;
}
.hero__center-portrait {
  max-height: 580px; width: auto; object-fit: cover;
  filter: contrast(1.05);
}
.hero__headline-overlay {
  position: absolute; bottom: 40px; right: -40px;
  max-width: 480px; display: flex; flex-direction: column; gap: 14px;
}
.hero__tagline {
  font-size: .95rem; font-style: italic; font-weight: 400;
  color: rgba(255,255,255,.9);
}
.hero__headline {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800;
  line-height: 1.15; color: var(--white);
}
.hero__cta-buttons { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.btn-hero-solid {
  background: var(--white); color: var(--text-dark);
  padding: 14px 28px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; transition: background .2s;
}
.btn-hero-solid:hover { background: #e2e2e2; }
.btn-hero-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid var(--white);
  padding: 13px 28px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; transition: background .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); }

/* ==============================================
   MOBILE MENU
   ============================================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 500;
  background: #111; padding: 80px 40px 40px;
  display: flex; flex-direction: column; gap: 32px;
  transform: translateX(100%); transition: transform .38s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__close {
  position: absolute; top: 20px; right: 24px;
  font-size: 1.5rem; color: var(--white); background: none; border: none; cursor: pointer;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 20px; }
.mobile-menu__nav a { font-size: 2rem; font-weight: 800; color: var(--white); }
.overlay {
  position: fixed; inset: 0; z-index: 490;
  background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .35s;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* ==============================================
   ABOUT
   ============================================== */
.about {
  background: var(--bg-light);
  padding: 100px 80px;
  display: grid; grid-template-columns: 160px 1fr; gap: 40px;
  align-items: start;
}

.about__award-badge { display: flex; justify-content: flex-start; }
.award-circle {
  position: relative; width: 120px; height: 120px;
  animation: spin 22s linear infinite;
}
.award-svg { width: 100%; height: 100%; }
.award-circle-text {
  font-family: var(--ff); font-size: 10px; fill: var(--text-dark);
  letter-spacing: 2.5px; font-weight: 600;
}
.award-star-inner {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem; color: var(--text-dark);
  animation: spin 22s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about__content { display: flex; flex-direction: column; gap: 48px; }
.about__heading {
  font-size: clamp(1.8rem, 3.8vw, 3rem); font-weight: 700; line-height: 1.25;
  color: var(--text-dark); max-width: 1050px;
}
.ul-text {
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 4px; font-style: normal; color: var(--text-dark);
}
.ul-text:hover { color: #555; }

.about__right { display: flex; flex-direction: column; gap: 32px; max-width: 820px; }
.about__bio { font-size: .95rem; line-height: 1.85; color: #444; }
.about__btn-row { display: flex; gap: 16px; align-items: center; }

.btn-cv-download {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text-dark); color: var(--white);
  padding: 16px 36px; border-radius: 999px;
  font-size: .88rem; font-weight: 700; transition: background .2s;
}
.btn-cv-download:hover { background: #333; }

.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  color: var(--text-dark);
}

/* ==============================================
   WORK SECTION (SELECTED WORK)
   ============================================== */
.work { background: var(--bg-work); position: relative; }

.work__top-bar {
  padding: 40px 80px 20px; display: flex; justify-content: flex-end;
}
.work__discover-wrap { display: flex; align-items: center; gap: 8px; }
.btn-discover-now {
  background: var(--white); color: var(--text-dark);
  padding: 12px 28px; border-radius: 999px;
  font-size: .82rem; font-weight: 700;
}
.btn-discover-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700;
}

.work__main { position: relative; overflow: hidden; min-height: 640px; }
.work__portrait { position: relative; display: flex; }
.work__bg-img {
  width: 100%; height: 640px; object-fit: cover;
  object-position: center top; display: block;
  opacity: .55; filter: hue-rotate(20deg) saturate(0.8);
}

.work__titles-left {
  position: absolute; top: 0; left: 0; bottom: 0;
  padding: 60px 80px;
  display: flex; flex-direction: column; gap: 20px; justify-content: center;
}
.work__section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  color: rgba(255,255,255,.6); margin-bottom: 8px;
}
.work__title-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wt-item {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem); font-weight: 900; letter-spacing: -.01em;
  color: rgba(255,255,255,.2); transition: color .2s; line-height: 1.05;
  display: block;
}
.wt-item:hover, .wt-item.active { color: rgba(255,255,255,.95); }

.work__meta-right {
  position: absolute; top: 0; right: 0; bottom: 0;
  padding: 60px 80px;
  display: flex; flex-direction: column; gap: 0; justify-content: center;
}
.wm-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: right;
}
.wm-item:last-child { border-bottom: none; }
.wm-item a { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.wm-item span { font-size: .72rem; color: rgba(255,255,255,.45); }

.marquee-bar {
  overflow: hidden; background: rgba(0,0,0,.3); padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.marquee-inner {
  display: flex; gap: 36px; align-items: center;
  white-space: nowrap; width: max-content;
  animation: marqueeScroll 20s linear infinite;
}
.marquee-inner span {
  font-size: .85rem; font-weight: 800; letter-spacing: .22em;
  color: var(--white); text-transform: uppercase;
}
.marquee-inner em { color: rgba(255,255,255,.4); font-style: normal; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==============================================
   TEAM
   ============================================== */
.team { background: var(--bg-team); padding: 80px 80px 100px; }

.team__header { margin-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.team__title-row { display: flex; justify-content: space-between; align-items: flex-end; }
.team__title {
  font-size: clamp(3rem, 8.5vw, 7.5rem); font-weight: 900; line-height: .95;
  color: var(--text-dark);
}
.team__title-muted { color: rgba(0,0,0,.25); }
.team__title-actions { display: flex; gap: 8px; align-items: center; }
.btn-all-member {
  background: transparent; color: var(--text-dark);
  padding: 12px 26px; border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,.25); font-size: .82rem; font-weight: 700;
}
.btn-all-member-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.25); color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700;
}

.team__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.team-card { display: flex; flex-direction: column; gap: 12px; }
.tc__photo { border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; }
.tc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.team-card:hover .tc__photo img { transform: scale(1.04); }
.tc__name a { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.tc__role  { font-size: .82rem; color: var(--text-muted); }

/* ==============================================
   SERVICES
   ============================================== */
.services { background: var(--bg-team); padding: 60px 80px 100px; }

.services__layout { display: grid; grid-template-columns: 240px 1fr; gap: 80px; align-items: start; }
.services__left { display: flex; flex-direction: column; gap: 32px; }

.services__list { display: flex; flex-direction: column; }
.svc-row { display: flex; flex-direction: column; gap: 0; }
.svc-row__title {
  font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 800;
  color: var(--text-dark); padding: 28px 0; display: block;
  transition: opacity .2s;
}
.svc-row__title:hover { opacity: .6; }
.svc-row__divider { height: 1px; background: rgba(0,0,0,.15); width: 100%; }

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--bg-footer);
  padding: 80px 80px 0; overflow: hidden;
}
.footer__inner { display: flex; flex-direction: column; }

.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 48px; flex-wrap: wrap; gap: 40px;
}
.footer__links-title {
  font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.7);
  margin-bottom: 18px; letter-spacing: .04em;
}
.footer__pills { display: flex; flex-wrap: wrap; gap: 8px; max-width: 340px; }
.fp {
  font-size: .78rem; color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 18px; border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.fp:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.footer__email-col { text-align: right; }
.footer__searching { display: block; font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.footer__email {
  font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700; color: var(--white);
  transition: opacity .2s;
}
.footer__email:hover { opacity: .75; }

.footer__say-hello {
  display: flex; flex-direction: column;
  font-size: clamp(5.5rem, 17vw, 15rem); font-weight: 900; line-height: .88;
  letter-spacing: -.03em; color: rgba(255,255,255,.25);
  pointer-events: none; user-select: none;
  margin: 30px 0 50px;
}

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.12); padding: 28px 0;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo-link { display: flex; align-items: center; gap: 12px; }
.footer__logo-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.footer__logo-text { font-size: 1.1rem; font-weight: 800; color: var(--white); }

.footer__socials { display: flex; gap: 10px; }
.footer-social-btn {
  font-size: .75rem; font-weight: 700; color: var(--white);
  border: 1px solid rgba(255,255,255,.25); padding: 8px 20px; border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.footer-social-btn:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.footer__copy { font-size: .75rem; color: rgba(255,255,255,.5); }
.footer__powered { padding: 18px 0; font-size: .75rem; color: rgba(255,255,255,.35); }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); color: var(--text-dark); border: none;
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.back-to-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }

/* Responsive */
@media (max-width: 1100px) {
  .hero { padding: 24px 32px 0; }
  .topbar__nav-grid { display: none; }
  .social-pills { display: none; }
  .btn-start-project { display: none; }
  .burger { display: flex; }
  .about { padding: 80px 40px; grid-template-columns: 1fr; }
  .team { padding: 80px 40px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .services { padding: 60px 40px; }
  .services__layout { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding: 60px 40px 0; }
}

@media (max-width: 768px) {
  .hero__main-body { flex-direction: column; align-items: stretch; }
  .hero__left-panel { width: 100%; padding-bottom: 20px; }
  .hero__headline-overlay { position: static; padding: 24px 0 48px; max-width: 100%; }
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer__top { flex-direction: column; }
  .footer__email-col { text-align: left; }
}
