/* General Page Setup & Base Styles */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #121212;
    color: #ecf0f1;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
}

/* Header & Logo */
header {
    width: auto;
    padding: 0;
    position: static;
    z-index: auto;
    border-bottom: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #34495e;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a657e;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.5em;
    color: #ecf0f1;
}

/* Navigation Bar */
.navbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.2);
    backdrop-filter: blur(10px);
    padding: 5px 1px;
    border-radius: 30px;
    border: 1px solid rgba(236, 240, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 7px 19px;
    border-radius: 25px;
    margin: 0 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar a:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: #ffffff;
}

.navbar a.active {
    background-color: #ecf0f1;
    color: #2c3e50;
    font-weight: 600;
}

/* Mobile Navigation Placeholders */
.hamburger,
.mobile-navbar {
    display: none;
}

/* Main Content Area */
main {
    flex-grow: 1;
    width: 100%;
}

/* Headings within Main */
main h1, main h2, main h3, main h4, main h5, main h6 {
    font-weight: 600;
    margin-top: 0;
    line-height: 1.3;
    color: #ffffff;
}

/* Section Padding Utility */
.section-padding {
    padding: 60px 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Subsection Title Styling */
.subsection-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    font-weight: 600;
    color: #ddd;
    text-align: center;
    margin-top: 40px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px 40px 40px;
    max-width: 1300px;
    margin: 0 auto;
    gap: 40px;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(90deg, #3498db, #ecf0f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s 0.2s ease-out backwards;
}

.hero .subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ccc;
    font-weight: 300;
    animation: fadeInUp 0.8s 0.4s ease-out backwards;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: fadeIn 1s 0.5s ease-out backwards;
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
    animation: fadeInUp 0.8s 0.6s ease-out backwards;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.6);
}

/* Features Section */
.features {
    background-color: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #242424;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
    background-color: #2d2d2d;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    filter: invert(75%) sepia(51%) saturate(1500%) hue-rotate(175deg) brightness(95%) contrast(90%);
}

.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #eee;
}

.feature-item p {
    font-size: 0.95em;
    color: #bbb;
    margin-bottom: 5px;
}

/* Gallery Section */
.gallery {
    margin-top: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, opacity 0.4s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    opacity: 0.85;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

/* Modal (Image Lightbox) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    display: block;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    line-height: 1;
    padding: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.close:hover {
    color: #bbb;
    transform: scale(1.1);
}

/* Specifications Section */
.specifications {
     background-color: #1a1a1a;
}

.specs-container {
    max-width: 800px;
    margin: 0 auto;
    background: #242424;
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-container dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 25px;
}

.specs-container dt {
    font-weight: 600;
    color: #ddd;
    grid-column: 1;
    text-align: right;
}

.specs-container dd {
    margin-left: 0;
    color: #bbb;
    grid-column: 2;
}

/* Bottom Call to Action Section */
.cta-bottom {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.cta-bottom h2 {
     font-size: 2.2em;
     color: #ffffff;
}

.cta-bottom p {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-bottom .cta-button {
     font-size: 1.2em;
     padding: 15px 40px;
}

/* Subtle Link Style */
.link-subtle {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.link-subtle:hover {
    color: #3498db;
    text-decoration: underline;
}

footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0a0a0a;
    padding: 25px 40px; 
    margin-top: auto;
}

.footer-container {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.footer-left { display: flex; align-items: center; gap: 10px; opacity: 0.7; }
.footer-left img { height: 25px; }

.footer-center { color: #555; font-size: 0.9rem; }

.footer-right { display: flex; gap: 30px; }
.footer-right a { color: #888; text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-right a:hover { color: white; }


/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.features-grid > .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.features-grid > .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.features-grid > .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.features-grid > .animate-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.features-grid > .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.features-grid > .animate-on-scroll:nth-child(6) { transition-delay: 0.35s; }
.features-grid > .animate-on-scroll:nth-child(7) { transition-delay: 0.2s; }
.features-grid > .animate-on-scroll:nth-child(8) { transition-delay: 0.3s; }

.gallery-grid > .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.gallery-grid > .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.gallery-grid > .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

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

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

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-delay: 0ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: translateY(0);
    }

    .feature-item:hover,
    .cta-button:hover,
    .gallery-grid img:hover {
        transform: none;
    }
}