/* Root variables for consistent colors */
:root {
  --primary: #131230;
  --secondary: #078b85;
  --accent: #F59E0B;
  --light-bg: #63a5aa5e;
  --dark-text: #1F2937;
  --white: #FFFFFF;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--white);
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 15px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-links li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 50px 0;
    gap: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(140, 136, 216, 0.055) 0%, rgba(37, 175, 129, 0) 100%),
              url('https://images.unsplash.com/photo-1551434678-e076c223a692?w=1920&h=1080&fit=crop') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: 150px 20px;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 19, 20, 0.479) 0%, rgba(8, 12, 11, 0.329) 100%);
  z-index: 1;
}

.hero h1,
.hero p,
.hero .btn {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--white) 0%, rgba(134, 158, 157, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  line-height: 1.6;
}

/* Services Section */
.services {
  padding: 80px 20px;
  background: var(--light-bg);
}

.services h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--primary);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card i {
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 15px;
}

.service-card h3 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 10px;
}

.service-card p {
  color: #6B7280;
  font-size: 14px;
}

/* Portfolio Section */
.portfolio {
  padding: 80px 20px;
  background: var(--white);
}

.portfolio h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  background: var(--light-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

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

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item h3 {
  color: var(--primary);
  padding: 20px 20px 10px;
}

.portfolio-item p {
  color: #6B7280;
  padding: 0 20px 20px;
}

/* About Section */
.about {
  padding: 80px 20px;
  background: var(--light-bg);
}

.about h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--primary);
}

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

.about-content p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #4B5563;
}

.about-content h3 {
  color: var(--primary);
  margin: 30px 0 20px;
}

.about-content ul {
  list-style: none;
  text-align: left;
  display: inline-block;
}

.about-content li {
  font-size: 16px;
  margin: 10px 0;
  color: var(--secondary);
  font-weight: 500;
}

/* Blog Section */
.blog {
  padding: 80px 20px;
  background: var(--white);
}

.blog h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-post {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.blog-post .date {
  color: #9CA3AF;
  font-size: 14px;
  margin-bottom: 15px;
}

.blog-post p {
  color: #4B5563;
  margin-bottom: 15px;
}

.blog-post a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-post a:hover {
  color: var(--primary);
}

/* Contact Section */
.contact {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

.contact h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
}

/* Footer with Social Media */
footer {
  background: var(--dark-text);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
}

footer p {
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  font-size: 24px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links a.whatsapp {
  background: #25D366;
}

.social-links a.facebook {
  background: #1877F2;
}

.social-links a.whatsapp:hover {
  background: #1fad50;
}

.social-links a.facebook:hover {
  background: #0a66c2;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 50px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.contact-item i {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 15px;
}

.contact-item h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.contact-item .btn {
  display: inline-block;
  margin-top: 10px;
}

.whatsapp-btn {
  background: #25D366 !important;
}

.whatsapp-btn:hover {
  background: #1fad50 !important;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.8) 0%, rgba(16, 185, 129, 0.8) 100%);
  backdrop-filter: blur(8px);
  animation: modalBackdropFadeIn 0.3s ease-out;
}

@keyframes modalBackdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
  margin: 3% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow-y: auto;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-100px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #64748b;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.close:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  transform: rotate(90deg);
}

.modal-content h2 {
  color: var(--primary);
  margin-bottom: 15px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content > p {
  text-align: center;
  color: #64748b;
  margin-bottom: 35px;
  font-size: 16px;
  line-height: 1.6;
}

.services-checkbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 25px;
}

.services-checkbox label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  color: #374151;
}

.services-checkbox label:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
  border-color: rgba(79, 70, 229, 0.3);
}

.services-checkbox label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.services-checkbox label input[type="checkbox"]:checked {
  background: var(--primary);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-content .btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.modal-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Portfolio Images */
.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    font-size: 22px;
  }

  .hero {
    padding: 60px 20px;
    background-attachment: scroll; /* Better performance on mobile */
  }

  .hero h1 {
    font-size: 32px;
  }

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

  .services,
  .portfolio,
  .about,
  .blog,
  .contact {
    padding: 50px 20px;
  }

  .services h2,
  .portfolio h2,
  .about h2,
  .blog h2,
  .contact h2 {
    font-size: 28px;
  }

  .service-grid,
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 25px;
    max-height: 85vh;
  }

  .modal-content h2 {
    font-size: 24px;
  }

  .services-checkbox {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .services-checkbox label {
    padding: 12px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  nav ul {
    gap: 10px;
  }

  .hero h1 {
    font-size: 24px;
  }

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

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}