/* ================================================================
   IKONICWEBS — Personal Resume / Portfolio
   Light Resume Layout — Production-Ready CSS
   ================================================================ */

/* ===== CSS Custom Properties (Light Theme) ===== */
:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --primary-light: #8b83ff;
  --primary-rgb: 108, 99, 255;
  --gradient: linear-gradient(135deg, #6c63ff, #a855f7);

  --bg: #d5d0ca;
  --bg-alt: #d5d0ca;
  --bg-card: #f5f0eb;
  --text: #1a1a2e;
  --text-secondary: #555580;
  --text-muted: #9494b8;
  --border: #e8e8f0;
  --shadow-sm: 4px 4px 12px rgba(0, 0, 0, 0.08);
  --shadow: 6px 6px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 10px 10px 32px rgba(0, 0, 0, 0.13);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 50px;
  --transition: 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-alt: #161625;
  --bg-card: #1c1c2e;
  --text: #e8e8f0;
  --text-secondary: #a0a0c0;
  --text-muted: #6a6a8e;
  --border: #2a2a40;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  transition: background 0.4s ease, color 0.4s ease;
}

html {
  overflow-x: clip;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Section Defaults ===== */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__header--left {
  text-align: left;
}

.section__label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section__title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.section__title--left {
  text-align: left;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(213, 208, 202, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .header {
  background: rgba(15, 15, 26, 0.95);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 32px;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.logo sup {
  font-size: 10px;
  color: var(--primary);
  vertical-align: super;
}

.nav {
  flex-shrink: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown {
  position: relative;
}

.nav__link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav__link i {
  font-size: 10px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
}

.nav__link.active {
  text-decoration: line-through;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
}

/* Header Right Section */
.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__phone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.header__phone-info {
  display: flex;
  flex-direction: column;
}

.header__phone-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.header__phone-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.header__email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.header__email-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  color: #fff;
}

.header__talk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: var(--transition);
}

[data-theme="dark"] .header__talk-btn {
  background: var(--primary);
  color: #fff;
}

.header__talk-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  color: #fff;
}

[data-theme="dark"] .header__talk-btn:hover {
  color: #fff;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle .fa-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  display: inline-block;
}

/* Mobile header actions */
.header__mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.theme-toggle--mobile {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Site Layout: Sticky Sidebar + Scrollable Content ===== */
.site-layout {
  padding-top: 80px;
  background: var(--bg-alt);
}

.site-layout__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Sticky Sidebar --- */
.sidebar {
  position: sticky;
  top: 100px;
  z-index: 20;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: flex-start;
  align-self: start;
  max-height: calc(100vh - 120px);
}

/* --- Main Scrollable Content --- */
.main-content {
  min-width: 0;
  padding-top: 20px;
}

/* Footer inside scrollable content */
.main-content .footer {
  margin-top: 0;
  border-radius: 0;
}

.sidebar__card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar__photo {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
}

.sidebar__photo-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: scale(1.15);
  transform-origin: top center;
}

.sidebar__photo-placeholder {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: rgba(255, 255, 255, 0.25);
}

.sidebar__info {
  text-align: left;
  width: 100%;
  padding: 0 4px;
  margin-bottom: 16px;
}

.sidebar__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.3px;
}

.sidebar__copy {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.sidebar__social {
  width: calc(100% + 48px);
  margin: 0 -24px -24px;
  background: var(--primary);
  border-radius: 0 0 24px 24px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar__social-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar__social-icons {
  display: flex;
  gap: 8px;
}

.sidebar__social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}

.sidebar__social-icons a:hover {
  background: #fff;
  color: var(--primary);
}

.main-content > section {
  padding-bottom: 80px;
  margin-bottom: 0;
}

/* --- Pill Badge (shared) --- */
.pill-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- Link Button --- */
.btn--link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.btn--link:hover {
  color: var(--primary);
}

.btn--link i {
  font-size: 14px;
}

/* ===== Hero Section ===== */
.hero-section__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-section__intro {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-section__buttons {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stats-bar__item {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stats-bar__item:last-child {
  border-right: none;
}

.stats-bar__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.stats-bar__value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

/* ===== About Section ===== */
.about-section__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 36px;
}

.about-section__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.about-section__image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-section__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.about-section__tech-graphic {
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.about-section__tech-graphic::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb, 99, 102, 241), 0.12);
  top: -60px;
  right: -40px;
}

.about-section__tech-graphic::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb, 99, 102, 241), 0.08);
  bottom: -50px;
  left: -30px;
}

