@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;900&display=swap");

/* ─── CSS VARIABLES ─── */
:root {
  --black: #0a0a0a;
  --dark: #141414;
  --mid-dark: #1e1e1e;
  --gray-dark: #2a2a2a;
  --gray-mid: #555;
  --gray-light: #999;
  --gray-border: #e0e0e0;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --accent: #c8c8c8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  background: linear-gradient(to bottom, #2A3441 0%, #1B222B 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

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

.navbar-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--white);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background-color: #1B222B;
  background-image: url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 34, 43, 0.45);
  z-index: 0;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Poppins", sans-serif;
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.05em;
  z-index: 1;
}



.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaa;
}

.hero h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero h2 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s 0.3s ease both;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}

.btn-primary {
  padding: 0.9rem 2rem;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 0.9rem 2rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeUp 0.8s 0.6s ease both;
  flex-wrap: wrap;
}

.stat-item .num {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ─── SECTION BASE ─── */
section {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gray-light);
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.portfolio-section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.portfolio-overview-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ─── ABOUT ─── */
#about {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 480px;
}

.about-box-big {
  position: absolute;
  inset: 0;
  background: var(--gray-bg) center / cover no-repeat;
  border-radius: 4px;
}

.about-box-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 180px;
  height: 180px;
  background: #1B222B;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-box-accent .big-num {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  text-align: center;
  line-height: 1;
}

.about-box-accent .small-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.about-text {
  padding-right: 1rem;
}

.about-section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--gray-mid);
  line-height: 1.85;
  font-size: 1.02rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.pill {
  padding: 0.4rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--gray-mid);
  font-weight: 400;
}

/* ─── SERVICES ─── */
#services {
  background: #1B222B;
}

#services .section-label {
  color: rgba(255, 255, 255, 0.35);
}

#services .section-label::before {
  background: rgba(255, 255, 255, 0.35);
}

.services-section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: #293341;
  padding: 3rem 2.5rem;
  transition: background 0.3s ease;
  cursor: default;
  border-radius: 0;
}

.service-card:hover {
  background: #3a475a;
}

.service-num {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ─── TECHNOLOGIES ─── */
#technologies {
  background: #1B222B;
}

#technologies .section-label {
  color: rgba(255, 255, 255, 0.35);
}

.technologies-section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}

.technologies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.technology-card {
  background: #293341;
  padding: 3rem 2.5rem;
  transition: background 0.3s ease;
  cursor: default;
}

.technology-card:hover {
  background: #3a475a;
}

.tech-category-num {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.tech-category-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-pill {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 31px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  transition: all 0.3s ease;
}

.tech-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ─── PORTFOLIO ─── */
#portfolio {
  background: var(--gray-bg);
}

.color-main {
  color : #1B222B;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.portfolio-img {
  height: 200px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-img .inner-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 12px);
}

.portfolio-img .proj-letter {
  font-family: "Poppins", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.portfolio-body {
  padding: 1.5rem;
}

.portfolio-cat {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
}

.portfolio-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.portfolio-card p {
  color: var(--gray-mid);
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 300;
}

/* ─── CONTACT ─── */
#contact {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.contact-info > p {
  color: var(--gray-mid);
  line-height: 1.8;
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-bg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-text .label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 0.2rem;
}

.contact-item-text .value {
  color: var(--black);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--gray-bg);
  transition: all 0.25s ease;
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--black);
  background: var(--white);
}

.form-group textarea {
  min-height: 140px;
}

.form-submit {
  padding: 1rem 2.5rem;
  background: #1B222B;
  color: var(--white);
  border: none;
  margin-top: 1rem;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--gray-dark);
  transform: translateY(-2px);
}

#contactMessage {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ─── FOOTER ─── */
footer {
  background: #1B222B;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 900;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── MODERN PAGINATION ─── */

#pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  flex-wrap: wrap;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Pagination Button Base Styles */
.pagination-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid #E5E7EB;
  background-color: #FFFFFF;
  color: #374151;
  cursor: pointer;
  border-radius: 8px;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  outline: none;
}

