/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #c0cfb2;
    color: #f1ebe1;
    line-height: 1.6;
    font-size: 1.1rem;
    
    
}

/* Header Styles */
header {
    
    color: 	rgba(23, 32, 15, 0.527);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 
    
}

header h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
     
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

nav li {
    margin: 0 1rem;
}

nav a {
    
    color: rgba(23, 32, 15, 0.527);
    /*#44624a;*/
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #4ca1af;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-hero-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 5.55rem;
    height: 321px;
    /* or whatever height you prefer */
    position: relative;
    /* For absolute positioning if needed */
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    /* Fill container height */
    display: block;
    transition: transform 0.3s;
    object-fit: cover;
    /* This will crop to fill while maintaining aspect ratio */
    object-position: center;
    /* Focus on center of image */
}

.project-hero-image img:hover {
    transform: scale(1.02);
}

.project-hero-details {
    flex: 1;
    min-width: 300px;
}

.project-meta {
    background-color: rgba(23, 32, 15, 0.527);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.meta-item {
    margin-bottom: 0.8rem;
}

.meta-item h3 {
    color: #E1EEBC;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.meta-item p {
    color: #f2e8d3;
}

.project-links a {
    display: inline-block;
    background-color: #4ca1af;
    color: #f2e8d3;
    padding: 0.7rem 1.5rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.project-links a:hover {
    background-color: #3a7d8a;
}






/* Sections */
.section {
    background-color:rgba(23, 32, 15, 0.527);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    
}

.section h2 {
    color: #E1EEBC;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.section p {
    margin-bottom: 1rem;
 
    
}

.custom-list {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.custom-list li {
    margin-bottom: 0.5rem;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background-color: #f2e8d3;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4ca1af;
    color: #c0cfb2;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.feature-card p{
    color: black
}

/* Footer */
footer {
    background-color:#0b0f0b;
    color: #f2e8d3;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #f2e8d3;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #4ca1af;
}

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

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 0.3rem 0;
    }

    .project-hero {
        flex-direction: column;
    }
}


/* Collapsible buttons */
.collapsible-toggle {
    display: none;
}

.collapsible-content {
    display: none;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition:
        max-height 0.5s ease,
        opacity 0.3s ease 0.1s,
        transform 0.3s ease;
}

.collapsible-toggle:checked~.collapsible-content {
    max-height: 4000px;
    /* Must be larger than content will ever be */
    opacity: 1;
    transform: translateY(0);
}

/* Inner content wrapper - prevents padding from affecting animation */
.content-inner {
    padding: 18px;
    background: #f2e8d3; /*TODO*/
    color: black;
}

.collapsible-btn {
    display: block;
    background: #777;
    color: #f2e8d3;
    padding: 18px;
    cursor: pointer;
    margin-bottom: 5px;
}

.collapsible-btn:hover {
    background: #555;
}

/* Optional: Add a +/- indicator */
.collapsible-btn::after {
    content: '▼';
    float: right;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.collapsible-toggle:checked~.collapsible-btn::after {
    transform: rotate(0deg);
}

.wrapper {
    display: flex;
    gap: 4rem; /* This creates consistent space between flex items */
}

.left {
    flex: 0 0 75%;
}

.right {
    flex: 1; /* Takes remaining space */
    max-height: 200;
}

.center-img{
    display: block;
    margin: auto;
    width: 65%;
}

.collapsible-content {
    display: none;
  }
  
  /* Show only the content immediately after the checked toggle */
  .collapsible-toggle:checked + .collapsible-btn + .collapsible-content {
    display: block;
  }

  /*block code theme*/
 
 
pre {
    padding: 0.5em;
    margin: 0.3em 0;
    border: 1px solid #f0f0f0;
    background: #f8f8f8;
    overflow: auto; /* Ensures scrollbar if code overflows */
    border-radius: 4px; /* Optional rounded corners */
}

 
 

  /*https://www.dhiwise.com/post/display-code-snippets-with-an-html-code-block*/