:root {
  --primary-navy: #0A192F;
  --secondary-navy: #112240;
  --accent-blue: #00D2FF;
  --accent-teal: #64FFDA;
  --text-white: #E6F1FF;
  --text-gray: #8892B0;
  --white: #FFFFFF;
  --danger-red: #FF4D4D;
  --card-bg: rgba(17, 34, 64, 0.85);
  --glass-bg: rgba(10, 25, 47, 0.7);
  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--primary-navy);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-teal);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-gray);
}

.nav-links li a:hover {
  color: var(--accent-teal);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.5)), url('hero_hazmat_transport.png') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--primary-navy), transparent);
}

.hero-content {
  z-index: 10;
  max-width: 800px;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #64FFDA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 16px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-teal);
  color: var(--primary-navy);
  border: 1px solid var(--accent-teal);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-teal);
  box-shadow: 0 10px 30px -10px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
}

.btn-secondary:hover {
  background: rgba(100, 255, 218, 0.1);
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Services (Section 2) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-card {
  background: var(--secondary-navy);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-teal);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent-teal);
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card ul {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.service-card ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.service-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
}

.badge-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-teal);
    font-size: 0.7rem;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* --- Industrial Solutions (Section 3) --- */
.solutions {
    background: #020c1b;
}

.solutions-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-item:nth-child(even) {
    direction: rtl;
}

.solution-item:nth-child(even) .solution-text {
    direction: ltr;
}

.solution-img-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.solution-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.solution-item:hover .solution-img-wrapper img {
    transform: scale(1.05);
}

.solution-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-teal);
}

.solution-text p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* --- Process (Section 4) --- */
.process-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.process-flow::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(100, 255, 218, 0.1);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--secondary-navy);
    border: 2px solid var(--accent-teal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-teal);
    transition: var(--transition);
}

.process-step:hover .step-number {
    background: var(--accent-teal);
    color: var(--primary-navy);
    box-shadow: 0 0 20px var(--accent-teal);
}

/* --- Contact (Section 6) --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.contact-details i {
    color: var(--accent-teal);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--secondary-navy);
    padding: 50px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: var(--primary-navy);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    color: var(--text-white);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-teal);
}

/* --- Footer --- */
footer {
    padding: 50px 5%;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
    color: var(--text-gray);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .solution-item { grid-template-columns: 1fr; }
    .process-flow { flex-direction: column; gap: 40px; }
    .process-flow::before { display: none; }
    .contact-container { grid-template-columns: 1fr; }
}

/* --- AI Chat Widget --- */
.ai-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-teal);
    color: var(--primary-navy);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.4);
    z-index: 1000;
    font-weight: 700;
    transition: var(--transition);
}

.ai-chat-btn:hover {
    transform: scale(1.05) translateY(-5px);
}

.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--secondary-navy);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition);
}

.ai-chat-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.chat-header {
    padding: 20px;
    background: var(--primary-navy);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-white);
}

.chat-header button {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ai-message {
    background: rgba(100, 255, 218, 0.1);
    color: var(--text-white);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--accent-teal);
    color: var(--primary-navy);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: var(--primary-navy);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    padding: 10px;
    color: var(--text-white);
    outline: none;
}

.chat-input-area button {
    background: var(--accent-teal);
    color: var(--primary-navy);
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .ai-chat-window {
        width: 90%;
        right: 5%;
        height: 70vh;
    }
}

/* --- Success Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--secondary-navy);
    padding: 60px 40px;
    border-radius: 12px;
    border: 1px solid var(--accent-teal);
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.success-icon {
    font-size: 5rem;
    color: var(--accent-teal);
    margin-bottom: 30px;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 40px;
}
