:root {
  --primary-bg: #fff;
  --primary-text: #222;
  --accent: #ff6600;
  --nav-bg: #f8f8f8;
  --card-bg: #f4f4f4;
}
[data-theme="dark"] {
  --primary-bg: #181a1b;
  --primary-text: #f1f1f1;
  --accent: #ff6600;
  --nav-bg: #23272a;
  --card-bg: #222326;
}
[data-theme="custom"] {
  --primary-bg: #001f3f;
  --primary-text: #ffdc00;
  --accent: #2ecc40;
  --nav-bg: #0074d9;
  --card-bg: #001a35;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--primary-bg);
  color: var(--primary-text);
  font-family: 'Segoe UI', Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
}
header {
  background: var(--nav-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}
.logo {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border: 2px solid #fff;
  display: block;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
}
.logo:hover {
  transform: rotate(10deg) scale(1.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
/* --- Navbar Links Motion --- */
.nav-links a {
  text-decoration: none;
  color: var(--primary-text);
  font-weight: 500;
  transition: color 0.2s, transform 0.3s cubic-bezier(.4,2,.6,1), letter-spacing 0.3s;
  letter-spacing: 0.5px;
}
.nav-links a:hover {
  color: var(--accent);
  transform: scale(1.12) translateY(-2px) rotate(-2deg);
  letter-spacing: 2px;
}
#theme-toggle {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
#theme-toggle:hover {
  background: #222;
}
.hero {
  background: linear-gradient(120deg, var(--accent) 0%, var(--nav-bg) 100%);
  color: #fff;
  padding: 5rem 2rem 3rem 2rem;
  text-align: center;
}
/* --- Hero Text Motion --- */
.hero-content h1, .hero-content p {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeIn 1.2s cubic-bezier(.4,2,.6,1) 0.2s forwards;
}
.hero-content p {
  animation-delay: 0.5s;
}
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.5rem;
}
section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
section h2 {
  margin-bottom: 1rem;
  color: var(--accent);
}
.service-list, .portfolio-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
/* --- Card Motion --- */
.service-item, .portfolio-item {
  flex: 1 1 200px;
  background: rgba(255,255,255,0.25);
  padding: 1rem;
  border-radius: 0.7rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s, background 0.25s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: cardFadeIn 1.1s cubic-bezier(.4,2,.6,1) 0.3s forwards;
}
@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.service-item, .portfolio-item {
  flex: 1 1 200px;
  background: var(--primary-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 1rem;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}
button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
button[type="submit"]:hover {
  background: #222;
}
/* --- Button Motion --- */
#theme-toggle, button[type="submit"] {
  background: linear-gradient(90deg, var(--accent), #ffdc00);
  color: #fff;
  border: none;
  border-radius: 1.5rem;
  width: auto;
  min-width: 40px;
  height: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s, letter-spacing 0.3s;
  padding: 0 1.5rem;
  letter-spacing: 0.5px;
}
#theme-toggle:hover, button[type="submit"]:hover {
  background: linear-gradient(90deg, #ffdc00, var(--accent));
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transform: translateY(-2px) scale(1.09) rotate(-2deg);
  letter-spacing: 2px;
}
input, textarea {
  padding: 0.9rem;
  border: none;
  border-radius: 0.7rem;
  font-size: 1rem;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 0.5rem;
  color: var(--primary-text);
  transition: box-shadow 0.2s, background 0.2s, transform 0.3s cubic-bezier(.4,2,.6,1);
}
input:focus, textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transform: scale(1.04);
}

/* --- Card Hover Effects --- */
.service-item:hover, .portfolio-item:hover {
  transform: translateY(-8px) scale(1.07) rotate(-1.5deg);
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  background: rgba(255,255,255,0.45);
}

/* --- Footer Gradient & Social Icons --- */
footer {
  text-align: center;
  padding: 2rem 0 1.5rem 0;
  background: linear-gradient(90deg, var(--nav-bg), #0074d9, var(--nav-bg));
  color: var(--primary-text);
  margin-top: 2rem;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
}
/* --- Footer Socials Motion --- */
.footer-socials a {
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--primary-text);
  font-size: 1.5rem;
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s, transform 0.2s;
  transform: scale(1);
}
.footer-socials a:hover {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.25) rotate(-8deg);
}

/* --- Smooth Section Reveal Animation --- */
@media (max-width: 800px) {
  .service-list, .portfolio-list {
    flex-direction: column;
    gap: 1rem;
  }
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
}
.hero-services {
    background: linear-gradient(120deg, var(--accent) 0%, var(--nav-bg) 100%);
    color: #fff;
    padding: 5rem 2rem 3rem 2rem;
    text-align: center;
}
.hero-services h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 0.5em;
}
.hero-services ul {
    list-style: none;
    padding: 0;
    font-size: 1.15em;
    line-height: 2;
}
.hero-services li {
    margin-bottom: 0.3em;
}
.hero-pricing {
    background: linear-gradient(120deg, var(--accent) 0%, var(--nav-bg) 100%);
    color: #fff;
    padding: 5rem 2rem 3rem 2rem;
    text-align: center;
}
.hero-pricing h2 {
    color: #fff;
}
.price-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}
.price-table th, .price-table td {
    padding: 0.9em 1em;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.05em;
}
.price-table th {
    background: rgba(0,0,0,0.12);
    font-weight: 600;
    letter-spacing: 1px;
}
.price-table tr:last-child td {
    border-bottom: none;
}
@media (max-width: 700px) {
    .price-table th, .price-table td {
        font-size: 0.95em;
        padding: 0.7em 0.5em;
    }
}
.gallery.hero {
    background: linear-gradient(120deg, var(--accent) 0%, var(--nav-bg) 100%);
    color: #fff;
}
.gallery-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.gallery-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.gallery-item {
    background: rgba(255,255,255,0.07);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 18px;
}
.gallery-item img {
    max-width: 250px;
    border-radius: 8px;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gallery-item p {
    margin-top: 1em;
    color: #fff;
}
section.hero {
    background: linear-gradient(120deg, var(--accent) 0%, var(--nav-bg) 100%);
    color: #fff;
    padding: 5rem 2rem 3rem 2rem;
    text-align: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.hero-content img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}
/* About, Why Choose Us, Technologies, Team, FAQ section theme */
.about,
.why,
.tech,
.team,
.faq,
.contact.hero {
    background: linear-gradient(120deg, var(--accent) 0%, var(--nav-bg) 100%);
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 3rem 2rem;
    margin: 2rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;   /* Same as hero section */
    width: 100%;
}
.about h2,
.why h2,
.tech h2,
.team h2,
.faq h2 {
    color: #fff;
    text-align: center;
}

/* Text motion for all main sections */
.about h2, .about p,
.why h2, .why li,
.tech h2, .tech span,
.team h2, .team p,
.faq h2, .faq p, .faq li,
.contact.hero h2, .contact.hero p,
.hero-content h1, .hero-content p,
.hero-services h2, .hero-services li,
.hero-pricing h2, .price-table th, .price-table td,
.gallery-item p {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s cubic-bezier(.4,1.7,.6,.97) forwards;
}
.about h2, .why h2, .tech h2, .team h2, .faq h2, .contact.hero h2, .hero-content h1, .hero-services h2, .hero-pricing h2 {
    animation-delay: 0.1s;
}
.about p, .why li, .tech span, .team p, .faq p, .faq li, .contact.hero p, .hero-content p, .hero-services li, .price-table th, .price-table td, .gallery-item p {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* style.css ke end me add karein */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.4,1.7,.6,.97), transform 0.7s cubic-bezier(.4,1.7,.6,.97);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}