:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary: #6366f1;
  --accent: #f59e42;
  --background: #f9fafb;
  --surface: #fff;
  --surface-alt: #f3f4f6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --container: 1200px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-y: scroll; /* Ensure scrolling is always enabled */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-y: auto; /* Ensure scrolling is enabled */
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: -0.01em;
  min-height: 100vh;
  position: relative;
  overflow: visible; /* Allow scrolling */
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid #ececec;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.04em;
}

.logo svg,
.logo img {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px;
  min-height: 64px;
  display: inline-block;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  width: 0;
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--surface-alt);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--spacing-lg) var(--spacing-sm);
  background: var(--background);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-background svg {
  width: 100%;
  height: 100%;
  animation: wave-animation 10s ease-in-out infinite;
}

@keyframes wave-animation {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-50px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Section Titles */
.section-title {
  font-size: 2.5rem; /* Increase font size for better visibility */
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  text-transform: uppercase; /* Add uppercase for emphasis */
}

.section-title h2 {
  font-size: 2.8rem; /* Larger font size for main headings */
  margin-bottom: var(--spacing-md);
}

.section-title h3 {
  font-size: 1.8rem; /* Adjust font size for subheadings */
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

/* Ensure headings in cards are consistent */
.service-card h3,
.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff; /* Ensure bright text for headings in cards */
  margin-bottom: var(--spacing-xs);
}

/* About Section */
.about {
  padding: var(--spacing-lg) 0;
  background: var(--surface-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-content {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-text {
  margin-bottom: var(--spacing-md);
}

.stats-grid {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.stat-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var (--primary);
  margin-bottom: 0.25em;
}

.stat-label {
  font-size: 1rem;
  color: var (--text-secondary);
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var (--shadow-md);
}

.about-svg {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
}

.about-svg circle {
  stroke: var(--secondary);
  stroke-dasharray: 10;
}

.about-svg line {
  stroke: var(--primary-dark);
  stroke-width: 1.5;
}

.about-svg text {
  fill: var(--primary);
  font-size: 18px;
  font-family: "Arial", sans-serif;
  font-weight: bold;
}

/* Our Services Section */
.services {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  position: relative;
  overflow: hidden;
  color: #fff; /* Ensure all text is bright */
}

.services h2,
.services h3,
.services p {
  color: #fff; /* Bright text for headings and paragraphs */
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Add a dark overlay for better contrast */
  z-index: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly opaque background */
  color: #fff; /* Ensure text is bright */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-lg) var(--spacing-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--spacing-sm);
  stroke: var(--primary);
  fill: none;
  stroke-width: 2.2;
  transition: stroke var(--transition), transform var(--transition);
}

.service-card:hover .service-icon {
  stroke: var(--secondary);
  transform: scale(1.12) rotate(-6deg);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: #fff; /* Ensure heading text is bright */
}

.service-card p {
  color: rgba(255, 255, 255, 0.9); /* Slightly lighter text for paragraphs */
  font-size: 1rem;
  line-height: 1.6;
}

/* Get in Touch Section */
.contact {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  position: relative;
  overflow: hidden;
  color: #fff; /* Ensure all text is bright */
}

.contact h2 {
  font-size: 2.5rem; /* Increase font size for better visibility */
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(90deg, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase; /* Add uppercase for emphasis */
}

.contact h3,
.contact p {
  color: #fff; /* Bright text for headings and paragraphs */
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Add a dark overlay for better contrast */
  z-index: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  color: #fff; /* Ensure all text is bright */
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: #fff; /* Ensure text is bright */
  font-size: 1.05rem;
  transition: color var(--transition);
}

.info-icon {
  width: 28px;
  height: 28px;
  stroke: #fff; /* Bright icon color */
  fill: none;
  stroke-width: 2.2;
  transition: stroke var(--transition), transform var(--transition);
}

.info-item:hover .info-icon {
  stroke: var(--primary-light);
  transform: scale(1.1) translateY(-2px);
}

.contact-form {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
  color: #fff; /* Ensure text is bright */
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7); /* Brighten placeholder text */
  font-style: italic; /* Add a subtle style for better visibility */
  transition: color var(--transition);
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
  color: rgba(255, 255, 255, 0.9); /* Make placeholder more visible on focus */
}

.contact-form button {
  margin-top: var(--spacing-sm);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.contact-form button:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--surface-alt);
  padding: var(--spacing-lg) 0 var(--spacing-md) 0;
  border-top: 1px solid #ececec;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var (--spacing-xs);
}

.footer-logo {
  width: 40px;
  height: 40px;
  margin-bottom: var(--spacing-xs);
}

.footer-links,
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-xs);
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e5e7eb;
  background: var(--surface);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--primary);
  outline: none;
}

.newsletter-form button {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.newsletter-form button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-top: var(--spacing-lg);
  opacity: 0.8;
}

/* Buttons */
.btn {
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.08rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition),
    box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:hover,
.btn:focus {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-md);
  outline: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
  .about-grid,
  .footer-grid,
  .contact-grid {
    gap: var(--spacing-md);
  }
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header {
    height: 60px;
  }
  .hero-content {
    padding: var(--spacing-md) var(--spacing-xs);
  }
  .section-title {
    font-size: 1.6rem;
  }
  .btn {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
  .footer-grid {
    gap: var(--spacing-md);
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .container {
    padding: 0 var(--spacing-xs);
  }
  .footer {
    padding: var(--spacing-md) 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero-title {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .btn {
    font-size: 0.98rem;
    padding: 0.6rem 1.1rem;
  }
}

/* Hide mobile menu button on desktop, show on mobile */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    background: var(--surface);
    flex-direction: column;
    width: 100vw;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 100;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-sm);
  }
  .nav-menu.active {
    display: flex;
  }
}

/* Responsive footer adjustments */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
}

/* Responsive adjustments for About Us section */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-visual {
    margin-top: var(--spacing-md);
  }
}

/* Designer Background Styles */
.designer-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #10b981, #059669, #6366f1);
  background-size: 300% 300%;
  animation: gradient-animation 8s ease infinite;
  overflow: hidden;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.designer-bg::before,
.designer-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.2),
    0 0 120px rgba(255, 255, 255, 0.1);
  animation: pulse-animation 6s infinite ease-in-out;
}

.designer-bg::before {
  width: 300px;
  height: 300px;
  top: 20%;
  left: 10%;
}

.designer-bg::after {
  width: 400px;
  height: 400px;
  bottom: 15%;
  right: 15%;
}

@keyframes pulse-animation {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}
