/* =============================================
   Ponkunnam Garage — Static Site Stylesheet
   Premium Dark Theme with Orange Accent
   ============================================= */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --bg:            #0A0A0A;
  --bg-secondary:  #141414;
  --bg-tertiary:   #1E1E1E;
  --bg-card:       rgba(20, 20, 20, 0.6);

  --accent:        #FF4A00;
  --accent-glow:   rgba(255, 74, 0, 0.4);
  --accent-hover:  #FF6A00;

  --text:          #FFFFFF;
  --text-muted:    #A0A0A0;
  --text-dim:      #6B6B6B;

  --border:        rgba(255, 255, 255, 0.08);
  --glass-border:  rgba(255, 255, 255, 0.05);

  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-full:   9999px;

  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Animated Background Glow ---------- */
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,74,0,0.03) 0%, transparent 50%);
  z-index: -1;
  animation: bgPulse 15s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(1.1); opacity: 1;  }
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s var(--ease);
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,106,0,0.6);
}
.nav-cta::after { display: none !important; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.png') center/cover no-repeat;
  filter: brightness(0.4) contrast(1.2);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.97) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 860px;
  animation: fadeInUp 1s var(--ease);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}
.hero h1 .accent { color: var(--accent); }

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: floatY 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
}
.scroll-indicator .arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
}

@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255,106,0,0.55);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: var(--bg-tertiary);
  transform: translateY(-3px);
}

/* =============================================
   SECTION COMMONS
   ============================================= */
section { padding: 100px 5%; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(255,74,0,0.1);
  border: 1px solid rgba(255,74,0,0.2);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 80px 5%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-color: rgba(255,74,0,0.2);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,74,0,0.1);
  border: 1px solid rgba(255,74,0,0.2);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  color: var(--accent);
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =============================================
   IMAGE SHOWCASE (2 COL)
   ============================================= */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }

.showcase-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.showcase-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s var(--ease);
}
.showcase-img:hover img { transform: scale(1.05); }
.showcase-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

.showcase-text h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.showcase-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.showcase-text ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.showcase-text ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}
.showcase-text ul li .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,74,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* =============================================
   PROCESS / HOW IT WORKS
   ============================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  counter-increment: step;
  transition: transform 0.3s var(--ease);
}
.process-step:hover { transform: translateY(-4px); }

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), rgba(255,74,0,0.3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  line-height: 1;
}

.process-step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #FFB800;
  font-size: 1.1rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #FF8C00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-location { font-size: 0.8rem; color: var(--text-dim); }

/* =============================================
   CONTACT / CTA SECTION
   ============================================= */
.cta-section {
  text-align: center;
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,74,0,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
}
.cta-section > * { position: relative; z-index: 1; }

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,74,0,0.2);
}
.contact-card .icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,74,0,0.1);
  border-radius: 50%;
  color: var(--accent);
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card .label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; }
.contact-card .value { font-weight: 700; font-size: 1.05rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 40px 5%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--text); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Intersection Observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.35s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase.reverse { direction: ltr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }

  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a::after { display: none; }

  .hero { padding: 100px 20px 60px; min-height: 90vh; }
  .hero h1 { letter-spacing: -1px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 50px 20px; }
  section { padding: 60px 20px; }

  .showcase-img img { height: 280px; }

  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 360px; }

  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   LOADING ANIMATION  (spinner used in keyframes)
   ============================================= */
@keyframes rotation {
  0%   { transform: rotate(0deg);   }
  100% { transform: rotate(360deg); }
}
