/* ============================================================
   COMMON.CSS — Orion Enterprises
   Theme: Aerospace Inspired + Innovation Enterprise
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --primary: #081120;
  --secondary: #13213A;
  --accent: #6D5EF5;
  --highlight: #06B6D4;
  --gold: #D4AF37;
  
  --bg-main: #030712;
  --bg-soft: #0F172A;
  
  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(109, 94, 245, 0.3);
  
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  
  --max-width: 1400px;
  --header-height: 80px;
}

/* ── Reset & Global ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-main); background: var(--bg-main); line-height: 1.6; overflow-x: hidden; position: relative; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; background: none; border: none; outline: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.05em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
p { margin-bottom: 1.5rem; font-weight: 400; color: var(--text-secondary); }

/* Text Gradients */
.text-glow { color: var(--highlight); text-shadow: 0 0 15px rgba(6, 182, 212, 0.4); }
.text-gradient { background: linear-gradient(90deg, var(--highlight) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Layout & Backgrounds ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-soft); }

/* Cosmic Elements */
.star-field { position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(109, 94, 245, 0.1) 0%, transparent 40%), radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.05) 0%, transparent 40%); z-index: 0; pointer-events: none; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--border-light) 1px, transparent 1px), linear-gradient(90deg, var(--border-light) 1px, transparent 1px); background-size: 50px 50px; opacity: 0.3; z-index: 0; pointer-events: none; }

.section-content { position: relative; z-index: 10; }

.badge-tech { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: rgba(109, 94, 245, 0.1); border: 1px solid var(--border-accent); border-radius: 20px; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--highlight); margin-bottom: 20px; box-shadow: 0 0 10px rgba(109, 94, 245, 0.2); }
.badge-tech::before { content: ''; width: 6px; height: 6px; background: var(--highlight); border-radius: 50%; box-shadow: 0 0 8px var(--highlight); }

/* ── Header ── */
.oe-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(3, 7, 18, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height); transition: var(--transition-fast);
}
.oe-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.oe-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.oe-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; font-size: 1.8rem; color: var(--text-main); letter-spacing: 0.1em; }
.oe-logo-icon { width: 30px; height: 30px; background: transparent; border: 2px solid var(--highlight); border-radius: 50%; position: relative; }
.oe-logo-icon::after { content: ''; position: absolute; inset: 4px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }

.oe-nav-links { display: flex; gap: 35px; align-items: center; }
.oe-nav-links a { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; position: relative; }
.oe-nav-links a:hover, .oe-nav-links a.active { color: var(--highlight); }
.oe-nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--highlight); transition: var(--transition-fast); box-shadow: 0 0 8px var(--highlight); }
.oe-nav-links a:hover::after, .oe-nav-links a.active::after { width: 100%; }

.oe-auth { display: flex; align-items: center; gap: 20px; }
.btn-login { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.btn-login:hover { color: var(--text-main); }
.btn-register { padding: 10px 24px; background: rgba(109, 94, 245, 0.15); border: 1px solid var(--accent); color: var(--text-main); font-family: var(--font-heading); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 0 15px rgba(109, 94, 245, 0.3); transition: var(--transition-fast); }
.btn-register:hover { background: var(--accent); box-shadow: 0 0 25px rgba(109, 94, 245, 0.5); }

.oe-user-menu { display: none; align-items: center; gap: 20px; }
.oe-user-menu.active { display: flex; }
.oe-username { font-family: var(--font-heading); color: var(--highlight); font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.oe-logout { font-family: var(--font-heading); font-size: 0.9rem; cursor: pointer; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; }
.oe-logout:hover { color: var(--text-main); }

.oe-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.oe-hamburger span { width: 28px; height: 2px; background: var(--text-main); transition: 0.3s; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--accent) 0%, #4f46e5 100%); border: none; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; box-shadow: 0 5px 20px rgba(109, 94, 245, 0.4); transition: var(--transition-fast); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(109, 94, 245, 0.6); }

.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 13px 31px; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--highlight); background: rgba(6, 182, 212, 0.05); border: 1px solid var(--highlight); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: var(--transition-fast); clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.btn-secondary:hover { background: rgba(6, 182, 212, 0.15); box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); }

/* ── Glass Cards ── */
.glass-card { background: rgba(19, 33, 58, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-light); padding: 40px; transition: var(--transition-fast); position: relative; overflow: hidden; }
.glass-card::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 0; background: var(--highlight); transition: var(--transition-smooth); }
.glass-card:hover::before { height: 100%; box-shadow: 0 0 15px var(--highlight); }
.glass-card:hover { border-color: var(--border-accent); transform: translateY(-5px); background: rgba(19, 33, 58, 0.6); }

