:root {
    --bg: #ffffff;         /* white background */
    --bg-light: #ebebeb;   /* very light gray for sections */
    --card: #f1f5f9;       /* light card background */
    --muted: #334155;      /* dark muted text */
    --text: #2b2a46;       /* dark blue text */
    --brand: #1c1971;      /* primary blue */
    --brand-2: #f59e0b;    /* accent amber */
    --ring: rgba(37, 99, 235, 0.4);
    --maxw: 1100px;
    --radius: 16px;
    --shadow: 0 10px 25px rgba(0,0,0,.1);
    --panel: #ffffff;
}

* { box-sizing: border-box; 
font-family: inherit;}
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #ffffff; /* overall background is now white */
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, 'Neue Haas Grotesk Display Pro', sans-serif, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}
.cinzel-font {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.garamond-font {
  font-family: "EB Garamond", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* ----------------------------------------------
ANIMATIONS
* ----------------------------------------
*/

/* Animation Keyframes */
@keyframes slide-top {
  0% { transform: translateY(50px); }
  100% { transform: translateY(0); }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scale-up {
  0% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes slide-right {
  0% { transform: translateX(-50px); }
  100% { transform: translateX(0); }
}

@keyframes bounce-in {
  0% { transform: translateY(20px) scale(0.95); }
  50% { transform: translateY(-10px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes rotate-in {
  0% { transform: rotate(-10deg) scale(0.8); }
  100% { transform: rotate(0) scale(1); }
}

/* Add these keyframes to styles.css */
@keyframes slide-from-left {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-from-right {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Add these keyframes */
@keyframes slide-from-left {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-from-right {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation classes */
.slide-from-left {
  animation: slide-from-left 0.7s ease-out forwards;
  position: relative;
}

.slide-from-right {
  animation: slide-from-right 0.7s ease-out forwards;
  position: relative;
}

/* Initial state for timeline items */
.timeline-item {
  opacity: 0; /* Start hidden */
}

/* For mobile stacking (in media query) */
@media (max-width: 800px) {
  .slide-from-left {
    animation: slide-from-left 0.7s ease-out forwards; /* Keep same or adjust */
  }

  .slide-from-right {
    animation: slide-from-right 0.7s ease-out forwards; /* Keep same or adjust */
  }

}

/* Classes for animations */
.slide-from-left {
  animation: slide-from-left 0.8s ease-out forwards;
  position: relative;
}

.slide-from-right {
  animation: slide-from-right 0.8s ease-out forwards;
  position: relative;
}

/* For mobile stacking (in media query) */
@media (max-width: 800px) {
  .slide-from-left {
    animation: slide-from-left 0.8s ease-out forwards; /* Keep same or adjust */
  }

  .slide-from-right {
    animation: slide-from-right 0.8s ease-out forwards; /* Keep same or adjust */
  }
}

/* Add these keyframes */
@keyframes slide-up {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes flip-in {
  0% {
    transform: rotateY(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}



/* Animation class */
.flip-in {
  animation: flip-in 0.8s ease-out forwards;
  position: relative;
  transform-style: preserve-3d; /* Ensure 3D transform works */
  backface-visibility: hidden; /* Prevent flicker */
}

/* Animation class */
.slide-up {
  animation: slide-up 0.6s ease-out forwards;
  position: relative;
}

/* Staggered effect for multiple elements */
.grid-3 .highlight,
.section-head {
  opacity: 0; /* Start hidden */
}

/* For mobile stacking (in media query) */
@media (max-width: 800px) {
  .slide-up {
    animation: slide-up 0.6s ease-out forwards; /* Keep same or adjust */
  }
}

/* Add these keyframes */
@keyframes slide-from-left {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-from-right {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation classes */
.slide-from-left {
  animation: slide-from-left 0.7s ease-out forwards;
  position: relative;
}

.slide-from-right {
  animation: slide-from-right 0.7s ease-out forwards;
  position: relative;
}

/* Initial state for cards */
.grid .card {
  opacity: 0; /* Start hidden */
}

/* For mobile stacking (in media query) */
@media (max-width: 800px) {
  .slide-from-left {
    animation: slide-from-left 0.7s ease-out forwards; /* Keep same or adjust */
  }

  .slide-from-right {
    animation: slide-from-right 0.7s ease-out forwards; /* Keep same or adjust */
  }
}

/* Animation Classes */
.slide-top-normal {
  animation: slide-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
  position: relative;
}

.fade-in-normal {
  animation: fade-in 0.7s ease-in-out forwards;
}

.scale-up-normal {
  animation: scale-up 0.6s ease-out forwards;
}

.slide-right-normal {
  animation: slide-right 0.5s cubic-bezier(0.680, -0.550, 0.265, 1.550) forwards;
  position: relative;
}

.bounce-in-normal {
  animation: bounce-in 0.8s ease-out forwards;
  position: relative;
}

.rotate-in-normal {
  animation: rotate-in 0.6s ease-in-out forwards;
  position: relative;
}

#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #ffffff; /* Background while loading */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Always on top */
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.main_sec{
  width:calc(100% - 48px);
  max-width:var(--max-width);
  margin:0 auto;
}


.main_img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/background_img.webp');
  background-size: cover;
  background-position: center;
  border-radius: 10px;

  /* Glass effect */
  background-color: rgba(255, 255, 255, 0.15);

  z-index: -1; /* keeps it behind your content */
}

.optin {
  background: var(--bg);
  padding: 15px; /* Reduced from 22px */
  border-radius: 12px; /* Slightly reduced from 14px */
  box-shadow: 0 5px 15px rgba(18, 18, 18, 0.04); /* Reduced shadow intensity */
  border: 1px solid rgba(0, 0, 0, 0.03);
  width: 100%; /* Ensure it takes full available width */
  max-width: 100%;
}

.optin h3 {
  margin: 0 0 10px 0; /* Reduced from 12px */
  font-size: 1.8rem; /* Reduced from 2rem */
  color: var(--text);
}

.optin p {
  margin: 0 0 10px 0; /* Reduced from 14px */
  color: var(--muted);
  font-size: 1rem; /* Reduced from 1.2rem */
}

.optin form {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Reduced from 15px */
}

.optin .input-group {
  position: relative;
}

.optin input[type="text"],
.optin input[type="email"] {
  padding: 10px 12px 4px; /* Reduced from 13px 12px 5px */
  border-radius: 6px; /* Reduced from 8px */
  border: 1px solid #e6e6e6;
  font-size: 1rem; /* Reduced from 1.2rem */
  outline: none;
  background: transparent;
  width: 100%;
  height: 50px; /* Reduced from 65px */
  color: var(--text);
}

/* Floating label */
.optin .input-group label {
  position: absolute;
  left: 10px; /* Reduced from 12px */
  top: 12px; /* Reduced from 16px */
  color: #666; /* Darker color for better contrast, from #aaa */
  font-size: 1rem; /* Reduced from 1.2rem */
  pointer-events: none;
  transition: 0.3s ease all;
  padding: 0 3px; /* Reduced from 0 4px */
}

/* When input is focused or filled */
.optin .input-group input:focus + label,
.optin .input-group input:not(:placeholder-shown) + label {
  top: 2px; /* Unchanged, fits new height */
  left: 6px; /* Reduced from 8px */
  font-size: 0.75rem; /* Reduced from 0.8rem for proportionality */
  color: #333; /* Darker color for visibility, from #fff */
  background: #fff; /* White background for contrast */
  padding: 0 3px; /* Reduced from 0 4px */
  border-radius: 3px; /* Reduced from 4px */
}

.phone-input {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  overflow: hidden;
  height: 50px;
}

.phone-input .country-code select {
  height: 100%;
  padding: 0 8px;
  border: none;
  outline: none;
  background: var(--bg); /* Matches input background */
  color: var(--text); /* Matches input text color */
  font-size: 1rem;
  cursor: pointer;
  border-right: 1px solid #e6e6e6; /* Separator line */
}

.phone-input input[type="tel"] {
  flex: 1;
  border: none;
  background: transparent;
  height: 100%;
  padding-left: 8px;
  color: var(--text); /* Matches other inputs */
  font-size: 1rem;
}

/* Floating label */
.phone-input label {
  position: absolute;
  left: 90px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #666;
  pointer-events: none;
  transition: 0.2s ease all;
}

.phone-input input:focus + label,
.phone-input input:not(:placeholder-shown) + label {
  top: -0.4rem;
  left: 90px;
  font-size: 0.75rem;
  color: #333;
  background: #fff;
  padding: 0 0.2rem;
  border-radius: 3px;
}

.project {
  padding: 10px 12px; /* Reduced from 15px 12px */
  border-radius: 6px; /* Reduced from 8px */
  border: 1px solid #e6e6e6;
  font-size: 1rem; /* Reduced from 1.2rem */
  outline: none;
  background: transparent;
  height: 100px; /* Reduced from 150px */
  width: 100%;
}

.optin .small {
  display: flex;
  gap: 6px; /* Reduced from 8px */
  align-items: center;
  font-size: 0.75rem; /* Reduced from 0.85rem */
  color: var(--muted);
}

.btn-outline{
  border:1px solid rgba(0,0,0,0.08);
  padding:10px 14px;border-radius:10px;
  background:transparent;
  font-weight:600;
  color:var(--text);
}
.btn-primary{
  color:white;padding:18px 25px;border-radius:10px;font-size: 1.2rem;
  outline: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; 
}
/* Layout helpers */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

@media (max-width: 800px) {
  .container .hero{ padding: 30px;}
}
.section {
  position: relative;        /* so the overlay stays inside */
  padding: 72px 0;
  overflow: hidden;          /* hides blur overflow edges */
  opacity: 1;
  transition: opacity 0.3s ease;
}
.section-light {
    background-color: var(--bg-light);
}
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }


/* Base navbar style */
header.navbar {
            position: absolute;
            width: 100%;
            height: 150px;
            background: var(--bg);
            padding: 1rem 0;
            z-index: 1999;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: transform 0.3s ease;
        }

        .container {
            max-width: var(--maxw);
            margin: 0 auto;
            padding: 0 20px;
        }
        .nav-inner {
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
        }
        .navbar-brand {
            display: flex;
            align-items: center;
            color: var(--text);
            text-decoration: none;
            font-weight: 600;
        }

        .menu {
            display: flex;
            gap: 2rem;
            align-items: center;
        }
        .menu a {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            padding-bottom: 1px;
        }
        .menu a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 0;
            height: 2px;
            background: var(--text);
            transition: width 0.3s;
        }
        .menu a:hover::after, .menu a.active::after {
            width: 100%;
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text);
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 1001;
            padding: 0.5rem;
        }
        #mobile-menu {
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: rgba(15, 23, 42, 0.9);
            padding: 15px 20px;
            position: absolute;
            top: 70px;
            left: 0;
            width: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0s linear 0.4s;
            z-index: 1000;
        }
        #mobile-menu.show {
            opacity: 1;
            visibility: visible;
            transition: opacity 0.4s ease, visibility 0s linear 0s;
        }
        #mobile-menu a {
            padding: 1rem;
            color: #fff;
            text-decoration: none;
            opacity: 0.9;
            font-weight: 600;
        }
        #mobile-menu a:hover {
            opacity: 1;
        }
        #mobile-menu .btn {
            padding: 8px 16px;
            border: 1px solid #fff;
            background: transparent;
            color: #fff;
            border-radius: var(--radius);
        }

.dropbtn {
  display: flex;
  align-items: center;
  gap: 5px; /* spacing between text and arrow */
  cursor: pointer;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown-content {
  display: none;              /* hidden by default */
  position: absolute;
  background-color: white;    /* or match your theme */
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 6px;         /* optional: rounded edges */
}

.dropdown-content a {
  display: block;             /* stack vertically */
  padding: 17px 17px;         /* vertical + horizontal padding */
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
}

.dropdown-content.show {
  display: block;
}

.arrow.rotated {
  transform: rotate(180deg);
}

.dropdown-content a:hover::after, .dropdown-content a.active::after {
    width: 0%;
} 

.dropdown-content a:hover {
  background-color: #f1f1f1;  /* hover effect */
}

/* show on hover */

@media (min-width: 801px) { 
.dropdown:hover .dropdown-content {
  display: block;
}
/* Rotate arrow when hovered */
.dropdown:hover .arrow {
  transform: rotate(180deg);
}
}




@media (max-width: 800px) {
    .menu { display: none; }
    .menu-toggle { display: inline-flex; }
    header.navbar { height: 60px; }
    #mobile-menu { top: 60px; }
}

/* Hero */
.hero { margin: 0; padding: 15rem 0 72px; text-align: center; background: radial-gradient(920px 420px at 50% -10%, rgba(37, 99, 235, .25), transparent 60%), radial-gradient(600px 320px at 100% 0%, rgba(245, 158, 11, .18), transparent 50%); } 
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.1; margin: 0 0 14px; color: #f1f5f9;}
.hero p { margin: 0 auto 25px; max-width: 720px; color: var(--bg); font-size: 1rem; text-align: left;}

.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  padding: 120px;
}


.projects-section {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.reviews-section {
  text-align: center;
  max-width: auto;
  margin: 0 auto 3rem;
}

.feature-image {
  text-align: right;
  transition: transform 0.3s;
  position: relative; 
}

.feature-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  display: inline-block; /* Ensures proper alignment with text-align */
  transition: transform 0.3s;
  
}

.feature-image img:hover {
  transform: scale(1.1);
}

.feature-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.feature-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.feature-content strong {
  color: var(--text);
}

.feature-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-buttons a {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  border: 1px solid var(--text);
}

.feature-buttons a:first-child {
  background: transparent;
  color: var(--text);
}

.feature-buttons a:first-child:hover {
  background: var(--text);
  color: var(--card);
  border-color: var(--text);
}

.feature-buttons a:last-child {
  background: transparent;
  color: var(--text);
}

.feature-buttons a:last-child:hover {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

@media (max-width: 768px) {
  .feature-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px;
  }
  .feature-buttons {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .feature-section {
    grid-template-columns: 1fr; /* Stack columns vertically */
    padding: 50px; /* Reduce padding on mobile */
    gap: 1rem; /* Increase gap for readability */
  }

  .feature-image {
    text-align: center; /* Center the image container */
    order: 1; /* Move image below content on mobile */
  }

  .feature-image img {
    margin: 0 auto; /* Center the image horizontally */
    display: block; /* Remove inline-block to ensure centering with margin auto */
  }

  .feature-content {
    order: 1; /* Keep content above image */
    padding-right: 0; /* Remove padding for full alignment */
  }

  .feature-image img:hover {
    transform: none; /* Disable hover on mobile */
  }
}

.carousel-container {
  width: 100%;
  overflow: hidden; /* Default for desktop, will override for mobile */
  padding: 40px 20px;
  position: relative;
  opacity: 1; transition: opacity 0.3s ease;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out; /* Preserve animation */
}

.carousel-item {
  flex: 0 0 20%; /* 5 items visible like Netflix row */
  margin-right: 20px;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.3s; /* Preserve animation */
}

.carousel-item:hover {
  transform: scale(1.1); /* Preserve hover animation */
}

.carousel-item img {
  width: 233px; /* Preserve fixed width */
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-item h3 {
  padding: 10px;
  font-size: 1rem;
  text-align: center;
  background: #111827;
  margin: 0;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 10px 15px; /* Adjusted padding for arrow size */
  cursor: pointer;
  font-size: 1.5rem; /* Larger font for arrows */
  border-radius: 5px;
  z-index: 10;
  width: 40px; /* Fixed width for consistency */
  height: 40px; /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-prev:hover, .carousel-next:hover {
  background: rgba(255, 255, 255, 1);
}

.carousel-track {
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

/* Mobile-specific adjustments (below 800px) */
@media (max-width: 800px) {
  .carousel-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
  }

  .carousel-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari */
  }

  .carousel-item {
    flex: 0 0 40%; /* Reduce to 2-3 items visible, adjust as needed */
    margin-right: 10px; /* Reduce margin for tighter fit */
  }

  .carousel-item img {
    width: 100%; /* Scale image to container width */
    max-width: 180px; /* Cap image width on mobile */
    height: auto; /* Maintain aspect ratio */
  }

  .carousel-item h3 {
    font-size: 0.9rem; /* Slightly smaller text on mobile */
  }
  
}
/* Cards & UI */
.card { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pages { background: #fff; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: var(--shadow); align-items: center;}
.card-inner { padding: 22px;}
.badge { display: inline-block; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--bg); color: var(--text); border: 1px solid var(--text) }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: #393939; }
/* Timeline */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  z-index: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  z-index: 1;
}

.timeline-circle {
  width: 20px;
  height: 20px;
  background: var(--brand);
  border: 4px solid var(--card);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.timeline-card {
  flex: 1;
  padding: 20px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-left: 30px;
  position: relative;
}

.timeline-card h3 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.timeline-cta {
  text-align: center;
  margin-top: 40px;
}

.timeline-cta .btn {
  padding: 12px 24px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .timeline {
    padding: 20px 0;
  }

  .timeline-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 30px;
  }

  .timeline-circle {
    margin-bottom: 10px;
  }

  .timeline-card {
    margin-left: 0;
    width: 100%;
  }
  .grid .card{
    opacity: 1;
  }
}

.btn-hero { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: white; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem;}
.btn-hero:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,.25); cursor: pointer;}


.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: var(--text); color: white; text-decoration: none; font-weight: 700; font-size: 1.2rem;}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,.25); cursor: pointer;}
.btn.primary { background: linear-gradient(90deg,rgba(15, 23, 42, 1) 0%, rgba(57, 132, 150, 1) 100%); border: #0b1220; }

/*.section-head { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 24px; text-align: center;}
.section-head h2 { margin: 0; font-size: clamp(22px, 3vw, 34px); }
.section-head p { margin: 0; color: var(--muted); max-width: 700px; }

/* ABOUT */
.section-heads {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-heads h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-heads p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.about-highlights {
  gap: 2.5rem;
  align-items: start;
}

.about-highlights .highlight {
  padding: 0 10px;
}

.about-highlights h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  color: var(--text);
}

.about-highlights p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-highlights ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-highlights ul li {
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
}

.about-highlights ul li::before {
  content: "✔";
  color: var(--brand);
  position: absolute;
  left: 0;
  top: 0;
}

.about-highlights .btn {
  margin-top: 1rem;
}


/* Lists */
.list { margin: 0; padding: 0; list-style: none; }
.list.check li { position: relative; padding-left: 26px; margin: 10px 0; }
.list.check li::before { content: "✓"; position: absolute; left: 0; top: 0; opacity: .7; }

/* Reviews */
.review { display: grid; gap: 12px; }
.stars { letter-spacing: 2px; }

/* Forms */
.form { display: grid; gap: 14px; }
.input, .textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: var(--text); }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus { outline: 2px solid var(--ring); border-color: transparent; }

/* Footer */
.site-footer {
  padding: 60px 0 40px;
  background-color: var(--bg-light);
  color: var(--muted);
  font-size: 12px;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: minmax(200px, auto) repeat(3, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 40px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}

.footer-brand {
  display: flex;
  flex-direction: column; /* Stack logo above about */
  align-items: flex-start;
  gap: 0; /* Space between logo and about text */
  align-items: center;
}

.footer-logo {
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.footer-logo-img {
  max-width: 100px;
  height: auto;
  border-radius: 8px;
  margin-right: 20px;
}


.footer-about h3 {
  text-align: center;
  margin-bottom: 0;
}

.footer-nav h3,
.footer-social h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
  text-align: left;
}

.footer-about p {
  margin: 0 0 15px;
  line-height: 1.8;
  text-align: center;
}

.footer-about strong {
  color: var(--text);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-nav ul li {
  margin-bottom: 15px;
}

.footer-nav ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--brand);
}

.footer-social .social-icons {
  display: flex;
  gap: 25px;
  justify-content: left;
  margin-top: 20px;
}

.footer-social .social-icons a {
  color: var(--muted);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: var(--brand);
}

.footer-social .footer-contact {
  margin-top: 20px; /* Space between social icons and contact details */
}

.footer-social .footer-contact p {
  margin: 5px 0; /* Reduced margin for tighter contact lines */
  line-height: 1.6;
}

.footer-social .footer-contact strong {
  color: var(--text);
}

.footer-copyright {
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-logo {
    justify-content: center;
    margin-bottom: 20px;
  }

  .footer-nav ul {
    text-align: center;
    padding: 0 20px;
  }

  .footer-social .social-icons {
    justify-content: center;
    margin-top: 15px;
  }

  .footer-social .footer-contact {
    margin-top: 15px; /* Adjusted for mobile */
  }
}
.small-font {
  font-size: 1rem;
}


/* Contact Form */
/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.modal.show {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--panel);
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeIn 0.3s ease-in;
  top: 20px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.modal-close:hover {
  color: var(--brand);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .modal-content {
    margin: 20% auto;
    width: 95%;
    top: 10px;
  }
}

.page-breaker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-breaker img {
  width: 300px;
}

.testimonials {
  max-width: auto;

  text-align: center;
  padding: 20px;
  }
  .testimonials h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  }
  .testimonials p.subtitle {
  font-size: 1.1em;
  color: var(--text);
  margin-bottom: 30px;
  }
  .slider {
  position: relative;
  overflow: hidden;
  width: 50%;
  margin: 0 auto;
  box-shadow: var(--shadow);
  }
  .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  }
  .slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px 0;
  background-color: var(--bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  }
  .slide img {
  width: 150px;
  height: auto;
  border-radius: 5px;
  }
  .testimonial-content {
  text-align: left;
  max-width: 60%;
  }
  .testimonial-content h3 {
  font-size: 1.5em;
  margin: 0 0 10px;
  }
  .testimonial-content p {
  font-size: 1em;
  color: var(--text);
  margin: 0 0 15px;
  }
  .rating {
  color: #ffd700;
  }
  .trustpilot {
  color: #fff;
  font-size: 0.9em;
  }
  .dots {
  margin-top: 10px;
  }
  .dot {
  height: 10px;
  width: 10px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  }
  .dot.active {
  background-color: var(--text);
  }


.grid-contact { display: grid; gap: 40px; }
.card-contact { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: var(--shadow); }


.map-container {
      width: 100%;
      height: 70%;
      margin: 20px auto;
      border: 1px solid #ccc;
      border-radius: 5px;
      overflow: hidden;
    }


.container-services {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.process-header {
    margin-bottom: 40px;
}
.process-header h1 {
    color: var(--text); /* To be consistent with the dark theme, adjust if needed */
    font-size: 2.5em;
    margin: 0;
    text-transform: uppercase;
}
.process-header p {
    color: var(--text); /* Changed to use --muted variable */
    font-size: 1.1em;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.step-card {
    background: var(--card); /* Changed to use --card variable */
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease;
}
.step-card:hover {
    transform: translateY(-5px);
}
.step-card .icon {
    width: 60px;
    height: 60px;
    background: var(--muted); /* Changed to use --brand variable for green-like color */
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5em;
}
.step-card h3 {
    color: var(--text); /* To match the dark theme, adjust if needed */
    margin: 10px 0;
    font-size: 1.2em;
}
.step-card p {
    color: var(--muted); /* Changed to use --muted variable */
    font-size: 0.9em;
    margin: 0;
}

.story-section {
    background: var(--text);
    color: #fff;
    padding: 60px 60px;
    text-align: left;

}

.story-section .container {
  padding: 100px;
}

.story-section h2 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--card); /* Blue for the "Do you have a tale to share?" text */
    font-weight: normal;
}

.story-section h1 {
    font-size: 1.7em;
    margin: 0 0 20px;
    color: #fff; /* White text for the main headline */
    text-transform: uppercase;
    line-height: 1.2;
}

.story-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #ccc; /* Light gray for subtext */
    font-size: 1.2em;
}


.services-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

  .margin-top {
    margin-top: 150px;
  }
.banner-section {
    background: #2f2f2f; /* Dark background to match the image */
    color: #fff;
    padding: 60px 20px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.banner-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/from-opened-books.jpg') no-repeat center center/cover; /* Placeholder for book collage background */
    opacity: 0.5; /* Semi-transparent to match the overlay effect */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: var(--maxw);
    margin: 0 auto;
    
}

.banner-content h1 {
    font-size: 2.5em;
    margin: 0 0 10px;
    text-transform: uppercase;
    box-shadow: var(--shadow);
}

.banner-content p {
    font-size: 1.1em;
    margin: 0 0 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.illustration {
    position: absolute;
    right: 100px;
    top: 50px;
    width: 300px; /* Adjust size as needed */
    height: auto;
    z-index: 3;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.buttons button {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.buttons button:hover {
    background: var(--brand);
}

.about {
    color: var(--text);
    text-align: left;

}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  padding: 30px 120px;
}



.about h2 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--card); /* Blue for the "Do you have a tale to share?" text */
    font-weight: normal;
}

.about h1 {
    font-size: 1.7em;
    margin: 0px 0 20px;
    color: var(--text); /* White text for the main headline */
    line-height: 1.2;
}

.about p {
    max-width: 600px;
    color: var(--muted); /* Light gray for subtext */
    font-size: 1.2em;
}


.toll-free {
    font-size: 1em;
    color: #fff;
    margin-left: 15px;
}

.services-header {
  margin-bottom: 40px;
  position: relative;
}

.services-header h1 {
  font-size: 2.8em;
  margin: 0;
  color: var(--text);
  letter-spacing: 1px;
}
.services-header p {
  color: #a3a3a3; /* Lighter gray to match the image's subtext */
  font-size: 1.1em;
  max-width: 700px;
  margin: 10px auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns to match the image */
  gap: 20px;
  margin: 40px auto 0;
  max-width: 100%;
  padding: 20px;
}

@media (max-width: 800px) {
  .about-section {
  padding: 3px 25px;
  grid-template-columns: 1fr;}
}

.card-services {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); /* Adjusted gradient to match image angle */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  border-radius: var(--radius);
  box-shadow: var(--shadow); /* Updated shadow */
  padding: 20px; /* Simplified padding */
  text-align: center;
  transition: transform 0.3s ease;
}
.card-services:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)); /* Lighter gradient on hover */
}
.icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: var(--brand); /* Blue circle for icons */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6em; /* Slightly reduced to match image */
}
.icon img {
  width: 40px;
}

