/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

/* Container for centered content */
.container {
  max-width: 1200px;
  width: 100%;
  /*margin: 0 auto;
/*  padding: 0 2rem; /* keep horizontal padding */
}


.hero-header {
    /* Bright green gradient like your screenshot */
    /* background: linear-gradient(180deg, #b7e63a 0%, #6ec45a 100%); */
    background: linear-gradient(135deg, #b7e63a 0%, #6ec45a 100%); 
    height: 160px;                    /* Much smaller - just enough for logo + small padding */
    display: block;
}

.hero-inner {
    height: 100%;
    display: flex;
    align-items: center;              /* centers logo vertically */
    justify-content: space-between;   /* logo left, buttons right */
    padding: 15px 48px;               /* Much smaller top/bottom padding */
    box-sizing: border-box;
    position: relative;
}

/* Logo: 250px width, keeps aspect */
.hero-logo img {
    width: 250px;                     /* Slightly smaller to fit in compact header */
    height: 250px;                     /* Auto height to maintain aspect ratio */
    max-height: 250px;                /* Prevent logo from being too tall */
    display: block;
    object-fit: contain;              /* Ensures logo fits nicely */
}

/* Right-side buttons */
.hero-nav {
    display: flex;
    gap: 24px;                        /* space between the two buttons */
}

.hero-btn {
    /* pill buttons like in the image */
    padding: 12px 24px;
    border: 0;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    /* light, soft green pill over the header */
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #1b1b1b;
    /* subtle shadow like in screenshot */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Mobile menu button (hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1b1b1b;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #b7e63a 0%, #6ec45a 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 15px 15px;
    z-index: 1000;
    padding: 20px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-btn {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 0;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #1b1b1b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

/* Demo content styles (you can remove these) */
.main-content {
    min-height: 200vh;
}

.demo-section {
    padding: 80px 20px;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.demo-section h1, .demo-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.demo-section p {
    max-width: 600px;
    color: #666;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-header {
        height: 120px;                /* Very compact on mobile */
    }
    
    .hero-inner {
        padding: 10px 24px;           /* Smaller padding on mobile */
    }
    
    .hero-logo img {
        width: 140px;                 /* Smaller logo on mobile */
        max-height: 80px;
    }
    
    .hero-nav .hero-btn {
        display: none;                /* Hide desktop buttons */
    }
    
    .mobile-menu-toggle {
        display: flex;                /* Show mobile menu button */
    }
}

@media (max-width: 480px) {
    .hero-header {
        height: 100px;                /* Even more compact */
    }
    
    .hero-inner {
        padding: 8px 16px;
    }
    
    .hero-logo img {
        width: 120px;
        max-height: 70px;
    }
}

/* Hero Section */
.hero {
    background-color: #000;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero img {
    height: 100px;
    max-width: 100%;
}

/* What is NGINX Section */
.what-is-nginx {
    margin: 4rem auto;
}

.what-is-nginx h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Products Section */
.products {
    margin: 4rem auto;
}

.products h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.product-cards {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.product-card {
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 80px;
    margin-bottom: 1rem;
    max-width: 100%;
}

/* Deliver and Secure Section */
.deliver-secure {
    background-color: #000;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.deliver-secure-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.deliver-secure h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.deliver-secure a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.deliver-secure a:hover {
    text-decoration: underline;
}

/* Footer Links Section */
.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 4rem auto;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    margin-bottom: 1rem;
    color: #000;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #007bff;
}

/* Protect AI Section */
.protect-ai {
    margin: 4rem auto;
}

.protect-ai h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.protect-ai > p {
    margin-bottom: 2rem;
}

.ai-solutions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.ai-solution {
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-solution:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ai-solution h3 {
    margin-bottom: 1rem;
}

.ai-solution a {
    display: inline-block;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.ai-solution a:hover {
    text-decoration: underline;
}

/* Test Environment Section */
.test-environment {
    margin: 4rem auto;
}

.test-environment h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.test-content {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.test-content h3 {
    margin-bottom: 1rem;
}

.test-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.test-content li {
    margin-bottom: 0.5rem;
}

.cta-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 2rem 0 3rem;
    text-align: center;
    font-family: sans-serif;
    font-size: 0.95rem;
}

.rainbow-line {
    height: 3mm;
    background: linear-gradient(to right, red, blue, green, yellow);
    width: 100%;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    margin: 0 0.7rem;
    display: inline-block;
}

.social-links img {
    height: 32px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-links img:hover {
    transform: scale(1.15);
}

.footer-content a {
    color: #fff;
    text-decoration: underline;
}

.footer-content a:hover {
    text-decoration: none;
}


/* Designed for Everyone Section */
.designed-for-everyone {
    margin: 4rem auto;
    padding: 2rem 0;
}
.dfe-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}
.dfe-text {
    flex: 1 1 350px;
    min-width: 300px;
}
.dfe-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.dfe-text p {
    font-size: 1.1rem;
    color: #444;
}
.dfe-image {
    flex: 1 1 350px;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}
.dfe-image img {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    object-fit: cover;
}
@media (max-width: 900px) {
    .dfe-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .dfe-image {
        justify-content: center;
        margin-top: 2rem;
    }
    .dfe-image img {
        max-width: 100%;
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .product-cards, 
    .ai-solutions {
        gap: 1.5rem;
    }
    
    .product-card, 
    .ai-solution {
        min-width: calc(50% - 1.5rem);
    }
    
    .footer-column {
        min-width: calc(33.333% - 2rem);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .search-bar {
        width: 100%;
        margin-top: 1rem;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-card, 
    .ai-solution {
        min-width: 100%;
    }
    
    .footer-column {
        min-width: calc(50% - 2rem);
    }
}

@media (max-width: 576px) {
    .footer-column {
        min-width: 100%;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .deliver-secure h2 {
        font-size: 1.75rem;
    }
}