/* Main CSS for CodePilotx Website */
:root {
  --primary-color: #0066cc;
  --secondary-color: #001f3f;
  --accent-color: #4d94ff;
  --accent-gradient: linear-gradient(135deg, #0066cc, #5e17eb);
  --header-gradient: linear-gradient(90deg, #2d3748, #1a202c);
  --hero-gradient: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  --section-gradient-1: linear-gradient(135deg, #2193b0, #6dd5ed);
  --section-gradient-2: linear-gradient(135deg, #8e2de2, #4a00e0);
  --section-gradient-3: linear-gradient(135deg, #ee0979, #ff6a00);
  --button-gradient: linear-gradient(90deg, #0066cc, #5e17eb);
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --success-color: #10b981;
  --text-color: #333333;
  --gray-color: #94a3b8;
  --border-color: #e2e8f0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar .container {
  padding-left: 0 !important;
}

/* Navigation */
.navbar {
  background: var(--header-gradient);
  position: sticky;
  top: 0;
  z-index: 1001;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid var(--primary-color);
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230066cc' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.7;
  z-index: -1;
}

.navbar-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  padding-left: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  justify-content: flex-end;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent-color);
  text-shadow: 0 0 8px rgba(77, 148, 255, 0.5);
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  padding: 0.5rem;
  margin-right: 1rem;
}

/* Add styles for the hamburger icon strokes to increase visibility */
.mobile-menu-btn svg {
  stroke: white;
  stroke-width: 2.5px;
}

.mobile-menu-btn:hover svg {
  stroke: var(--accent-color);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: var(--hero-gradient);
  color: white;
}

.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--button-gradient);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #5e17eb, #0066cc);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section styling */
section {
  padding: 5rem 0;
}

#services {
  background: var(--section-gradient-1);
  color: white;
}

#services .section-title h2,
#services .section-title p {
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.service-content p {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-weight: normal;
}

/* Case Studies */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.case-study-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.case-study-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.case-study-content {
  padding: 1.5rem;
}

.case-study-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.case-study-meta {
  color: var(--gray-color);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-details {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-details h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #232526, #414345);
  color: white;
  padding: 3rem 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  color: #cbd5e1;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.blog-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.blog-meta {
  color: var(--gray-color);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* AdSense Areas */
.ad-container {
  margin: 2rem 0;
  padding: 2rem;
  background-color: #f8fafc;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ad-container p {
  color: #64748b;
}

.sidebar-ad {
  margin-bottom: 2rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumbs span {
  color: var(--gray-color);
  margin: 0 0.5rem;
}

/* Service pages */
.service-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.service-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.service-hero h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.service-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.section-bg {  
  background: var(--section-gradient-1);  
  color: white;
}

.section-bg h2, .section-bg .section-title h2 {  
  color: white;
}

.section-bg p, .section-bg .section-title p {  
  color: rgba(255, 255, 255, 0.9);
}

.process-section-bg {
  background: #f8f9fa;
  color: var(--text-color);
}

.process-section-bg h2, .process-section-bg .section-title h2 {
  color: var(--secondary-color);
}

.process-section-bg p, .process-section-bg .section-title p {
  color: var(--text-color);
}

#case-studies {  
  background: linear-gradient(135deg, #11998e, #38ef7d);  
  color: white;
}

#case-studies .section-title h2, 
#case-studies .section-title p {  
  color: white;
}

#case-studies .case-study-meta {  
  color: rgba(255, 255, 255, 0.8);
}

.service-highlights {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border-left: 4px solid #ffdd00;
}

.service-highlights h3 {
  color: white;
}

.service-highlights ul li {
  color: rgba(255, 255, 255, 0.9);
}

.service-highlights ul li:before {
  color: #ffdd00;
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  margin-bottom: 2rem;
}

.process-step-number {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.faq-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--secondary-color);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.expertise-category h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.tech-list {
  list-style: none;
}

.tech-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.tech-list li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.benefit-card h3 {
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.cta-section {
  background: var(--accent-gradient);
  color: white;
  padding: 3rem 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
}

.cta-content .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta-content .btn-primary:hover {
  background-color: var(--light-color);
}

.contact-detail-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-detail-item svg {
  margin-right: 1rem;
  flex-shrink: 0;
  color: var(--primary-color);
}

.contact-detail-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--gray-color);
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.privacy-policy-section {
  padding: 2rem 0 5rem;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.policy-section h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--secondary-color);
}

.policy-section p, .policy-section ul {
  margin-bottom: 1rem;
}

.policy-section ul {
  padding-left: 2rem;
}

/* Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

.service-img-placeholder span, .case-study-img-placeholder span {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Helper Classes */
.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 3rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-lg-8 {
  width: 66.66%;
  padding: 0 15px;
}

.col-lg-4 {
  width: 33.33%;
  padding: 0 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .col-lg-8, .col-lg-4 {
    width: 100%;
  }
  
  .col-lg-4 {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 120px;
    right: -100%;
    flex-direction: column;
    background-color: var(--secondary-color);
    width: 80%;
    height: calc(100vh - 120px);
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    justify-content: flex-start;
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.2rem;
  }
  
  .mobile-menu-btn {
    display: block;
    margin-left: auto;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .service-hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

#about {
  background: var(--section-gradient-2);
  color: white;
}

#about h2,
#about p,
#about .btn-secondary {
  color: white;
}

#about .btn-secondary {
  background-color: transparent;
  border: 2px solid white;
}

#about .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

#faq {
  background: linear-gradient(135deg, #f12711, #f5af19);
  color: white;
}

#faq .section-title h2,
#faq .section-title p,
#faq .faq-item h3 {
  color: white;
}

#faq .faq-answer {
  color: rgba(255, 255, 255, 0.9);
}

/* Tech Icons Styling */
#tech-icons {
  position: absolute;
  z-index: 100;
  will-change: transform;
}

#tech-icons img {
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.1));
} 