/* ================================
   Insulated PUF Panels - Dark Mode Redesign
   Modern Minimal Theme
   ================================ */

:root {
    --primary-dark: #0f1419;
    --secondary-dark: #1a1f2e;
    --tertiary-dark: #242b3a;
    --accent-cyan: #00d9ff;
    --accent-lime: #39ff14;
    --accent-purple: #c77dff;
    --accent-orange: #ff6b35;
    --text-light: #e8eef5;
    --text-muted: #a8b2c1;
    --text-subtle: #6b7684;
    --bg-white: #ffffff;
    --border-dark: #3a4552;
    --success: #39ff14;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-dark);
    overflow-x: hidden;
}

/* ================================
   Typography
   ================================ */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-light);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 3rem;
    color: var(--accent-cyan);
    position: relative;
    padding-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-lime), var(--accent-purple));
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 700;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-lime);
}

/* ================================
   Header & Navigation
   ================================ */

header {
    background: var(--bg-white);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

nav a {
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-lime);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent-cyan);
}

nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-cyan));
    color: var(--primary-dark) !important;
    padding: 0.75rem 1.8rem !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.nav-cta::after {
    display: none !important;
}

/* ================================
   Hero Section
   ================================ */

.hero {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--tertiary-dark) 100%);
    color: var(--text-light);
    padding: 8rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(30px) scale(1.05); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-cyan));
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(57, 255, 20, 0.3);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
}

.btn-secondary {
    background-color: rgba(0, 217, 255, 0.1);
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(0, 217, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-lime);
    border: 2px solid var(--accent-lime);
}

.btn-outline:hover {
    background-color: rgba(57, 255, 20, 0.1);
    color: var(--accent-lime);
    transform: translateY(-3px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ================================
   Sections
   ================================ */

section {
    padding: 5rem 5%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    background: var(--primary-dark);
}

section.alt-bg {
    background-color: var(--secondary-dark);
    border-bottom: 1px solid var(--border-dark);
}

/* ================================
   Grid Layouts
   ================================ */

.grid {
    display: grid;
    gap: 2.5rem;
    width: 100%;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ================================
   Cards
   ================================ */

.card {
    background: var(--tertiary-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-dark);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.1);
    border-color: var(--accent-cyan);
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--secondary-dark), var(--tertiary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-subtle);
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 217, 255, 0.05) 100%);
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--accent-lime);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* ================================
   Feature Boxes
   ================================ */

.feature-box {
    background: var(--tertiary-dark);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-purple);
    transition: all 0.3s ease;
    border: 1px solid var(--border-dark);
    border-left: 5px solid var(--accent-purple);
}

.feature-box:hover {
    box-shadow: 0 4px 20px rgba(199, 125, 255, 0.15);
    transform: translateX(5px);
    background: rgba(199, 125, 255, 0.05);
}

.feature-box h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-muted);
    margin: 0;
}

/* ================================
   Contact Form
   ================================ */

.intro-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.intro-text h2 {
    text-align: left;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

.contact-form {
    background: var(--tertiary-dark);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
}

.contact-form h3 {
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(0, 217, 255, 0.05);
    color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-subtle);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
    background-color: rgba(0, 217, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-submit {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-cyan));
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: rgba(57, 255, 20, 0.15);
    color: var(--accent-lime);
    border: 1px solid var(--accent-lime);
}

.form-message.error {
    background-color: rgba(255, 107, 53, 0.15);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
}

/* ================================
   Info Boxes
   ================================ */

.info-box {
    background: var(--tertiary-dark);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
    border-left: 4px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.info-box:hover {
    background: rgba(255, 107, 53, 0.05);
}

.info-box h4 {
    color: var(--accent-lime);
    margin-bottom: 1rem;
}

.info-box p {
    margin: 0;
    color: var(--text-muted);
}

/* ================================
   Product Section
   ================================ */

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--tertiary-dark);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}

.product-showcase:hover {
    border-color: var(--accent-cyan);
}

.product-showcase:nth-child(even) {
    direction: rtl;
}

.product-showcase:nth-child(even) > * {
    direction: ltr;
}

.product-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--tertiary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
    border: 1px solid var(--border-dark);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-content h3 {
    color: var(--accent-lime);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.spec-list {
    list-style: none;
    margin: 2rem 0;
}

.spec-list li {
    padding: 0.8rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.spec-list li::before {
    content: '✓';
    color: var(--accent-lime);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ================================
   Stats Section
   ================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ================================
   Footer
   ================================ */

footer {
    background: var(--secondary-dark);
    color: var(--text-light);
    padding: 4rem 5%;
    margin-top: 5rem;
    border-top: 1px solid var(--border-dark);
}

footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--accent-lime);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-cyan);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

footer-logo svg {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-subtle);
    font-size: 0.9rem;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 1200px) {
    nav {
        padding: 1rem 3%;
    }

    nav ul {
        gap: 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 4rem 3%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 2%;
    }

    nav ul {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .hero {
        padding: 4rem 2%;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    section {
        padding: 3rem 2%;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .intro-contact {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .product-showcase {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .product-showcase:nth-child(even) {
        direction: ltr;
    }

    footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.95rem;
    }

    .hero {
        padding: 2.5rem 1.5%;
    }

    section {
        padding: 2rem 1.5%;
    }

    .card-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}
