/* ===== Base Theme ===== */
:root {
  --primary: #27384a;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --bg: #edf2ff;
  --bg-soft: #f7f9ff;
  --white: #ffffff;
  --text: #27384a;
  --text-muted: #6c757d;
  --shadow: 0 4px 20px rgba(15, 35, 52, 0.08);
  --shadow-hover: 0 14px 40px rgba(15, 35, 52, 0.18);
  --transition: all 0.3s ease;
  --radius: 10px;
  --radius-lg: 18px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(230, 126, 34, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(39, 56, 74, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Header / Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-contact a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.nav-contact a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--primary);
  cursor: pointer;
}

.dashboard-toggle {
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.dashboard-toggle i {
  color: var(--accent);
}

.dashboard-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  background: #ffffff;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(25, 39, 52, 0.80), rgba(25, 39, 52, 0.90)),
    url('https://images.pexels.com/photos/5854192/pexels-photo-5854192.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.45), transparent 60%);
  opacity: 0.35;
  pointer-events: none;
  filter: blur(2px);
}

.hero::before {
  width: 380px;
  height: 380px;
  top: -80px;
  right: -40px;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.hero::after {
  width: 260px;
  height: 260px;
  bottom: -60px;
  left: -40px;
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(20px, -20px, 0) scale(1.05);
  }
}

.hero-content {
  max-width: 800px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== Sections ===== */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Services ===== */
.services {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  margin: 3rem 2rem 2rem;
  padding: 4rem 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.05), transparent 55%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  padding: 1.9rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(230, 126, 34, 0.08), transparent 60%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(230, 126, 34, 0.4);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card i {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
  transform-origin: center;
  transition: transform 0.35s ease;
}

.service-card:hover i {
  transform: translateY(-4px) scale(1.08) rotate(-4deg);
}

.service-card .tamil {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
}

/* ===== Special Services ===== */
.special-services {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-soft);
  padding: 4rem 2.5rem;
  margin: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.special-services::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 56, 74, 0.08), transparent 65%);
  top: -120px;
  left: -80px;
  pointer-events: none;
}

.special-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.special-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}

.special-list {
  list-style: none;
}

.special-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.special-list li:last-child {
  border-bottom: none;
}

.special-list li:hover {
  padding-left: 0.5rem;
  color: var(--accent);
}

.special-list i {
  font-size: 1.5rem;
  color: var(--accent);
  min-width: 28px;
  text-align: center;
}

.special-list span {
  font-weight: 500;
  color: var(--primary);
}

/* ===== Project Banner (Start Your Project Today) ===== */
.project-banner {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(39, 56, 74, 0.93), rgba(230, 126, 34, 0.88)),
    url('https://images.pexels.com/photos/159306/construction-site-build-construction-work-159306.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 3rem auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  max-width: 1100px;
}

.project-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.project-banner h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* ===== Contact Section ===== */
#contact {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item i {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.contact-item div strong {
  display: block;
  color: var(--primary);
  font-size: 0.9rem;
}

.contact-item div span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 350px;
}

.map-wrap iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* ===== Footer ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand .logo i {
  color: var(--accent);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-social .icons {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-copy {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===== Dashboard side menu ===== */
.dashboard-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -2px 0 25px rgba(0, 0, 0, 0.2);
  z-index: 1400;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: right 0.3s ease;
}

.dashboard-menu.open {
  right: 0;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dashboard-header span {
  font-weight: 600;
  color: var(--primary);
}

.dashboard-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.dashboard-links {
  list-style: none;
  margin-top: 0.75rem;
}

.dashboard-links li {
  margin-bottom: 0.5rem;
}

.dashboard-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.25rem;
  border-radius: 999px;
  transition: var(--transition);
}

.dashboard-links a i {
  color: var(--accent);
}

.dashboard-links a:hover {
  background: var(--bg-soft);
  padding-left: 0.6rem;
}

.dashboard-extra {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dashboard-extra div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.dashboard-extra i {
  color: var(--accent);
}

.dashboard-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1350;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.dashboard-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== Floating WhatsApp ===== */
.floating-whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 1500;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: pulse 2.2s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  background: #1ebe5d;
}

.floating-whatsapp i {
  font-size: 1.9rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .special-services {
    grid-template-columns: 1fr;
  }

  .special-img {
    max-height: 300px;
  }

  .special-img img {
    min-height: 280px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .nav-links,
  .nav-contact {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    gap: 1rem;
  }

  .nav-contact.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 1rem;
  }

  .hamburger {
    display: block;
  }

  .dashboard-toggle {
    display: none;
  }

  .hero {
    min-height: 85vh;
    padding-top: 5rem;
  }

  .services {
    margin: 1rem;
    padding: 3rem 1rem;
  }

  .special-services {
    margin: 1rem;
    padding: 3rem 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social .icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

