/* 
  Style for MELAS COMMERCE LTD
  Colors: #0F4C81 (Primary Blue), #1F7A8C (Secondary), #F5A623 (Accent), #F8FAFC (Background)
  Design: Premium Corporate Logistics, Large rounded corners, Glassmorphism, Smooth animations
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-bg: #F8FAFC;
  --secondary-bg: #E2E8F0;
  --accent-color: #F5A623;
  --accent-hover: #D98C12;
  --text-light: #F8FAFC;
  --text-gray: #64748B;
  --white: #FFFFFF;
  --black: #0F4C81;
  --light-gray: #F1F5F9;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(15, 76, 129, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(15, 76, 129, 0.1);
  
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: var(--primary-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--black);
}

a {
  text-decoration: none;
  color: #1F7A8C;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Typography */
.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--black);
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
}

.highlight {
  color: var(--accent-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: var(--accent-color);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 166, 35, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline:hover {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--black);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--black);
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background-color: #0F4C81;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(31, 122, 140, 0.4) 0%, transparent 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  color: var(--white);
}

.hero p {
  font-size: 1.3rem;
  color: #E2E8F0;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

.floating-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}

.stat-icon {
  color: var(--accent-color);
}

/* Sections */
section {
  padding: 6rem 0;
}

.bg-white-section {
  background-color: var(--white);
  color: #334155;
  border-radius: var(--radius-xl);
  margin: 0 20px;
  padding: 6rem 0;
  box-shadow: 0 10px 40px rgba(15, 76, 129, 0.05);
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  border: 1px solid var(--secondary-bg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #1F7A8C;
  box-shadow: 0 15px 30px rgba(15, 76, 129, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: #1F7A8C;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-gray);
  margin-bottom: 0;
  font-size: 1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-box {
  text-align: center;
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.feature-box .icon {
  width: 70px;
  height: 70px;
  background: rgba(31, 122, 140, 0.1);
  color: #1F7A8C;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.feature-box:hover .icon {
  background: #1F7A8C;
  color: var(--white);
  transform: rotate(5deg);
}

.feature-box h3 {
  color: var(--black);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.feature-box p {
  color: #64748B;
}

/* Technologies Grid (Now Industries) */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 3rem;
}

.tech-badge {
  background: var(--white);
  border: 1px solid var(--secondary-bg);
  padding: 15px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  color: var(--black);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.tech-badge:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  color: var(--accent-color);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--secondary-bg);
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.05);
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h4 {
  color: #1F7A8C;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-item p {
  color: #334155;
  font-size: 1.05rem;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.05);
  border: 1px solid var(--secondary-bg);
}

.contact-form h3 {
  color: var(--black);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--black);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px;
  background: var(--light-gray);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: #334155;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #1F7A8C;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.1);
}

#form-message {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: var(--radius-md);
  display: none;
  font-weight: 500;
  text-align: center;
}

.success-msg {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* Footer */
footer {
  background: #0F4C81;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 3rem;
}

.footer-col p {
  color: #CBD5E1;
  margin-top: 15px;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94A3B8;
  font-size: 0.9rem;
}

/* Text Pages */
.text-page {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--secondary-bg);
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

.text-page h2 {
  color: #1F7A8C;
  margin-top: 30px;
  font-size: 1.5rem;
}

.text-page p, .text-page ul {
  color: #334155;
  margin-bottom: 20px;
}

.text-page ul {
  padding-left: 20px;
}

/* Page Header */
.page-header {
  padding: 6rem 0 3rem;
  text-align: center;
  background: #0F4C81;
  color: var(--white);
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  color: var(--white);
}

.page-header p {
  font-size: 1.2rem;
  color: #E2E8F0;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-buttons { flex-direction: column; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 25px 0;
    text-align: center;
    border-bottom: 1px solid var(--secondary-bg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}