@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #060a13;
  --bg-card: rgba(15, 23, 42, 0.55);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --primary: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.3);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(14, 165, 233, 0.4);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --soft-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  --glow-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}

/* ---------------- RESET / BASE ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(130% 120% at 50% 0%, #0d172e 0%, #060a13 70%, #020408 100%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--accent);
}

/* ---------------- LAYOUT ---------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

main.container {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

/* ---------------- GLASS EFFECT ---------------- */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--soft-shadow);
  transition: var(--transition);
}

.glass:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-shadow), var(--soft-shadow);
  background: var(--bg-card-hover);
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(6, 10, 19, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

.brand:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.main-nav .cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.main-nav .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #ffffff;
}

/* Nav toggle button styling */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.nav-toggle:hover {
  color: var(--primary);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 40%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

/* Decorative floating shapes */
.hero-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.float-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 100%);
  filter: blur(20px);
  animation: float 20s infinite ease-in-out;
}

.float-shape.s1 {
  width: 150px;
  height: 150px;
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.float-shape.s2 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: 5%;
  animation-delay: -5s;
}

.float-shape.s3 {
  width: 100px;
  height: 100px;
  top: 60%;
  right: 35%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) scale(1.1) rotate(180deg);
  }
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow), var(--glow-shadow);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
  color: #ffffff;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-shadow);
}

/* ---------------- FEATURES (HOME PAGE) ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 4rem 0 6rem;
}

.card {
  padding: 2.2rem;
  border-radius: 12px;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------------- GRID LAYOUTS (PRODUCTS / SERVICES) ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Products Card styling */
.product {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--soft-shadow);
}

.product:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-shadow), var(--soft-shadow);
  background: var(--bg-card-hover);
}

.product h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.product p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.muted {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4rem;
}

/* Services section design */
.service-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.service-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem;
  border-radius: 14px;
}

.service-card .service-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(14, 165, 233, 0.15);
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.7;
}

.service-card .service-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-card .service-info p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------------- ABOUT PAGE ---------------- */
.about-hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.about-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.about-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding-bottom: 6rem;
}

.about-card {
  padding: 2.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--soft-shadow);
  transition: var(--transition);
}

.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-shadow), var(--soft-shadow);
  background: var(--bg-card-hover);
}

.about-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ---------------- CONTACT & RFQ ---------------- */
.contact-hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 6rem;
}

.contact-card, .rfq-card {
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-card h3, .rfq-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.info-block {
  margin-bottom: 1.75rem;
}

.info-block span {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.info-block p, .info-block a {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.info-block a:hover {
  color: var(--accent);
}

.map-container {
  margin-top: 1.5rem;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.9) invert(0.9) contrast(1.1);
  opacity: 0.85;
}

.map-open-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* FORM ELEMENTS */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(2, 4, 8, 0.4);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

input::placeholder, textarea::placeholder {
  color: #64748b;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
  background: rgba(2, 4, 8, 0.6);
}

select option {
  background: #0f172a;
  color: #ffffff;
}

textarea {
  margin-top: 1.25rem;
  resize: vertical;
}

/* Custom file upload styling */
.file-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
  border: 1px dashed var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
  margin-top: 1.25rem;
  color: var(--text-muted);
}

.file-upload:hover {
  background: rgba(14, 165, 233, 0.03);
  border-color: var(--primary);
  color: #ffffff;
}

.file-upload input {
  display: none;
}

.file-upload.has-file {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.05);
  color: var(--accent);
}

.form-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.form-actions .btn {
  width: 100%;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* RFQ Confirmation box styling */
.rfq-confirm-box {
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  border: 1px solid var(--accent);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
  text-align: center;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.rfq-confirm-box h4 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.rfq-confirm-box p {
  color: #ffffff;
  margin: 0;
  font-size: 0.9rem;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: #020408;
  padding: 2.5rem 0;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.site-footer p {
  margin: 0;
}

/* ---------------- ANIMATIONS ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  /* MOBILE HEADER DRAWER */
  .nav-toggle {
    display: block;
    z-index: 10000;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #060a13;
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }
  
  .main-nav.nav-active {
    right: 0;
  }
  
  .main-nav a {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }
  
  .main-nav .cta {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
  }
  
  .site-footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
