/* General Styles */
body { 
    background: #f4f4f9; 
    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: 1014px;
    width: 100%;
    background: linear-gradient(rgba(22, 20, 21, 0.7), rgba(22, 20, 21, 0.45)), url(../Images/top\ down\ cyclone\ all\ electronics.jpeg) 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: 90px/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;
}

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);
    }
}

/* Project Sections */
.project-section {
    padding: 80px 0;
    background: #fff;
    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 */
}

.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.05);
}

/* 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(-10px);
}

.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, #2c2c2c);
    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.2);
}

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;
}