/* General Styles */
body { 
   background: linear-gradient(135deg, #f4f4f9, #e0e0e5); 
   color: #333;
   font-family: 'Open Sans', sans-serif;
   line-height: 1.6;
   margin: 0;
   padding: 0;
   text-align: center; /* Center text by default */
}

/* Header Styles */
header {
   position: relative;
   height: 300px; /* Adjusted height */
   width: 100%;
   background: linear-gradient(rgba(22, 20, 21, 0.7), rgba(22, 20, 21, 0.45)), url(../Images/TheBurbles\ Buisness\ Card.png) no-repeat center center;
   background-size: cover;
   text-align: center;
   overflow: hidden;
}

header:before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, .45); /* Dark overlay for better text visibility */
}

header .banner {
   display: flex;
   justify-content: center;
   align-items: center;
   margin: 0 auto;
   width: 85%;
   height: 100%;
   padding-bottom: 30px;
}

header .banner-text { 
   width: 100%; 
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   text-align: center;
   z-index: 1;
}

header .banner-text h1 {
   font: 40px/1.1em 'opensans-bold', sans-serif;
   color: #fff;
   letter-spacing: -2px;
   margin: 0 auto 18px auto;
   text-shadow: 0px 1px 3px rgba(0, 0, 0, .8);
   animation: fadeInDown 1s ease-in-out, pulse 2s infinite;
}

