/* --- Global Styles --- */
:root {
    --primary-color: #24292e;
    --accent-color: #0366d6;
    --text-color: #333;
    --bg-light: #f6f8fa;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Navigation --- */
/* .navbar {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--bg-light);
    color: var(--accent-color);
} */


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

body {
    font-family: system-ui, sans-serif;
}

/* NAVBAR */
.navbar {
    background: #24292e;
    /* background: #0a1f2f; */
    /* background: var(--primary-color); */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a.active {
    border-bottom: 2px solid #fff;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a1f2f;
        flex-direction: column;
        align-items: center;
        display: none;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links.show {
        display: flex;
    }
}

/* --- Picture Header (Hero) --- */
.hero-header {
    /* Replace 'images/header.jpg' with your actual image path */
   background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('image/header2.jpeg'); /* the last value in rgba is the alpha value */
   /* background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(selectedImage); */
    background-size: cover; 
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #0256c7;
}

/* --- Page Content --- */
.page-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto; /* !! */
    flex: 1; /* Pushes footer down */
}

.page-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--bg-light);
    justify-content: left;
    text-align: left;
    padding-bottom: 10px;
}

.page-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--bg-light);
    justify-content: left;
    text-align: left;
    padding-bottom: 10px;
}

  /* Container for the layout */
  .image-text-container {
    display: flex;
    align-items: center; /* Vertically centers the image and text */
    gap: 2rem; /* Adds space between the image and text */
    max-width: 800px;
    margin: 0 auto; /* Centers the section on the page */
    padding-bottom: 10px;
  }

  /* Image styling */
  .image-text-container img {
    width: 300px; /* Fixed width or use percentage */
    height: auto; /* Maintains aspect ratio */
    border-radius: 8px; /* Optional: rounded corners */
  }

  /* Text styling */
  .image-text-content {
    flex: 1; /* Allows text to take up remaining space */
  }


/* Figure styling */
/* Styling for the figure element */
        .all-figure {
            align-items: center;
            text-align: center; /* Ensures caption is centered under image */
            margin: 0 ;
            padding: 5px;/* Remove default browser margin */
        }

        /* Optional: Add a border or shadow to the figure */
       /* figure {
            border: 1px solid #ccc;
            padding: 10px;
            background: white;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            border-radius: 8px;
        } */

        /* Image styling */
        .all-figure img {
            max: 100%;
            max-width: 300px;
            height: auto;
            display: block; /* Removes bottom spacing */
        }

        /* Caption styling */
        .all-figcaption {
            margin-top: 10px;
            max-width: 300px;
            font-style: italic;
            color: #555;
            margin-right: 0;
            margin-left: 0;
        }

/* ===== Mobile layout ===== */
@media (max-width: 768px) {
    .image-text-container {
        flex-direction: column;  /* image ABOVE text */
        align-items: center;
        text-align: center;
    }

    .image-text-container img {
        max-width: 100%;
    }

    .all-figure {
        align-items: center;
        text-align: center;
    }
    .all-figure img{
        max-width: 100%;
    }

}

/* --- Grid for Portfolio/Services --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* New grid code */
.grid-item {
            background: var(--white);
    border: 1px solid #e1e4e8;
    border-radius: 8px;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

    /*    .grid-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        } */

        .grid-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
        }

        .grid-item-body {
    padding: 20px;
        }

      /*  .grid-item-body h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
        } */

        /* .grid-item-text p {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        } */
/* .card {
    background: var(--white);
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img {
    height: 200px;
     /* background-color: #ddd; /* Placeholder color */
  /*  display: flex;
    align-items: center;
    justify-content: center;
    /* color: #666; */
/* }

.card-body {
    padding: 20px;
}

.card-body h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}
*/
/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Simplified for demo: hide menu on mobile */
    .image-text-section {
      flex-direction: column;
      text-align: center;
    }
    
    .image-text-section img {
      width: 100%;
      max-width: 300px;
    }
}
