/* ===================================
   PORTFOLIO PAGE STYLES
   =================================== */

/* Added complete navbar CSS from style.css */

/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1a4fff;
  --dark-gray: #2f3237;
  --orange: #ff7f2a;
  --red: #cc1e2c;
  --white: #ffffff;
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================
   NAVIGATION BAR
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: var(--dark-gray);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: block;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-spacer {
  width: 60px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 5rem;
  align-items: center;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--orange);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--orange);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
  width: 40px;
  height: 40px;
}

.hamburger-icon {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.25s ease;
  border-radius: 2px;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 3px;
  background-color: var(--white);
  transition: all 0.25s ease;
  left: 0;
  border-radius: 2px;
}

.hamburger-icon::before {
  top: -9px;
}

.hamburger-icon::after {
  top: 9px;
}

.mobile-menu-toggle.active .hamburger-icon {
  background-color: transparent;
}

.mobile-menu-toggle.active .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.active .hamburger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ===================================
   PAGE CONTENT
   =================================== */
.page-content {
  padding-top: 120px;
  min-height: 100vh;
}

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

.page-content h1 {
  font-size: 2.5rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

.page-content p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media screen and (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .logo-img {
    height: 50px;
    min-width: 120px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--dark-gray);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    gap: 0;
    transition: right 0.25s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    display: block;
    padding: 1.2rem 2rem;
  }

  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-spacer {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .logo-img {
    height: 45px;
    min-width: 110px;
  }

  .nav-menu {
    width: 100%;
  }
}

/* ===================================
   PORTFOLIO HERO SECTION
   =================================== */
.portfolio-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 50%, #f5f7fa 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.portfolio-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.portfolio-hero-content {
  position: relative;
  z-index: 2;
}

.portfolio-hero-label {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(26, 79, 255, 0.1) 0%, rgba(255, 127, 42, 0.08) 100%);
  border: 1px solid rgba(26, 79, 255, 0.25);
  border-radius: 30px;
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: portfolioFadeIn 0.7s ease forwards;
}

.portfolio-hero-title {
  margin-bottom: 24px;
}

.title-line {
  display: block;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0;
  transform: translateX(-30px);
}

.title-line-1 {
  font-size: 4rem;
  color: var(--primary-blue);
  animation: portfolioSlideIn 0.7s ease 0.15s forwards;
}

.title-line-2 {
  font-size: 4rem;
  color: var(--orange);
  animation: portfolioSlideIn 0.7s ease 0.3s forwards;
}

.title-line-3 {
  font-size: 4rem;
  color: var(--dark-gray);
  animation: portfolioSlideIn 0.7s ease 0.45s forwards;
}

.portfolio-hero-slogan {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-gray);
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: portfolioFadeIn 0.7s ease 0.6s forwards;
}

.portfolio-hero-desc {
  font-size: 1.05rem;
  color: #6b7280;
  line-height: 1.7;
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  animation: portfolioFadeIn 0.7s ease 0.75s forwards;
}

/* Hero Visual Area */
.portfolio-hero-visual {
  position: relative;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1d29 0%, #2f3237 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(30px);
  animation: portfolioSlideInRight 0.8s ease 0.4s forwards;
}

.portfolio-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}

.portfolio-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 79, 255, 0.1) 0%, rgba(255, 127, 42, 0.05) 100%);
  pointer-events: none;
}

/* Animations */
@keyframes portfolioFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portfolioSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes portfolioSlideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===================================
   PORTFOLIO HERO RESPONSIVE
   =================================== */
@media screen and (max-width: 1024px) {
  .portfolio-hero-container {
    padding: 50px 40px;
    gap: 40px;
  }

  .title-line-1,
  .title-line-2,
  .title-line-3 {
    font-size: 3.2rem;
  }

  .portfolio-hero-visual {
    height: 420px;
  }
}

