:root {
  --primary-color: #791e1e;
  /* Programmer.sk Red */
  --primary-hover: #9c2727;
  --secondary-color: #0284c7;
  /* Web Blue */
  --accent-color: #7c3aed;
  /* Creative Purple */

  /* Light Theme Variables */
  --background-main: #f8fafc;
  --background-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-dark {
  background-color: #0f172a;
  color: #f8fafc;
}

.section-dark .section-subtitle {
  color: #94a3b8;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(121, 30, 30, 0.2);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title-light {
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  vertical-align: middle;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
  margin-left: 10px;
  color: var(--text-main);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--background-main);
  padding-top: 80px;
  /* Navbar space */
}

/* Original Background behind the content, semi-transparent or styled */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Using the original background as requested, but maybe with overlay so text pops? */
  /* Since user wants "Light Page", maybe Hero is light and we use bg image elsewhere? 
       OR Hero is the exception. Let's make Hero light but with the robot. */
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)), url('../images/original_bg.jpg');
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)), url('../images/original_bg.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  animation: fadeIn 1.5s ease;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-main);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  animation: float 6s ease-in-out infinite;
}

/* Services */
.services {
  padding: 100px 0;
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.service-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  /* If icons were dark-bg optimized, might need filter or background circle. 
     The icons I generated were neon on dark. They will look weird on white.
     I should probably put them in a dark circle or generate new ones?
     I'll wrap them in a dark circle for now. */
  background: #0f172a;
  border-radius: 50%;
  padding: 15px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
}

/* Social Proof - Dark Section */
.social-proof {
  padding: 80px 0;
  /* Dark section as requested "some sections dark" */
  background: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)), url('../images/original_bg.jpg');
  background: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)), url('../images/original_bg.webp');
  background-size: cover;
  background-attachment: fixed;
  color: white;
}

.social-proof .section-title {
  background: none;
  -webkit-text-fill-color: initial;
  color: white;
}

.social-proof .section-subtitle {
  color: #cbd5e1;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  color: #f1f5f9;
}

.quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.author {
  font-weight: bold;
  color: var(--secondary-color);
}

/* Process */
.process {
  padding: 100px 0;
  background-color: var(--background-main);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 50px auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #e2e8f0;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.container-timeline {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.container-timeline::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -13px;
  background-color: white;
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.container-left {
  left: 0;
}

.container-right {
  left: 50%;
}

.container-right::after {
  left: -13px;
}

.content-timeline {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.content-timeline h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

/* Contact */
.contact {
  padding: 100px 0;
  background-color: white;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background-color: #f8fafc;
  padding: 50px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.contact-form label {
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background-color: white;
  color: var(--text-main);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(121, 30, 30, 0.1);
}

.calendly-placeholder {
  border: 2px dashed #cbd5e1;
  background-color: white;
}

/* Footer */
/* Footer */
footer {
  background-color: #0f172a;
  padding: 50px 0 20px;
  color: #ffffff;
  /* Pure White */
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 1.15rem;
}

footer p {
  color: #ffffff;
  font-size: 1.3rem;
  /* Very Large for visibility */
  font-weight: 600;
  /* Semi-Bold to guarantee thickness */
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  /* Stronger shadow */
}

footer .seo-text {
  color: #e2e8f0;
  /* Very light gray (Slate-200) */
  font-size: 1rem;
  font-weight: 400;
  margin-top: 30px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    left: 0;
  }

  .timeline::after {
    left: 31px;
  }

  .container-timeline {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .container-left::after,
  .container-right::after {
    left: 15px;
  }

  .container-right {
    left: 0%;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Secondary Sections - Restored */
.icon-box {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.icon-box svg {
  width: 40px;
  height: 40px;
  stroke-width: 2.5px;
}

.icon-dev {
  background-color: #e0f2fe;
  color: #0ea5e9;
}

.icon-analysis {
  background-color: #fef3c7;
  color: #d97706;
}

.icon-support {
  background-color: #fce7f3;
  color: #db2777;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-card h3 {
  color: white !important;
  font-size: 1.25rem;
  margin-bottom: 15px;
  white-space: nowrap;
}

.project-card p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1rem;
  line-height: 1.6;
}

.icon-email {
  background-color: #f0fdf4;
  color: #16a34a;
}

.icon-phone {
  background-color: #fff7ed;
  color: #ea580c;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.personal-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.ivan-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  border: 5px solid #f8fafc;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.personal-info h3 {
  font-size: 1.6rem;
  margin-bottom: 5px;
  color: #1e293b;
}

.personal-info .title {
  color: #791e1e;
  font-weight: 600;
  margin-bottom: 25px;
  display: block;
}

.direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #f8fafc;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  transition: all 0.2s;
}

.contact-link:hover {
  background: #f1f5f9;
  transform: translateX(5px);
}

.company-details {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 20px;
  padding: 40px;
  border: 1px dashed #cbd5e1;
}

.company-details h4 {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-list li {
  font-size: 0.95rem;
  color: #334155;
  /* Darkened from #64748b for better contrast */
  display: flex;
  justify-content: space-between;
}

.details-list li span {
  color: #1e293b;
  font-weight: 600;
}

.coming-soon-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.product-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1e293b;
}

.product-card p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}