/* ============================= */
/*         Root Variables        */
/* ============================= */
:root {
  --primary-color: #eb4d14;
  --secondary-color: #031070;
  --accent-color: #eb4d14;
  --accent-light: #031070;
  --accent-secondary: #eb4d14;
  --background-color: #f9f9f9;
  --text-color: #222;
  --light-text: rgba(0, 0, 0, 0.7);
  --white: #ffffff;
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --transition-speed: 0.3s;
  --header-height: 80px;
  --mobile-breakpoint: 768px;
  --tablet-breakpoint: 992px;
}

/* ============================= */
/*         Global Reset          */
/* ============================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  padding-top: var(--header-height);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================= */
/*           Typography          */
/* ============================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.8rem); }

p {
  margin-bottom: 15px;
  color: var(--light-text);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ============================= */
/*            Buttons            */
/* ============================= */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  border: none;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(100, 77, 20, 0.3);
}

.btn-primary:hover {
  background: #c43c0e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(235, 77, 20, 0.4);
}

.btn-outline {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--white);
  border-radius: 30px;
  color: var(--white);
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--accent-color);
}

/* ============================= */
/*          Header/Nav           */
/* ============================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo img {
  height: 50px;
  width: auto;
  transition: all var(--transition-speed) ease;
}

.header.scrolled .logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
  font-size: 0.95rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown Styles */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 10;
  min-width: 200px;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  transition: all var(--transition-speed) ease;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  background: rgba(235, 77, 20, 0.1);
  color: var(--primary-color);
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
  display: block;
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 30px;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--text-color);
  transition: all var(--transition-speed) ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    gap: 20px;
    transition: left var(--transition-speed) ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .hamburger {
    display: flex;
  }
}

/* ============================= */
/*            Hero               */
/* ============================= */
.web-hero {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f4f4f4 0%, #2a5298 50%, #1e3c72 100%);
  color: var(--white);
  height: 90vh;
  min-height: 600px;
  padding: 80px 0;
  margin-top: calc(-1 * var(--header-height));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.web-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeInLeft 1s ease forwards;
  padding-top: 150px;
}

.web-title span {
  color: var(--accent-secondary);
  position: relative;
}

.web-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(215, 53, 59, 0.789);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineExpand 1.5s 0.5s forwards;
}

.web-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInLeft 1s 0.3s ease forwards;
}

.web-cta {
  background: var(--primary-color); 
  color: white;
  font-weight: 400;
  border: none;
  animation: pulse 2s infinite;
  max-height: 200px;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  perspective: 1000px;
  margin-top: 40px;
}

.browser-window {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: rotateY(-15deg) rotateX(5deg);
  transform-origin: left center;
  animation: float 6s ease-in-out infinite;
}

.browser-header {
  background: #f5f5f5;
  padding: 10px;
  display: flex;
  border-radius: 8px 8px 0 0;
}

.browser-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }

.browser-content {
  padding: 20px;
  min-height: 300px;
  position: relative;
  border-radius: 0 0 8px 8px;
}

.code-line {
  height: 12px;
  background: #f0f0f0;
  margin-bottom: 10px;
  border-radius: 4px;
  width: 80%;
}

.code-line:nth-child(2) { width: 60%; }
.code-line:nth-child(3) { width: 70%; }

.website-preview {
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(45deg, #f3e7e9, #e3eeff);
  border-radius: 4px;
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
}

.web-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.web-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px, 60px 60px;
  animation: particlesMove 20s linear infinite;
}

@media (min-width: 992px) {
  .web-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .hero-content {
    flex: 1;
  }
  
  .hero-visual {
    flex: 1;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .web-hero {
    height: auto;
    min-height: auto;
    padding: 120px 0 60px;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
    text-align: center;
  }
  
  .web-title span::after {
    display: none;
  }
}

/* ============================= */
/*      Services Section         */
/* ============================= */
.web-services {
  padding: 80px 0;
  background: var(--background-color);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}

.section-header h2 span {
  color: var(--accent-secondary);
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card{
  background-color: var(--secondary-color);
  padding-left: 10px;
}

.service-card p{
  color: var(--white);
}


/* .service-card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 1);
  background-color: var(--secondary-color);
} */

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(to right, var(--accent-secondary), #fad0c4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
  background: var(--accent-color);
  color: var(--white);
  transform: rotateY(180deg);
}

.service-card h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.service-features {
  list-style: none;
  margin-top: 20px;
  color: var(--white);
}

.service-features li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--white)
}