.tech-graphic__icons {
  display: flex;
  gap: 20px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.tech-graphic__icons i:nth-child(1) { color: #f87171; }
.tech-graphic__icons i:nth-child(2) { color: #34d399; }
.tech-graphic__icons i:nth-child(3) { color: #a78bfa; }
.tech-graphic__icons i:nth-child(4) { color: #fbbf24; }
.tech-graphic__icons i:nth-child(5) { color: #60a5fa; }
.tech-graphic__icons i:nth-child(6) { color: #f472b6; }

.tech-graphic__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.about-section__text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-section__text p:last-child {
  margin-bottom: 0;
}

/* ===== Services Section ===== */
.services-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.services-section__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}

.services-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-card {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.svc-card__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--transition);
  align-self: flex-end;
  margin-bottom: 20px;
}

.svc-card:hover .svc-card__arrow {
  background: var(--primary);
  color: #fff;
}

.svc-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.svc-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.svc-card__count {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.services-section__footer {
  text-align: center;
  margin-top: 40px;
  font-size: 15px;
  color: var(--text-secondary);
}

.services-section__link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.services-section__link:hover {
  color: var(--primary);
}

/* ===== Skills (Card Layout) ===== */
.skills-section__header {
  text-align: left;
  margin-bottom: 48px;
}

.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent, #a78bfa));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skill-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skill-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.2px;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(var(--primary-rgb, 99, 102, 241), 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-card:hover .skill-tag {
  border-color: rgba(var(--primary-rgb, 99, 102, 241), 0.4);
  background: rgba(var(--primary-rgb, 99, 102, 241), 0.12);
  color: var(--text);
}

/* ===== Marquee Bar ===== */
.marquee-bar {
  background: var(--primary);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 5;
  width: 100vw;
  margin-left: calc(-1 * (380px + 40px + 24px + max(0px, (100vw - 1200px) / 2)));
  margin-top: 20px;
  margin-bottom: 60px;
}

.marquee-bar__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-bar__text {
  font-size: 48px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-transform: capitalize;
  letter-spacing: 2px;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== Timeline (Education & Experience) ===== */
.timeline-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.timeline-section__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline__date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 14px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.timeline__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline__place {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline__list {
  list-style: disc;
  padding-left: 18px;
  margin-top: 8px;
}

.timeline__list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.timeline__list li:last-child {
  margin-bottom: 0;
}

/* ===== Portfolio ===== */
.portfolio-carousel {
  overflow: hidden;
  position: relative;
}

.portfolio-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card {
  min-width: calc((100% - 48px) / 3);
  flex-shrink: 0;
  cursor: pointer;
}

.portfolio-card__image {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.02);
}

.portfolio-carousel {
  margin-top: 32px;
  overflow: hidden;
  position: relative;
}

.portfolio-carousel__track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-carousel__track .project-card {
  min-width: calc(50% - 20px);
  max-width: calc(50% - 20px);
  height: 320px;
  flex-shrink: 0;
}

.portfolio-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.portfolio-carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.portfolio-carousel__btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.portfolio-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.portfolio-carousel__dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card__logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.project-card__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-card__logo-wrap--dark {
  background: #1a1a2e;
  border-color: #2a2a3e;
}

.project-card__info {
  flex: 1;
  min-width: 0;
}

.project-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.project-card__category {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}


.project-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transition: all 0.3s ease;
  margin-top: auto;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  white-space: nowrap;
  font-weight: 500;
}

.project-card:hover .project-card__link {
  color: var(--primary-dark);
}

.project-card__link i {
  font-size: 11px;
  margin-left: 4px;
}

.portfolio-card__tags {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.portfolio-card__tag {
  padding: 6px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.portfolio-card__arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  background: var(--bg-card);
  z-index: 2;
  transition: var(--transition);
}

.portfolio-card__arrow:hover {
  background: var(--primary);
  color: #fff;
}

.portfolio-card__body {
  padding: 16px 4px;
}

.portfolio-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.portfolio-card__category {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.portfolio-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.portfolio-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.portfolio-carousel__dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ===== CTA Banner (Let's Work Together) ===== */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow);
}

.cta-banner__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.cta-banner__desc {
  font-size: 15px;
  color: var(--text-secondary);
}

.cta-banner__contact {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.cta-banner__phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-banner__phone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.cta-banner__phone-label {
  display: block;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.cta-banner__phone-number {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.cta-banner__btn {
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .cta-banner__contact {
    flex-direction: column;
  }
}

/* ===== Testimonials ===== */
.testimonials__carousel {
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonials__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  text-align: center;
  padding: 0 20px;
}

.testimonial-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--primary);
}

.testimonial-card__quote {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1;
}

.testimonial-card__stars {
  margin-bottom: 20px;
}

.testimonial-card__stars i {
  color: #fbbf24;
  font-size: 16px;
  margin: 0 1px;
}

.testimonial-card__text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial-card__role {
  font-size: 14px;
  color: var(--text-muted);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.testimonials__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.testimonials__dots {
  display: flex;
  gap: 8px;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.testimonials__dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ===== Pricing ===== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.pricing-card--featured:hover {
  transform: scale(1.04) translateY(-6px);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 22px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.pricing-card__price {
  margin-bottom: 32px;
}

.pricing-card__currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  vertical-align: top;
}

.pricing-card__amount {
  font-size: 56px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.pricing-card__period {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-card__features {
  margin-bottom: 32px;
  text-align: left;
}

.pricing-card__features li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card__features li i {
  color: var(--primary);
  font-size: 13px;
  flex-shrink: 0;
}

/* ===== Blog ===== */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.blog-card__body {
  padding: 24px;
}

.blog-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.blog-card__meta span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card__meta i {
  color: var(--primary);
  font-size: 11px;
}

.blog-card__body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text);
}

.blog-card__body h3 a:hover {
  color: var(--primary);
}

.blog-card__body > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.blog-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card__link:hover {
  gap: 12px;
}

/* ===== Contact ===== */
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

.contact__info .pill-badge {
  margin-bottom: 16px;
}

.contact-section__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 32px;
}

.contact__phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.contact__phone-label {
  display: block;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.contact__phone-number {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--primary);
  box-shadow: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

[data-theme="dark"] .footer {
  background: #090912;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 16px;
}

.footer__col > p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: var(--transition);
}

.footer__socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer__col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__col ul li a:hover {
  color: var(--primary-light);
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.footer__contact li i {
  color: var(--primary-light);
  font-size: 13px;
}

.footer__bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.45);
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .section__title { font-size: 34px; }

  /* Layout */
  .site-layout__grid {
    grid-template-columns: 320px 1fr;
    gap: 24px;
  }

  /* Header */
  .header__phone,
  .header__email-btn { display: none; }

  /* Hero */
  .hero__title { font-size: 36px; }
  .hero__grid { grid-template-columns: 320px 1fr; gap: 32px; }
  .hero__stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero__stat-item:nth-child(2) { border-right: none; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .skills-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .marquee-bar { margin-left: calc(-1 * (320px + 24px + 24px)); }

  .pricing-card--featured {
    transform: scale(1);
  }
  .pricing-card--featured:hover {
    transform: translateY(-6px);
  }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .header__inner { height: 68px; }
  .header__right { display: none; }
  .header__mobile-actions { display: flex; }
  .theme-toggle--mobile { display: flex; }
  .hamburger { display: flex; }

  .site-layout {
    padding-top: 68px;
  }

  .site-layout__grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    padding-top: 20px;
    padding-bottom: 0;
  }

  .main-content {
    padding-top: 0;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    z-index: 999;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  /* Hero */
  .hero { padding: 90px 0 60px; }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__sidebar-card {
    max-width: 360px;
    margin: 0 auto;
  }
  .hero__title { font-size: 32px; }
  .hero__intro { max-width: 100%; }
  .hero__buttons { justify-content: flex-start; }
  .hero__stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero__stat-item:nth-child(2) { border-right: none; }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__image-wrapper { height: 340px; }
  .about__highlights { grid-template-columns: 1fr; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Skills */
  .skills-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section__title--left { text-align: center; }
  .marquee-bar { margin-left: -24px; }
  .marquee-bar__text { font-size: 32px; }

  /* Timeline */
  .timeline-section__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .section__header--left { text-align: center; }

  /* Blog */
  .blog__grid { grid-template-columns: 1fr; }

  /* Pricing */
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Contact */
  .contact-card { padding: 28px 20px; }
  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact__form-row { grid-template-columns: 1fr; }

  /* Portfolio carousel */
  .portfolio-carousel__track .project-card {
    min-width: calc(85% - 20px);
    max-width: calc(85% - 20px);
    height: 320px;
  }

  .project-card__link {
    opacity: 1;
    transform: translateX(0);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Prevent overflow */
  .main-content,
  .container {
    max-width: 100%;
    overflow-x: clip;
  }

  .sidebar__card {
    max-width: 100%;
  }

  /* Stats bar */
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stats-bar__item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
  }

  .stats-bar__item:last-child {
    border-bottom: none;
  }

  /* CTA banner phone */
  .cta-banner__phone {
    flex-direction: column;
    text-align: center;
  }

  /* Portfolio carousel */
  .portfolio-carousel {
    max-width: 100%;
    overflow: hidden;
  }

  /* Testimonials */
  .testimonials__carousel {
    max-width: 100%;
  }

  /* Tech graphic */
  .tech-graphic__icons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Responsive: Small Mobile ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section__title { font-size: 28px; }

  .hero-section__title { font-size: 24px; }
  .hero-section__buttons { flex-direction: column; align-items: stretch; }
  .hero-section__buttons .btn { text-align: center; }

  .skills-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .skill-card { padding: 20px 16px; }

  .skill-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .about-section__top {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 24px 16px;
  }

  .cta-banner__title { font-size: 20px; }

  .cta-banner__btn {
    width: 100%;
    text-align: center;
  }

  .contact-card { padding: 20px 16px; }

  .portfolio-card__image { height: 220px; }

  .timeline__heading { font-size: 16px; }
  .timeline__list li { font-size: 13px; }

  .pricing-card { padding: 32px 24px; }
}
