/* Vengi Isidro portfolio - classic (clone of the Netlify portfolio) */

:root {
  --orange: #E2690F;
  --orange-dark: #B84F0A;
  --orange-deep: #9A4208;
  --orange-soft: #F08A2E;
  --amber: #F7A83C;
  --cream: #FAF8F4;
  --ink: #17181D;
  --slate-900: rgba(23, 24, 29, 0.8);
  --slate-800: rgba(42, 43, 50, 0.5);
  --text: var(--cream);
  --text-soft: #D6CFC3;
  --text-200: #EDE7DC;
  --text-300: #D6CFC3;
  --text-400: #A39C91;
  --star: #fbbf24;
  --line: rgba(226, 105, 15, 0.2);
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-pad: clamp(4rem, 8vw, 6rem);
  --h-section: clamp(2.25rem, 1.6rem + 2.6vw, 3rem);
  --radius: 1rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  position: relative;
  overflow-x: clip;
}

/* Background photo with overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('img/background.jpg') center / cover no-repeat;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: var(--orange-dark);
  color: var(--cream);
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromTop {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.02); filter: brightness(1.1); }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 50% { border-color: var(--orange); }
  51%, 100% { border-color: transparent; }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(23, 24, 29, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 0.75rem 0;
  animation: slideInFromTop 0.8s ease-out;
  border-bottom: 1px solid var(--line);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-logo {
  display: grid;
  place-items: center;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 2px rgba(226, 105, 15, 0.35);
  transition: transform 0.3s ease;
}

.nav-logo img {
  width: 2.125rem;
  height: auto;
}

.nav-logo:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(0.25rem, 1.5vw, 2rem);
}

nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul a:hover {
  color: var(--orange);
  background: rgba(226, 105, 15, 0.1);
  transform: translateY(-2px);
}

nav ul a:hover::after {
  width: 80%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: 0;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--cream);
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Sections */
section {
  min-height: 100svh;
  padding: calc(var(--section-pad) + 1rem) var(--gutter) var(--section-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-margin-top: 0;
}

.js section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js section.animate {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 75rem;
  width: 100%;
  margin: 0 auto;
}

/* Hero Section */
#home {
  position: relative;
  overflow: hidden;
}

.shape-field {
  position: absolute;
  inset: 0 0 auto;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.geometric-shape {
  position: absolute;
  opacity: 0.1;
  animation: float 3s ease-in-out infinite;
  pointer-events: none;
}

.shape-1 {
  top: 20%;
  left: 10%;
  width: clamp(4rem, 10vw, 7.5rem);
  aspect-ratio: 1;
  background: var(--orange);
  rotate: 45deg;
}

.shape-2 {
  top: 40%;
  right: 15%;
  width: clamp(3rem, 7vw, 5rem);
  aspect-ratio: 1;
  background: var(--amber);
  border-radius: 50%;
  animation-delay: -1s;
}

.shape-3 {
  top: 70%;
  left: 20%;
  width: clamp(2.5rem, 5vw, 3.75rem);
  aspect-ratio: 1;
  background: var(--orange);
  animation-delay: -2s;
}

.shape-4 {
  top: 80%;
  right: 25%;
  width: clamp(3.5rem, 8vw, 6.25rem);
  aspect-ratio: 1;
  background: var(--amber);
  rotate: 12deg;
  animation-delay: -0.5s;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4rem);
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.hero-text {
  flex: 1 1 22rem;
  min-width: 0;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #FAF8F4, #EDE7DC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-text .name {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.hero-text .name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: 2px;
}

.hero-text h2 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 2rem;
  color: #EDE7DC;
  line-height: 1.4;
  min-height: 2.6em;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-text p {
  font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.5rem);
  font-weight: 700;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--orange), var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.6s both, pulse 3s ease-in-out infinite;
}

.typing-container {
  display: inline-block;
}

.typing-text {
  border-right: 2px solid var(--orange);
  padding-right: 2px;
  animation: blink 1s infinite;
}

