/* Base Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --text-light: #888888;
  --accent: #ff6b35;
  --accent-hover: #ff8555;
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 2rem 3rem;
  background: var(--bg);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

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

.menu-toggle {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  position: absolute;
  left: 0;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

.menu-toggle:hover span {
  background: var(--accent);
}

.menu-toggle.active {
  z-index: 10001;
}

.menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) translateX(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Side Panel Menu */
.side-panel {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0rem 3rem;
}

/* Ensure nav stays visible when side panel is open */
nav {
  z-index: 10000 !important;
}

/* Hide hamburger menu when side panel is active */
body:has(.side-panel.active) nav .menu-toggle {
  opacity: 1;
  transition: opacity 0.3s, visibility 0.3s;
}

/* Fallback for browsers that don't support :has() */
.side-panel.active {
  --hide-hamburger: 1;
}

.side-panel.active {
  right: 0;
}

.side-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.side-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-panel-nav {
  padding-top: 0rem !important;
}

.side-panel-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-panel-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  position: relative;
}

.side-panel-nav li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-panel-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  padding-left: 0;
}

.side-panel-nav a::before {
  content: "";
  width: 15px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
  transition: all 0.3s;
}

.side-panel-nav a:hover,
.side-panel-nav a.active {
  color: var(--accent);
}

.side-panel-nav a:hover::before,
.side-panel-nav a.active::before {
  background: var(--accent);
  width: 24px;
}

/* Section Base Styles */
section {
  padding: 8rem 8rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 400;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

/* Contact Section */
.contact-content {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-heading {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.contact-heading h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.contact-heading h2::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.contact-heading p,
.contact-heading-p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 300;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.btn-submit {
  padding: 1.2rem 3rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 8rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.footer-contact-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 300;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-value:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-social-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-light);
  font-weight: 400;
}

.footer-social-icons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s;
  background: transparent;
}

.footer-social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 300;
}

.back-to-top {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
  font-weight: 300;
}

.back-to-top:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
  section {
    padding: 8rem 4rem;
  }

  footer {
    padding: 4rem 4rem 2rem;
  }

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

  .footer-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 2rem;
  }

  section {
    padding: 6rem 2rem;
  }

  footer {
    padding: 4rem 2rem 2rem;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-heading {
    text-align: left;
  }

  .contact-heading p {
    text-align: left;
  }

  .contact-heading h2::after {
    left: 0;
  }
}

/* ============================================
   Index.html Specific Styles
   ============================================ */

/* 3D Wireframe Shapes */
.wireframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wireframe {
  position: absolute;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.5;
  fill: none;
}

.wireframe-wrapper {
  position: absolute;
  will-change: transform;
}

.wireframe-wrapper-2 {
  top: 20%;
  right: 0;
  width: 600px;
  height: 600px;
  opacity: 0.15;
}

.wireframe-2 {
  width: 100%;
  height: 100%;
  animation: float2 40s infinite ease-in-out;
}

@keyframes float2 {
  0% {
    transform: translate(0, 0) rotate(0deg) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translate(-20px, 30px) rotate(-90deg) rotateX(-10deg)
      rotateY(5deg);
  }
  50% {
    transform: translate(25px, -20px) rotate(-180deg) rotateX(10deg)
      rotateY(-10deg);
  }
  75% {
    transform: translate(-15px, -15px) rotate(-270deg) rotateX(-5deg)
      rotateY(5deg);
  }
  100% {
    transform: translate(0, 0) rotate(-360deg) rotateX(0deg) rotateY(0deg);
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 10rem 8rem;
  position: relative;
  z-index: 1;
}

.hero .section-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  width: 100%;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.hero-title-line {
  display: block;
}

.hero-title-bold {
  font-weight: 700;
  color: var(--text);
}

.hero-title-light {
  font-weight: 200;
  color: var(--text-light);
  margin-left: 0;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.6;
  margin-top: 2rem;
  margin-bottom: 3rem;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  border-radius: 8px;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  padding-right: 1rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-icon {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 12px;
  height: 12px;
}

.btn-secondary {
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  padding-right: 1rem;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary .btn-icon {
  background: var(--bg);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8rem;
  align-items: start;
}

.about-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 400;
}

.about h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
  position: relative;
}

.about h2::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.about-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  font-weight: 300;
}

.about-text p {
  margin-bottom: 2rem;
}

.about-text strong {
  color: var(--text);
  font-weight: 500;
}

/* Services Section */
.services-header {
  margin-bottom: 6rem;
  position: relative;
}

.services-header h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  position: relative;
}

.services-header h2::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.services-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  position: relative;
}

.service-item {
  position: relative;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease-out;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1) 0%,
    rgba(255, 107, 53, 0.05) 100%
  );
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.service-item:hover::before {
  height: 100%;
}

.service-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.1);
}

.service-content {
  position: relative;
  z-index: 1;
}

.service-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.08) 0%,
    rgba(139, 92, 246, 0.08) 100%
  );
  margin-left: 1rem;
  font-size: 2.5rem;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-item h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  transition: color 0.4s;
  position: relative;
}

.service-item h3::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover h3::after {
  width: 60px;
}

.service-item:hover h3 {
  color: var(--accent);
}

