/*
Theme Name: Kovai Web Works
Theme URI: https://kovaiwebworks.com/
Author: Kovai Web Works / Iniya Ramar
Author URI: https://kovaiwebworks.com/
Description: Custom, high-performance, responsive theme designed for Kovai Web Works - Website Development, Web Design, and SEO Services in Coimbatore.
Version: 1.0.3
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kovaiwebworks
Tags: custom, one-page, portfolio, business, responsive, modern, local-business, clean
*/

:root {
  --navy: #073b91;
  --blue: #078eea;
  --cyan: #18c5e8;
  --green: #79d400;
  --ink: #152238;
  --muted: #5c6b7d;
  --light: #f4f9ff;
  --white: #ffffff;
  --border: #e4edf5;
  --shadow: 0 15px 45px rgba(7, 59, 145, 0.10);
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.logo {
  width: 54px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.brand:hover .logo {
  transform: rotate(-3deg) scale(1.07);
  filter: drop-shadow(0 8px 14px rgba(7, 142, 234, 0.25));
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.5px;
}

.brand-text .a { color: var(--navy); }
.brand-text .b { color: var(--blue); }
.brand-text .c { color: var(--green); }

nav {
  display: flex;
  gap: 25px;
  font-weight: 650;
  color: #405168;
}

nav a {
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--blue);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  padding: 12px 21px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-3px) scale(1.02);
}

.nav-cta,
.btn-primary {
  background: linear-gradient(90deg, var(--navy), var(--blue));
  color: #ffffff;
  box-shadow: 0 9px 24px rgba(7, 142, 234, 0.24);
}

.btn-green {
  background: linear-gradient(90deg, #3bb82c, var(--green));
  color: #ffffff;
  box-shadow: 0 9px 24px rgba(121, 212, 0, 0.24);
}

/* HERO SECTION */
.hero {
  padding: 35px 0 65px;
  background: radial-gradient(circle at 85% 15%, rgba(121, 212, 0, 0.16), transparent 28%), linear-gradient(180deg, #f7fbff, #ffffff);
  position: relative;
  overflow: hidden;
}

/* Elementor container spacing resets */
.elementor-10 .elementor-top-section {
  padding: 0 !important;
  margin: 0 !important;
}

.elementor-10 .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 0 !important;
}

.kovai-page-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero:before,
.hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero:before {
  width: 330px;
  height: 330px;
  right: -110px;
  top: -120px;
  background: radial-gradient(circle, rgba(24, 197, 232, 0.18), transparent 68%);
  animation: floatBlob 8s ease-in-out infinite;
}

.hero:after {
  width: 280px;
  height: 280px;
  left: -130px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(121, 212, 0, 0.16), transparent 68%);
  animation: floatBlob 10s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: #eaf7ff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -2.8px;
  margin-bottom: 20px;
}

h1 .blue { color: var(--blue); }
h1 .green { color: var(--green); }

.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: cardFloat 5s ease-in-out infinite;
}

.hero-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--green));
}

.hero-card h3 {
  font-size: 24px;
  margin: 10px 0 15px;
  color: var(--ink);
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
  display: flex;
  align-items: center;
}

.hero-card li:last-child {
  border: 0;
}

.tick {
  color: var(--green);
  font-weight: 900;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(7, 59, 145, 0.08);
  font-size: 13px;
  font-weight: 800;
  color: #35516c;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(121, 212, 0, 0.45);
  animation: pulseDot 2s infinite;
}

/* SERVICES SECTION */
section {
  padding: 82px 0;
}

.section-head {
  text-align: center;
  max-width: 730px;
  margin: 0 auto 45px;
}

.section-head h2 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.services {
  background: var(--light);
}

.carousel-wrap {
  position: relative;
}

.service-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 8px 3px 18px;
}

.service-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}

.card {
  background: #ffffff;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(7, 59, 145, 0.05);
  transition: 0.25s;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.35s ease;
}

.card:hover:before {
  width: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, #eaf4ff, #efffdc);
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

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

.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--navy);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(7, 59, 145, 0.08);
  transition: 0.25s;
  display: grid;
  place-items: center;
}

.carousel-btn:hover {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #ffffff;
  transform: translateY(-2px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #cbd8e5;
  cursor: pointer;
  padding: 0;
  transition: 0.25s;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.about-box {
  border-radius: 28px;
  padding: 35px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  color: #ffffff;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}

.about-box .big {
  font-size: 62px;
  font-weight: 900;
  line-height: 1;
}

.about-box span {
  color: #b9ff52;
}

.about h2 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.about p {
  color: var(--muted);
  margin-bottom: 15px;
  font-size: 16px;
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.checks div {
  font-weight: 600;
}

.checks b {
  color: var(--green);
  margin-right: 6px;
}

/* PROCESS SECTION */
.process {
  background: linear-gradient(180deg, #f8fcff, #ffffff);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.num {
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.step:hover .num {
  transform: translateX(5px);
}

.step h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
}

/* SEO SECTION */
.seo {
  background: #f5fbff;
}

.seo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.seo h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.seo p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.keyword-list span {
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #dbe9f3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #31506b;
}

/* OWNER SECTION */
.owner {
  background: #ffffff;
}

.owner-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 10px 35px rgba(7, 59, 145, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.owner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 55px rgba(7, 59, 145, 0.14);
}

.owner-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.owner-card h2 {
  font-size: 32px;
  margin-bottom: 6px;
  color: var(--navy);
}

.owner-card p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 8px;
}

/* CONTACT SECTION */
.contact {
  background: linear-gradient(135deg, #06347d, #087fdb);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.contact h2 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 15px;
}

.contact p {
  color: #e4f2ff;
  font-size: 17px;
}

.contact-card {
  background: #ffffff;
  color: var(--ink);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border: 0;
}

.contact-item small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item a {
  font-weight: 800;
  color: var(--navy);
  font-size: 18px;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--blue);
}

.contact-item strong {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  display: block;
}

/* FOOTER */
footer {
  padding: 25px 0;
  background: #061d42;
  color: #c7d7eb;
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  font-weight: 900;
  color: #ffffff;
  font-size: 18px;
}

.footer-brand span {
  color: var(--green);
}

/* ANIMATIONS & EFFECTS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes floatBlob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, 20px, 0); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(121, 212, 0, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(121, 212, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(121, 212, 0, 0); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 850px) {
  .service-slide {
    flex-basis: calc((100% - 20px) / 2);
  }
  nav {
    display: none;
  }
  .hero-grid,
  .about-grid,
  .seo-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding-top: 30px;
  }
}

@media (max-width: 560px) {
  .service-slide {
    flex-basis: 100%;
  }
  .hero-card {
    animation: none;
  }
  .nav-cta {
    display: none;
  }
  .cards,
  .steps,
  .checks {
    grid-template-columns: 1fr;
  }
  section {
    padding: 62px 0;
  }
  .hero p {
    font-size: 17px;
  }
  h1 {
    letter-spacing: -1.7px;
  }
  .section-head h2,
  .about h2,
  .seo h2,
  .contact h2 {
    font-size: 31px;
  }
  .brand-text {
    font-size: 17px;
  }
  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