/* Pagination Button - Hover State */
.pagination-btn:hover:not(:disabled) {
  border-color: #2563EB;
  color: #2563EB;
  background-color: #EFF6FF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: scale(1.05);
}

/* Pagination Button - Focus State (Keyboard Navigation) */
.pagination-btn:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

/* Pagination Button - Active/Current Page */
.pagination-btn-active {
  background: linear-gradient(135deg, #1E3A8A 0%, #1e40af 100%);
  color: #FFFFFF;
  border-color: #1E3A8A;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
  cursor: default;
  font-weight: 600;
}

.pagination-btn-active:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}

.pagination-btn-active:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

/* Pagination Button - Disabled State */
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #D1D5DB;
  color: #9CA3AF;
  background-color: #F9FAFB;
}

.pagination-btn:disabled:hover {
  transform: scale(1);
  background-color: #F9FAFB;
  box-shadow: none;
}

/* Pagination Button - Active/Pressed State */
.pagination-btn:active:not(:disabled):not(.pagination-btn-active) {
  transform: scale(0.98);
}

/* Chevron Icon Styling */
.pagination-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Pagination Number Buttons */
.pagination-number {
  min-width: 40px;
  padding: 0;
}

/* Pagination Navigation Buttons (Previous/Next) */
.pagination-before,
.pagination-after {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pagination Container Animations */
#pagination {
  animation: fadeIn 300ms ease-out;
}

/* Page Transition Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth Page Content Transition */
.pagination-animate {
  animation: fadeIn 250ms ease-out;
}

/* ─── RESPONSIVE PAGINATION ─── */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  #pagination {
    gap: 6px;
    padding: 20px 12px;
  }

  .pagination-btn {
    min-width: 38px;
    height: 38px;
    font-size: 13px;
    padding: 0 8px;
    border-radius: 6px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  #pagination {
    gap: 4px;
    padding: 16px 8px;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 12px;
    padding: 0 6px;
    border-radius: 6px;
  }

  .pagination-icon {
    width: 16px;
    height: 16px;
    stroke-width: 3;
  }

  /* Hide some page numbers on very small screens */
  .pagination-number:not(.pagination-btn-active) {
    display: none;
  }

  /* Show only active, previous, next */
  #pagination > .pagination-before,
  #pagination > .pagination-after,
  #pagination > .pagination-number-active {
    display: flex;
  }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

/* ─── UTILITIES ─── */
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.text-muted {
  color: var(--gray-light);
}
.text-sm {
  font-size: 0.82rem;
}
.text-xs {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.loading-state {
  text-align: center;
  padding: 2rem;
  color: var(--gray-light);
}
.flex-gap-half {
  display: flex;
  gap: 0.5rem;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.flex-align-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .technologies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual {
    height: 320px;
  }
  .about-box-accent {
    bottom: -1.5rem;
    right: 0;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    background: #1B222B !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 1rem 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 200px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .nav-links.open {
    display: flex !important;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
  }
  .hamburger {
    display: flex;
  }
  .hero-stats {
    gap: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .technologies-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }
  .about-box-accent {
    display: none;
  }
}

/* ─── PORTFOLIO DETAIL PAGE ─── */

/* HERO SECTION */
.portfolio-hero {
  background: linear-gradient(to bottom, #2A3441 0%, #1B222B 100%);
  color: var(--white);
  padding: 100px 2rem;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.portfolio-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.portfolio-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
}

.portfolio-hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.portfolio-hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 550px;
}

.portfolio-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(200, 200, 200, 0.1);
  border: 1px solid rgba(200, 200, 200, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(200, 200, 200, 0.15);
  border-color: rgba(200, 200, 200, 0.3);
}

.portfolio-metrics {
  display: flex;
  gap: 60px;
}

.portfolio-metric {
  display: flex;
  flex-direction: column;
}

.portfolio-metric-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
}

.portfolio-metric-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.portfolio-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-image-placeholder {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* OVERVIEW SECTION */
.portfolio-overview {
  background: var(--gray-bg);
  padding: 100px 2rem;
  position: relative;
}

.portfolio-overview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.portfolio-overview-left {
  padding-top: 20px;
}

.section-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-mid);
  max-width: 550px;
}