.book-consultation {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange-deep) 100%);
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(226, 105, 15, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.book-consultation::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.book-consultation:hover::before {
  left: 100%;
}

.book-consultation:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(226, 105, 15, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.book-consultation svg {
  transition: transform 0.3s ease;
}

.book-consultation:hover svg {
  transform: translateX(4px);
}

.hero-image {
  flex: 1 1 18rem;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease-out 0.8s both;
}

.profile-container {
  position: relative;
}

.profile-picture {
  position: relative;
  z-index: 1;
  width: min(20rem, 70vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  border: 4px solid rgba(226, 105, 15, 0.3);
  box-shadow: 0 25px 50px -12px rgba(23, 24, 29, 0.5);
  transition: all 0.3s ease;
}

.profile-picture:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 60px -12px rgba(226, 105, 15, 0.4);
}

.profile-shapes {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.profile-shape {
  position: absolute;
  opacity: 0.2;
  animation: float 4s ease-in-out infinite;
}

.profile-shape:nth-child(1) {
  width: 7.5rem;
  height: 7.5rem;
  background: var(--orange);
  top: -20px;
  left: -20px;
  border-radius: var(--radius);
  rotate: 12deg;
  animation-delay: -1s;
}

.profile-shape:nth-child(2) {
  width: 5rem;
  height: 5rem;
  background: var(--amber);
  bottom: -20px;
  right: -20px;
  border-radius: 50%;
  animation-delay: -2s;
}

.profile-shape:nth-child(3) {
  width: 3.75rem;
  height: 3.75rem;
  background: var(--orange);
  top: 50%;
  right: -30px;
  rotate: 45deg;
  animation-delay: -0.5s;
}

/* About Section (text only) */
#about {
  background: linear-gradient(135deg, rgba(23, 24, 29, 0.9) 0%, rgba(226, 105, 15, 0.1) 100%);
}

.about-container {
  max-width: 56rem;
  width: 100%;
}

.about-text h2 {
  font-size: var(--h-section);
  color: var(--orange);
  margin-bottom: 2rem;
  font-weight: bold;
  text-align: center;
}

.about-text p {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-soft);
}

/* Portfolio Section */
#portfolio {
  background: linear-gradient(135deg, rgba(23, 24, 29, 0.9), rgba(226, 105, 15, 0.1));
}

.portfolio-container {
  max-width: 87.5rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.portfolio-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.portfolio-header h2 {
  font-size: var(--h-section);
  color: var(--orange);
  margin-bottom: 1rem;
}

.portfolio-subtitle {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--text-soft);
  max-width: 50rem;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: rgba(42, 43, 50, 0.3);
  border: 1px solid rgba(226, 105, 15, 0.3);
  border-radius: 15px;
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 105, 15, 0.6);
  box-shadow: 0 10px 30px rgba(226, 105, 15, 0.2);
}

.portfolio-icon {
  font-size: 2.5rem;
  background: rgba(226, 105, 15, 0.2);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1rem;
}

.portfolio-card h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  margin: 1rem 0;
  font-weight: 600;
}

.portfolio-card p {
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.portfolio-points {
  flex: 1;
  width: 100%;
  list-style: none;
  margin-bottom: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.portfolio-points li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-300);
  font-size: 0.9rem;
  line-height: 1.55;
}

.portfolio-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
}

.portfolio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange-deep));
  color: var(--cream);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(226, 105, 15, 0.3);
}

.portfolio-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 105, 15, 0.4);
}

.consult-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.consult-button {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange-deep));
}

/* Services Section */
#services {
  background: rgba(23, 24, 29, 0.1);
  position: relative;
}

#services::before,
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(226, 105, 15, 0.1) 0%, rgba(184, 79, 10, 0.1) 100%);
  z-index: 0;
}

#services .container,
#contact .container {
  position: relative;
  z-index: 1;
}

