/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Typography */
@font-face {
    font-family: 'leelawadee';
    src: url('fonts/leelawadee.ttf') format('truetype');
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 36px;
    width: 48px;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

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

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: lighter;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    transition: color 0.3s;
}

nav a:hover,
nav a:focus {
    color: rgba(113,119,123,0.84);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-image: url('image 1.png');
    transition: background-image 2s ease-out;
    padding-top: 70px; /* account for fixed header */
}

.hero h1 {
    font-family: 'leelawadee', sans-serif;
    font-size: 3em;
    font-weight: 200;
    margin: 0;
}

.red-i {
    color: red;
}

.motto {
    margin-top: 30px;
    font-size: 1.2em;
    font-style: italic;
    font-family: 'Lato', sans-serif;
    word-spacing: 5px;
    font-weight: lighter;
}

.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background-color: #277ed5f6;
    color: #fff;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #0656a5f6;
}

/* Sections */
section {
    padding: 100px 50px;
    text-align: center;
}

section h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5em;
    font-weight: lighter;
    margin-bottom: 60px;
}

/* About */
#about {
    background-color: #000;
    background-image: url('about 1.jpg');
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 150px 120px;
    text-align: justify;
    text-align-last: left;
    font-weight: lighter;
}

#about p {
    max-width: 650px;
    line-height: 2;
}

/* Solutions */
#solutions {
    background-color: #000;
    background-image: url('solute.jpg');
    background-position: center;
    background-size: contain;
    color: #fff;
    padding: 100px 50px;
}

.solution {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(26,26,26,0.9);
    color: #f5f5f5;
    border-radius: 12px;
    margin: 30px auto;
    padding: 40px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    max-width: 600px;
    transition: transform 0.3s, background 0.3s;
    position: relative;
}

.solution:hover,
.solution:focus-within {
    transform: translateY(-5px);
    background: rgba(35,35,35,0.95);
}

.solution-img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 2px solid #444;
}

.solution h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #fff;
}

.solution p {
    color: #ddd;
    line-height: 1.6;
}

/* Innovations */
#innovations {
    background-color: #000;
    background-image: url('innovate.jpg');
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 150px 100px;
}

/* Contact */
#contact {
    background-color: #000;
    background-image: url('about 1.jpg');
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 150px 90px;
    text-align: justify;
    text-align-last: left;
    line-height: 2.3;
}

/* Footer */
footer {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 20px;
}

/* Floating Message Button */
.message-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #53575b;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.message-button:hover,
.message-button:focus {
    background-color: #676a6c;
}

/* Message Form */
.message-form {
    position: fixed;
    right: 20px;
    bottom: 90px;
    background: #fff;
    color: #000;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.message-header .close-button {
    font-size: 16px;
    cursor: pointer;
    color: #666;
}

.message-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.message-form input,
.message-form textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.message-form button {
    width: 100%;
    padding: 12px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.message-form button:hover,
.message-form button:focus {
    background-color: #333;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    nav ul { gap: 40px; }
}

@media (max-width: 900px) {
    section { padding: 50px 6vw; }
    .solution { max-width: 95vw; padding: 32px 8vw 18px 8vw; }
    nav ul { gap: 30px; }
}

@media (max-width: 768px) {
    header { padding: 8px 15px; }
    .logo img { height: 32px; width: 42px; }
    nav ul { gap: 20px; font-size: 14px; }
    section { padding: 40px 15px; }
    section h2 { font-size: 2em; margin-bottom: 50px; }
}

@media (max-width: 600px) {
    header { flex-direction: column; align-items: flex-start; }
    nav { position: static; transform: none; width: 100%; margin-top: 10px; }
    nav ul { flex-direction: column; gap: 14px; padding: 0 20px 10px; }
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 1.6em; }
    .motto { font-size: 1em; }
    .cta-button { font-size: 16px; padding: 10px 20px; }
}

@media (max-width: 480px) {
    nav ul { gap: 10px; padding: 0 15px 8px; }
    .hero h1 { font-size: 1.4em; }
    section h2 { font-size: 1.6em; margin-bottom: 40px; }
}

@media (max-width: 400px) {
    .solution { font-size: 0.93em; padding: 1.2em 0.5em 1em 0.5em; }
    .solution-img { width: 90vw; height: 65px; }
    .cta-button { font-size: 14px; padding: 8px 16px; }
    section h2 { font-size: 1.4em; margin-bottom: 30px; }
    .message-form { width: 90vw; right: 5vw; left: 5vw; bottom: 70px; }
    .message-button { width: 45px; height: 45px; font-size: 13px; bottom: 10px; right: 10px; }
}

/* Print Styles */
@media print {
    header, .message-button, .message-form { display: none; }
    section { page-break-inside: avoid; padding: 20px 0; }
}
