@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --text-color: #fff;
    --primary-color: #6b6b6b;
    --secondary-bg: #000;
    --hover-color: #333;
    --accent-color: #00ff99;
    --card-bg: #1c1f2b;
    --card-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a4a4a 100%);
    width: min(1100px, 95%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Header Styling */
header {
    padding: 2em 0 1em;
    text-align: center;
}

header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Navigation Styling */
nav {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    position: sticky;
    top: 10px;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    display: flex;
}

nav a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    padding: 1em 2em;
    transition: background-color 300ms ease, color 300ms ease;
}

nav a:hover {
    background-color: var(--hover-color);
    color: var(--accent-color);
}

/* Main Content Area */
main {
    flex: 1;
    padding: 3em 1.5em;
}

section {
    margin-bottom: 4em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1em;
    text-align: center;
}

p {
    line-height: 1.7;
    margin-bottom: 1em;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.center {
    text-align: center;
}

/* Product Grid System */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.product-card {
    background: linear-gradient(145deg, #1c1f2b 0%, #252936 100%);
    border-radius: 12px;
    padding: 2em;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    transition: all 300ms ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.product-logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1em;
}

.product-description {
    color: #a2a5b3;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5em;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.product-button {
    background: linear-gradient(135deg, #2D2D2D 0%, #1a1a1a 100%);
    border: none;
    padding: 0.8em 1.5em;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 300ms ease;
    font-family: 'Poppins', sans-serif;
}

.product-button:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2D2D2D 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 153, 0.2);
}

/* Blog Section Styling */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.blog-post-preview {
    background: rgba(28, 31, 43, 0.7);
    padding: 1.8em;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: all 300ms ease;
}

.blog-post-preview:hover {
    background: rgba(28, 31, 43, 0.9);
    transform: translateX(8px);
}

.blog-post-date {
    color: #a2a5b3;
    font-size: 0.9rem;
    margin-bottom: 0.5em;
}

.blog-post-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.5em;
}

.blog-post-excerpt {
    color: #a2a5b3;
    line-height: 1.6;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5em;
    transition: all 300ms ease;
}

.read-more:hover {
    transform: translateX(5px);
}

/* Footer Styling */
footer {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    margin-top: auto;
}

.footer-container {
    padding: 3em 2em 1em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    transition: all 300ms ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.social-icons a i {
    font-size: 1.5em;
    color: black;
}

.footer-nav {
    margin: 2em 0;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
    list-style: none;
}

.footer-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    opacity: 0.7;
    transition: opacity 300ms ease;
}

.footer-nav ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5em;
    text-align: center;
    border-radius: 0 0 10px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav a {
        text-align: center;
        padding: 1em;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-footer {
        flex-direction: column;
        gap: 1em;
    }

    .footer-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1em;
    }
}