/* ===== Variables ===== */
:root {
  --theme-color: #ff6600;
  --body-background: #f4f4f4;
  --white: #ffffff;
  --black: #000000;
  --white-bg: #ffffff;
  --black-bg: #000000;
  --light-white-bg: #dddddd;
  --light-black-bg: #272727;
  --dark-white-bg: #f0f0f0;
  --dark-black-bg: #1a1a1a;
  --text-color: #000000;
  --container: 90%;
  --phone-container: calc(100% - 24px);
  --box-shadow5: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  --box-shadow13: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  --box-shadow3: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

html { scroll-behavior: smooth; }

* {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }

body {
  background-color: var(--body-background);
  color: var(--text-color);
}

body[data-theme="dark-mode"] {
  background-color: #131313;
  color: #959595;
  --body-background: #131313;
  --white: #000000;
  --black: #ffffff;
  --white-bg: #000000;
  --black-bg: #ffffff;
  --light-white-bg: #272727;
  --light-black-bg: #dddddd;
  --dark-white-bg: #1a1a1a;
  --dark-black-bg: #f0f0f0;
  --text-color: #959595;
}

.container {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.row { display: flex; flex-wrap: wrap; }

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999;
}

.loader-container { width: max-content; }

.loader-logo {
  width: min(400px, 20vw);
  height: auto;
  border-radius: 1vw;
  background-color: var(--light-white-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.loader-logo svg { width: 100%; height: auto; }

.loader-status {
  width: min(400px, 20vw);
  height: 10px;
  background-color: var(--light-white-bg);
  margin-top: 1.2rem;
  border-radius: 10px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(-90deg, #ee7752, #ff6600, #ff8800, #fdfdfd);
  background-size: 400% 400%;
  animation: loaderGradient 15s linear infinite;
}

@keyframes loaderGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.loader.hide { display: none !important; }

/* ===== Header ===== */
.header {
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 99999;
  background-color: var(--body-background);
}

.header .container { width: var(--container); margin-left: auto; margin-right: auto; }

.header-row {
  display: flex;
  align-items: center;
}

.header .logo {
  box-shadow: var(--box-shadow5);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  width: 190px;
  max-width: 30%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .logo a { display: block; }
.header .logo svg { width: 100%; height: auto; }
.header .logo path { fill: var(--theme-color); }

.leading { margin-left: 0.6rem; }
.leading p { font-size: clamp(12px, 0.7rem + 0.5vw, 14px); color: var(--text-color); }

.contact {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 1rem;
}

.contact a {
  box-shadow: var(--box-shadow5);
  padding: 0.7rem 1.35rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: clamp(12px, 0.7rem + 0.3vw, 14px);
  background-color: green;
  color: #fff;
  min-height: 44px;
}

.contact a svg { margin-right: 0.5rem; width: 18px; height: 18px; fill: #fff; }

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  margin-left: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  background-color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  box-shadow: var(--box-shadow5);
  white-space: nowrap;
}

.theme-btn:hover { opacity: 0.95; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

.theme-btn .theme-icon { display: flex; flex-shrink: 0; }
.theme-btn .theme-icon svg { width: 18px; height: 18px; }
.theme-btn p { font-size: inherit; font-weight: 600; margin: 0; }

body[data-theme="dark-mode"] .theme-btn {
  background-color: var(--body-background);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
body[data-theme="dark-mode"] .theme-btn p,
body[data-theme="dark-mode"] .theme-btn .theme-icon path { color: #fff; fill: #fff; }

/* Desktop header – buttons same line, theme sirf icon */
@media (min-width: 768px) {
  .header-row { align-items: center; }
  .header .logo { background-color: var(--white-bg); }
  .contact a { min-height: 48px; padding: 0.75rem 1.4rem; }
  .theme-btn {
    padding: 0.75rem;
    min-height: 48px;
    margin-left: 0.5rem;
  }
  .theme-btn p { display: none; }
  .theme-btn .theme-icon svg { width: 20px; height: 20px; }

  body[data-theme="dark-mode"] .header .logo { background-color: #2a2a2a; }
  body[data-theme="dark-mode"] .leading p { color: #b0b0b0; }
  body[data-theme="dark-mode"] .contact a {
    background-color: #333;
    color: #e0e0e0;
  }
  body[data-theme="dark-mode"] .contact a svg { fill: #e0e0e0; }
}

/* ===== Banner ===== */
.banner {
  margin-bottom: 0.6rem;
  z-index: 100;
  background-color: var(--body-background);
}

.banner .inner {
  box-shadow: var(--box-shadow13);
  border-radius: 0.5rem;
  background-color: var(--white-bg);
  overflow: hidden;
  margin-bottom: 2.4rem;
}

.banner-row {
  height: calc(100vh - 27vh);
  display: flex;
  align-items: center;
}

.banner .left {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner .text {
  padding: 1rem 1.5rem;
  color: var(--black);
}

.banner .text h1 {
  font-size: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
}

.banner .text h6 { font-size: 1rem; font-style: italic; text-align: right; }
.banner .text p { font-size: 0.875rem; font-style: italic; text-align: right; }

.banner .right {
  width: 40%;
  height: 100%;
}

.banner .right .image {
  width: 80%;
  height: 100%;
  margin-left: auto;
}

.banner .right .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Section headings ===== */
.heading {
  margin-bottom: 2.4rem;
}

.heading h2 {
  font-size: clamp(1.25rem, 2vw, 2.5rem);
  text-align: center;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.heading p {
  max-width: 55ch;
  margin: 0 auto;
  text-align: center;
  color: var(--black);
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  line-height: 1.5;
}

body[data-theme="dark-mode"] .heading h2,
body[data-theme="dark-mode"] .heading p { color: var(--text-color); }

/* ===== What We Do ===== */
.whatwedo {
  padding-top: 1.2rem;
  overflow: hidden;
  position: relative;
  z-index: 9999;
  background-color: var(--body-background);
}

.whatwedo .row {
  margin: -1.2rem;
  display: flex;
  flex-wrap: wrap;
}

.whatwedo .col4 {
  min-width: calc(25% - 0.01px);
  width: calc(25% - 0.01px);
  padding: 1.2rem;
}

.whatwedo .single {
  background-color: var(--white-bg);
  height: 100%;
  padding: 1.2rem;
  padding-bottom: 9rem;
  border-radius: 1.2rem;
  position: relative;
}

.carousel {
  height: 102px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 2rem 0;
}

.carousel-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-inner img {
  position: absolute;
  max-height: 100%;
  width: auto;
  max-width: 50%;
  border-radius: 1.2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-inner img.active { opacity: 1; z-index: 1; }

.whatwedo .single .text h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.whatwedo .single .text p { font-size: 1rem; line-height: 1.45; }

.developers-involved {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem;
}

.developers-involved h6 { font-size: 0.875rem; margin-bottom: 0.5rem; }

.developers-involved .list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.single-dev {
  position: relative;
  cursor: pointer;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.single-dev p {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  white-space: nowrap;
  font-weight: 600;
  background-color: var(--light-white-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.single-dev:hover p { opacity: 1; }

.dev-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.dev-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Who Will Do ===== */
.whowilldo {
  padding-top: 5rem;
  position: relative;
  z-index: 9999;
  background-color: var(--body-background);
}

.whowilldo .row {
  margin: -1.2rem;
  display: flex;
  flex-wrap: wrap;
}

.whowilldo .col4 {
  width: calc(33.333% - 0.01px);
  padding: 1.2rem;
}

.whowilldo .single {
  background-color: var(--white-bg);
  height: 100%;
  padding: 1.2rem;
  padding-bottom: 6.5rem;
  border-radius: 1.2rem;
  position: relative;
}

.whowilldo .single > .image {
  height: 250px;
  margin-bottom: 1.2rem;
}

.whowilldo .single > .image img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 1.2rem;
  height: 100%;
  object-fit: cover;
}

.whowilldo .text h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.whowilldo .text h6 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.6rem; }
.whowilldo .text p { font-size: 1rem; line-height: 1.45; }

.whowilldo .socialmedia {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem;
}

.whowilldo .socialmedia h6 { font-size: 0.875rem; margin-bottom: 0.5rem; }

.whowilldo .socialmedia .list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.whowilldo .socialmedia .single-dev .image {
  width: 30px;
  height: 30px;
  border-radius: 0;
}

.whowilldo .socialmedia .single-dev .image img { width: 100%; height: 100%; object-fit: contain; }

/* ===== How Will Do ===== */
.howwilldo {
  padding-top: 5rem;
  overflow: hidden;
  position: relative;
  z-index: 9999;
  background-color: var(--body-background);
}

.howwilldo .row {
  margin: -1.2rem;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.howwilldo .col4 {
  min-width: calc(20% - 0.01px);
  width: calc(20% - 0.01px);
  padding: 1.2rem;
  flex-shrink: 0;
}

.howwilldo .single {
  background-color: var(--white-bg);
  height: 100%;
  padding: 1.2rem;
  border-radius: 1.2rem;
}

.howwilldo .single .image {
  height: 150px;
  max-width: 50%;
  margin: 0 auto 1.2rem;
}

.howwilldo .single .image img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 1.2rem;
}

.howwilldo .text h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.howwilldo .text h6 { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; }
.howwilldo .text p { font-size: 1rem; line-height: 1.45; }

/* ===== Result ===== */
.result {
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 9999;
  background-color: var(--body-background);
}

.result .row {
  margin: -1.2rem;
  display: flex;
  flex-wrap: wrap;
}

.result .col4 {
  min-width: calc(50% - 0.01px);
  width: calc(50% - 0.01px);
  padding: 1.2rem;
}

.result .single {
  display: block;
  background-color: var(--white-bg);
  height: 100%;
  padding: 1.2rem;
  border-radius: 1.2rem;
  color: inherit;
}

body[data-theme="dark-mode"] .result .single { background-color: #444; }

.result .single .image {
  height: 250px;
  margin: 0 auto;
  border-radius: 1.2rem;
  overflow: hidden;
}

.result .single .image img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.result .single .text h3,
.result .single .text h6,
.result .single .text p { display: none; }

.result .single .project-name {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: 0.75rem 0 0;
  color: var(--black);
}
body[data-theme="dark-mode"] .result .single .project-name { color: var(--text-color); }

.result .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  justify-content: center;
}

.result .btn-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.result .btn-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.result .btn-link.figma-link {
  background: linear-gradient(135deg, #a259ff 0%, #6366f1 100%);
  color: #fff;
}

.result .btn-link.website-link {
  background: var(--primary);
  color: #fff;
}

body[data-theme="dark-mode"] .result .btn-link.website-link { color: #fff; }

/* ===== Footer (fixed niche, shuru me opacity 0 – GSAP scroll pe 1 karega) ===== */
.footer {
  background-color: var(--light-white-bg);
  padding-top: 3vw;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  opacity: 0;
}

.footer .container .logo {
  width: 20vw;
  max-width: 280px;
  background-color: var(--white-bg);
  padding: 1vw 2vw;
  border-radius: 0.5vw;
  box-shadow: var(--box-shadow3);
  display: block;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .container .logo svg { width: 100%; height: auto; }

.description {
  width: 40vw;
  max-width: 600px;
  margin: 1rem auto 2rem;
}

.description p {
  text-align: center;
  font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
  color: var(--black);
  line-height: 1.95;
}

body[data-theme="dark-mode"] .description p { color: var(--text-color); }

.copyright { margin-bottom: 2rem; }
.copyright h6 { text-align: center; font-size: 1rem; font-weight: 600; }
body[data-theme="dark-mode"] .copyright h6 { color: var(--text-color); }

.makeinindia {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.makeinindia img { max-height: 2rem; width: auto; }
.makeinindia p { font-size: 0.875rem; font-weight: 600; margin-left: 0.5rem; color: var(--black); }
body[data-theme="dark-mode"] .makeinindia p { color: var(--text-color); }

.minifooter {
  padding: 0.4rem 0;
  background-color: var(--black-bg);
  margin-top: 2rem;
}
body[data-theme="dark-mode"] .minifooter {
  background-color: #0a0a0a;
}

.minifooter .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.minifooter .col6 { width: 50%; }

.minifooter .links {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 1rem;
}

.minifooter .links a { font-size: 0.875rem; color: var(--light-white-bg); }
body[data-theme="dark-mode"] .minifooter .links a { color: var(--text-color); }

.minifooter .india {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.minifooter .india img { height: 1.5rem; width: auto; border-radius: 0.2rem; }
.minifooter .india p { margin: 0 0 0 0.5rem; font-size: 0.875rem; color: var(--white); }
body[data-theme="dark-mode"] .minifooter .india p { color: var(--text-color); }

/* ===== Scroll to top ===== */
.scrolltotop {
  position: fixed;
  z-index: 999999;
  bottom: 2.5vw;
  right: 1rem;
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  background-color: var(--black-bg);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--box-shadow3);
}

.scrolltotop.show { display: flex; }

.scrolltotop svg { width: 1.5rem; height: 1.5rem; }
.scrolltotop span { display: none; }

body[data-theme="dark-mode"] .scrolltotop { background-color: #000; }
body[data-theme="dark-mode"] .scrolltotop path { fill: var(--text-color); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .whatwedo .col4 { min-width: 50%; width: 50%; }
  .whowilldo .col4 { width: 50%; }
  .howwilldo .col4 { min-width: 33.333%; width: 33.333%; }
  .result .col4 { min-width: 100%; width: 100%; }
}

@media (max-width: 767px) {
  .container { width: var(--phone-container); }
  .header .container { width: var(--phone-container); }

  .header-row {
    flex-wrap: nowrap;
    gap: 0.4rem;
    align-items: center;
  }
  .header .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 38%;
    padding: 0.35rem 0.45rem;
  }
  .header .logo svg { max-height: 34px; width: auto; }
  .leading { display: none; }
  .header .contact {
    margin-left: auto;
    gap: 0.3rem;
    flex-shrink: 0;
    align-items: center;
  }
  .contact a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.55rem;
    font-size: 11px;
  }
  .contact a svg { width: 18px; height: 18px; flex-shrink: 0; }
  .contact a:first-child svg { margin-right: 0.35rem; }
  .contact a:last-child {
    font-size: 0;
    padding: 0.5rem;
    min-width: 44px;
    width: 44px;
    height: 44px;
  }
  .contact a:last-child svg { margin-right: 0; }
  .theme-btn {
    flex-shrink: 0;
    padding: 0.5rem;
    min-width: 44px;
    width: 44px;
    height: 44px;
    gap: 0;
  }
  .theme-btn p { display: none; }
  .theme-btn .theme-icon svg { width: 22px; height: 22px; margin-right: 0; }
  .theme-btn:hover { opacity: 0.95; }

  .banner-row { flex-wrap: wrap; height: auto; }
  .banner .left { width: 100%; order: 2; }
  .banner .right { width: 100%; order: 1; padding: 0.5rem; }
  .banner .right .image {
    width: 150px;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 auto;
  }
  .banner .text h1 { font-size: 1.4rem; }
  .banner .text h6 { font-size: 0.75rem; }
  .banner .text p { font-size: 0.65rem; }

  .whatwedo { padding-top: 1.5rem; }
  .whatwedo .heading { margin-bottom: 1.2rem; }
  .whatwedo .heading h2 { font-size: 1rem; }
  .whatwedo .heading p { font-size: 0.75rem; width: 100%; }
  .whatwedo .row { margin: 0; }
  .whatwedo .col4 { width: 100%; padding: 0 0 1.2rem; }
  .whatwedo .single { padding: 0.75rem; }
  .carousel { height: 120px; margin-bottom: 0.75rem; }
  .whatwedo .single .text h3 { font-size: 1rem; }
  .whatwedo .single .text p { font-size: 0.75rem; }
  .developers-involved { position: relative; margin-top: 1rem; }
  .dev-img { width: 25px; height: 25px; }

  .whowilldo { padding-top: 1.5rem; }
  .whowilldo .heading { margin-bottom: 1.2rem; }
  .whowilldo .heading h2 { font-size: 1rem; }
  .whowilldo .heading p { font-size: 0.75rem; width: 100%; }
  .whowilldo .row { margin: 0; }
  .whowilldo .col4 { width: 100%; padding: 0 0 0.75rem; }
  .whowilldo .single { padding: 0.75rem; padding-bottom: 3rem; }
  .whowilldo .single > .image { height: 180px; }
  .whowilldo .socialmedia { position: relative; margin-top: 1rem; }
  .whowilldo .socialmedia .single-dev .image { width: 18px; height: 18px; }

  .howwilldo { padding-top: 1.5rem; }
  .howwilldo .heading { margin-bottom: 1.2rem; }
  .howwilldo .heading h2 { font-size: 1rem; }
  .howwilldo .heading p { font-size: 0.75rem; width: 100%; }
  .howwilldo .row { flex-wrap: wrap; margin: 0; }
  .howwilldo .col4 { width: 100%; min-width: 100%; padding: 0 0 0.75rem; }
  .howwilldo .single .image { height: 120px; }
  .howwilldo .text h3 { font-size: 1rem; }
  .howwilldo .text h6 { font-size: 0.75rem; }
  .howwilldo .text p { font-size: 0.75rem; }

  .result { padding-top: 1.5rem; }
  .result .heading { margin-bottom: 1.2rem; }
  .result .heading h2 { font-size: 1rem; }
  .result .heading p { font-size: 0.75rem; width: 100%; }
  .result .row { margin: -0.5rem; }
  .result .col4 { width: 100%; padding: 0.5rem; }

  .footer { padding-top: 2.5rem; }
  .footer .container .logo { width: 200px; padding: 1rem 1.5rem; }
  .description { width: 100%; }
  .description p { font-size: 0.75rem; }
  .copyright h6 { font-size: 0.65rem; }
  .makeinindia img { max-height: 1.25rem; }
  .makeinindia p { font-size: 0.65rem; }
  .minifooter { padding: 0.5rem; }
  .minifooter .links a { font-size: 0.65rem; white-space: nowrap; }
  .minifooter .india p { font-size: 0.65rem; }
  .minifooter .india img { height: 1rem; }

  .scrolltotop { width: 40px; height: 40px; bottom: 2rem; }
  .scrolltotop svg { width: 1.25rem; height: 1.25rem; }
}
