header{
  background: linear-gradient(rgba(47,58,68,0.6), rgba(47,58,68,0.6)),
  url('https://images.unsplash.com/photo-1557683316-973673baf926');
  background-size:cover;
  background-position:center;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0f2027;
  color: white;
}

/* logo css*/
.logo img {
  height: 50px;
  width: auto;
}

/* NAV */
.nav{
position: fixed;
top: 0;
left: 0;
width: 100%;
display: flex;
gap: 30px; /* increase spacing */
justify-content: space-between;
align-items: center;
padding: 15px 40px;
box-sizing: border-box;
background: rgba(0,0,0,0.4);
backdrop-filter: blur(10px);
z-index: 1000;
}

.nav a{
color: white;
text-decoration: none;
font-weight: 500;
padding: 8px 5px; /* adds breathing space */
position: relative;
}

.nav a::after{
content: '';
position: absolute;
width: 0;
height: 2px;
background: #2bb3b1;
left: 0;
bottom: -5px;
transition: 0.3s;
}

.nav a:hover::after{
width: 100%;
}

/* HERO */
.hero{
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: white;
padding: 20px;

background: linear-gradient(rgba(47,58,68,0.6), rgba(47,58,68,0.6)),
url('https://images.unsplash.com/photo-1557683316-973673baf926');

background-size: cover;
background-position: center;
}

.hero h1{
font-size: 48px;
margin-bottom: 15px;
}

.hero p{
font-size: 18px;
max-width: 600px;
}

/* BUTTON */
.btn{
background: #2bb3b1;
padding: 14px 28px;
color: white;
text-decoration: none;
border-radius: 8px;
transition: 0.3s;
font-weight: 600;
margin-top: 20px;
display: inline-block;
}

.btn:hover{
background: #239c99;
transform: scale(1.05);
}

/* SECTION */
/* SERVICES SECTION */
.services-section {
  padding: 100px 20px;
}

.services-container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.services-container::-webkit-scrollbar {
  height: 8px;
}

.services-container::-webkit-scrollbar-thumb {
  background-color: #2bb3b1;
  border-radius: 4px;
}

.service-card {
  min-width: 250px; /* sets horizontal size */
  max-width: 300px;
  flex-shrink: 0;
  background: #1c2b33;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Hover animation */
.service-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
}

/* Reveal animation */
.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}

/* CARD */
.card{
background: #1c2b33;
padding: 25px;
border-radius: 10px;
transition: 0.4s;
border: 1px solid rgba(255,255,255,0.05);
}

.card:hover{
transform: translateY(-10px);
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* CASE */
.case{
display: flex;
gap: 30px;
margin-top: 50px;
align-items: center;
}

.case img{
width: 45%;
border-radius: 10px;
}

.case div{
text-align: left;
}

.result{
color: #2bb3b1;
font-weight: bold;
display: block;
margin-top: 10px;
}

/* BLOG */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.blog-card h3 {
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 14px;
  margin-bottom: 15px;
}

/* FILTER BUTTONS */
.blog-filters {
  text-align: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 1px solid #2bb3b1;
  color: white;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #2bb3b1;
}

/* FEATURED POST */
.featured-post {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
  background: #1c2b33;
  border-radius: 10px;
  overflow: hidden;
}

.featured-post img {
  width: 50%;
  object-fit: cover;
}

.featured-content {
  padding: 30px;
}

.featured-content h3 {
  font-size: 28px;
}

/* BLOG GRID */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  position: relative;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* TAG */
.tag {
  display: inline-block;
  background: #2bb3b1;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  margin: 10px 0;
}

/* META (date + read time) */
.meta {
  font-size: 12px;
  opacity: 0.7;
  margin: 10px 0;
}

/* HOVER EFFECT */
.blog-card:hover {
  transform: translateY(-10px);
  transition: 0.4s;
}

/* MOBILE */
@media (max-width: 768px) {
  .featured-post {
    flex-direction: column;
  }

  .featured-post img {
    width: 100%;
  }
}

/* SECTION HEADINGS */
.section h2 {
  font-size: 42px;           /* big enough to stand out */
  font-weight: 700;
  color: #2bb3b1;            /* highlight color */
  text-align: center;         /* center alignment */
  margin-bottom: 50px;
  position: relative;
}

/* Add an underline accent */
.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #2bb3b1;
  margin: 15px auto 0;       /* centered under the heading */
  border-radius: 2px;
}

/* Optional: subtle shadow for more depth */
.section h2 {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Smaller screens adjustment */
@media (max-width: 768px) {
  .section h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .section h2::after {
    width: 40px;
    height: 3px;
  }
}

/* Animate headings */
.section h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.section h2.show {
  opacity: 1;
  transform: translateY(0);
}

/* STATS */
.stats {
  display: flex;
  justify-content: space-around;
  padding: 80px;
  background: #111;
}

/* CTA */
.cta {
  padding: 80px;
  text-align: center;
}

/* ANIMATION */
.card, .case {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.card.show, .case.show {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
.footer {
  padding: 20px;
  text-align: center;
  background: #000;
}

/* ARTICLE PAGE */
.article {
  max-width: 800px;
  margin: 100px auto;
  padding: 20px;
}

.article-hero {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.article h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.article .meta {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 30px;
}

.article-content p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-content h2 {
  margin-top: 30px;
  color: #2bb3b1;
}