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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #3b82f6;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-600: #4b5563;
  --neutral-900: #111827;
  --blue-light: #eff6ff;
  --blue-lighter: #dbeafe;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--neutral-900);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

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

.btn-outline:hover {
  background-color: var(--blue-light);
  border-color: var(--neutral-300);
}

.btn-primary.w-full {
  width: 100%;
}

/* Icons */
.icon-small {
  width: 1.25rem;
  height: 1.25rem;
}

.service-icon,
.contact-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--neutral-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--primary);
}

/* Navigation */
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #000000 !important;
  backdrop-filter: none;
  border-bottom: none;
  z-index: 1000;
  transition: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* When video is present, navbar should be semi-transparent black so video shows through */
body:has(.hero-full-video) .navbar,
body:has(.hero-full-background) .navbar {
  position: fixed !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(5px);
  top: 0;
  z-index: 1000;
}

/* About and Contact pages - transparent header */
body:has(.about-header) .navbar,
body:has(.contact) .navbar {
  background-color: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(5px);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  padding: 0.5rem 0;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: #ffffff;
}

/* White text when video background is present */
body:has(.hero-full-video) .brand-text,
body:has(.hero-full-background) .brand-text {
  color: #ffffff;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.navbar-links {
  display: none;
  gap: 2rem;
}

.navbar-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: bold;
}

.navbar-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* White links when video background is present */
body:has(.hero-full-video) .navbar-links a,
body:has(.hero-full-background) .navbar-links a {
  color: #ffffff;
  font-weight: bold;
}

body:has(.hero-full-video) .navbar-links a:hover,
body:has(.hero-full-background) .navbar-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Toggle Button (Burger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 2rem;
  height: 3px;
  background: var(--neutral-900);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* White burger when video background is present */
body:has(.hero-full-video) .mobile-menu-toggle span,
body:has(.hero-full-background) .mobile-menu-toggle span {
  background: #ffffff;
}

.mobile-menu-toggle.active span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 5rem;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 2rem 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  padding: 1rem;
  color: var(--neutral-900);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid var(--neutral-200);
  transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
  background-color: var(--blue-light);
}

.mobile-menu .mobile-btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  display: inline-flex;
  border: none;
  border-bottom: none;
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
}

.desktop-btn {
  display: inline-flex;
}

.mobile-btn {
  display: none;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
  
  .desktop-btn {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .navbar-content {
    justify-content: space-between;
  }
  
  .navbar-brand {
    order: 1;
    flex: 0 0 auto;
  }
  
  .navbar-actions {
    order: 2;
    flex: 0 0 auto;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .desktop-btn {
    display: none !important;
  }
  
  .mobile-menu {
    display: flex;
  }
  
  .mobile-btn {
    display: inline-flex !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Hero Video Background (covers header to end of hero section) */
.hero-full-video {
  position: absolute;
  top: -4rem;
  left: 0;
  width: 100%;
  height: calc(100% + 4rem);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hero-full-background {
  position: absolute;
  top: -4rem;
  left: 0;
  width: 100%;
  height: calc(100% + 4rem);
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  z-index: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  min-width: 100%;
  min-height: 100%;
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure video is visible even when slide has opacity */
.hero-slide .hero-video {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.hero-fallback-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  position: relative;
}

/* Video must be visible even when slide opacity is 0 */
.hero-slide .hero-video {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(191, 219, 254, 0.2);
  filter: blur(80px);
  animation: pulse 8s infinite;
}

.hero-blob-1 {
  width: 20rem;
  height: 20rem;
  top: -10rem;
  right: -10rem;
}

.hero-blob-2 {
  width: 20rem;
  height: 20rem;
  bottom: -10rem;
  left: -10rem;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 2rem 0;
  width: 100%;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
  .hero-content h1 {
    font-size: 3.75rem;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--neutral-600);
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: white;
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2rem;
  border: 1px solid var(--blue-lighter);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

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

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--neutral-900);
}

.service-card p {
  color: var(--neutral-600);
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
  padding: 5rem 0;
  background: linear-gradient(to bottom, rgba(239, 246, 255, 0.5), white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
  border: 1px solid var(--blue-lighter);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.portfolio-image {
  width: 100%;
  height: 15rem;
  overflow: hidden;
  background: var(--blue-light);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.portfolio-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.project-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--blue-light);
  color: var(--primary);
  font-size: 0.875rem;
  border-radius: 9999px;
  font-weight: 500;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.portfolio-card h3 {
  color: var(--neutral-900);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: var(--neutral-600);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.portfolio-footer {
  text-align: center;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: white;
}

.about h2 {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--neutral-900);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-column h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--neutral-900);
}

.about-list {
  list-style: none;
}

.about-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--neutral-600);
  font-size: 1.0625rem;
}

.about-list li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
}

.about-column {
  text-align: center;
}

.about-column h3 {
  text-align: center;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: linear-gradient(to bottom, rgba(239, 246, 255, 0.5), white);
}

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

.contact-info {
  text-align: center;
}

.contact-info h3 {
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--neutral-600);
}

.contact-form {
  background-color: white;
  border: 1px solid var(--blue-lighter);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--blue-lighter);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form button {
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #d1d5db;
  padding: 3rem 0 2rem;
}

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

.footer-column h3,
.footer-column h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-column p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Responsive - Mobile Phones */
@media (max-width: 768px) {
  /* Navigation */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
  }
  
  .navbar-content {
    height: 4rem;
    padding: 0 1rem;
  }
  
  .logo {
    width: 4rem;
    height: 4rem;
  }
  
  .navbar-links {
    display: none;
  }
  
  .brand-text {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .mobile-menu {
    top: 4rem;
  }
  
  .navbar-links {
    display: none !important;
  }
  
  /* Hero Section */
  .hero {
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  
  .hero-background {
    background-attachment: scroll !important;
  }
  
  .hero-slider {
    min-height: 70vh;
  }
  
  .hero-slide {
    min-height: 70vh;
  }
  
  .hero-content {
    padding: 1.5rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Sections */
  .services,
  .portfolio,
  .about,
  .contact {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card h3 {
    font-size: 1.125rem;
  }
  
  .service-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  /* Portfolio Grid */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .portfolio-image {
    height: 12rem;
  }
  
  .portfolio-content {
    padding: 1.25rem;
  }
  
  .portfolio-card h3 {
    font-size: 1.25rem;
  }
  
  /* About Section */
  .about h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Contact Section */
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .contact-form {
    margin-top: 2rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 3rem 0 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-column h3,
  .footer-column h4 {
    margin-bottom: 1rem;
  }
  
  .footer-links {
    margin-bottom: 1.5rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* Container */
  .container {
    padding: 0 1rem;
  }
}

/* Extra Small Phones */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 0.875rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .service-card,
  .portfolio-card {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

/* WhatsApp Floating Button - Bottom Right */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

