:root {
  /* Modern Color Palette */
  --primary: #4F46E5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --dark: #0f172a;
  --text-main: #334155;
  --light: #f8fafc;
  --gray: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
}

.bg-light {
  background: var(--primary-light);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary-light);
  color: var(--primary) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  border: 1px solid transparent;
}
.nav-cta:hover {
  background: var(--primary);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  color: var(--dark);
}

/* --- Hero Section --- */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.8)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  padding: 120px 5% 60px;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  max-width: 700px;
  animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-text h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--dark);
  background: white;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* --- Sections General --- */
section {
  padding: 120px 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.img-wrapper {
  overflow: hidden;
}

.project-img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-content {
  padding: 2rem;
}

.tag {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  display: block;
}

/* --- Interactive Form Section --- */
.form-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-title {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--dark);
}

.service-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.select-box input[type="checkbox"] {
  display: none;
}

.select-content {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.select-content:hover {
  border-color: var(--primary-hover);
  background: var(--primary-light);
}

/* Checked State for Service Cards */
.select-box input[type="checkbox"]:checked + .select-content {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.select-content .icon {
  font-size: 1.8rem;
}

.select-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.select-content .price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}

.total-calculator {
  text-align: right;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.total-calculator span {
  font-size: 1.8rem;
  color: var(--dark);
  margin-left: 10px;
}

.input-group {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

input, textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--light);
  transition: var(--transition);
  color: var(--dark);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* --- Contact & Footer --- */
.contact-direct {
  text-align: center;
  padding-bottom: 2rem;
}

.contact-direct h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-direct a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.phone-link {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
}

.email-link {
  font-size: 1.2rem;
  color: var(--gray);
}

.phone-link:hover, .email-link:hover {
  opacity: 0.8;
}

footer {
  background: var(--dark);
  color: white;
  padding: 4rem 5% 2rem;
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: inline-block;
  color: white;
}

.footer-content p {
  color: #94a3b8;
}

.social-links {
  margin-top: 2rem;
}

.social-links a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 0.4s ease-in-out;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .menu-toggle {
    display: block;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }

  .form-container {
    padding: 1.5rem;
  }

  .input-group {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }
}