@media screen and (max-width: 768px) {
  .portfolio-hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .portfolio-hero-container {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 40px;
  }

  .portfolio-hero-content {
    text-align: center;
  }

  .title-line-1,
  .title-line-2,
  .title-line-3 {
    font-size: 2.8rem;
  }

  .portfolio-hero-slogan {
    font-size: 1.1rem;
  }

  .portfolio-hero-desc {
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .portfolio-hero-visual {
    height: 320px;
    order: -1;
  }

  .title-line {
    transform: translateY(20px);
    animation-name: portfolioFadeIn;
  }
}

@media screen and (max-width: 480px) {
  .portfolio-hero {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .portfolio-hero-container {
    padding: 30px 20px;
    gap: 30px;
  }

  .portfolio-hero-label {
    font-size: 0.75rem;
    padding: 6px 14px;
    margin-bottom: 20px;
  }

  .title-line-1,
  .title-line-2,
  .title-line-3 {
    font-size: 2.2rem;
  }

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

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

  .portfolio-hero-visual {
    height: 260px;
  }
}

/* ===================================
   WHAT WE ACTUALLY DO SECTION
   =================================== */
.portfolio-services {
  padding: 80px 0;
  background: #f8f9fc;
}

.portfolio-section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.portfolio-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.portfolio-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.portfolio-section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
}

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

.portfolio-service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  transform: translateX(0);
}

.portfolio-service-card.will-animate {
  opacity: 0;
  transform: translateX(-30px);
}

.portfolio-service-card.animate {
  opacity: 1;
  transform: translateX(0);
}

.portfolio-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 79, 255, 0.1);
  border-color: rgba(26, 79, 255, 0.15);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(26, 79, 255, 0.1) 0%, rgba(255, 127, 42, 0.08) 100%);
  border-radius: 8px;
  margin-bottom: 20px;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* What We Do Responsive */
@media screen and (max-width: 1024px) {
  .portfolio-section-container {
    padding: 0 40px;
  }

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

  .portfolio-service-card {
    padding: 32px 28px;
  }
}

@media screen and (max-width: 768px) {
  .portfolio-services {
    padding: 60px 0;
  }

  .portfolio-section-container {
    padding: 0 24px;
  }

  .portfolio-section-header {
    margin-bottom: 36px;
  }

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

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

  .portfolio-service-card {
    padding: 28px 24px;
    transform: translateY(20px);
  }

  .portfolio-service-card.animate {
    transform: translateY(0);
  }
}

@media screen and (max-width: 480px) {
  .portfolio-services {
    padding: 50px 0;
  }

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

  .portfolio-section-subtitle {
    font-size: 1rem;
  }

  .portfolio-service-card {
    padding: 24px 20px;
  }

  .service-card-title {
    font-size: 1.1rem;
  }

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

/* ===================================
   ENGINEERING & TECHNICAL CAPABILITY
   =================================== */
.portfolio-engineering {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1d29 0%, #0f1015 100%);
}

.engineering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.engineering-content {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.engineering-content.will-animate {
  opacity: 0;
  transform: translateY(30px);
}

.engineering-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.engineering-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.engineering-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
}

.engineering-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.engineering-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--primary-blue);
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s ease;
}

.engineering-item.will-animate {
  opacity: 0;
  transform: translateX(-20px);
}

.engineering-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.engineering-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--orange);
}

.item-marker {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--orange) 100%);
  border-radius: 50%;
  flex-shrink: 0;
}

.item-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Engineering Visual */
.engineering-visual {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.engineering-visual.will-animate {
  opacity: 0;
  transform: translateY(30px);
}

.engineering-visual.animate {
  opacity: 1;
  transform: translateY(0);
}

.engineering-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2f3237 0%, #1a1d29 100%);
  aspect-ratio: 4/3;
}

.engineering-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.engineering-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 79, 255, 0.15) 0%, rgba(255, 127, 42, 0.1) 100%);
  pointer-events: none;
}

/* Engineering Responsive */
@media screen and (max-width: 1024px) {
  .engineering-grid {
    gap: 40px;
  }

  .engineering-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .portfolio-engineering {
    padding: 60px 0;
  }

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

  .engineering-title {
    font-size: 1.8rem;
  }

  .engineering-subtitle {
    margin-bottom: 28px;
  }

  .engineering-item {
    padding: 14px 16px;
  }

  .item-text {
    font-size: 0.95rem;
  }

  .engineering-visual {
    order: -1;
  }

  .engineering-img-wrapper {
    aspect-ratio: 16/9;
  }
}

@media screen and (max-width: 480px) {
  .portfolio-engineering {
    padding: 50px 0;
  }

  .engineering-title {
    font-size: 1.6rem;
  }

  .engineering-subtitle {
    font-size: 0.95rem;
  }

  .engineering-list {
    gap: 12px;
  }

  .engineering-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .item-text {
    font-size: 0.9rem;
  }
}

/* ===================================
   SITE & PROJECT EXPERIENCE
   =================================== */
