/* ============================================================
   PIU GLOBAL SERVICES LIMITED — Premium Corporate Stylesheet
   Version: 1.0
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --green: #2E8B57;
  --green-light: #3DA06A;
  --green-dark: #1B5E35;
  --green-pale: #E8F5EE;
  --orange: #E8703A;
  --orange-light: #F0894F;
  --charcoal: #1C2227;
  --slate: #2D3748;
  --silver: #3A4B5C;
  --off-white: #F7F9F7;
  --cream: #FAFAF8;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 2px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 18px; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;


/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--green);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   NAVIGATION
=========================================================== */
#navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(0,0,0,0.08);
  border-bottom-color: rgba(0,0,0,0.06);
}

#navbar.scrolled .nav-link {
  color: var(--charcoal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* ============================================================
    BUTTONS
============================================================ */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:active,
a.btn-primary,
button.btn-primary,
button[type="submit"].btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  background: var(--green) !important;
  color: #ffffff !important;
  border: 2px solid var(--green) !important;
  border-radius: 8px !important;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover,
button[type="submit"].btn-primary:hover {
  background: var(--green-dark) !important;
  border-color: var(--green-dark) !important;
  color: #ffffff !important;
}

.btn-outline,
.btn-outline:link,
.btn-outline:visited,
.btn-outline:active,
a.btn-outline,
button.btn-outline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
  color: var(--charcoal) !important;
  border: 2px solid var(--charcoal) !important;
  border-radius: 8px !important;
}

.btn-outline:hover,
a.btn-outline:hover,
button.btn-outline:hover {
  background: var(--charcoal) !important;
  border-color: var(--charcoal) !important;
  color: #ffffff !important;
}

.btn-outline-dark,
.btn-outline-dark:link,
.btn-outline-dark:visited,
.btn-outline-dark:active,
a.btn-outline-dark,
button.btn-outline-dark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
  color: var(--charcoal) !important;
  border: 1.5px solid rgba(28,34,39,0.25) !important;
}

.btn-outline-dark:hover,
a.btn-outline-dark:hover,
button.btn-outline-dark:hover {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #ffffff !important;
}

.btn-orange,
.btn-orange:link,
.btn-orange:visited,
.btn-orange:active,
button.btn-orange,
a.btn-orange {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  background: var(--orange) !important;
  color: #ffffff !important;
  border: 2px solid var(--orange) !important;
}

.btn-orange:hover,
button.btn-orange:hover,
a.btn-orange:hover {
  background: #d4622f !important;
  border-color: #d4622f !important;
  color: #ffffff !important;
}

/* ============================================================
    SECTION LABELS
============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green);
}

.section-label-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(46,139,87,0.9);
  font-weight: 700;
}
.section-label-light::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green);
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero-bg {
  background: var(--off-white);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(46,139,87,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(232,112,58,0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(247,249,247,0) 0%, rgba(247,249,247,0.3) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(46,139,87,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,139,87,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(46,139,87,0.08);
  top: -100px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(232,112,58,0.06);
  bottom: 10%; left: -50px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: rgba(46,139,87,0.05);
  top: 40%; left: 40%;
  animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.geo {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}
.geo-1 {
  width: 100px; height: 100px;
  border: 2px solid var(--green);
  top: 20%; right: 15%;
  transform: rotate(45deg);
  animation: geoRotate 20s linear infinite;
}
.geo-2 {
  width: 60px; height: 60px;
  border: 2px solid var(--orange);
  bottom: 30%; right: 30%;
  animation: geoRotate 15s linear infinite reverse;
}
.geo-3 {
  width: 40px; height: 40px;
  background: var(--green);
  top: 60%; left: 10%;
  animation: geoRotate 25s linear infinite;
}

@keyframes geoRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero animations */
.hero-badge {
  animation: fadeInDown 0.8s ease forwards;
}
.hero-headline {
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-sub {
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-cta {
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
  animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-visual {
  animation: fadeIn 1s ease 0.5s both;
}

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

/* Hero badge */
.hero-badge {
  background: rgba(46,139,87,0.08);
  border: 1px solid rgba(46,139,87,0.2);
  padding: 6px 14px;
  border-radius: 100px;
}

/* Hero card stack */
.card-stack {
  position: relative;
  width: 340px;
  height: 300px;
  margin: 0 auto;
}

.card-back, .card-mid, .card-front {
  position: absolute;
  border-radius: 4px;
  background: white;
}

.card-back {
  width: 300px; height: 220px;
  bottom: 0; right: -20px;
  background: var(--green-pale);
  border: 1px solid rgba(46,139,87,0.15);
  transform: rotate(6deg);
}

.card-mid {
  width: 300px; height: 220px;
  bottom: 10px; right: -5px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  transform: rotate(2deg);
  box-shadow: var(--shadow-sm);
}

.card-front {
  width: 300px; height: 240px;
  bottom: 20px; right: 20px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow-md);
}

.card-front-inner {
  padding: 24px;
}

.progress-track {
  height: 4px;
  background: var(--green-pale);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: 100px;
  animation: progressGrow 2s ease forwards;
}
@keyframes progressGrow {
  from { width: 0 !important; }
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 10px 14px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  white-space: nowrap;
}
.float-badge-1 { top: 30px; left: -20px; }
.float-badge-2 { bottom: 40px; left: -30px; }

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

/* Scroll indicator */
.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(138,155,176,0.4);
  border-radius: 100px;
  position: relative;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--green);
  border-radius: 100px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  60% { top: 18px; opacity: 0.3; }
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}