.portfolio-overview-right {
  display: flex;
  justify-content: center;
}

.portfolio-info-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 380px;
  position: sticky;
  top: 100px;
}

.portfolio-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--black);
}

.portfolio-info-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portfolio-info-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-info-item:last-child {
  border-bottom: none;
}

.portfolio-info-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-light);
}

.portfolio-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}

/* SERVICES SECTION */
.portfolio-services {
  background: linear-gradient(to bottom, #2A3441 0%, #1B222B 100%);
  color: var(--white);
  padding: 100px 2rem;
  position: relative;
  overflow: hidden;
}

.portfolio-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.portfolio-services-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  display: none;
}

.portfolio-services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  margin-bottom: 80px;
}

.portfolio-services-left {
  padding-top: 20px;
}

.portfolio-services-left .section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  padding-left: 0;
}

.portfolio-services-left .section-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  order: -1;
}

.portfolio-services-section-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  color: var(--white);
}

.portfolio-services-left .section-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 100%;
}

.portfolio-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: #293341;
  padding: 3rem 2.5rem;
  transition: background 0.3s ease;
  cursor: default;
  position: relative;
  overflow: visible;
}

.service-card:hover {
  background: #3a475a;
  border-color: rgba(255, 255, 255, 0.15);
}

.service-number {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* BACK SECTION */
.portfolio-back {
  background: var(--gray-bg);
  padding: 60px 2rem;
  text-align: center;
}

.btn-back {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--black);
  color: var(--black);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-back:hover {
  background: var(--black);
  color: var(--white);
  transform: translateX(-4px);
}

/* RESPONSIVE - PORTFOLIO DETAIL */
@media (max-width: 1024px) {
  .portfolio-hero-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .portfolio-hero-title {
    font-size: 3.5rem;
  }

  .portfolio-overview-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .portfolio-services-layout {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }

  .portfolio-services-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .portfolio-services-section-title {
    font-size: 2.5rem;
  }

  .portfolio-hero,
  .portfolio-overview,
  .portfolio-services {
    padding: 80px 2rem;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 60px 1.5rem;
  }

  .portfolio-hero-layout {
    gap: 40px;
  }

  .portfolio-hero-title {
    font-size: 2.5rem;
  }

  .portfolio-hero-desc {
    font-size: 1rem;
  }

  .portfolio-metrics {
    gap: 40px;
  }

  .portfolio-overview {
    padding: 60px 1.5rem;
  }

  .portfolio-overview-left {
    padding-top: 0;
  }

  .portfolio-info-card {
    position: static;
    padding: 32px 24px;
  }

  .portfolio-services {
    padding: 60px 1.5rem;
  }

  .portfolio-services-left {
    padding-top: 0;
    margin-bottom: 40px;
  }

  .portfolio-services-section-title {
    font-size: 2rem;
  }

  .portfolio-services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-number {
    font-size: 2rem;
  }

  .service-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    padding: 40px 1rem;
  }

  .portfolio-hero-title {
    font-size: 2rem;
  }

  .portfolio-hero-desc {
    font-size: 0.95rem;
  }

  .portfolio-metrics {
    gap: 30px;
    flex-wrap: wrap;
  }

  .portfolio-metric-value {
    font-size: 1.8rem;
  }

  .portfolio-tags {
    gap: 8px;
  }

  .tag {
    font-size: 0.7rem;
    padding: 8px 16px;
  }

  .portfolio-overview {
    padding: 40px 1rem;
  }

  .portfolio-info-card {
    padding: 24px 16px;
  }

  .portfolio-info-title {
    font-size: 1.2rem;
  }

  .portfolio-services {
    padding: 40px 1rem;
  }

  .portfolio-services-section-title {
    font-size: 1.5rem;
  }

  .portfolio-services-grid {
    gap: 1px;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-number {
    font-size: 1.5rem;
  }

  .service-title {
    font-size: 1rem;
  }

  .service-desc {
    font-size: 0.9rem;
  }

  .btn-back {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .portfolio-back {
    padding: 40px 1rem;
  }
}
