:root {
  --primary-dark: #293681;
  --primary-bright: #4274D9;
  --secondary-light: #95CCDD;
  --bg-very-light: #D0E7E6;
  --text-dark: #1A202C;
  --text-light: #718096;
  --white: #FFFFFF;
  --gray-100: #F7FAFC;
  --gray-200: #EDF2F7;
  
  --bg-main: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-alt: #F7FAFC;
  
  --transition: all 0.3s ease-in-out;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.dark-theme {
  --bg-main: #1A202C;
  --bg-surface: #2D3748;
  --bg-alt: #171923;
  --text-dark: #F7FAFC;
  --text-light: #A0AEC0;
  --primary-dark: #95CCDD;
  --bg-very-light: #4A5568;
}

body.dark-theme header {
  background-color: rgba(45, 55, 72, 0.95);
}

body.dark-theme .logo a {
  color: var(--text-dark) !important;
}

body.dark-theme .nav-links a {
  color: var(--text-dark);
}

body.dark-theme .hamburger {
  color: var(--text-dark);
}

body.dark-theme .btn-primary {
  color: #FFFFFF;
}

body.dark-theme .btn-secondary {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

body.dark-theme .btn-secondary:hover {
  background-color: var(--text-dark);
  color: var(--bg-main);
}

body.dark-theme .hero {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #1E3A8A 100%);
}

body.dark-theme .hero h1 {
  color: #FFFFFF;
}

body.dark-theme .bg-gradient .section-title,
body.dark-theme .bg-gradient .section-subtitle {
  color: #FFFFFF !important;
}

body.dark-theme #optimization-card {
  color: #000000;
}

body.dark-theme #ai-seo-card,
body.dark-theme #ai-seo-card h2,
body.dark-theme #ai-seo-card h3,
body.dark-theme #ai-seo-card p,
body.dark-theme #ai-seo-card ul,
body.dark-theme #ai-seo-card li,
body.dark-theme #ai-seo-card i,
body.dark-theme #ai-seo-card a.btn-light {
  color: #000000 !important;
}

body.dark-theme .contact-info-card {
  background: var(--bg-surface);
}

body.dark-theme .contact-info-card h3,
body.dark-theme .contact-detail a,
body.dark-theme .contact-detail p {
  color: var(--text-dark);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-alt);
}
.theme-toggle:hover {
  background-color: var(--gray-200);
}
body.dark-theme .theme-toggle {
  color: #F6E05E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  line-height: 1.6;
  background-color: var(--bg-main);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-bright);
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-bright);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary-dark);
}

.btn-light:hover {
  background-color: var(--bg-very-light);
}

/* Header & Nav */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-pill);
  transition: var(--transition);
  padding: 15px 0;
}

header.scrolled {
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  padding-left: 20px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: auto;
  padding-right: 20px;
}

.nav-links a {
  color: var(--primary-dark);
  font-weight: 500;
}

.nav-links a.btn-primary {
  color: var(--white);
}

.nav-links a:hover {
  color: var(--primary-bright);
}

.nav-links a.btn-primary:hover {
  color: var(--white);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-dark);
}

/* Sections */
section {
  padding: 80px 0;
}

.bg-light {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
}

.bg-gradient {
  background: linear-gradient(135deg, #EEF2FF 0%, #FAF5FF 100%);
}

body.dark-theme .bg-light {
  background: var(--bg-alt);
}

body.dark-theme .bg-gradient {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
}

/* Hero Section */
.hero {
  padding: 200px 0 120px;
  background: linear-gradient(135deg, #E6F0FF 0%, #E8E5FF 50%, #FFE5F1 100%);
  color: var(--text-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.dark-theme .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.hero h1 {
  color: var(--primary-dark);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.hero-services {
  font-size: 0.95rem;
  color: var(--bg-very-light);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Trust Strip */
.trust-strip {
  background: linear-gradient(135deg, #2e1065 0%, #701a75 50%, #be185d 100%);
  padding: 20px 40px;
  color: var(--white);
  max-width: 1400px;
  width: 95%;
  margin: -45px auto 40px auto;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.trust-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.trust-item i {
  font-size: 1.5rem;
  color: var(--white);
}

/* Card Grid Layout */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Service Card */
.service-card {
  background: var(--bg-surface);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--primary-bright);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-bright);
  margin-bottom: 20px;
}

.service-card .btn {
  margin-top: auto !important;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Industry Card */
.industry-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.industry-icon {
  background: linear-gradient(135deg, #A5B4FC 0%, #E879F9 100%);
  padding: 40px 20px;
  text-align: center;
}

.industry-icon i {
  font-size: 3rem;
  color: var(--white);
}

.industry-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.industry-content .btn {
  margin-top: auto !important;
}

.industry-content ul {
  margin: 15px 0;
  padding-left: 20px;
  list-style-type: disc;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.two-column > div {
  display: flex;
  flex-direction: column;
}

.two-column > div .btn {
  margin-top: auto !important;
  align-self: flex-start;
}

.feature-list {
  margin-top: 20px;
}

.feature-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li i {
  color: var(--primary-bright);
}

/* Portfolio */
.portfolio-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--gray-200);
}

.portfolio-content {
  padding: 25px;
}

.portfolio-badge {
  display: inline-block;
  background-color: var(--bg-very-light);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Process Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.timeline-step {
  padding: 50px 30px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.timeline-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-very-light);
  margin-bottom: 15px;
  line-height: 1;
}

.timeline-step h4 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

@media (min-width: 993px) {
  .timeline-step:not(:nth-child(3n))::after {
    content: '\f054';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translate(50%, -50%);
    color: var(--primary-bright);
    font-size: 1.5rem;
    z-index: 1;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .timeline-step:not(:nth-child(2n))::after {
    content: '\f054';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translate(50%, -50%);
    color: var(--primary-bright);
    font-size: 1.5rem;
    z-index: 1;
  }
}

@media (max-width: 768px) {
  .timeline-step:not(:last-child)::after {
    content: '\f078';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translate(-50%, 50%);
    color: var(--primary-bright);
    font-size: 1.5rem;
    z-index: 1;
  }
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  margin: 60px 0;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.cta-banner p {
  color: #FFFFFF;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--primary-dark);
  color: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-detail i {
  font-size: 1.5rem;
  color: var(--secondary-light);
  margin-top: 4px;
}

.contact-detail a {
  color: var(--white);
}

.contact-form {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #CBD5E0;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.2);
}

/* Footer */
footer {
  background-color: #1a202c;
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col p {
  color: #A0AEC0;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #A0AEC0;
}

.footer-col ul li a:hover {
  color: var(--primary-bright);
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #2D3748;
  color: #A0AEC0;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #A0AEC0;
  margin-left: 15px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .two-column { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger { display: block; }
  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-ctas { flex-direction: column; }
  .section-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .timeline { grid-template-columns: 1fr; }
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
