/* ==========================================================================
   Freelance ki Dunia - Official Stylesheet
   Theme: Modern Deep Blue & Neon Glow Aesthetics
   ========================================================================== */

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

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --bg-primary: #060e22;
  --bg-secondary: #0a1738;
  --bg-card: rgba(12, 26, 56, 0.75);
  --bg-card-hover: rgba(18, 38, 80, 0.85);
  
  --color-primary: #00d2ff;
  --color-secondary: #0077b6;
  --color-accent: #38bdf8;
  --color-glow: rgba(0, 210, 255, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(56, 189, 248, 0.18);
  --border-glass-hover: rgba(56, 189, 248, 0.45);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 119, 182, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 35%, rgba(0, 210, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(2, 62, 138, 0.2) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #060e22;
}
::-webkit-scrollbar-thumb {
  background: #0077b6;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00d2ff;
}

/* Glow & Glass Utilities */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: 0 15px 35px -5px rgba(0, 210, 255, 0.15);
}

.glass-nav {
  background: rgba(6, 14, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, #00d2ff 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00d2ff 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-btn {
  position: relative;
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
  transition: all 0.3s ease;
}

.glow-btn:hover {
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.7);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #00d2ff 0%, #0096c7 100%);
}

.outline-glow-btn {
  border: 1.5px solid rgba(0, 210, 255, 0.6);
  background: rgba(0, 210, 255, 0.05);
  color: #00d2ff;
  transition: all 0.3s ease;
}

.outline-glow-btn:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: #00d2ff;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 210, 255, 0.4); }
  50% { box-shadow: 0 0 35px rgba(0, 210, 255, 0.75); }
}

@keyframes wavePulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite;
}

/* Banner Frame */
.banner-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 119, 182, 0.4),
              0 0 30px rgba(0, 210, 255, 0.25);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  transition: all 0.5s ease;
}

.banner-frame:hover {
  border-color: rgba(0, 210, 255, 0.7);
  box-shadow: 0 25px 60px -5px rgba(0, 119, 182, 0.6),
              0 0 45px rgba(0, 210, 255, 0.45);
}

.banner-frame img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
  height: auto;
  display: block;
}

.banner-frame:hover img {
  transform: scale(1.02);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-float:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.8);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  z-index: 990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(12, 26, 56, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #00d2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #0077b6;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.5);
}

/* Portfolio Item Cards */
.portfolio-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 14, 34, 0.95) 0%, rgba(6, 14, 34, 0.4) 60%, transparent 100%);
  opacity: 0.9;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.portfolio-card:hover .overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(6, 14, 34, 0.98) 0%, rgba(0, 119, 182, 0.45) 80%, rgba(0, 210, 255, 0.15) 100%);
}

.portfolio-card img {
  transition: transform 0.5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

/* Service Card Glow on Hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00d2ff, #0077b6, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f274e;
  border: 1px solid #00d2ff;
  color: #fff;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
