/* 
 * DevHane Website Styles
 * Main CSS file for the DevHane corporate website
 */

/* ===== RESET & BASE STYLES ===== */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333333;
  --text-light: #7f8c8d;
  --background-color: #ffffff;
  --background-alt: #f9f9f9;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--dark-color);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

.section-title {
  position: relative;
  margin-bottom: 15px;
  text-align: center;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 50px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-circle {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 4;
  stroke-dasharray: 125;
  stroke-dashoffset: 125;
  animation: loader 1s linear infinite;
}

.loader-text {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
}

@keyframes loader {
  0% {
    stroke-dashoffset: 125;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -125;
  }
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  padding: 20px 0;
}

#header.scrolled {
  background-color: white;
  box-shadow: 0 5px 20px var(--shadow-color);
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item {
  margin: 0 15px;
}

.nav-item a {
  color: white;
  font-weight: 500;
  padding: 10px 15px;
  position: relative;
  transition: all var(--transition-speed) ease;
}

#header.scrolled .nav-item a {
  color: var(--dark-color);
}

.nav-item a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-item a:hover:after,
.nav-item.active a:after {
  width: 100%;
}

.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-color);
  transition: color var(--transition-speed) ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--primary-color);
  background-color: rgba(52, 152, 219, 0.1);
}

.language-switcher span {
  margin: 0 5px;
  color: var(--text-light);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 3px 0;
  transition: all var(--transition-speed) ease;
}

/* ===== HERO SECTION ===== */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--background-alt);
  overflow: hidden;
}

.hero-image-bg {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #2d1b69 0%, #6b46c1 50%, #9f7aea 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-content-box {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0;
}

.hero-text {
  max-width: 600px;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
  color: #fdbb2d;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-title .highlight {
  color: #fdbb2d;
  -webkit-text-fill-color: #fdbb2d;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-features {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item i {
  color: #9f7aea;
  font-size: 1.2rem;
}

.feature-item span {
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #6b46c1 0%, #9f7aea 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  width: 45%;
}

.tech-stack {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 30px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-item {
  position: relative;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
  color: #fdbb2d;
}

.tech-item[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tech-item[data-tooltip]:hover:before {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Styles for Hero */
@media (max-width: 1024px) {
  .hero-content-box {
    flex-direction: column;
    text-align: center;
    padding: 80px 0;
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 50px;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .tech-stack {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .code-box {
    display: none;
  }
}

/* ===== SERVICES OVERVIEW ===== */
#services-overview {
  background-color: var(--background-color);
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background-color: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

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

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  transition: color 0.4s ease;
}

.service-card:hover .service-title {
  color: var(--primary-color);
}

.service-description {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-color);
  font-size: 0.95rem;
}

.service-features li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 0.9rem;
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
}

.service-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.4s ease;
}

.service-link:hover::after {
  width: 100%;
}

.service-link i {
  margin-left: 8px;
  transition: transform 0.4s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 30px;
  }
}

/* ===== ABOUT OVERVIEW ===== */
#about-overview {
  background-color: var(--background-alt);
}

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

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.about-content .section-title {
  text-align: left;
}

.about-content .section-title:after {
  margin-left: 0;
}

.about-text {
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-block;
}

.stat-text {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* ===== PROJECTS SHOWCASE ===== */
#projects-showcase {
  background-color: var(--background-color);
}

.projects-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  padding: 8px 20px;
  margin: 5px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition-speed) ease;
  border-radius: 20px;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  background-color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: all var(--transition-speed) ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-color);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

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

.project-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.2rem;
  transition: all var(--transition-speed) ease;
}

.project-link:hover {
  background-color: white;
  color: var(--primary-color);
}

.project-info {
  padding: 20px;
  background-color: white;
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.project-category {
  color: var(--text-light);
  font-size: 0.9rem;
}

.projects-cta {
  text-align: center;
}

/* ===== TESTIMONIALS ===== */
#testimonials {
  background-color: var(--background-alt);
  position: relative;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  height: 300px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-content {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

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

.testimonial-quote i {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 10px;
  display: block;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-position {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  color: var(--primary-color);
}

.testimonial-dots {
  display: flex;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-light);
  margin: 0 5px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

/* ===== CTA SECTION ===== */
#cta {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta-title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-text {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 30px;
}

#cta .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

#cta .btn-primary:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* ===== FOOTER ===== */
#footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-nav-title {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-nav-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-nav-list li,
.footer-contact-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-speed) ease;
}

.footer-nav-list a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
}

.footer-contact-list i {
  color: var(--primary-color);
  margin-right: 10px;
  margin-top: 5px;
}