header .banner-text p {
   font-size: 1.2em;
   color: #fff;
   animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInDown {
   from {
       opacity: 0;
       transform: translateY(-20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

@keyframes fadeInUp {
   from {
       opacity: 0;
       transform: translateY(20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Project Sections */
.project-section {
   padding: 80px 0;
   background: #fff; /* Changed to solid white background */
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
   margin: 20px 0;
   text-align: center; /* Center text within sections */
}

.section-title {
   font-size: 2.4em;
   color: #333;
   margin-bottom: 40px;
   text-align: center;
   width: 100%;
   animation: fadeIn 1s ease-in-out;
}

.project-description {
   font-size: 1.1em;
   line-height: 1.6;
   color: #666;
   margin: 0 auto 40px;
   max-width: 800px;
   text-align: center;
   animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
   from {
       opacity: 0;
   }
   to {
       opacity: 1;
   }
}

/* Hero Image */
.hero-image-container {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
   margin: 20px 0;
   max-height: 600px;
   overflow: hidden;
}

.hero-image {
   width: 100%;
   height: auto; /* Adjust height to auto to maintain aspect ratio */
   overflow: hidden;
}

.hero-image img {
  max-height: 600px;
   width: 100%;
   height: auto; /* Adjust height to auto to maintain aspect ratio */
   border-radius: 8px;
   display: block;
   object-fit: cover;
   object-position: center;
   transition: transform 0.3s ease;
}

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

/* Technical Specs */
.tech-specs {
   background: #f8f8f8;
   padding: 25px;
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
   margin-bottom: 30px;
   animation: fadeIn 1s ease-in-out;
}

.tech-specs h2 {
   color: #333;
   margin-bottom: 20px;
}

.tech-specs ul {
   list-style: none;
   padding: 0;
}

.tech-specs li {
   margin: 10px 0;
   padding-left: 20px;
   position: relative;
}

/* Code Display */
.code-block {
   background: #2b2b2b;
   padding: 20px;
   border-radius: 8px;
   color: #fff;
   margin-bottom: 30px;
   animation: fadeIn 1s ease-in-out;
   text-align: left; /* Align text to the left */
   overflow-x: auto; /* Enable horizontal scrolling */
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.code-block h2 {
   color: #fff;
   margin-bottom: 20px;
}

/* Image Gallery */
.image-gallery {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 20px;
   margin: 30px 0;
}

.gallery-image {
   width: 100%;
   border-radius: 8px;
   transition: transform 0.3s ease;
}

.gallery-image:hover {
   transform: scale(1.1);
}

/* Video Section */
.video-container {
   position: relative;
   padding-bottom: 56.25%; /* 16:9 aspect ratio */
   height: 0;
   overflow: hidden;
   max-width: 100%;
   background: #000;
   border-radius: 8px;
}

.video-container iframe {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
   header {
       height: 300px;
   }
   
   .section-title {
       font-size: 2em;
   }
   
   .tech-specs, .code-block {
       margin: 15px 0;
   }
}

/* Specs Grid */
.specs-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
   padding: 20px;
   max-width: 1200px;
   margin: 0 auto;
}

.spec-item {
   background: #f8f8f8;
   padding: 25px;
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
   transition: transform 0.3s ease;
}

.spec-item:hover {
   transform: translateY(-15px);
}

.spec-item h3 {
   color: #333;
   margin-bottom: 15px;
   font-size: 1.4em;
}

.spec-item ul {
   list-style: none;
   padding: 0;
}

.spec-item li {
   margin: 10px 0;
   color: #666;
   font-size: 1em;
   line-height: 1.4;
}

/* Evolution Section Styles */
.version-block {
   background: #f8f8f8;
   padding: 30px;
   margin: 20px auto;
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
   max-width: 800px; /* Center the container */
   animation: fadeIn 1s ease-in-out;
}

.version-block h3 {
   color: #333;
   margin-bottom: 20px;
   font-size: 1.8em;
}

.version-block h4 {
   color: #666;
   margin: 15px 0;
   font-size: 1.4em;
}

.version-image {
   width: 100%;
   height: auto; /* Adjust height to auto to maintain aspect ratio */
   border-radius: 8px;
   margin-bottom: 20px;
   object-fit: cover;
   object-position: center;
}

/* Footer Styles */
footer {
   background: linear-gradient(135deg, #1e1e1e, #3a3a3a);
   padding: 40px 0;
   color: #fff;
   text-align: center;
}

footer .social-links {
   list-style: none;
   padding: 0;
   margin: 0 0 20px 0;
}

footer .social-links li {
   display: inline-block;
   margin: 0 10px;
}

footer .social-links li a {
   color: #fff;
   font-size: 1.5em;
   transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links li a:hover {
   color: #F06000;
   transform: scale(1.3);
}

footer .copyright {
   list-style: none;
   padding: 0;
   margin: 0;
}

footer .copyright li {
   display: inline-block;
   margin: 0 10px;
   font-size: 0.9em;
   color: #aaa;
}

footer .copyright li a {
   color: #aaa;
   transition: color 0.3s ease;
}

footer .copyright li a:hover {
   color: #fff;
}

/* Featured Projects */
#projects {
    padding: 60px 0;
    background: #f4f4f9;
    text-align: center;
}

#projects .section-title {
    font-size: 2.4em;
    color: #333;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-in-out;
}

#github-projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.code-block {
    background: #2b2b2b;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-in-out;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.code-block h3 {
    color: #fff;
    margin-bottom: 10px;
}

.code-block p {
    color: #ccc;
    margin-bottom: 15px;
}

.code-block .tech-specs {
    background: #3b3b3b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.code-block .tech-specs ul {
    list-style: none;
    padding: 0;
}

.code-block .tech-specs li {
    color: #ccc;
    margin: 5px 0;
}

.code-block a {
    color: #F06000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.code-block a:hover {
    color: #fff;
}

/* Code Preview Dropdown */
.preview-btn {
    background: #F06000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 10px;
}

.preview-btn:hover {
    background: #d04e00;
}

.code-preview {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    margin-top: 10px;
    text-align: left;
    max-height: 300px; /* Set a max height */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: auto; /* Enable horizontal scrolling */
}

.code-preview pre {
    margin: 0;
}

/* GitHub Link */
.github-link {
    margin-top: 10px;
}

.github-link a {
    color: #F06000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.github-link a:hover {
    color: #fff;
}

/* Slideshow Styles */
.slideshow-container {
    max-width: 600px; /* Adjust the size of the slideshow */
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    border-radius: 8px; /* Round the corners of the images */
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active {
    background-color: #717171;
}