/* ========================================
   CONNSENSOR Website Styles
   Modern Tech Blue Theme
   ======================================== */

/* CSS Variables */
:root {
    --primary-blue: #0066CC;
    --dark-blue: #003366;
    --light-blue: #E6F2FF;
    --accent-blue: #0099FF;
    --tech-gray: #1A1A2E;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 102, 204, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 102, 204, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: var(--tech-gray);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Advantages Section */
.advantages {
    padding: 5rem 0;
    background-color: var(--white);
}

.advantages h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 3rem;
}

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

.advantage-card {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.advantage-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Story Section */
.story {
    padding: 4rem 0;
    background-color: var(--light-blue);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    position: relative;
}

.story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
}

.story-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Products Preview */
.products-preview {
    padding: 5rem 0;
    background-color: var(--white);
}

.products-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-hover);
}

.category-card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Certifications */
.certifications {
    padding: 5rem 0;
    background-color: var(--white);
    color: var(--text-dark);
}

.certifications h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cert-item {
    text-align: center;
}

.cert-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.cert-image:hover {
    transform: scale(1.05);
}

.cert-item p {
    color: var(--text-light);
    font-weight: 600;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background-color: var(--light-blue);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--tech-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col h3 {
    font-size: 1.5rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--accent-blue);
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-col a:hover {
    opacity: 1;
}

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

/* Page Header */
.page-header {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.85);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Product Category Sections */
.product-category {
    padding: 5rem 0;
}

.product-category.alt-bg {
    background-color: var(--light-blue);
}

.product-category h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.category-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    padding: 2rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 10px;
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.placeholder-img {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border-radius: 10px;
}

.product-video {
    margin: 1rem 0;
}

.product-video video {
    width: 100%;
    border-radius: 5px;
    background: #000;
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-card h4 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-card ul {
    margin-bottom: 1.5rem;
}

.product-card ul li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.seo-text {
    background: var(--light-blue);
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Custom CTA */
.custom-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-align: center;
}

.custom-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.custom-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Section */
.service-motto {
    padding: 3rem 0;
    background-color: var(--light-blue);
    text-align: center;
}

.motto-content h2 {
    font-size: 2rem;
    color: var(--dark-blue);
    font-style: italic;
    margin-bottom: 1rem;
}

.motto-content p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-form-wrapper > p,
.contact-info-wrapper > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.contact-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2rem;
}

.contact-details h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary-blue);
    font-weight: 600;
}

.small-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.info-box {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.info-box h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.info-box ul li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background-color: var(--light-blue);
    text-align: center;
}

.map-section h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.map-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.map-placeholder {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.map-placeholder p {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.faq-item h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-align: center;
}

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

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.8rem 2rem;
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-image .placeholder-img {
    height: 100%;
    border-radius: 0;
}

.blog-content {
    padding: 2rem;
}

.blog-category {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-content h2 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .advantage-grid,
    .category-grid,
    .product-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
