@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --primary-color: #1e293b;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #e2e8f0;
    --body-bg: #0f172a;
    --card-bg: #1e293b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--body-bg);
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
}

.logo a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem 5%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--primary-color);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--white);
    border-radius: 10px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 2rem 0;
    text-align: center;
}

.about h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about p {
    /* font-family: 'JetBrains Mono', monospace; Inherited */
}

/* CTA Section */
.cta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background-color: #5dade2;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Specific style for PENNYCUT external link button */
.pennycut-link-btn {
    margin-top: 1.5rem;
}

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

/* Common Card Styles (Refreshed) */
.tech-card, 
.product-card, 
.benefit-card {
    background-color: var(--card-bg); /* Base dark color */
    /* Subtle grid pattern - slightly adjusted for cards */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 25px 25px; /* Smaller grid for cards */
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, 
                box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Style for when the card becomes visible (Corrected Selector) */
.tech-card.visible, 
.product-card.visible, 
.benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-card:hover, 
.product-card:hover, 
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-top-color: #5dade2;
}

/* Technologies Section Specifics (If any needed beyond common) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.tech-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tech-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.tech-card p {
    /* font-family: 'JetBrains Mono', monospace; Inherited */
}

/* Product Section Specifics (Adjust layout classes) */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.product-card {
    flex-basis: calc(33.333% - 2rem * 2 / 3);
    min-width: 280px;
    max-width: 350px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.product-image {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.product-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.product-card .btn {
    margin-top: auto;
}

/* Benefits Section Specifics */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.benefit-card h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 1.5rem 5% 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tech-grid, .product-grid, .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card {
        flex-basis: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin-left: 0;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .cta {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-grid, .product-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        flex-basis: 100%;
        max-width: none;
    }
}

/* Language Switch */
.language-switch {
    margin-left: 2rem;
}

.language-switch a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.language-switch a.active {
    color: var(--secondary-color);
}

/* Product Detail Page */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-header .product-image {
    font-size: 5rem;
    color: var(--secondary-color);
}

.product-header .product-info {
    flex: 1;
}

.product-header h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.product-header p {
    /* font-family: 'JetBrains Mono', monospace; Inherited */
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.content-section p,
.content-section li {
    /* font-family: 'JetBrains Mono', monospace; Inherited */
}

@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
        text-align: center;
    }
    
    .product-header .product-image {
        font-size: 4rem;
    }
} 