:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0f172a;
  --accent: #8b5cf6;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --border-radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--secondary);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* animation */
@keyframes divAnimations {
  from {
    opacity: 0;
    transform: translateY(200px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

div {
  animation: divAnimations 0.5s ease-in-out;
  animation-timeline: view();
  animation-range: entry 0 cover 25%;
}

.no-animation{
  animation: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--primary-dark);
  color: var(--primary-light);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  gap: 8px;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

/* Particle Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  transition: var(--transition);
}

.header-scrolled {
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.logo img{
    height: 40px;
}

.logo span {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--secondary);
}

.hero h1 span {
  color: var(--primary-dark);
}

.hero h1 .typing {
    color: var(--primary-dark);
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* expertize section */
.services{
  background-color: var(--light);
}
.service-card{
  background-color: var(--primary-light);
  padding: 20px;
  border-radius: var(--border-radius);
}

.service-card i{
  width: 100%;
  font-size: 30px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* about section */
.about-content p{
  color: var(--gray);
  font-size: 0.95rem;
}

.stats-container{
  width: 100%;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-box h4{
  font-size: 25px;
}

.stat-box p{
  color: var(--primary-dark);
}

/* Clients Section */
.clients {
  background: var(--light);
}

.clients-flex {
  background: white;
  overflow: hidden;
  padding: 5px 0;
  display: flex;
}

.clients-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: scrollingMarquee 15s linear infinite;
  width: max-content;
  height: 80px;
}

.clients-flex:hover .clients-logos {
  animation-play-state: paused;
}

@keyframes scrollingMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  filter: grayscale(1) opacity(0.6);
  transition: 0.3s ease;
  height: 100%;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-logo:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-5px);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 5px;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  height: 240px;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 24px;
}

.portfolio-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.portfolio-content p {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.portfolio-tags span {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}


/* phone section */
#phone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.phone-case {
    width: 320px; 
    height: 580px; 
    background: #0a0a0a;
    border-radius: 24px; 
    border: 3px solid #1a1a1a;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}

.screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.screen::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #111;
    border-radius: 50%;
    z-index: 10;
    box-shadow: inset 0 0 2px #000;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    padding: 15px 10px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

.prev { left: -30px; color: var(--primary-light); }
.next { right: -30px; color: var(--primary-light); }

.home-button {
    width: 50px;
    height: 5px;
    background: var(--primary-light);
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-light);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--secondary);
}

.author-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stars {
  color: var(--warning);
  font-size: 1rem;
}

/* Calculator Section */
.calculator {
  background: white;
}

.calculator-wrapper {
  background: var(--secondary);
  border-radius: var(--border-radius);
  padding: 50px;
  color: white;
  box-shadow: var(--shadow-lg);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.pricing-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card h3 i {
  color: #60a5fa;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 15px 0;
  color: white;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-group {
  margin-bottom: 10px;
}

.input-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: white;
  font-weight: 500;
}

.value-display {
  color: #60a5fa;
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  color: white;
}

.checkbox-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.results {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.total-cost {
  text-align: center;
  padding: 30px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 12px;
  margin-top: 20px;
}

.total-label {
  font-size: 1.1rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.total-value {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

/* Contact CTA */
.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
  border-radius: 20px;
  margin: 80px auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.contact-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.contact-cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.cta-btn {
  background: white;
  color: var(--primary);
  font-weight: 700;
  padding: 16px 40px;
  font-size: 1.1rem;
}

.cta-btn:hover {
  background: var(--light);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

.footer-column p,
.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  color: white;
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 50dvh;
    justify-content: center;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 30px;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .calculator-wrapper {
    padding: 30px 20px;
  }

  .contact-cta {
    padding: 50px 20px;
    border-radius: 15px;
  }

  .contact-cta h2 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .stats-container{
    gap: 0;
    justify-content: space-between;
  }

}
