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

/* DESIGN SYSTEM TOKENS */
:root {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --color-primary: #6C3EF4;
  --color-primary-light: #8B5CF6;
  --color-secondary: #2563EB;
  --color-accent: #06B6D4;
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 25px -10px rgba(108, 62, 244, 0.15);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(108, 62, 244, 0.4);
  
  --glass-bg: rgba(30, 41, 59, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS RESET & GENERAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* BACKGROUND DECORATIONS (PARTICLES & GLOWS) */
.page-bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 62, 244, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: -2;
  pointer-events: none;
}
.glow-top-right {
  top: -200px;
  right: -200px;
}
.glow-bottom-left {
  bottom: -200px;
  left: -200px;
}
.glow-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(0,0,0,0) 60%);
  width: 800px;
  height: 800px;
}

.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

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

/* CONTAINERS & LAYOUTS */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(108, 62, 244, 0.15);
  border: 1px solid rgba(108, 62, 244, 0.3);
  border-radius: var(--radius-xl);
  color: var(--color-primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
  font-size: 2.25rem;
  background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-primary);
  box-shadow: 0 4px 15px rgba(108, 62, 244, 0.3);
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-accent {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-accent:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* NAVBAR (GLASSMORPHISM) */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}
.navbar.scrolled {
  height: 70px;
  background: rgba(15, 23, 42, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(108, 62, 244, 0.4);
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}
.nav-link {
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-text-primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: var(--transition-normal);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}
.nav-user-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
}
.nav-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* GLASS CARD STYLES */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 62, 244, 0.25);
  box-shadow: var(--shadow-md);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}
.card:hover::before {
  opacity: 1;
}

/* FOOTER */
.footer {
  background: #090D1A;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 20px 0;
  margin-top: auto;
  position: relative;
  z-index: 10;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-info p {
  margin: 15px 0 20px 0;
  font-size: 0.95rem;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: var(--transition-normal);
}
.social-icon:hover {
  background: var(--color-primary);
  color: var(--color-text-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 62, 244, 0.3);
}
.footer-title {
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.input-field {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  outline: none;
  font-size: 0.9rem;
  width: 100%;
  transition: var(--transition-normal);
}
.input-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(108, 62, 244, 0.25);
}
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 35px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition-normal);
  position: relative;
}
.modal-overlay.active .modal-box {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--color-text-primary);
}
.modal-title {
  font-size: 1.75rem;
  margin-bottom: 10px;
  text-align: center;
}
.modal-desc {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
}

/* NOTIFICATIONS SYSTEM */
.notification-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: 100%;
}
.toast {
  background: var(--bg-secondary);
  border-left: 4px solid var(--color-primary);
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
.toast.success { border-left-color: var(--success); }
.toast.info { border-left-color: var(--color-accent); }
.toast.warning { border-left-color: var(--warning); }
.toast.error { border-left-color: var(--error); }
.toast-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: auto;
}
.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.toast-message {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* FLOATING & FLOATING SCROLL REVEALS */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* FLOATING SHAPES KEYFRAMES */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes float-reverse {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes toastIn {
  to { transform: translateY(0); opacity: 1; }
}

.floating-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}
.shape-1 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: 15%;
  left: 5%;
  animation: float 6s infinite ease-in-out;
}
.shape-2 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  bottom: 25%;
  right: 8%;
  animation: float-reverse 8s infinite ease-in-out;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  h1 { font-size: 2.3rem; }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-info {
    grid-column: span 3;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .navbar { height: 70px; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 40px;
    gap: 30px;
    transition: var(--transition-normal);
    z-index: 99;
  }
  .nav-menu.active {
    left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-info {
    grid-column: span 1;
  }
}
