/* nk.css - Professional CSS for DigitallyFuture AEO Packages */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --success: #27ae60;
  --warning: #f39c12;
  --gradient: linear-gradient(135deg, #3498db, #2c3e50);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background-color: #f9f9f9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  color: white;
}

.btn:active {
  transform: translateY(-1px);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

/* 3D Background Elements */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(40px);
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  top: 10%;
  left: 10%;
  animation: float 20s infinite ease-in-out;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 60%;
  right: 10%;
  animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--primary);
  bottom: 10%;
  left: 20%;
  animation: float 30s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(15px) rotate(240deg);
  }
}

/* Top Bar */
.top-bar {
  background: var(--dark);
  color: white;
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .links a {
  color: white;
  margin-right: 20px;
  font-size: 0.85rem;
}

.top-bar .links a:hover {
  color: var(--accent);
}

.top-bar .phone {
  display: flex;
  align-items: center;
}

.top-bar .phone i {
  margin-right: 8px;
  color: var(--accent);
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light);
  color: var(--dark);
  margin-left: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-3px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

.close-btn {
  display: none;
  font-size: 2rem;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 150px 0 100px;
  background: var(--gradient);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  margin-right: 30px;
  margin-bottom: 10px;
}

.hero-highlights i {
  color: var(--accent);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
}

.floating-element:nth-child(2) {
  top: 60%;
  left: 5%;
}

.floating-element:nth-child(3) {
  top: 30%;
  right: 10%;
}

.floating-element:nth-child(4) {
  top: 70%;
  right: 15%;
}

.floating-element:nth-child(5) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Packages Section */
.packages {
  background: white;
}

.plans {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.plan {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.plan:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.plan.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.plan.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent);
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.plan-header h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
}

.price span {
  font-size: 1rem;
  color: #666;
}

.plan-header p {
  color: #666;
  font-size: 0.9rem;
}

.plan ul {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
}

.plan li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
}

.plan li:last-child {
  border-bottom: none;
}

.plan li i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.plan li i.fa-check {
  color: var(--success);
}

.plan li i.fa-times {
  color: #ccc;
}

/* Service Details */
.service-details {
  background: var(--light);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.detail-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.detail-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 1.8rem;
}

.detail-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.detail-card p {
  margin-bottom: 20px;
  color: #666;
}

.detail-card ul {
  list-style: none;
}

.detail-card li {
  padding: 8px 0;
  position: relative;
  padding-left: 20px;
}

.detail-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Process Section */
.process {
  background: white;
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 4px;
  height: 100%;
  background: var(--light);
  z-index: 1;
}

.step {
  display: flex;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: 30px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.step-content {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  flex: 1;
}

.step-content h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* Benefits Section */
.benefits {
  background: var(--light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.benefit h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Case Studies */
.case-studies {
  background: white;
}

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.case {
  background: var(--light);
  border-radius: 15px;
  padding: 30px;
  transition: var(--transition);
  border-left: 5px solid var(--secondary);
}

.case:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.case h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.case p {
  margin-bottom: 20px;
}

/* FAQ Section */
.faq {
  background: var(--light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

summary {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: var(--transition);
}

summary:hover {
  background: #f9f9f9;
}

summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

details[open] summary::after {
  content: '-';
}

details[open] summary {
  background: var(--secondary);
  color: white;
}

details p {
  padding: 0 20px 20px;
  color: #666;
}

/* CTA Contact Section */
.cta-contact {
  background: white;
}

.cta-contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.cta {
  background: var(--gradient);
  color: white;
  padding: 50px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.cta h2 {
  color: white;
  margin-bottom: 20px;
}

.cta p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.contact h2 {
  margin-bottom: 20px;
  text-align: center;
}

.contact form {
  display: flex;
  flex-direction: column;
}

.contact input,
.contact select,
.contact textarea {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.contact button {
  align-self: flex-start;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
}

.footer-col p {
  margin-bottom: 15px;
  color: #bbb;
}

.footer-col a {
  display: block;
  color: #bbb;
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-col.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  margin-bottom: 20px;
}

.footer-col.social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.newsletter {
  margin-top: 20px;
}

.newsletter h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #bbb;
}

.newsletter form {
  display: flex;
}

.newsletter input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 50px 0 0 50px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter input::placeholder {
  color: #bbb;
}

.newsletter button {
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter button:hover {
  background: #c0392b;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .cta-contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .plan.featured {
    transform: scale(1);
  }
  
  .plan.featured:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }
  
  .top-bar .links {
    margin-bottom: 10px;
  }
  
  .hamburger {
    display: block;
  }
  
  .close-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    overflow-y: auto;
  }
  
  nav.active {
    right: 0;
  }
  
  nav a {
    margin: 0 0 20px;
    font-size: 1.1rem;
    width: 100%;
  }
  
  .menu {
    width: 100%;
  }
  
  .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 10px 0 0 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  
  .menu.active .dropdown {
    display: block;
  }
  
  .social-icons {
    margin-top: 30px;
  }
  
  .process-steps::before {
    left: 25px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .details-grid,
  .benefits-grid,
  .cases {
    grid-template-columns: 1fr;
  }
  
  .plans {
    flex-direction: column;
    align-items: center;
  }
  
  .plan {
    width: 100%;
    max-width: 100%;
  }
  
  .cta,
  .contact {
    padding: 30px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
/* ===== FIX STRAY COLOR BAR ===== */
html, body {
  overflow-x: hidden !important;
  background-color: #ffffff !important;
}

.bg-shapes {
  left: 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.shape {
  opacity: 0.08; /* reduced for less visible blur spill */
}

/* ===== MOBILE RESPONSIVE FIX ===== */
@media (max-width: 768px) {
  /* General layout adjustments */
  .container {
    padding: 0 15px;
  }

  .hero {
    min-height: auto;
    padding: 80px 0;
    background-position: center;
    background-size: cover;
  }

  .hero-content {
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  /* Fix grid-based sections */
  .about-content,
  .automation-container,
  .cta-contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Prevent horizontal scroll */
  .floating-elements {
    overflow: hidden;
    max-width: 100vw;
  }

  /* Reduce background animation area */
  .shape-1, .shape-2, .shape-3 {
    width: 300px;
    height: 300px;
  }
}

/* ===== EXTRA SAFETY FIX ===== */
body::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: transparent;
  z-index: -2;
}
