/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #1e1e1e;
  color: #e0e0e0;
  line-height: 1.6;
}
a, .cta-btn {
  color: #48b0f7;
  text-decoration: none;
}
a:hover, .cta-btn:hover, button:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  border-radius: 8px;
}
ul {
  list-style: none;
}

/* Header & Footer */
header, footer {
  background: #121212;
  padding: 1rem 2rem;
}
footer {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header nav ul {
  display: flex;
  gap: 1.5rem;
}
.site-header h1 a {
  color: inherit;
  text-decoration: none;
}
.site-header h1 a:hover {
  text-decoration: underline;
}

/* Sections */
section, .hero, .contact-page {
  padding: 3rem 2rem;
}
.hero, .contact-page {
  background: #121212;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h2, .hero p {
  text-align: center;
}

/* CTA Button */
.cta-btn, button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #48b0f7;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
button {
  color: #121212;
}
button:hover {
  background: #3098df;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.gallery img {
  width: calc(33.333% - 1rem);
}

/* Contact Page */
.contact-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}
.contact-image {
  flex: 1 1 50%;
}
.contact-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.contact-text {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-text h1 {
  font-size: 3rem;
  font-weight: 800;
}
.contact-block h3 {
  color: #48b0f7;
  font-weight: 600;
  font-size: 1.2rem;
}
.contact-block p, .contact-block a {
  color: #fff;
  line-height: 1.6;
}

/* Contact Form */
.contact-form-section {
  max-width: 700px;
  margin: 0 auto;
}
.contact-form-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  padding: 0.75rem;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
}

/* Cert Banner */
.cert-banner-wrapper {
  overflow: hidden;
  background: #1e1e1e;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 1rem 0;
  margin-bottom: 3rem;
  position: relative;
  user-select: none;
  width: 100%;
}
.cert-banner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}
.cert-item {
  flex: none;
  margin: 0 2rem;
  text-align: center;
  color: #48b0f7;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  min-width: 140px;
}
.cert-title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.cert-image {
  width: 140px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(72, 176, 247, 0.6);
  background: #121212;
  cursor: zoom-in;
}
.cert-banner-wrapper:hover .cert-banner {
  cursor: grab;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .gallery img {
    width: 100%;
  }
  .site-header nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .cert-item {
    margin: 0 1rem;
    min-width: 100px;
  }
  .cert-title {
    font-size: 0.9rem;
  }
  .cert-image {
    width: 100px;
  }
}

/* Modal */
.modal {
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #48b0f7;
}
.modal-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #121212;
  color: #fff;
  padding: 1rem 2rem;
  text-align: center;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}
.cookie-consent.show {
  transform: translateY(0);
}
.cookie-consent button {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  background-color: #48b0f7;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-consent button:hover {
  background-color: #3098df;
}
.portfolio-category {
  margin-bottom: 3rem;
}
.portfolio-category h3 {
  margin-bottom: 1rem;
  color: #48b0f7;
  font-size: 1.5rem;
}
.portfolio-toggle {
  text-align: center;
  margin-bottom: 2rem;
}

.toggle-btn {
  background: none;
  border: 2px solid #48b0f7;
  color: #48b0f7;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.toggle-btn:hover,
.toggle-btn.active {
  background: #48b0f7;
  color: #121212;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.blog-list li a {
  font-size: 1.1rem;
  color: #e0e0e0;
  transition: color 0.3s;
}

.blog-list li a:hover {
  color: #48b0f7;
  text-decoration: underline;
}
