/* 🌈 Base Styles */
body {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(to bottom, #fef6e4, #fff);
  color: #333;
  transition: background 0.3s ease;
}

body.scrolled {
  background: linear-gradient(to bottom, #ffe8c2, #fef6e4);
}

/* 🧠 Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #4f9da6;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6em;
  font-weight: bold;
  color: white;
  order: 1; /* logo always left */
}

.logo img {
  height: 42px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(255,255,255,0.3);
}

nav {
  display: flex;
  gap: 12px;
  order: 2; /* nav always right */
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffe8c2;
}

/* Active nav link */
nav a.active {
  color: #e9c46a;
}

nav a.active::after {
  content: '';
  display: block;
  height: 3px;
  background: #e9c46a;
  border-radius: 2px;
  margin-top: 4px;
  transition: width 0.3s ease;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
  order: 2; /* always right on mobile */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 📦 Sections */
.section {
  padding: 40px 20px;
  text-align: center;
  scroll-margin-top: 80px;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🎯 Hero */
.hero {
  background: linear-gradient(to right, #4f9da6, #e9c46a);
  color: white;
  padding: 60px 20px;
}

.hero button {
  background: #2a9d8f;
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 30px;
  cursor: pointer;
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

.hero button:hover {
  transform: scale(1.05);
  background: #21867a;
}

/* 🌟 Global Buttons */
button, .btn {
  font-family: 'Fredoka', sans-serif;
  cursor: pointer;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  background: #4f9da6;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background: #21867a;
  transform: scale(1.05);
}

/* 🧩 Services */
.services-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.services-list li {
  font-size: 1.2em;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #333;
  transition: transform 0.3s ease;
}

.services-list li i {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

/* 🎨 Playful Icon Colors */
.icon-dev    { color: #4f9da6; }
.icon-game   { color: #f4a261; }
.icon-edu    { color: #e76f51; }
.icon-ui     { color: #2a9d8f; }
.icon-soft   { color: #e9c46a; }
.icon-money  { color: #8ecae6; }
.icon-brand  { color: #ffafcc; }

.services-list li:hover {
  transform: scale(1.03);
}

.services-list li:hover i {
  transform: rotate(5deg) scale(1.2);
}

/* 🧠 Products */
.products .product {
  margin: 20px auto;
  max-width: 600px;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.products .product:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.products img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 12px;
}

/* 🧱 Screenshot Grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 10px 0;
}

.screenshot-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 🧾 Product Description */
.product-description {
  text-align: left;
  margin-top: 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #333;
}

.product-description .tagline {
  font-size: 1.2em;
  text-align: center;
  font-weight: bold;
  color: #e76f51;
  margin-bottom: 10px;
}

/* 🪧 Ad Banner (Responsive) */
.banner-ads {
  padding: 30px 20px;
  background: #fff8e1;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 40px auto;
  text-align: center;
}

.banner-ads h2 {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #4f9da6;
}

.ad-banner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ad-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.ad-banner:hover {
  transform: scale(1.02);
}

/* Responsive ad scaling */
@media (max-width: 1024px) {
  .ad-banner { max-width: 90%; }
}
@media (max-width: 768px) {
  .banner-ads { padding: 20px 10px; }
  .ad-banner { max-width: 100%; }
  .banner-ads h2 { font-size: 1.3em; }
}
@media (max-width: 480px) {
  .ad-banner img { width: 100%; height: auto; }
}

/* 📱 Mobile Navigation */
@media (max-width: 768px) {
  header {
    flex-direction: row; /* Keep items in a row */
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute; /* Overlay menu */
    top: 60px; /* Below header */
    right: 20px;
    background: #4f9da6; 
    padding: 10px 16px;
    border-radius: 10px;
    z-index: 999;
    width: auto; /* Don't stretch */
    gap: 5px;
  }

  nav.show {
    display: flex;
  }

  nav a {
    width: auto;
    margin: 5px 0;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
  }

  .hamburger {
    display: flex;
  }

  .products .product { max-width: 100%; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 🧠 About Icons */
.icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.icons i {
  font-size: 2.5em;
  transition: transform 0.3s ease;
}

.icons i:hover {
  transform: scale(1.2) rotate(10deg);
}

.icon-rocket { color: #e76f51; }
.icon-puzzle { color: #f4a261; }
.icon-smile  { color: #2a9d8f; }

/* 🧼 Footer */
footer {
  background: #4f9da6;
  color: white;
  padding: 16px;
  text-align: center;
  font-size: 0.9em;
}

/* 📱 Footer Social Icons */
.socials i {
  font-size: 40px;
  margin: 10px;
  transition: 0.3s ease;
  cursor: pointer;
}

.fa-facebook { color: #1877f2; }

.fa-instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fa-tiktok {
  color: #010101;
  text-shadow: 1px 1px 0 #25F4EE, -1px -1px 0 #FE2C55;
}

.socials i:hover { transform: scale(1.2); }

@media (max-width: 480px) {
  .socials {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .socials i {
    font-size: 32px;
    margin: 0;
  }
}

/* ✨ Scroll-to-Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #e76f51;
  color: white;
  border-radius: 50%;
  padding: 12px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: none;
  z-index: 999;
}

#scrollTopBtn:hover {
  background: #d65a3b;
  transform: scale(1.1);
}

/* 🌈 Gradient Text Highlight Utility */
.text-gradient {
  background: linear-gradient(90deg, #f4a261, #e76f51, #2a9d8f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 🪄 Card Hover Utility */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* 🧠 Desktop Header Alignment */
@media (min-width: 769px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    order: 1; /* left */
  }

  nav {
    display: flex !important;
    order: 2; /* right */
    gap: 12px;
  }

  .hamburger {
    display: none; /* hide on desktop */
  }
}


/* Project link style */
.project-link {
  display: inline-flex;              /* Align icon and text */
  align-items: center;
  gap: 8px;                          /* Space between icon and text */
  text-decoration: none;             /* Remove underline */
    color: white;                  /* Project-specific color */
  font-weight: 600;                  /* Slightly bolder text */
  padding: 10px 16px;                /* Add padding for button feel */
  border-radius: 8px;                /* Rounded corners */
  background-color: #4f9da6;         /* Light background */
  transition: all 0.3s ease;         /* Smooth hover effect */
  border: 1px solid transparent;
}

/* Hover effect for project links */
.project-link:hover {
    background-color: #4f9da6;         /* Slightly darker background */
  color: white;                    /* Darker text on hover */
  transform: translateY(-2px);       /* Slight lift */
  box-shadow: 0 6px 10px rgba(0,0,0,0.12);
}

/* Icon inside project link */
.project-link i {
  color: white;                    /* Match icon with text */
  font-size: 1.1rem;
}