.services-header {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.services-title {
  font-size: var(--h-section);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--text-400);
  max-width: 37.5rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.services-column,
.consultancy-column {
  background: var(--slate-800);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(226, 105, 15, 0.1);
}

.column-title {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 600;
  color: var(--text-200);
  margin-bottom: 0.5rem;
}

.column-subtitle {
  color: var(--text-400);
  margin-bottom: 2rem;
}

.service-card {
  background: var(--slate-900);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(226, 105, 15, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 105, 15, 0.3);
  box-shadow: 0 10px 25px rgba(226, 105, 15, 0.1);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(226, 105, 15, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 1rem;
}

.service-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-200);
  margin-bottom: 0.5rem;
}

.service-content p {
  color: var(--text-400);
}

/* Testimonials */
#testimonials {
  background: linear-gradient(135deg, rgba(23, 24, 29, 0.5) 0%, rgba(23, 24, 29, 0.5) 100%);
}

.section-header {
  text-align: center;
}

.section-header h2 {
  font-size: var(--h-section);
  color: var(--orange);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-300);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18.75rem, 100%), 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--slate-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 105, 15, 0.4);
  box-shadow: 0 20px 40px rgba(226, 105, 15, 0.1);
}

.testimonial-stars {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--star);
}

.testimonial-tag {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(226, 105, 15, 0.4);
  border-radius: 999px;
  background: rgba(226, 105, 15, 0.1);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.testimonial-text {
  flex: 1;
  color: var(--text-300);
  margin: 1rem 0;
  font-style: italic;
}

.testimonial-author {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 105, 15, 0.1);
}

.testimonial-author h4 {
  color: var(--text-200);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.testimonial-author p {
  color: var(--text-400);
  font-size: 0.9rem;
}

/* Contact Section */
#contact {
  position: relative;
  overflow: hidden;
}

.contact-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.contact-header h2 {
  font-size: var(--h-section);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-header p {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--text-300);
  max-width: 37.5rem;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  background: var(--slate-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 105, 15, 0.4);
  box-shadow: 0 20px 40px rgba(226, 105, 15, 0.1);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon-circle {
  width: 3.125rem;
  height: 3.125rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-card-header h3 {
  font-size: 1.5rem;
}

.contact-links-list,
.contact-details-list {
  flex: 1;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 1rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem;
  background: var(--slate-800);
  border: 1px solid rgba(226, 105, 15, 0.1);
  border-radius: 0.75rem;
  color: var(--text-200);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link-item:hover {
  transform: translateX(8px);
  border-color: rgba(226, 105, 15, 0.3);
  background: rgba(226, 105, 15, 0.1);
  color: var(--orange);
}

.contact-link-item > i:first-child,
.contact-link-item > svg:first-child {
  font-size: 1.2rem;
  width: 1.875rem;
  flex-shrink: 0;
}

.contact-link-item .upwork-icon {
  width: 1.875rem;
  height: 1.25rem;
  color: #6fda44;
}

.contact-link-item > i:last-child {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.6;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--slate-800);
  border: 1px solid rgba(226, 105, 15, 0.1);
  border-radius: 0.75rem;
}

.detail-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(226, 105, 15, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.detail-content {
  flex: 1;
  min-width: 0;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.detail-value {
  color: var(--text-200);
  overflow-wrap: anywhere;
}

.detail-value a {
  text-decoration: none;
}

.detail-value a:hover {
  color: var(--orange);
}

/* Footer */
#footer {
  position: relative;
  background: linear-gradient(160deg, rgba(23, 24, 29, 0.98) 0%, rgba(42, 30, 22, 0.97) 100%);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
}

#footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--amber), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.footer-brand {
  grid-column: span 2;
  max-width: 26rem;
}

.footer-logo {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--cream);
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 2.4rem;
  height: auto;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-300);
  margin-bottom: 1.5rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange-deep));
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(226, 105, 15, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 105, 15, 0.4);
}

