:root {
  /* Modern Vibrant Color Palette */
  --primary: #2563eb; 
  --primary-light: #3b82f6; 
  --primary-dark: #1d4ed8;
  --secondary: #ec4899;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-main: #ffffff;
  --bg-light: #f8fafc;
  --bg-accent: #eff6ff;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-float: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.text-primary { 
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-muted { color: var(--text-muted); }

/* Layout & Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}

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

.btn-outline:hover {
  background-color: var(--bg-accent);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-brand img, .footer-brand img {
  height: 120px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-dark);
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-main);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-light);
  transition: var(--transition);
}

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

.mobile-cta { display: none; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text-main); }

/* Hero Section */
.hero {
  padding: 7rem 0 5rem;
  background: radial-gradient(circle at top right, var(--bg-accent), #ffffff);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
  animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tag {
  display: inline-block;
  padding: 0.35rem 1.25rem;
  background: var(--bg-accent);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-experience {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
}

.hero-experience svg {
  width: 24px;
  height: 24px;
  color: var(--primary-light);
}

/* Hero Images */
.hero-visuals {
  position: relative;
  animation: fadeLeft 1s ease-out forwards;
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-laptop {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  transform: perspective(1000px) rotateY(-5deg);
  border: 10px solid #f8fafc;
  transition: var(--transition);
}
.hero-laptop:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-phone {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 180px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 6px solid #1e293b;
  background: #1e293b;
  animation: floatMobile 6s ease-in-out infinite;
}

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

/* Floating Elements */
.float-icon {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--primary-light);
  animation: float 6s ease-in-out infinite;
}

.float-1 { top: 10%; left: -20px; animation-delay: 0s; }
.float-2 { top: 50%; left: -40px; animation-delay: 2s; }
.float-3 { bottom: 10%; right: 40%; animation-delay: 4s; }

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

/* Metrics */
.metrics {
  padding: 4rem 0;
  background: white;
  border-bottom: 1px solid #f1f5f9;
}

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

.metric-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}
.metric-item:hover {
  transform: translateY(-5px);
}

.metric-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.metric-icon svg { width: 32px; height: 32px; }

.metric-info h3 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Section Headers */
.section-header {
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-header .tag {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 3rem;
  max-width: 600px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 450px;
  font-size: 1.1rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  box-shadow: var(--shadow-float);
  border-color: var(--primary-light);
  transform: translateY(-8px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-accent);
  color: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-light);
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}
.service-link:hover {
  gap: 0.75rem;
}

/* Experience */
.experience {
  background: var(--bg-light);
}

.experience .container {
  position: relative;
}

.experience-content {
  max-width: 450px;
}

.experience-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.experience-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
}

.experience-list svg {
  color: var(--primary-light);
  flex-shrink: 0;
  width: 24px; height: 24px;
}

.experience-visual {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 55%;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-float);
}

.experience-visual img {
  border-radius: var(--radius-md);
  width: 100%;
}

.global-experience {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.flags {
  display: flex;
  gap: 2rem;
}

.flag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

/* Featured Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.work-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
}

.work-image {
  height: 200px;
  background: #f1f5f9;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-info {
  padding: 1.5rem;
}

.work-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.work-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Technologies */
.technologies {
  background: white;
  padding: 5rem 0;
  border-top: 1px solid #f1f5f9;
}

.tech-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.25rem;
  transition: var(--transition);
  opacity: 0.7;
}
.tech-item:hover {
  opacity: 1;
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Process */
.process {
  background: var(--bg-light);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 4rem;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 18%;
  transition: var(--transition);
}
.step:hover {
  transform: translateY(-5px);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: white;
  border: 3px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-light);
  box-shadow: 0 0 0 10px var(--bg-light);
  transition: var(--transition);
}
.step:hover .step-icon {
  background: var(--primary-light);
  color: white;
}

.step:hover .step-icon img {
  filter: brightness(0) invert(1);
}

.step-icon img {
  transition: var(--transition);
}

.step-number {
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  padding: 0;
  margin-bottom: 5rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.cta-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M400 200C400 310.457 310.457 400 200 400C89.543 400 0 310.457 0 200C0 89.543 89.543 0 200 0C310.457 0 400 89.543 400 200Z" fill="white" fill-opacity="0.05"/></svg>') no-repeat right center;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.cta-icon svg { width: 40px; height: 40px; }

.cta-text h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: white;
}

.cta-text p {
  opacity: 0.9;
  font-size: 1.25rem;
}

.cta-action {
  position: relative;
  z-index: 2;
}

/* Footer */
.footer {
  background: white;
  padding: 5rem 0 2rem;
  border-top: 1px solid #f1f5f9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 1.5rem 0;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-contact svg {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.newsletter p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 150px;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}
.newsletter-form input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.newsletter-form button {
  padding: 0.875rem 1.5rem;
  background: var(--primary-light);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.newsletter-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================================================================
   Responsive Design
   ========================================================================= */

@media (max-width: 1200px) {
  .hero h1 { font-size: 3.5rem; }
  .experience-visual { width: 50%; }
}

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-experience { justify-content: center; }
  .hero-laptop { transform: none; }
  .hero-laptop:hover { transform: scale(1.02); }
  
  .experience-visual { position: relative; width: 100%; top: auto; right: auto; transform: none; margin-top: 3rem; }
  .experience-content { max-width: 100%; }
  .global-experience { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  
  .metrics-grid, .services-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-direction: column; gap: 2.5rem; }
  .process-steps::before { display: none; }
  .step { width: 100%; }
}

@media (max-width: 768px) {
  /* Navbar Mobile */
  .nav-brand img, .footer-brand img {
    height: 80px;
  }
  .mobile-menu-toggle { display: block; }
  .desktop-cta { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid #e2e8f0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .mobile-cta { display: inline-flex; width: 100%; }
  
  /* Sections */
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-header h2 { font-size: 2.25rem; }
  
  .hero h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  
  .metrics-grid, .services-grid, .work-grid { grid-template-columns: 1fr; }
  
  .cta-box { flex-direction: column; padding: 2.5rem; text-align: center; gap: 2rem; }
  .cta-content { flex-direction: column; align-items: center; }
  .cta-text h2 { font-size: 2rem; }
  .cta-box::after { display: none; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}
