/* ============================================================
   COMMON.CSS — Infinity Enterprises
   Theme: Futuristic Innovation + Digital Horizon
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --primary: #111827;
  --secondary: #1E3A8A;
  --accent: #8B5CF6;
  --highlight: #06B6D4;
  --glow: #A855F7;
  --bg-dark: #030712;
  --bg-panel: rgba(17, 24, 39, 0.7);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  
  --border-glow: rgba(139, 92, 246, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --max-width: 1440px;
  --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-secondary); background: var(--bg-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; border-radius: 12px; }
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: 600; line-height: 1.2; color: var(--text-primary); letter-spacing: -0.02em; }
h1 { font-size: clamp(3rem, 7vw, 5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.5rem; font-weight: 300; }
.text-gradient { background: linear-gradient(135deg, var(--highlight), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

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

.ie-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.05em; color: var(--text-primary); }
.ie-logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--highlight), var(--accent)); border-radius: 8px; position: relative; }
.ie-logo-icon::after { content: ''; position: absolute; inset: 2px; background: var(--bg-dark); border-radius: 6px; }
.ie-logo-icon::before { content: ''; position: absolute; inset: 8px; background: linear-gradient(135deg, var(--highlight), var(--accent)); border-radius: 3px; z-index: 2; }

.ie-nav-links { display: flex; gap: 35px; align-items: center; }
.ie-nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); position: relative; }
.ie-nav-links a:hover, .ie-nav-links a.active { color: var(--text-primary); }
.ie-nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent); transition: var(--transition-fast); border-radius: 2px; }
.ie-nav-links a:hover::after, .ie-nav-links a.active::after { width: 100%; }

.ie-auth { display: flex; align-items: center; gap: 20px; }
.btn-login { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.btn-login:hover { color: var(--highlight); }
.btn-register { padding: 10px 20px; background: var(--text-primary); color: var(--bg-dark); border-radius: 30px; font-size: 0.9rem; font-weight: 600; transition: var(--transition-fast); }
.btn-register:hover { background: var(--highlight); color: var(--bg-dark); transform: scale(1.05); }

.ie-user-menu { display: none; align-items: center; gap: 20px; }
.ie-user-menu.active { display: flex; }
.ie-username { font-family: var(--font-heading); font-weight: 600; color: var(--highlight); }
.ie-logout { font-size: 0.9rem; cursor: pointer; color: var(--text-secondary); }
.ie-logout:hover { color: var(--text-primary); }

.ie-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.ie-hamburger span { width: 25px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 0.3s; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; border-radius: 30px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--bg-dark); background: var(--text-primary); transition: var(--transition-fast); cursor: pointer; }
.btn-primary:hover { background: var(--highlight); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; border-radius: 30px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text-primary); background: rgba(255,255,255,0.05); border: 1px solid var(--border-light); transition: var(--transition-fast); cursor: pointer; backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--highlight); color: var(--highlight); }

/* ── UI Elements ── */
.section { padding: 140px 0; position: relative; }
.glass-panel { background: var(--bg-panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: 24px; padding: 50px; }
.badge { display: inline-block; padding: 8px 16px; background: rgba(139, 92, 246, 0.1); border: 1px solid var(--border-glow); border-radius: 30px; font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Footer ── */
.ie-footer { border-top: 1px solid var(--border-light); padding: 100px 0 40px; background: #010308; }
.ie-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 80px; }
.ie-footer-about p { margin-top: 20px; font-size: 0.95rem; max-width: 300px; }
.ie-footer h4 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 25px; }
.ie-footer-links { display: flex; flex-direction: column; gap: 15px; }
.ie-footer-links a { color: var(--text-secondary); font-size: 0.95rem; }
.ie-footer-links a:hover { color: var(--highlight); }
.ie-footer-contact p { font-size: 0.95rem; margin-bottom: 10px; }
.ie-footer-bottom { padding-top: 40px; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.ie-footer-legal { display: flex; gap: 30px; }
.ie-footer-legal a:hover { color: var(--highlight); }

/* ── Toast ── */
#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.toast { background: rgba(17, 24, 39, 0.9); backdrop-filter: blur(10px); color: var(--text-primary); padding: 16px 24px; border-radius: 12px; border: 1px solid var(--border-glow); font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

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