/*
Theme Name: MnS
Author: DMM Dev Team
Description: A minimal custom WordPress theme using existing HTML structure.
Version: 1.0
*/
       
/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Adjust this based on actual nav height */
}


body {
	font-family: 'Roboto', sans-serif;
}

/* Variables (you can adjust these as needed) */
:root {
  --card: 0 0% 100%;
  --bg-card: #fafafa;
  --bg-primary: #282c34;
  --text-primary-foreground: #ffffff;
  --text-foreground: #282c34;
  --text-muted-foreground: #667085;
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3);
  --bg-gradient-french: #282c34;
  --primary: #282c34;
  --accent: #4b5563; /* formerly bright blue, now a neutral gray */
  --foreground: #d1d5db;
  --muted: 220 13% 91%;
  --card-bg: rgba(255, 255, 255, 0.95) ;
  --white: #f9fafb;
  --border-color: 214.3 31.8% 91.4%;

  --btn-blue: #374151; /* slate-700 */
  --btn-red: #4b5563;  /* neutral gray instead of red */
  --btn-gradient: linear-gradient(to right, #374151, #4b5563);
	
  --foreground: #1f2937;
  --background: #ffffff;
  --ring: #3b82f6;
  --tw-ring-color: rgb(59 130 246 / .5);
  --ring-offset-background: #ffffff;
  --shadow-elegant:  0 10px 30px -10px hsl(217, 100%, 50% / .3);
  --foreground-rgb: 31, 41, 55;
  --background-rgb: 255, 255, 255;
	
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --btn-border: #e5e7eb; /* soft border like Tailwind's gray-200 */
  --input: 214.3 31.8% 91.4%;
	
}


/* Layout */
.header {
  background-color: var(--bg-card);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card);
  position: sticky; /* OR use 'fixed' if you want it to stay always on top */
  top: 0;
  z-index: 1000; /* Make sure it's above other content */
}

/* Contact bar */
.contact-bar {
  background-color: var(--bg-primary);
  color: var(--text-primary-foreground);
  padding: 0.5rem 0;
}

.container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Navigation */
.nav-container {
  height: 84px; /* or whatever your nav's actual height is */
  padding: 1rem 2rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-card); /* prevent transparency on scroll */
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-box {
  background: var(--bg-gradient-french);
  color: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--bg-primary);
}

.site-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted-foreground);
}

/* Navigation links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--bg-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--bg-primary);
}

/* Button */
.hero-button {
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-primary);
  color: var(--text-primary-foreground);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.hero-button:hover {
  background-color: var(--foreground);
}

/* === Responsive for Mobile === */
.nav-toggle {
  display: none;
  font-size: 1.75rem;
  background: none;
  border: none;
  color: var(--bg-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-button {
    width: 100%;
    text-align: center;
  }
  .project-images {
    grid-template-columns: 1fr; 
  }
.contact-grid {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}
}


/*_________________________________________________________________________________*/

.project {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.project:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

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

.overlay {
  position: absolute;
  top: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  pointer-events: none;
}

.before {
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.after {
  right: 16px;
  background: #111;
  color: #fff;
  border: 1px solid transparent;
}

.project-content {
  padding: 24px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.project-header h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.view-project {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  color: #111;
  cursor: pointer;
  transition: color 0.3s ease;
}

.view-project span {
  transition: transform 0.2s ease;
}

.view-project:hover {
  color: #666;
}

.view-project:hover span {
  transform: translateX(4px);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.project-meta div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-meta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
}

.description {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
}

.before-after-section {
  background-color: hsl(var(--muted) / .3);
  padding: 5rem 0rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-foreground);
  font-weight: bold;
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted-foreground);
  max-width: 700px;
  margin: 0 auto;
}
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.project-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.image-wrapper {
  position: relative;
  overflow: hidden;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.image-wrapper:hover img {
  transform: scale(1.05);
}
.badge-before {
  background-color: #dc2626; /* red */
}
.badge-after {
  background-color: var(--primary);
}
.project-info {
  padding: 2rem;
  background: linear-gradient(to right, var(--bg-card), #f3f4f6);
}
.project-info .tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #e5e7eb;
  border-radius: 9999px;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}
.project-info h3 {
  font-size: 1.5rem;
  color: var(--text-foreground);
  font-weight: bold;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
}
.btn-outline:hover {
  background: var(--border);
}
.form-gap {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