.footer-contact-list span {
  color: rgba(255, 255, 255, 0.7);
}

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

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  margin-left: 10px;
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .about-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 10px 20px var(--shadow-color);
    transform: translateY(-150%);
    transition: transform var(--transition-speed) ease;
    z-index: 999;
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  .language-switcher {
    margin-left: 0;
    margin-top: 20px;
    justify-content: center;
  }

  #hero {
    height: auto;
    padding: 120px 0 60px;
  }

  .hero-content-box {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .about-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: 1;
  }

  .about-content {
    order: 2;
  }

  .about-content .section-title,
  .about-content .section-title:after {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .about-stats {
    justify-content: center;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .social-links {
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }
}

.interactive-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.mouse-follower {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, rgba(159, 122, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

/* === Hero Floating Code Boxes === */
.floating-codes {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.code-box {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  backdrop-filter: blur(5px);
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-box-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.code-box-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.code-box-3 {
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

/* === Hero Floating Squares === */
.floating-squares {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.floating-square {
  position: absolute;
  background: rgba(159, 122, 234, 0.08);
  border-radius: 10px;
  width: 90px;
  height: 70px;
  animation: floatSquare 12s linear infinite;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.floating-square.s1 { left: 12vw; top: 12vh; width: 70px; height: 50px; animation-delay: 0s; }
.floating-square.s2 { left: 60vw; top: 8vh; width: 110px; height: 80px; animation-delay: 2s; }
.floating-square.s3 { left: 80vw; top: 18vh; width: 80px; height: 60px; animation-delay: 4s; }
.floating-square.s4 { left: 70vw; top: 60vh; width: 60px; height: 45px; animation-delay: 6s; }
.floating-square.s5 { left: 30vw; top: 70vh; width: 100px; height: 70px; animation-delay: 8s; }

@keyframes floatSquare {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

/* ===== ABOUT PAGE STYLES ===== */
#page-banner {
  position: relative;
  padding: 160px 0 100px;
  background-color: var(--secondary-color);
  color: white;
  overflow: hidden;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Story Timeline */
.story-timeline {
  position: relative;
  padding: 20px 0;
}

.story-timeline:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: -15px;
  top: 0;
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline-content {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* About Story Image */
.image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 30px;
}

.experience-badge .years {
  font-size: 2rem;
  font-weight: 700;
  margin-right: 10px;
}

.experience-badge .text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mission & Vision Section */
.bg-light {
  background-color: var(--background-alt);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.mission-box {
  background-color: white;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.mission-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.mission-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.mission-title {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.mission-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-member {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-image {
  position: relative;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
  opacity: 1;
}

.member-social {
  display: flex;
  gap: 15px;
}

.member-social .social-link {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.member-social .social-link:hover {
  transform: translateY(-3px);
  background-color: var(--accent-color);
}

.member-info {
  padding: 25px;
  text-align: center;
}

.member-name {
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.member-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 15px;
}

.member-bio {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stats Section */
.bg-primary {
  background-color: var(--primary-color);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 30px;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.stat-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

#cta .btn-primary {
  background-color: white;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 15px 40px;
}

#cta .btn-primary:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-title {
    font-size: 3rem;
  }
  
  .story-timeline:before {
    left: 15px;
  }
  
  .timeline-item {
    padding-left: 55px;
  }
  
  .timeline-year {
    left: 0;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .mission-vision-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

/* About Story Section */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-content {
  padding: 20px;
}

.story-text {
  margin-bottom: 25px;
  color: var(--text-color);
  line-height: 1.8;
  font-size: 1.1rem;
}

.story-text:last-child {
  margin-bottom: 0;
}

.about-story-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px var(--shadow-color);
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.experience-badge .text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .about-story-grid {
    gap: 30px;
  }
  
  .story-text {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .about-story-grid {
    grid-template-columns: 1fr;
  }
  
  .story-content {
    order: 2;
  }
  
  .about-story-image {
    order: 1;
  }
}

/* Our Approach Section */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.approach-item {
  background-color: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.approach-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.approach-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

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

.approach-title {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.approach-text {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
  
  .approach-text {
    font-size: 1rem;
  }
}

/* ===== SERVICE DETAIL SECTIONS ===== */
.service-detail {
  padding: 100px 0;
  position: relative;
}

.service-detail.alt-bg {
  background-color: var(--background-alt);
}

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

.service-detail-grid.reverse {
  direction: rtl;
}

.service-detail-grid.reverse .service-detail-content {
  direction: ltr;
}

.service-badge {
  display: inline-block;
  background: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.service-detail-content .section-title {
  text-align: left;
  margin-bottom: 25px;
}

.service-detail-content .section-title:after {
  margin-left: 0;
}

.service-detail-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 40px;
}

.service-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

.feature-content {
  flex-grow: 1;
}

.feature-content h4 {
  color: var(--dark-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.service-cta {
  display: flex;
  gap: 20px;
}

.service-detail-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .service-detail-grid {
    gap: 40px;
  }
  
  .service-detail-text {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .service-detail {
    padding: 60px 0;
  }
  
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .service-detail-grid.reverse {
    direction: ltr;
  }
  
  .service-detail-content .section-title {
    text-align: center;
  }
  
  .service-detail-content .section-title:after {
    margin: 15px auto 0;
  }
  
  .service-cta {
    justify-content: center;
  }
  
  .feature-item {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .service-cta {
    flex-direction: column;
  }
  
  .service-cta .btn {
    width: 100%;
  }
  
  .tech-stack {
    justify-content: center;
  }
}