/* ── Footer ── */
.oe-footer { background: var(--bg-main); border-top: 1px solid var(--border-light); padding: 80px 0 30px; position: relative; }
.oe-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; position: relative; z-index: 10; }
.oe-footer-about p { margin-top: 20px; font-size: 0.95rem; max-width: 300px; color: var(--text-secondary); }
.oe-footer h4 { font-size: 1.1rem; color: #fff; margin-bottom: 25px; }
.oe-footer-links { display: flex; flex-direction: column; gap: 12px; }
.oe-footer-links a { color: var(--text-secondary); font-size: 0.95rem; }
.oe-footer-links a:hover { color: var(--highlight); padding-left: 5px; }
.oe-footer-contact p { font-size: 0.95rem; margin-bottom: 12px; color: var(--text-secondary); }
.oe-footer-bottom { padding-top: 30px; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-secondary); position: relative; z-index: 10; font-family: var(--font-heading); letter-spacing: 0.05em; text-transform: uppercase; }
.oe-footer-legal { display: flex; gap: 30px; }
.oe-footer-legal a:hover { color: var(--highlight); }

/* ── Toast ── */
#toast-container { position: fixed; top: 100px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.toast { background: rgba(8, 17, 32, 0.95); border: 1px solid var(--border-accent); color: var(--text-main); padding: 16px 24px; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 10px rgba(109,94,245,0.2); animation: slideLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; display: flex; align-items: center; gap: 12px; }
.toast::before { content: ''; width: 8px; height: 8px; background: var(--highlight); border-radius: 50%; box-shadow: 0 0 10px var(--highlight); }
@keyframes slideLeft { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Mobile ── */
@media (max-width: 1024px) {
  .oe-nav-links { position: fixed; top: var(--header-height); left: 0; width: 100%; height: calc(100vh - var(--header-height)); background: rgba(3, 7, 18, 0.98); flex-direction: column; justify-content: center; transform: translateY(-100%); opacity: 0; transition: var(--transition-smooth); pointer-events: none; border-bottom: 1px solid var(--border-accent); }
  .oe-nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .oe-nav-links a { font-size: 1.5rem; }
  .oe-hamburger { display: flex; }
  .oe-auth { display: none; }
  .oe-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .oe-footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .container { padding: 0 24px; }
}


/* ============================================================
   DARK THEME ALIASES FOR COPIED PAGES
   ============================================================ */
:root {
  --white: #FFFFFF;
  --bg-light: var(--bg-main);
  --bg-dark: #000000;
  --text-muted: var(--text-secondary);
  --border-color: var(--border-light);
  --shadow-lux: 0 8px 32px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* Overrides for specific components to make them look aerospace/glassmorphic */
body {
    color: var(--text-main);
    background-color: var(--bg-main);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
}

.contact-form-wrapper, .contact-form-box, .contact-info-card, .legal-container, .auth-container, .auth-box, .contact-info, .service-card, .timeline-box, .project-info, .why-mini-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-light) !important;
    backdrop-filter: blur(10px) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md);
}

.contact-form-wrapper input, .contact-form-wrapper textarea, .contact-form-wrapper select,
.auth-box input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-sm);
}

.contact-form-wrapper input:focus, .contact-form-wrapper textarea:focus, .auth-box input:focus {
    border-color: var(--accent) !important;
    outline: none;
}

.contact-form-wrapper label, .auth-box label, .contact-info p, .legal-container p {
    color: var(--text-secondary) !important;
}

.btn-primary, .btn-auth, .btn-accent {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
}

.btn-primary:hover, .btn-auth:hover {
    background: var(--highlight) !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.page-header {
    background: var(--bg-main) !important;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main) !important;
}
.page-header h1 {
    color: var(--text-main) !important;
}

/* Fix specific colors in contact/legal pages */
.section-padding {
    background-color: transparent !important;
}


/* FORM STRUCTURE FIXES FOR COPIED PAGES */
.form-group { margin-bottom: 2rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 0.6rem; color: var(--text-secondary) !important;
}
.form-control {
  width: 100%; padding: 1.1rem 1.4rem; font-size: 0.95rem; font-family: var(--font-body);
  border-radius: var(--radius-sm); transition: var(--transition-fast);
  background: rgba(0, 0, 0, 0.3) !important; border: 1px solid var(--border-light) !important;
  color: var(--text-main) !important;
}
.form-control:focus { outline: none; border-color: var(--accent) !important; box-shadow: 0 0 10px rgba(109, 94, 245, 0.3); }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.9rem; margin: 1.8rem 0; }
.checkbox-group input[type="checkbox"] { margin-top: 0.3rem; }
.checkbox-group label { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

/* FIX HEADING COLORS INSIDE CARDS */
.contact-form-box h3, .contact-info-card h3, .auth-box h3, .contact-info-item h5 {
  color: var(--text-main) !important;
}
.contact-info-item h5 {
  color: var(--accent) !important;
}
.contact-form-box h3 {
  margin-bottom: 0.5rem;
}