.card-services h3 {
  color: #fff;
  margin: 10px 0;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.5px; /* Added for image-like text */
}
.card-services p {
  color: #b0b0b0; /* Light gray text to match the image */
  font-size: 0.9em;
  margin: 0;
  line-height: 1.4;
}

.why-hire-us {
    background: var(--text); /* Dark background to match image */
    color: #fff;
    padding: 40px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.illustration {
    width: 300px;
    height: auto;
    background: url('https://via.placeholder.com/300x200?text=Person+Writing') no-repeat center/cover; /* Placeholder for illustration */
}

.content {
    max-width: 600px;
}

.content h1 {
    font-size: 2em;
    margin: 0 0 20px;
    color: #fff;
}

.accordion {
    
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
}

.accordion-item summary {

    cursor: pointer;
    padding: 10px 10px;
    font-weight: bold;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2); /* Darker for collapsed items */
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary:after {
    content: '\25BC'; /* Down arrow */
    font-size: 0.8em;
}

.accordion-item[open] summary:after {
    content: '\25B2'; /* Up arrow */
    color: var(--brand-2); /* Orange arrow for open item */
}

.accordion-item p {
    margin: 10px 0;
    color: #ddd;
    font-size: 0.9em;
    transition: max-height 0.3s ease, opacity 0.3s ease; /* Smooth content transition */

} 

.accordion-item[open] p {
            max-height: 200px; /* Adjust based on content height */
            opacity: 1;
}

.top-padding {
  padding-top: 170px;
}

.subtitle {
    color: var(--muted);
    font-size: 1em;
    margin-bottom: 30px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    justify-items: center;
}

.book-card {
    text-align: center;
    max-width: 200px;
    box-shadow: var(--shadow);
    border: var(--bg-light) 2px;
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.stars {
    color: var(--brand-2);
    font-size: 1em;
    margin-bottom: 5px;
}

.book-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.book-author {
    color: var(--muted);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.book-price {
    font-size: 1em;
    font-weight: bold;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: transform .15s ease-in-out, background .15s ease-in-out;
}
.review-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.review-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    object-fit: cover;
    margin-bottom: 10px;
}

.review-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    object-fit: cover;
    margin-bottom: 10px;
}

.review-card .rating {
    color: var(--brand-2);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.review-card h3 {
    font-size: 1.1em;
    color: #fff;
    margin: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-card p {
    color: #b0b0b0;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

.review-card .date {
    color: #a3a3a3;
    font-size: 0.8em;
    margin-top: 10px;
}

.illustration-image {
  text-align: right;
  padding-top: 100px;

}

.illustration-image img {
  width: 100%;
  object-fit: cover;
  display: inline; /* Ensures proper alignment with text-align */
  
}

.illustration-image-contact {

  text-align: right;
  padding-top: 100px;

}

.illustration-image-contact img {
  width: 80%;
  object-fit: cover;
  display: inline; /* Ensures proper alignment with text-align */
  
}

.banner-image {
  background-image: url('images/from-opened-books.jpg');
  background-size: cover;
  background-position: center;
  
}

.illustration-image-services {
  text-align: center;
}

.illustration-image-services img {
  width: 70%;
  object-fit: cover;
  display: inline; /* Ensures proper alignment with text-align */
}

.top-padding-for-mobile {
  padding: 60px;
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.portfolio-tabs .tab {
  padding: 10px 20px;
  border: 2px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}
.portfolio-tabs .tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.story-section-second {
    background: var(--bg); /* Dark background inspired by the image */
    color: #fff;
    padding: 60px 60px;
    text-align: left;

}

.story-section-second .container {
  padding: 100px;
}

.story-section-second h2 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--muted); /* Blue for the "Do you have a tale to share?" text */
    font-weight: normal;
}

.story-section-second h1 {
    font-size: 1.7em;
    margin: 0 0 20px;
    color: var(--text); /* White text for the main headline */
    text-transform: uppercase;
    line-height: 1.2;
}

.story-section-second span {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--text); /* Blue for the "Do you have a tale to share?" text */
    font-weight: normal;
}

.story-section-second p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text); /* Light gray for subtext */
    font-size: 1.2em;
}