.portfolio-experience {
  padding: 80px 0;
  background: linear-gradient(180deg, #f0f2f7 0%, #f8f9fc 40%, var(--white) 100%);
}

.experience-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.experience-block {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 32px;
  align-items: stretch;
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  opacity: 1;
  transform: scale(1);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.experience-block.will-animate {
  opacity: 0;
  transform: scale(0.96);
}

.experience-block.animate {
  opacity: 1;
  transform: scale(1);
}

.experience-block:hover {
  box-shadow: 0 8px 32px rgba(26, 79, 255, 0.08);
  border-color: rgba(26, 79, 255, 0.12);
}

/* Left Column: Content */
.experience-block-left {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 36px 0 36px 40px;
}

/* Right Column: Image */
.experience-block-right {
  position: relative;
  min-height: 200px;
}

.experience-img-wrapper {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8edf5 0%, #d1d9e6 100%);
}

.experience-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.experience-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  min-width: 70px;
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.experience-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin: 0;
}

.experience-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
}

.experience-desc {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 8px 0 0 0;
  max-width: 700px;
}

/* Site Experience Responsive */
@media screen and (max-width: 1024px) {
  .experience-block {
    grid-template-columns: 55% 45%;
    gap: 24px;
  }

  .experience-block-left {
    padding: 28px 0 28px 28px;
    gap: 20px;
  }

  .experience-number {
    font-size: 2.5rem;
    min-width: 55px;
  }

  .experience-block-right {
    min-height: 180px;
  }
}