.service-item p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
  transition: color 0.4s;
}

.service-item:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Tech Stack Section */
.tech-stack-header {
  margin-bottom: 6rem;
}

.tech-stack-header h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  position: relative;
}

.tech-stack-header h2::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.tech-stack-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tech-grid {
  margin-top: 4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tech-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  overflow: hidden;
}

.tech-scroll {
  display: flex;
  gap: 1.5rem;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.tech-scroll-left {
  animation-name: scroll-left;
  animation-duration: 40s;
}

.tech-scroll-right {
  animation-name: scroll-right;
  animation-duration: 40s;
}

.tech-scroll.paused {
  animation-play-state: paused;
}

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

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

.tech-item {
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  min-width: 140px;
}

.tech-item-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.tech-item-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tech-item-label {
  display: block;
}

.tech-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 53, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.tech-item:hover::before {
  left: 100%;
}

.tech-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.05);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
}

.tech-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item:hover::after {
  width: 100%;
}

/* Projects Section */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 6rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.projects-header h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  position: relative;
}

.projects-header h2::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.projects-header .view-all {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
  font-weight: 300;
}

.projects-header .view-all:hover {
  color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.02);
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
}

.project-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.08) 0%,
    rgba(139, 92, 246, 0.08) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.2) 0%,
    rgba(139, 92, 246, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.6s;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.8) 60%,
    transparent 100%
  );
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-info {
  border-top-color: rgba(255, 107, 53, 0.3);
  padding-bottom: 3.5rem;
}

.project-info h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  transition: color 0.4s;
}

.project-card:hover .project-info h3 {
  color: var(--accent);
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 300;
}

/* Why Choose Us Section */
.why-choose-header {
  margin-bottom: 6rem;
}

.why-choose-header h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  position: relative;
}

.why-choose-header h2::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.why-choose-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) 1.5fr;
  gap: 2rem;
}

.why-choose-item {
  position: relative;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.why-choose-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1) 0%,
    rgba(255, 107, 53, 0.05) 100%
  );
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.why-choose-item:hover::before {
  height: 100%;
}

.why-choose-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.1);
}

.why-choose-content {
  position: relative;
  z-index: 1;
}

.why-choose-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.4s;
}

.why-choose-item:hover .why-choose-icon {
  transform: scale(1.1);
}

.why-choose-item h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  transition: color 0.4s;
}

.why-choose-item:hover h3 {
  color: var(--accent);
}

.why-choose-item p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
  transition: color 0.4s;
}

.why-choose-item:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.why-choose-item.success-stories {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.success-stories-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.success-flow {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.success-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.success-step-index {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.success-step-body h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
}

.success-step-body p {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.6;
}

.success-stories-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.success-stories-btn {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  width: fit-content;
}

.success-stories-btn:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
  color: var(--accent);
}

.success-stories-btn::after {
  content: "→";
  transition: transform 0.3s;
}

.success-stories-btn:hover::after {
  transform: translateX(5px);
}

.contact-form-status {
  min-height: 1.5rem;
  color: var(--text-light);
}

/* Index.html Page-specific responsive overrides */
@media (max-width: 1024px) {
  .hero {
    padding: 0 0 6rem 4rem;
  }

  .about-content,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-item.success-stories {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 2rem 4rem 2rem;
  }

  .projects-grid,
  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .why-choose-item.success-stories {
    grid-row: span 1;
    order: 10;
  }

  .why-choose-item {
    padding: 2rem 1rem;
  }

  .project-info {
    padding: 2rem 1rem;
  }
}

/* ============================================
   Product Pages Specific Styles
   ============================================ */

/* Product Hero Section */
.product-hero {
  padding: 12rem 8rem 6rem;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.product-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 400;
}

.product-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  position: relative;
}

.product-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.product-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* Product Image Section */
.product-image-section {
  padding: 8rem 8rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-image-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Overview Section */
.overview-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.overview-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  font-weight: 300;
}

.overview-text p {
  margin-bottom: 2rem;
}

.overview-text strong {
  color: var(--text);
  font-weight: 500;
}

.overview-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overview-text li {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 2;
  font-weight: 300;
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
}

.overview-text li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 2;
  font-weight: 400;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-item {
  position: relative;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1) 0%,
    rgba(255, 107, 53, 0.05) 100%
  );
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.feature-item:hover::before {
  height: 100%;
}

.feature-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.1);
}

.feature-content {
  position: relative;
  z-index: 1;
}

.feature-item h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  transition: color 0.4s;
}

.feature-item:hover h3 {
  color: var(--accent);
}

.feature-item p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
  transition: color 0.4s;
}

.feature-item:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Technology Section */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
}

.tech-badge {
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
  transition: all 0.3s;
}

.tech-badge:hover {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.05);
  color: var(--accent);
}

/* Solution Section */
.solution-item {
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.1);
}

.solution-item h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.solution-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-item li {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
}

.solution-item li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
}

/* Product Pages Responsive Overrides */
@media (max-width: 1024px) {
  .product-hero,
  .product-image-section {
    padding: 8rem 4rem;
  }

  .overview-content,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .product-hero,
  .product-image-section {
    padding: 6rem 2rem;
  }
}
