/* ============================
   Global Styles
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background-color: #0f0f0f;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================
   Header / Navbar
============================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #222;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  width: 40px;
  height: 40px;
}

header .logo span {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2ba6ff;
}

header nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

header nav a:hover {
  color: #2ba6ff;
}

/* ============================
   Section Layout (Alternating)
============================ */
section {
  padding: 120px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 100vh;
  background: #181818;
  border-bottom: 1px solid #222;
}

/* Alternate layout every even section */
section:nth-of-type(even) {
  flex-direction: row-reverse;
  background: #121212; /* subtle variation */
}

/* ============================
   Split Layout Styling
============================ */
.split-text {
  flex: 1;
}

.split-text h1,
.split-text h2 {
  color: #2ba6ff;
  margin-bottom: 20px;
  font-size: 2.4rem;
}

.split-text p {
  margin-bottom: 15px;
  color: #ccc;
}

.split-text ul {
  margin: 10px 0 20px 20px;
}

.split-text ul li {
  margin-bottom: 8px;
}

.split-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
}

/* Subtle zoom-in effect on hover */
.split-image img:hover {
  transform: scale(1.03);
}

/* ============================
   Buttons
============================ */
.btn {
  display: inline-block;
  background-color: #2ba6ff;
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #1a8be0;
  box-shadow: 0 0 12px rgba(43, 166, 255, 0.6);
}

/* ============================
   Footer
============================ */
footer {
  background-color: #111;
  text-align: center;
  padding: 25px 10px;
  font-size: 0.95rem;
  color: #aaa;
  border-top: 1px solid #333;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* ============================
   Responsive Design
============================ */
@media (max-width: 900px) {
  section {
    flex-direction: column;
    text-align: center;
    padding: 100px 5%;
  }

  header {
    flex-direction: column;
    padding: 20px;
  }

  header nav {
    margin-top: 10px;
  }

  header nav a {
    margin: 0 10px;
    font-size: 0.95rem;
  }

  .split-text h1,
  .split-text h2 {
    font-size: 2rem;
  }

  .split-image img {
    margin-top: 20px;
  }
}

/* ============================
   Animation (Fade-in on Scroll)
============================ */
.split-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.split-section.visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}