.footer-label {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.footer-col a,
.footer-col li > span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.25rem;
  color: var(--text-300);
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-col i {
  width: 1rem;
  color: var(--orange);
  text-align: center;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  color: var(--text-400);
  font-size: 0.875rem;
}

@media (min-width: 64em) {
  .footer-top {
    grid-template-columns: 1.5fr 0.8fr 1.4fr 0.9fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 40em) {
  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Loading Screen */
.loading {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading.is-gone {
  display: none;
}

.spinner {
  width: 3.125rem;
  height: 3.125rem;
  border: 3px solid rgba(226, 105, 15, 0.3);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Portfolio card as a link to its project page */
.portfolio-card .portfolio-button {
  margin-top: auto;
}

/* Project pages */
.project-hero {
  padding: calc(var(--section-pad) + 3rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, rgba(23, 24, 29, 0.92) 0%, rgba(226, 105, 15, 0.12) 100%);
  border-bottom: 1px solid var(--line);
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--text-300);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.project-back:hover {
  color: var(--amber);
}

.project-kicker {
  margin-top: clamp(1rem, 3vw, 2rem);
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
  color: var(--orange);
  text-wrap: balance;
}

.project-intro {
  max-width: 44rem;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  color: var(--text-200);
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.project-tags li {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(226, 105, 15, 0.4);
  border-radius: 999px;
  background: rgba(226, 105, 15, 0.1);
  color: var(--text-200);
  font-size: 0.85rem;
}

.project-section {
  min-height: auto;
  display: block;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  background: rgba(23, 24, 29, 0.9);
}

.project-pager {
  background: rgba(23, 24, 29, 0.9);
}

.project-section + .project-section {
  border-top: 1px solid rgba(226, 105, 15, 0.12);
}

.project-copy {
  max-width: 48rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.project-copy h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.2;
  color: var(--text-200);
  margin-bottom: 1rem;
}

.project-copy p {
  color: var(--text-300);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.75;
}

.project-copy p + p {
  margin-top: 0.85rem;
}

.project-copy .portfolio-points {
  margin: 1.25rem 0 0;
  max-width: 44rem;
}

/* Galleries */
.gallery {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.gallery--wide {
  grid-template-columns: 1fr;
}

.gallery--two {
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
}

.gallery--three {
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.gallery--tall {
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
}

.gallery--phones {
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 16rem));
}

.gallery--logos {
  grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr));
}

.shot figcaption {
  margin-top: 0.6rem;
  color: var(--text-400);
  font-size: 0.85rem;
  line-height: 1.5;
}

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--slate-900);
  cursor: zoom-in;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.shot-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 105, 15, 0.55);
  box-shadow: 0 14px 30px rgba(226, 105, 15, 0.15);
}

.shot-btn img {
  width: 100%;
  height: auto;
}

.gallery--logos .shot-btn {
  aspect-ratio: 1;
  padding: 1rem;
  background: var(--cream);
  display: grid;
  place-items: center;
}

.gallery--logos .shot-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Prev / next */
.project-pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1rem;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 44px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--slate-900);
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.pager-link:hover {
  border-color: rgba(226, 105, 15, 0.55);
  transform: translateY(-2px);
}

.pager-next {
  text-align: right;
}

.pager-label {
  color: var(--text-400);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pager-title {
  color: var(--amber);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Lightbox */
.zoom {
  width: min(96vw, 90rem);
  max-width: none;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--text);
  overflow: hidden;
}

.zoom::backdrop {
  background: rgba(10, 10, 12, 0.85);
}

.zoom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.zoom-cap {
  color: var(--text-300);
  font-size: 0.9rem;
}

.zoom-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.zoom-close:hover {
  border-color: var(--orange);
  color: var(--amber);
}

.zoom-body {
  max-height: calc(94dvh - 4rem);
  overflow: auto;
  background: #fff;
}

.zoom-body img {
  width: 100%;
  height: auto;
}

/* Mobile and tablet nav (below 768px) */
@media (max-width: 48em) {
  .mobile-menu-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(23, 24, 29, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  nav ul.active {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