@media screen and (max-width: 768px) {
  .portfolio-experience {
    padding: 60px 0;
  }

  .experience-blocks {
    gap: 20px;
  }

  .experience-block {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .experience-block-left {
    padding: 24px;
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .experience-block-right {
    min-height: 180px;
    order: -1;
  }

  .experience-number {
    font-size: 2rem;
    min-width: auto;
  }

  .experience-title {
    font-size: 1.25rem;
  }

  .experience-subtitle {
    font-size: 0.95rem;
  }

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

@media screen and (max-width: 480px) {
  .portfolio-experience {
    padding: 50px 0;
  }

  .experience-block-left {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .experience-block-right {
    min-height: 160px;
  }

  .experience-number {
    font-size: 1.8rem;
  }

  .experience-title {
    font-size: 1.15rem;
  }
}

/* ===================================
   HOW WE WORK / WORKING FLOW
   =================================== */
.portfolio-workflow {
  padding: 80px 0 0;
  background: linear-gradient(180deg, #0f1015 0%, #1a1d29 50%, #0f1015 100%);
}

.workflow-header {
  margin-bottom: 60px;
}

.workflow-title {
  color: var(--white);
}

.workflow-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.workflow-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  position: relative;
  margin-bottom: 60px;
}

.workflow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 20px;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.workflow-step.will-animate {
  opacity: 0;
  transform: translateX(-40px);
}

.workflow-step.animate {
  opacity: 1;
  transform: translateX(0);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
  transition: all 0.4s ease;
}

.workflow-step.animate .step-number {
  color: rgba(255, 255, 255, 0.3);
}

.step-content {
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.workflow-step:hover .step-content {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(26, 79, 255, 0.3);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

/* Connector Lines */
.step-connector {
  position: absolute;
  top: 75px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(26, 79, 255, 0.4) 0%, rgba(255, 127, 42, 0.4) 100%);
  opacity: 1;
  transition: opacity 0.5s ease 0.3s;
}

.workflow-step-final .step-content {
  border-color: rgba(26, 79, 255, 0.25);
  background: rgba(26, 79, 255, 0.06);
  box-shadow: 0 0 30px rgba(26, 79, 255, 0.1);
}

.workflow-step-final .step-number {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Workflow Footer */
.workflow-footer {
  text-align: center;
  padding: 50px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.workflow-footer.will-animate {
  opacity: 0;
  transform: translateY(20px);
}

.workflow-footer.animate {
  opacity: 1;
  transform: translateY(0);
}

.workflow-message {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin: 0;
}

.message-highlight {
  color: var(--white);
  font-weight: 600;
}

/* How We Work Responsive */
@media screen and (max-width: 1024px) {
  .workflow-timeline {
    gap: 0;
  }

  .workflow-step {
    padding: 0 12px;
  }

  .step-connector {
    right: -12px;
    width: 24px;
  }

  .step-content {
    padding: 20px 12px;
    min-height: 130px;
  }

  .step-title {
    font-size: 1.1rem;
  }

  .step-desc {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 768px) {
  .portfolio-workflow {
    padding: 60px 0 0;
  }

  .workflow-header {
    margin-bottom: 40px;
  }

  .workflow-timeline {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }

  .workflow-step {
    flex-direction: row;
    text-align: left;
    padding: 0;
    transform: translateY(20px);
  }

  .workflow-step.animate {
    transform: translateY(0);
  }

  .step-number {
    font-size: 2rem;
    min-width: 60px;
    margin-bottom: 0;
    margin-right: 16px;
  }

  .step-content {
    flex: 1;
    min-height: auto;
    padding: 20px;
  }

  .step-connector {
    display: none;
  }

  .workflow-footer {
    padding: 40px 0 60px;
  }

  .workflow-message {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .portfolio-workflow {
    padding: 50px 0 0;
  }

  .workflow-timeline {
    gap: 20px;
  }

  .step-number {
    font-size: 1.6rem;
    min-width: 50px;
  }

  .step-content {
    padding: 16px;
  }

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

  .step-desc {
    font-size: 0.85rem;
  }

  .workflow-footer {
    padding: 32px 0 50px;
  }

  .workflow-message {
    font-size: 0.95rem;
  }
}

/* ===================================
   ELEKTRİK ANİMASYONU - SADECE CONNECTOR'LAR
   =================================== */

/* Üstteki ana çizgiyi kaldır */
.workflow-timeline::before,
.workflow-timeline::after {
    display: none !important;
}

/* Connector çizgilerini görünür yap ve güçlendir */
.step-connector {
    position: absolute !important;
    top: 40px !important;
    right: -25% !important;
    width: 50% !important;
    height: 3px !important;
    background: linear-gradient(90deg, 
        rgba(0, 217, 255, 0.2) 0%, 
        rgba(0, 217, 255, 0.4) 50%, 
        rgba(0, 217, 255, 0.2) 100%) !important;
    z-index: 0 !important;
    opacity: 1 !important;
}

/* Elektrik akışı için animasyonlu overlay */
.step-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        #00d9ff 20%,
        #00ffaa 50%,
        #00d9ff 80%,
        transparent 100%);
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.7));
    animation: connectorEnergyFlow 3s infinite linear;
    animation-play-state: running;
}

/* Her connector için farklı animasyon başlangıcı */
.workflow-step:nth-child(1) .step-connector::before {
    animation-delay: 0s;
}

.workflow-step:nth-child(2) .step-connector::before {
    animation-delay: 0.75s;
}

.workflow-step:nth-child(3) .step-connector::before {
    animation-delay: 1.5s;
}

@keyframes connectorEnergyFlow {
    0% {
        width: 0;
        left: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        width: 100%;
        left: 0;
        opacity: 0;
    }
}

/* Container (Step) animasyonları */
.workflow-step {
    --step-glow: 0;
    --step-scale: 1;
    transform: scale(var(--step-scale));
    transition: transform 0.3s ease;
    position: relative;
}

/* Step numaraları için parlaklık efekti */
.workflow-step .step-number {
    position: relative;
    transition: all 0.3s ease;
    animation: stepNumberPulse 12s infinite;
}

/* Her step için farklı animasyon zamanlaması */
.workflow-step:nth-child(1) .step-number {
    animation-delay: 0s;
}

.workflow-step:nth-child(2) .step-number {
    animation-delay: 3s;
}

.workflow-step:nth-child(3) .step-number {
    animation-delay: 6s;
}

.workflow-step:nth-child(4) .step-number {
    animation-delay: 9s;
}

@keyframes stepNumberPulse {
    0%, 70%, 100% {
        color: rgba(255, 255, 255, 0.3);
        text-shadow: none;
    }
    10%, 60% {
        color: #00ffaa;
        text-shadow: 0 0 15px #00ffaa,
                    0 0 30px rgba(0, 255, 170, 0.5);
    }
}

/* Step content container animasyonu */
.workflow-step .step-content {
    position: relative;
    transition: all 0.3s ease;
    animation: stepContentPulse 12s infinite;
}

/* Her step content için farklı zamanlama */
.workflow-step:nth-child(1) .step-content {
    animation-delay: 0s;
}

.workflow-step:nth-child(2) .step-content {
    animation-delay: 3s;
}

.workflow-step:nth-child(3) .step-content {
    animation-delay: 6s;
}

.workflow-step:nth-child(4) .step-content {
    animation-delay: 9s;
}

@keyframes stepContentPulse {
    0%, 70%, 100% {
        border-color: rgba(255, 255, 255, 0.06);
        background: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        transform: translateY(0);
    }
    10%, 60% {
        border-color: rgba(0, 255, 170, 0.4);
        background: rgba(0, 255, 170, 0.08);
        box-shadow: 0 10px 30px rgba(0, 255, 170, 0.15),
                   inset 0 0 20px rgba(0, 255, 170, 0.05);
        transform: translateY(-5px);
    }
}

/* Aktif step için kıvılcım efekti */
.workflow-step .step-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
        rgba(0, 255, 170, 0) 0%,
        rgba(0, 255, 170, 0.1) 50%,
        rgba(0, 255, 170, 0) 100%);
    opacity: 0;
    border-radius: inherit;
    animation: stepSparkle 12s infinite;
    pointer-events: none;
}

/* Her step için kıvılcım zamanlaması */
.workflow-step:nth-child(1) .step-content::after {
    animation-delay: 0s;
}

.workflow-step:nth-child(2) .step-content::after {
    animation-delay: 3s;
}

.workflow-step:nth-child(3) .step-content::after {
    animation-delay: 6s;
}

.workflow-step:nth-child(4) .step-content::after {
    animation-delay: 9s;
}

@keyframes stepSparkle {
    0%, 65%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    10%, 55% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Son step için connector olmasın */
.workflow-step-final .step-connector {
    display: none !important;
}

/* Mobil için responsive ayarlar */
@media screen and (max-width: 768px) {
    /* Mobilde connector'ları gizle */
    .step-connector {
        display: none !important;
    }
    
    /* Mobilde dikey animasyon için pseudo element */
    .workflow-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 30px;
        width: 3px;
        height: 40px;
        background: linear-gradient(180deg, 
            rgba(0, 217, 255, 0.2) 0%, 
            rgba(0, 217, 255, 0.4) 50%, 
            rgba(0, 217, 255, 0.2) 100%);
        z-index: 0;
    }
    
    /* Mobilde dikey elektrik akışı */
    .workflow-step:not(:last-child)::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 30px;
        width: 3px;
        height: 0;
        background: linear-gradient(180deg, 
            transparent 0%,
            #00d9ff 20%,
            #00ffaa 50%,
            #00d9ff 80%,
            transparent 100%);
        filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.7));
        animation: mobileConnectorFlow 3s infinite linear;
        z-index: 1;
    }
    
    /* Her mobil connector için farklı zamanlama */
    .workflow-step:nth-child(1)::before {
        animation-delay: 0s;
    }
    
    .workflow-step:nth-child(2)::before {
        animation-delay: 0.75s;
    }
    
    .workflow-step:nth-child(3)::before {
        animation-delay: 1.5s;
    }
    
    @keyframes mobileConnectorFlow {
        0% {
            height: 0;
            top: 100%;
            opacity: 0;
        }
        10% {
            opacity: 1;
        }
        90% {
            opacity: 1;
        }
        100% {
            height: 40px;
            top: 100%;
            opacity: 0;
        }
    }
    
    /* Mobilde animasyon sürelerini kısalt */
    .workflow-step .step-number,
    .workflow-step .step-content,
    .workflow-step .step-content::after {
        animation-duration: 8s;
    }
}

/* Tablet için ayarlar */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .step-connector {
        right: -20% !important;
        width: 40% !important;
    }
}

/* Hover efektleri */
@media (hover: hover) {
    .workflow-step:hover .step-number {
        animation-play-state: paused;
        color: #00ffaa !important;
        text-shadow: 0 0 20px #00ffaa !important;
    }
    
    .workflow-step:hover .step-content {
        animation-play-state: paused;
        border-color: rgba(0, 255, 170, 0.4) !important;
        background: rgba(0, 255, 170, 0.08) !important;
        transform: translateY(-5px) !important;
        box-shadow: 0 15px 40px rgba(0, 255, 170, 0.2) !important;
    }
}

/* Reduced motion desteği */
@media (prefers-reduced-motion: reduce) {
    .step-connector::before,
    .workflow-step .step-number,
    .workflow-step .step-content,
    .workflow-step .step-content::after,
    .workflow-step:not(:last-child)::before {
        animation: none !important;
    }
    
    .workflow-step .step-number {
        color: rgba(255, 255, 255, 0.5) !important;
    }
    
    .workflow-step .step-content {
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
}