/* ============================================================
   ICE GENERATOR — SHARED BASE STYLES
   ============================================================ */

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

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

:root {
  --ice-deep:    #0a1628;
  --ice-mid:     #0d2340;
  --ice-blue:    #1a4a7a;
  --ice-cyan:    #4dd9f0;
  --ice-white:   #c8f0ff;
  --ice-glow:    #7ef4ff;
  --ice-border:  rgba(100, 210, 255, 0.22);
  --ice-shimmer: rgba(120, 230, 255, 0.08);
  --ice-card-bg: rgba(13, 35, 64, 0.82);
  --font-display: 'Exo 2', sans-serif;
  --font-body:    'Rajdhani', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--ice-deep);
  font-family: var(--font-body);
  color: var(--ice-white);
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ice-deep); }
::-webkit-scrollbar-thumb { background: var(--ice-cyan); border-radius: 3px; }

/* Aurora background (fixed) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(13,100,180,0.45) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(20,60,130,0.28) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 5%  70%, rgba(0,120,200,0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Crystal grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(77,217,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,217,240,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---- NAVBAR ---- */
header {
  position: relative;
  z-index: 100;
}

.main {
  display: flex;
  align-items: center;
  padding: 14px 5%;
  background: rgba(8, 20, 45, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ice-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ice-border);
}

.logoname {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-white);
  white-space: nowrap;
}

.logoname a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(90deg, #fff, var(--ice-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 4px;
  height: auto;
}

.link { display: flex; align-items: center; }

.sep {
  color: rgba(77,217,240,0.25);
  padding: 0 4px;
  font-size: 14px;
  pointer-events: none;
}

.link a, .link button, .link a button {
  background: none;
  border: none;
  color: rgba(200, 230, 255, 0.75);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
}

.link:hover a, .link:hover button, .link:hover a button {
  color: var(--ice-cyan);
  text-shadow: 0 0 12px rgba(77,217,240,0.6);
}

/* Mobile dropdown */
.dropdown {
  position: relative;
  display: none;
  margin-left: auto;
}

.dropbtn {
  background: transparent;
  border: 1px solid var(--ice-border);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}

.hamburger { width: 20px; height: 20px; filter: invert(1); }

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(8, 20, 45, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--ice-border);
  border-radius: 4px;
  min-width: 160px;
  overflow: hidden;
  z-index: 200;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(77,217,240,0.06);
}

.dropdown-content a:last-child { border-bottom: none; }

.dropdown-content button {
  background: none;
  border: none;
  color: rgba(200,230,255,0.8);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 0;
  transition: color 0.15s;
}

.dropdown-content a:hover button { color: var(--ice-cyan); }
.displayblock { display: block !important; }

/* ---- FLOATING SHARDS (shared) ---- */
.shards { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.shard {
  position: absolute;
  opacity: 0;
  border: 1px solid rgba(120,220,255,0.25);
  background: rgba(120,220,255,0.04);
  animation: shardDrift linear infinite;
}
@keyframes shardDrift {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  5%   { opacity: 0.7; }
  88%  { opacity: 0.4; }
  100% { transform: translateY(-15vh) rotate(600deg); opacity: 0; }
}
.shard:nth-child(1)  { width:8px;  height:18px; left:8%;  animation-duration:16s; animation-delay:0s; }
.shard:nth-child(2)  { width:5px;  height:12px; left:22%; animation-duration:20s; animation-delay:3s; }
.shard:nth-child(3)  { width:10px; height:22px; left:38%; animation-duration:14s; animation-delay:7s; }
.shard:nth-child(4)  { width:6px;  height:15px; left:55%; animation-duration:22s; animation-delay:1s; }
.shard:nth-child(5)  { width:9px;  height:20px; left:72%; animation-duration:18s; animation-delay:9s; }
.shard:nth-child(6)  { width:4px;  height:10px; left:86%; animation-duration:12s; animation-delay:4s; }
.shard:nth-child(7)  { width:7px;  height:16px; left:4%;  animation-duration:24s; animation-delay:6s; }
.shard:nth-child(8)  { width:11px; height:24px; left:48%; animation-duration:17s; animation-delay:2s; }
.shard:nth-child(9)  { width:5px;  height:13px; left:30%; animation-duration:21s; animation-delay:11s; }
.shard:nth-child(10) { width:8px;  height:19px; left:65%; animation-duration:15s; animation-delay:5s; }

/* ---- UTILITY ---- */
a { text-decoration: none; color: var(--ice-cyan); }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-60px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .links { display: none; }
  .sep   { display: none; }
  .dropdown { display: block; }
  .logoname { font-size: 1rem; }
}