.service-features li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

.service-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(110, 72, 170, 0.9), rgba(255, 154, 158, 0.9));
  opacity: 0;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  color: var(--white);
}

.service-card:hover .service-hover {
  opacity: 1;
}

/* ============================= */
/*      Process Section          */
/* ============================= */
.web-process {
  padding: 80px 0;
  background: var(--white);
}

.process-steps {
  max-width: 900px;
  margin: 50px auto;
}

.step {
  display: flex;
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
  background-color: var(--secondary-color);
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(4) { animation-delay: 0.8s; }
.step:nth-child(5) { animation-delay: 1s; }

.step-number {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 30px;
  box-shadow: 0 5px 15px rgb(13, 13, 14);
  flex-shrink: 0;
}

.step-content {
  background: var(--background-color);
  border-radius: 10px;
  padding: 25px;
  flex: 1;
  border-left: 4px solid var(--accent-secondary);
  transition: all var(--transition-speed) ease;
}

.step:hover .step-content {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.step-tooltip {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--accent-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.step-connector {
  position: absolute;
  left: 25px;
  top: 50px;
  bottom: -40px;
  width: 2px;
  background: var(--accent-secondary);
}

.step:last-child .step-connector {
  display: none;
}

@media (max-width: 768px) {
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .step-connector {
    left: 25px;
    top: 50px;
    bottom: -40px;
    height: calc(100% - 50px);
  }
}

/* ============================= */
/*      Showcase Section         */
/* ============================= */
.web-showcase {
  padding: 80px 0;
  background: var(--background-color);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.showcase-card {
  position: relative;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.showcase-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.showcase-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all var(--transition-speed) ease;
}

.showcase-card:hover .showcase-image {
  transform: scale(1.1);
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(110, 72, 170, 0.9), transparent);
  color: var(--white);
  transform: translateY(100px);
  transition: all var(--transition-speed) ease;
}

.showcase-card:hover .showcase-overlay {
  transform: translateY(0);
}

/* ============================= */
/*      Tech Stack Section       */
/* ============================= */
.web-tech {
  padding: 80px 0;
  background: var(--white);
}

.tech-slider {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 30px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.tech-slider::-webkit-scrollbar {
  display: none;
}

.tech-slide {
  flex: 0 0 150px;
  scroll-snap-align: start;
  text-align: center;
  transition: all var(--transition-speed) ease;
}

.tech-slide:hover {
  transform: translateY(-10px);
}

.tech-icon {
  width: 100px;
  height: 100px;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.tech-slide:hover .tech-icon {
  background: var(--accent-color);
}

.tech-icon img {
  max-width: 60px;
  max-height: 60px;
  transition: all var(--transition-speed) ease;
}

.tech-slide:hover .tech-icon img {
  filter: brightness(0) invert(1);
}

.tech-slide h4 {
  color: var(--accent-color);
  font-weight: 600;
}

  /* ============================= */
  /* CTA Section                    */
  /* ============================= */
  .cv-cta {
    padding: 80px 0;
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
  }
  
  .cv-cta h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--primary-color);
  }
  
  .cv-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.9);
  }

/* ============================= */
/*            Footer             */
/* ============================= */
.footer {
  background: #1a1a1a;
  color: var(--white);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  font-size: 1.2rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-speed) ease;
}

.footer-col ul li:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-col ul li i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom p{
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ============================= */
/*        Animations             */
/* ============================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underlineExpand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 154, 158, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 154, 158, 0); }
}

@keyframes float {
  0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-15deg) rotateX(5deg) translateY(-20px); }
}

@keyframes particlesMove {
  from { background-position: 0 0; }
  to { background-position: 300px 300px; }
}

/* Animation Classes */
.animate-from-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-from-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.8s ease forwards;
}

.animate-from-bottom {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }