/*
Theme Name: Antigravity
Theme URI: https://github.com/rahulremanan/antigravity-theme
Author: Rahul Remanan
Author URI: https://marketingpro.com
Description: A premium modern WordPress theme for digital marketing specialists. Built with customizer styling, solar system canvas backgrounds, glassmorphism, responsive grid structures, custom post types, and contact form handling.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: antigravity
*/

:root {
  color-scheme: dark;
  --bg: #040812;
  --surface: rgba(12, 17, 34, 0.88);
  --surface-strong: rgba(15, 24, 50, 0.98);
  --surface-soft: rgba(12, 17, 34, 0.7);
  --text: #f5f7ff;
  --muted: #a5b0d3;
  --primary: #7c3aed;
  --primary-strong: #4f46e5;
  --accent: #2dd4bf;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.4);
}

body.light {
  color-scheme: light;
  --bg: #f5f7ff;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-soft: rgba(245, 247, 255, 0.7);
  --text: #091124;
  --muted: #4b5563;
  --primary: #6366f1;
  --primary-strong: #6d28d9;
  --accent: #0f766e;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 25%),
              radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.14), transparent 20%),
              var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(4, 8, 18, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.nav a,
.nav li a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a:hover,
.nav li a:hover {
  color: var(--text);
}

.controls {
  display: flex;
  align-items: center;
}

.theme-toggle {
  border: none;
  background: var(--surface-soft);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 100px);
  padding: 2rem 0;
}

.hero-content {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.14);
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  margin: 0;
  line-height: 0.95;
}

.hero-copy {
  margin: 1.5rem 0 2rem;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.typing-text {
  color: var(--text);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 18px 50px rgba(124, 58, 237, 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  padding: 2rem;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.panel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.panel-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.snapshot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.snapshot-list li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
}

.section-header,
.section-intro {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-label {
  display: inline-flex;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.section-header h2,
.section-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
}

.section-intro p,
.section-header p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.section-grid,
.about-grid,
.services-grid,
.portfolio-grid,
.skills-grid,
.testimonial-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.section-grid {
  grid-template-columns: 1fr;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.about-card p,
.skill-list {
  color: var(--muted);
}

.skill-list {
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.skill-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  color: var(--muted);
  line-height: 1.8;
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.project-card img {
  height: 240px;
  object-fit: cover;
  border-radius: 24px;
}

.project-content {
  padding-top: 1.4rem;
}

.project-meta,
.project-result {
  color: var(--primary);
  font-weight: 600;
  margin: 0.4rem 0;
}

.project-content p {
  color: var(--muted);
  line-height: 1.7;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-card h3 {
  margin: 0 0 1rem;
}

.skill-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-progress {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.4s ease;
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-card p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  line-height: 1.9;
}

.testimonial-meta span {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.testimonial-meta small {
  color: var(--muted);
}

.contact-grid {
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}

.contact-panel h2 {
  margin: 1rem 0 1.5rem;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-details div {
  display: grid;
  gap: 0.35rem;
}

.contact-details a {
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.site-footer {
  padding: 2rem 0 3rem;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.9), var(--bg));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a,
.footer-links li a {
  color: var(--muted);
}

footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.25s ease;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-8px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-up {
  opacity: 0;
  transform: translateY(40px);
  animation: floatIn 1s ease forwards 0.3s;
}

@keyframes floatIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WordPress Navigation styling */
.nav, .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li, .footer-links li {
  display: inline-block;
}

/* WordPress Default Core CSS Classes */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.wp-caption { background: var(--surface-soft); border: 1px solid var(--border); max-width: 100%; padding: 0.5rem; text-align: center; border-radius: 10px; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }

/* Blog posts container style */
.blog-post-card {
  margin-bottom: 2rem;
}
.blog-post-card h2 {
  margin-top: 0;
}
.blog-post-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Comments section styling */
.comments-area {
  margin-top: 3rem;
  padding: 2rem;
}
.comment-list {
  list-style: none;
  padding: 0;
}
.comment-body {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
.comment-meta {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.comment-form {
  display: grid;
  gap: 1rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1rem;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
  }

  .services-grid,
  .portfolio-grid,
  .skills-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  .hero h1 {
    font-size: 3.2rem;
  }

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

  .contact-form input,
  .contact-form textarea {
    padding: 0.9rem 1rem;
  }
}
