:root {
    --primary: #0066cc;
    --secondary: #00a3cc;
    --accent: #66cc00;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --gray: #6c757d;
    --hero-bg: #0069a1;

}

/* -------------------------
   Base
   ------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

p {
    text-align: justify;
}

/* -------------------------
   Header & Navigation
   ------------------------- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

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

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

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: block;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.logo span {
    color: var(--accent);
}

nav {
    margin-right: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: color .3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: -5px;
    transition: width .3s;
}

nav ul li a:hover:after{
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
}

.mobile-nav-toggle:focus {
    outline: none;
}

/* small hidden logo used in mobile menu */
.logo1 {
    display: none;
}

/* -------------------------
   Hero
   ------------------------- */
.hero {
    background: url("../img/bg-hero.png") center/cover no-repeat;
    background-color: var(--hero-bg);
    color: var(--white);
}

.image-container {
    display: flex;
    justify-content: center;
}

.image-container img {
    max-width: 90%;
    height: auto;
    display: block;
}

/* optional hero image set used elsewhere */
.hero-image img {
    max-width: 90%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .2);
    padding: 5px;
    background: rgba(255, 255, 255, .1);
}

/* headings in hero */
.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h5 {
    font-size: 46px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

/* -------------------------
   Section title
   ------------------------- */
.section-title {
    text-align: center;
    margin-bottom: 60px
}

.section-title h3 {
    font-size: 36px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h3:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent);
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 20px auto 0;
}

/* -------------------------
   Intro / AIoT Sections
   ------------------------- */
.intro,
.aiot {
    padding: 100px 0;
    background: var(--white);
}

.intro-content,
.aiot-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
}

.intro-text,
.aiot-text {
    flex: 1;
}

.intro-text h4,
.aiot-text h4 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
}

.intro-text p,
.aiot-text p {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 17px;
    line-height: 1.6;
}

.intro-image,
.aiot-image {
    flex: 1;
    overflow: hidden;
    padding: 10px;
    border: none;
}

.intro-image img,
.aiot-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .3s ease;
    border: none;
}

.intro-image img:hover,
.aiot-image img:hover {
    transform: scale(1.02);
}

/* -------------------------
   IoT Section
   ------------------------- */
.iot {
    padding: 100px 0;
    background: var(--light);
}

.iot-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.iot-text {
    flex: 1;
}

.iot-text h4 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
}

.iot-text p {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 17px;
    line-height: 1.6;
}

.iot-image {
    flex: 1;
    overflow: hidden;
    padding: 10px;
    border: none;
}

.iot-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .3s ease;
    border: none;
}

.iot-image img:hover {
    transform: scale(1.02);
}

/* -------------------------
   Embedded Section
   ------------------------- */
.embedded {
    padding: 100px 0;
    background: var(--light);
}

.embedded-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
}

.embedded-text {
    flex: 1;
}

.embedded-text h4 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
}

.embedded-text p {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 17px;
    line-height: 1.6;
}

.embedded-image {
    flex: 1;
    overflow: hidden;
    padding: 10px;
    border: none;
}

.embedded-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .3s ease;
    border: none;
}

.embedded-image img:hover {
    transform: scale(1.02);
}

/* -------------------------
   Mobile Navigation & overlay
   ------------------------- */
@media (max-width:768px) {
    .logo1 {
        display: flex;
        align-items: center;
        padding: 1.2rem 3.5rem;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, .1);
    }

    .logo1 img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .logo1 h1 {
        font-size: 24px;
        font-weight: 700;
        color: var(--primary);
        margin: 0;
    }

    .logo1 span {
        color: var(--accent);
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 0 20px rgba(0, 0, 0, .2);
        z-index: 999;
        overflow-y: auto;
        transition: left .3s ease;
    }

    nav ul.active {
        display: flex;
        left: 0;
    }

    nav ul li {
        margin: 0;
        padding: 15px 30px;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, .05);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        font-size: 18px;
        width: 100%;
    }

    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .5);
        z-index: 998;
        visibility: hidden;
        opacity: 0;
        transition: opacity .3s, visibility .3s;
    }

    body.menu-open::after {
        visibility: visible;
        opacity: 1;
    }

    .header-container {
        padding: 0;
        justify-content: left;
    }

    .mobile-nav-toggle {
        display: block;
        padding: 10px 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--dark);
        z-index: 1001;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h2 {
        font-size: 28px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .intro-content,
    .aiot-content,
    .iot-content,
    .embedded-content {
        flex-direction: column;
        gap: 20px;
    }

    .intro-content,
    .aiot-content {
        flex-direction: column-reverse;
    }

    /* reverse order on mobile */

    .intro-text,
    .aiot-text,
    .iot-text,
    .embedded-text,
    .intro-image,
    .aiot-image,
    .iot-image,
    .embedded-image {
        width: 100%;
        text-align: center;
    }

    .iot,
    .aiot,
    .intro,
    .embedded {
        padding: 30px 15px;
    }
}

/* -------------------------
   Tablet & smaller desktops
   ------------------------- */
@media (max-width:991px) {
    .hero-content {
        flex-direction: column;
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .section-title h3 {
        font-size: 32px;
    }

    .section-title p {
        font-size: 16px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

/* -------------------------
   Mid-size screens
   ------------------------- */
@media (max-width:1199px) {
    .hero h2 {
        font-size: 42px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 18px;
    }
}

/* -------------------------
   Small phones
   ------------------------- */
@media (max-width:576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .section-title h3 {
        font-size: 26px;
    }

    .btn,
    .btn-read,
    .exp {
        padding: 10px 30px;
    }
}

/* -------------------------
   iOS fixes (prevent auto-zoom on inputs)
   ------------------------- */
@supports (-webkit-touch-callout:none) {

    input,
    textarea {
        font-size: 16px !important;
    }

    .form-control:focus {
        font-size: 16px !important;
    }
}

/* -------------------------
   Contact section padding adjustments for wide screens
   ------------------------- */
@media (min-width:992px) {
    .contact .container {
        max-width: 100%;
    }

    .contact .contact-text {
        padding-right: calc(((100% - 960px)/2) + .75rem);
    }
}

@media (min-width:1200px) {
    .contact .contact-text {
        padding-right: calc(((100% - 1140px)/2) + .75rem);
    }
}

@media (min-width:1400px) {
    .contact .contact-text {
        padding-right: calc(((100% - 1320px)/2) + .75rem);
    }
}