/* ============================================================
    CLIENTS MARQUEE
============================================================ */
.clients-marquee {
  overflow: hidden;
  position: relative;
}
.clients-marquee::before,
.clients-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.clients-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #181B20, transparent);
}
.clients-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #181B20, transparent);
}

.clients-track {
  display: flex;
  gap: 60px;
  animation: marquee 25s linear infinite;
  width: max-content;
  align-items: center;
}

.client-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0 20px;
}

.client-pill img {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.client-pill:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-image-block {
  position: relative;
}

.about-img-main {
  height: 420px;
  background: var(--green-pale);
}

.about-graphic {
  width: 100%;
  height: 100%;
  padding: 40px;
}

.about-accent-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  border-radius: 2px;
}

.pillar-card {
  cursor: default;
}

/* ============================================================
   SERVICES
============================================================ */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 32px;
  height: 100%;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-card-inner {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  transition: width 0.4s ease;
}
.service-card:hover .service-card-accent { width: 100%; }

.service-icon svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   PROJECT CARDS
============================================================ */
.project-card {
  transition: all var(--transition);
  cursor: default;
}
.project-card:hover { transform: translateY(-6px); }

.project-card-top {
  position: relative;
}
.project-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(46,139,87,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(232,112,58,0.08) 0%, transparent 40%);
}

/* ============================================================
   INDUSTRIES
============================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
}

.industry-tile {
  position: relative;
  background: white;
  padding: 36px 28px;
  transition: all var(--transition);
  cursor: default;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  border-right: 1px solid rgba(0,0,0,0.04);
}
.industry-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--green);
  transition: height 0.35s ease;
}
.industry-tile:hover {
  background: #F7F9F7;
  box-shadow: inset 0 0 0 1px rgba(46,139,87,0.15);
}
.industry-tile:hover::after {
  height: 100%;
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
}

.testimonial-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testi-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 2px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--charcoal);
  transition: all var(--transition);
}
.testi-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.testi-dot.active {
  background: var(--green);
  width: 32px;
  border-radius: 100px;
}

/* ============================================================
   BLOG CARDS
============================================================ */
.blog-card { cursor: default; }

.blog-bg-deco {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(46,139,87,0.12) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(232,112,58,0.08) 0%, transparent 50%);
}

/* ============================================================
    CONTACT FORM
============================================================ */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 10px;
}

.form-input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--charcoal);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,139,87,0.12);
}

.form-input::placeholder { color: rgba(138,155,176,0.7); }

.form-select { cursor: pointer; }

.form-textarea { resize: vertical; min-height: 140px; }

.form-group { position: relative; }

/* ============================================================
    BACK TO TOP
============================================================ */
#back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 24px !important;
    right: 24px !important;
    width: 56px !important;
    height: 56px !important;
  }
}

/* ============================================================
   FOOTER
============================================================ */
footer a { text-decoration: none; }

/* ============================================================
   ACCESSIBILITY
============================================================ */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ============================================================
   ANIMATIONS (AOS-like custom)
============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .about-img-main { height: 320px; }
}

@media (max-width: 768px) {
  .card-stack { display: none; }
  .hero-stats { gap: 20px; }
  .about-accent-card { right: 0; bottom: -15px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-inner { padding: 0 16px; }
}

@media (max-width: 640px) {
  .hero-headline { font-size: 2.75rem; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .about-img-main { height: 240px; }
  .about-content { font-size: 1rem; }
}

/* ============================================================
   DARK SECTION READABILITY
============================================================ */
.dark-section .text-gray-300,
.dark-section .text-gray-400,
.dark-section .text-gray-500 {
  color: #D1D5DB !important;
}

.dark-section .text-piu-silver {
  color: #C8D0D8 !important;
}

.dark-section .section-label-light {
  color: #34D399 !important;
}

.service-card .text-gray-300 {
  color: #D1D5DB !important;
}

/* ============================================================
   BLOG / POST CONTENT TYPOGRAPHY
============================================================ */
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1a1a1a;
}
.post-content p {
  margin-bottom: 1.6em;
}
.post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 2.4em;
  margin-bottom: 0.7em;
  line-height: 1.25;
}
.post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}
.post-content h2 + h3 {
  margin-top: 0.5em;
}
.post-content ul,
.post-content ol {
  margin-bottom: 1.6em;
  padding-left: 1.5em;
}
.post-content ul {
  list-style: disc;
}
.post-content ol {
  list-style: decimal;
}
.post-content li {
  margin-bottom: 0.5em;
}
.post-content li strong {
  color: var(--charcoal);
}
.post-content blockquote {
  border-left: 4px solid var(--green);
  margin: 2em 0;
  padding: 0.8em 1.5em;
  background: var(--green-pale);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--charcoal);
}
.post-content blockquote p {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6em;
  font-size: 0.95rem;
}
.post-content th,
.post-content td {
  padding: 0.75em 1em;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.post-content th {
  background: var(--green-pale);
  font-weight: 700;
  color: var(--charcoal);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-content td {
  background: #fff;
}
.post-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover {
  color: var(--green-dark);
}
.post-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2.5em 0;
}
.post-content em {
  font-style: italic;
}
.post-content strong {
  font-weight: 700;
  color: var(--charcoal);
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5em 0;
}
.post-content pre {
  background: #f1f5f9;
  padding: 1em 1.2em;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.6em;
}
.post-content code {
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
  #navbar, #back-to-top, .clients-marquee { display: none; }
  body { background: white; color: black; }
}
