@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

:root {
    --primary-color: #000000;
    --secondary-color: #000000;
    --bg-primary: #ffffff;
    --text-color: #222222;
    --bg-secondary: #000000;
    --card-background: #f4f4f4;
    --weight-semibold: 600;
    --width-medium: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

body {
    background: var(--bg-primary);
    color: var(--text-color);
    font-family: "Raleway", sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Match navbar height */
}

/* Add these styles to your CSS */
html {
    height: 100%;
}

.container {
    max-width: var(--width-medium);
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Add scroll margin to all target sections */
#about,
#contact,
#services,
#blog {
    scroll-margin-top: 50px; /* Height of your navbar */
}

h1::selection,
h2::selection {
    color: #111;
    background: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.9rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.82rem;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    margin: 5px 0;
    background-color: var(--bg-secondary);
    color: var(--bg-primary);
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 8rem;
    padding: 1rem;
}

.header-container > div {
    margin-top: 1rem;
}

/* Add these styles to your CSS */
.image-container {
  position: relative;
  width: 150px;
  height: 150px;
}

.logo-intro {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.profile-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: none; /* Disable initial animation */
}

/* Show profile image after transition */
.profile-image.loaded {
  opacity: 1;
  animation: bounce 1s infinite alternate;
}

.content-text {
    text-align: center;
    margin: 1.5rem 0;
}

.content-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    transition: 0.2s ease-in-out;
}

.content-text p {
    padding: 0.5rem;
    margin: 0 auto;
    max-width: 700px;
}

.about-container,
.contact-container {
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1rem;
    max-width: 600px;
    width: 100%;
    margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 2px solid black;
    outline: none;
}

.contact-form button {
    padding: 0.75rem;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    align-self: flex-start;
}

.profile-image {
    width: 150px;
    border-radius: 50%;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0px); }
    to { transform: translateY(-10px); }
}

.division {
    width: 100%;
    height: 2px;
    background-color: var(--card-background);
    margin-top: 0rem;
    margin-bottom: 1rem;
}

#footer {
    margin-top: auto;
    background: #111111;
}

#footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    min-height: 160px;
    text-align: center;
}

#footer a {
    font-size: 0.8rem;
    color: #fff;
}

#footer a:hover {
    opacity: 0.6;
}

#footer .social {
    margin: 0.9rem 0;
}

#footer .social img {
    width: 20px;
    height: 20px;
}

#footer .social a {
    margin: 0 0.5rem;
}

#footer p {
    font-size: 0.8rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--bg-primary);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    width: 100%;
}

.navbar .nav-menu {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
}

.navbar .nav-link {
    margin: 0 1rem;
    font-size: 0.8rem;
    font-weight: var(--weight-semibold);
}

.navbar #logo img {
    display: block;
    width: 100px;
}

.hamburger {
    display: none;
    margin-bottom: 0.1rem;
    cursor: pointer;
    z-index: 1000;
}

.bar {
    display: block;
    width: 23px;
    height: 3px;
    margin: 4px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 30px;
    background-color: var(--bg-secondary);
}

.services-container {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.service-card {
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: #555;
}

@media (max-width: 670px) {
    .navbar .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background-color: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        color: white;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    .close-icon {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2.5rem;
        color: white;
        cursor: pointer;
        z-index: 1000;
        display: block;
    }

    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu:not(.active) .close-icon {
        display: none;
    }

    .container {
      padding: 1rem 1rem !important;
  }

  /* Header adjustments */
  .header-container {
      margin-top: 6rem;
      padding: 1rem;
  }

  /* Service card spacing */
  .services-grid {
      padding: 0 1rem;
  }

  /* Contact form spacing */
  .contact-form {
      padding: 1rem;
  }

  /* Content text sizing */
  .content-text h2 {
      font-size: 2.2rem;
  }

  /* Navbar logo sizing */
  .navbar #logo img {
      width: 80px;
  }

}

@media (min-width: 671px) {
    .close-icon {
        display: none !important;
    }
}



/* ============================= */
/* BLOG DETAIL PAGE */
/* ============================= */

.blog-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  font-size: 0.9rem;
  color: #555;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Blog Header */
.blog-header h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Cover Image */
.blog-cover {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
}

/* Blog Body */
.blog-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #222;
}

/* Paragraphs */
.blog-body p {
  margin-bottom: 1.6rem;
}

/* Headings */
.blog-body h2 {
  font-size: 1.9rem;
  margin: 3rem 0 1rem;
  line-height: 1.3;
}

/* Lists */
.blog-body ul {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.blog-body li {
  margin-bottom: 0.6rem;
}

/* Blockquote */
.blog-body blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: #f6f6f6;
  border-left: 4px solid #000;
  font-style: italic;
  font-size: 1.1rem;
  color: #333;
}

/* Blog Footer */
.blog-footer {
  margin-top: 4rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.blog-tags span {
  font-size: 0.8rem;
  padding: 6px 12px;
  background: #000;
  color: #fff;
  border-radius: 20px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 2rem;
  }

  .blog-body {
    font-size: 1rem;
  }

  .blog-body h2 {
    font-size: 1.6rem;
  }
}


/* ============================= */
/* BLOG LIST PAGE */
/* ============================= */


.blog-list-container {
  padding-bottom: 4rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Blog Row */
.blog-row {
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.blog-row h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.blog-row p {
  font-size: 0.95rem;
  color: #555;
  max-width: 720px;
  margin-bottom: 0.8rem;
}

/* Meta */
.blog-row-meta {
  font-size: 0.8rem;
  color: #777;
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

/* Read more */
.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
}

.blog-read-more:hover {
  text-decoration: underline;
}

/* ============================= */
/* PAGINATION */
/* ============================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 14px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: 0.2s ease;
}

.pagination button:hover {
  background: #000;
  color: #fff;
}

.pagination button.active {
  background: #000;
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .blog-row h3 {
    font-size: 1.3rem;
  }

  .blog-row p {
    font-size: 0.9rem;
  }
}


/* ============================= */
/* SERVICE DETAIL PAGE */
/* ============================= */

.service-detail {
  max-width: 900px;
  padding-bottom: 4rem;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  font-size: 0.9rem;
  color: #555;
}

/* Header */
.service-header h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.service-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
}

/* Body */
.service-body {
  margin-top: 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.service-body p {
  margin-bottom: 1.6rem;
}

.service-body h2 {
  font-size: 1.9rem;
  margin: 3rem 0 1rem;
}

.service-body ul,
.service-body ol {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.service-body li {
  margin-bottom: 0.6rem;
}

/* Footer CTA */
.service-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
  .service-header h1 {
    font-size: 2rem;
  }

  .service-body h2 {
    font-size: 1.6rem;
  }
}