.illustration-image-second {
  text-align: center;
}

.illustration-image-second img {
  width: 70%;
  object-fit: cover;
  display: inline; /* Ensures proper alignment with text-align */
}

.steps-grid-second {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.steps-grid-proofreading {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 15px auto;

}

.contact-form-pages {
  display: inline;
  padding: 80px 100px;
}

.illustration-image-marketing {
  text-align: center;
}

.illustration-image-marketing img {
  width: 100%;
  object-fit: cover;
  display: inline; /* Ensures proper alignment with text-align */
}
.faq-section {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px 20px;
            font-family: Arial, sans-serif;
        }

        .faq-title {
            font-size: 2.5em;
            text-align: center;
            color: #333;
            margin-bottom: 10px;
        }

        .faq-subtitle {
            font-size: 1em;
            text-align: center;
            color: #666;
            margin-bottom: 30px;
        }

        .faq-list {
            list-style: none;
            padding: 0;
        }

        .faq-item {
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            overflow: hidden;
        }

        .faq-question {
            background-color: #1f2a44;
            color: #fff;
            padding: 15px;
            cursor: pointer;
            font-size: 1.1em;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.3s;
        }

        .faq-question:hover {
            background-color: #2a3b5e;
        }

        .faq-answer {
            padding: 15px;
            background-color: #fff;
            color: #333;
            line-height: 1.6;
            display: none;
        }

        .faq-item.active .faq-answer {
            display: block;
        }

        .faq-toggle {
            font-size: 1.2em;
            transition: transform 0.3s;
        }

        .faq-item.active .faq-toggle {
            transform: rotate(180deg);
        }

        @media (max-width: 600px) {
            .faq-title {
                font-size: 2em;
            }
            .faq-question {
                font-size: 1em;
            }
        }

.optin p {
  margin: 0 0 10px 0; /* Reduced from 14px */
  color: var(--muted);
  font-size: 1rem; /* Reduced from 1.2rem */
}

@media (max-width: 800px) {
    .container { padding: 0 10px; }
    .hero { padding: 10rem 0 40px; }
    .hero h1 { font-size: clamp(24px, 5vw, 36px); }
    .feature-section { grid-template-columns: 1fr; padding: 40px; gap: 2rem; }
    .feature-image { text-align: center; order: 2; }
    .feature-image img { margin: 0 auto; }
    .feature-image img:hover { transform: none; }
    .feature-content { order: 1; padding-right: 0; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    header.navbar { height: 100px; }
    .menu { display: none; }
    #mobile-menu { top: 100px; }
    .carousel-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .carousel-container::-webkit-scrollbar { display: none; }
    .carousel-item { flex: 0 0 40%; margin-right: 10px; }
    .carousel-item img { max-width: 180px; height: auto; }
    .carousel-item h3 { font-size: 0.9rem; }
    .contact-form-pages { padding: 30px}
    .timeline { padding: 20px 0; }
    .timeline-item { flex-direction: column; text-align: center; margin-bottom: 30px; }
    .timeline-circle { margin-bottom: 10px; }
    .timeline-card { margin-left: 0; width: 100%; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid-second { grid-template-columns: 1fr; }    
    .section { padding: 72px 12px;}
    .services-grid { grid-template-columns: 1fr; }
    .about-section {
                grid-template-columns: 1fr;
                padding: 30px;
                gap: 2rem;
            }
            .about {
                text-align: center;
                padding: 0 10px;
            }
            .about img {
                margin: 0 auto 20px; /* Center image and add space below */
                max-width: 300px; /* Reduce image size for mobile */
            }
            .about h1 {
                margin: 20px 0 20px;
            }
            .about p {
                margin: 0 auto;
                max-width: 100%;
            }
            .dropdown-content  {
              background-color: rgba(15, 23, 42, 0.9);
            }

    .testimonials {
                padding: 20px 10px;
            }
            .testimonials h2 {
                font-size: 2em;
            }
            .slider {
                width: 95%; /* Full width on mobile */
            }
            .slide {
                flex-direction: column; /* Stack image and content vertically */
                padding: 15px 0;
                gap: 10px; /* Reduced gap */
            }
            .slide img {
                width: 80px; /* Smaller image on mobile */
            }
            .testimonial-content {
                max-width: 90%; /* Allow content to take more space */
                text-align: center; /* Center text on mobile */
            }
            .testimonial-content h3 {
                font-size: 1.1em;
            }
            .testimonial-content p {
                font-size: 0.9em;
            }
            .rating {
                font-size: 1em;
            }
    .illustration { position: static; margin: 0 auto; }
    .slider { width: 90%; }
    .footer-wrapper { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo { justify-content: center; margin-bottom: 20px; }
    .footer-nav ul { text-align: center; padding: 0 20px; }
    .footer-social .social-icons { justify-content: center; }
    .footer-nav h3, .footer-social h3 { text-align: center;}
    .modal-content { margin: 20% auto; width: 95%; top: 10px; }
    .story-section {
                padding: 72px 20px; /* Reduced padding for mobile */
                min-width: 0;
                max-width: 768px;
                
                
            }
            .story-section .container {
                padding: 0 15px; /* Tighter padding on mobile */
            }
            .story-section h2 {
                font-size: 1rem; /* Smaller subheading */
            }
            .story-section h1 {
                font-size: 1.3em; /* Reduced headline size */
            }
            .story-section p {
                font-size: 1em; /* Smaller text */
                max-width: 100%; /* Full width on mobile */
                margin: 0 auto 20px; /* Adjusted margin */
            }

        .story-section-second {
                padding: 30px 20px; /* Reduced padding for mobile */
            }
            .story-section-second .container {
                padding: 0 10px; /* Tighter padding on mobile */
            }
            .story-section-second h2 {
                font-size: 1rem; /* Smaller subheading */
            }
            .story-section-second h1 {
                font-size: 1.3em; /* Reduced headline size */
            }
            .story-section-second p {
                font-size: 1em; /* Smaller text */
                max-width: 100%; /* Full width on mobile */
                margin: 0 auto 20px; /* Adjusted margin */
            }

      
    .illustration-image-contact {
      padding: 0px;
      text-align: center;
    }
    .navbar-brand img.brand-badge {
      width: 140px;
      height: auto;
    }
    .optin {
    padding: 10px; /* Reduce padding for mobile */
    border-radius: 8px; /* Slightly smaller radius for mobile */
  }

  .optin h3 {
    font-size: 1.5rem; /* Smaller heading */
  }

  .optin p {
    font-size: 0.9rem; /* Smaller text */
  }

  .optin form {
    gap: 8px; /* Reduce gap between form elements */
  }

  .optin input[type="text"],
  .optin input[type="email"],
  .phone-input,
  .project {
    height: 40px; /* Reduce input height for mobile */
    font-size: 0.9rem; /* Smaller font size */
    padding: 8px 10px; /* Reduce padding */
  }

  .phone-input label {
    left: 80px; /* Adjust for smaller country code select */
    font-size: 0.85rem; /* Smaller label */
  }

  .phone-input input:focus + label,
  .phone-input input:not(:placeholder-shown) + label {
    left: 80px;
    font-size: 0.7rem; /* Smaller floating label */
    top: -0.3rem;
  }

  .optin .input-group label {
    font-size: 0.85rem; /* Smaller label */
    top: 10px; /* Adjust label position */
  }

  .optin .input-group input:focus + label,
  .optin .input-group input:not(:placeholder-shown) + label {
    font-size: 0.7rem; /* Smaller floating label */
    top: 2px;
    left: 6px;
  }

  .project {
    height: 80px; /* Reduce textarea height */
  }

  .optin .small {
    font-size: 0.7rem; /* Smaller small text */
  }
}

@media (max-width: 480px) {
  .optin {
    padding: 8px; /* Further reduce padding */
    margin: 0 5px; /* Add small horizontal margin to fit within container padding */
    transform: translateX(-10px);
  }


  .optin form {
    gap: 6px; /* Minimal gap */
  }

  .optin input[type="text"],
  .optin input[type="email"],
  .phone-input,
  .project {
    height: 38px; /* Even smaller height */
    font-size: 0.85rem;
    padding: 6px 8px 1px; /* Minimal padding */
  }

  .phone-input {
    height: 38px;
    overflow: hidden; /* Hide any overflow in phone input */
  }

  .phone-input .country-code {
    width: 55px; /* Compress country code further */
  }

  .phone-input .country-code select {
    padding: 0 4px; /* Reduce select padding */
    font-size: 0.85rem; /* Smaller text in select */
  }

  .phone-input input[type="tel"] {
    padding-left: 4px; /* Less left padding to fit */
    font-size: 0.85rem;
  }

  .phone-input label {
    left: 55px;
    font-size: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .phone-input input:focus + label,
  .phone-input input:not(:placeholder-shown) + label {
    left: 55px;
    top: -0.2rem;
    font-size: 0.65rem;
    padding: 0 0.1rem;
  }

  .optin .input-group label {
    left: 6px;
    top: 8px;
    font-size: 0.8rem;
  }

  .optin .input-group input:focus + label,
  .optin .input-group input:not(:placeholder-shown) + label {
    left: 4px;
    font-size: 0.65rem;
    top: 0px;
    padding: 0 2px;
  }

  .project {
    height: 60px; /* Very compact textarea */
    font-size: 0.85rem;
  }

  .optin .small {
    font-size: 0.65rem;
    gap: 3px;
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  /* Ensure container helps on tiny screens */
  .story-section .container {
    padding: 0 5px; /* Override to even smaller padding */
    transform: translateX(-5px);
  }
}

