/* styles/main.css */

/* Custom properties for the Antigravity Design Concept */
:root {
  --background-main: #F4F7FC;     /* Gravitational White */
  --text-primary: #0B132B;        /* Cosmic Deep Blue */
  --text-secondary: #4A5568;      /* Slate Blue for descriptions */
  --brand-electric: #3A86FF;      /* Electric Cyan Blue */
  --brand-electric-hover: #2563EB;
  --brand-glow: #FFD700;          /* Cosmic Neon Yellow */
  --brand-glow-muted: rgba(255, 215, 0, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(58, 134, 255, 0.12);
  --cosmic-dark: #0B132B;         /* Dark blue for code/console backgrounds */
  --cosmic-deep-blue: #1C2541;
  --gradient-antigravity: linear-gradient(to top, var(--cosmic-deep-blue), var(--brand-electric));
  --font-family: 'Candara', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --shadow-soft: 0 10px 20px rgba(11, 19, 43, 0.04);
  --shadow-float: 0 20px 40px rgba(11, 19, 43, 0.08);
  --shadow-glow: 0 0 15px rgba(255, 215, 0, 0.5);
  --shadow-electric: 0 0 15px rgba(58, 134, 255, 0.4);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Header & Navigation */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-sphere {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-logo 4s ease-in-out infinite alternate;
}

.logo-image {
  height: 38px;
  width: auto;
  object-fit: contain;
}

h1.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gradient-antigravity);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.75rem;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a:hover {
  color: var(--brand-electric);
  background: rgba(58, 134, 255, 0.05);
}

nav li.active a {
  color: #fff;
  background: var(--gradient-antigravity);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-electric);
}

/* Main content layout */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

.tab-content {
  display: none;
  animation: fade-in 0.5s ease-out forwards;
}

.tab-content.active {
  display: block;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  margin-top: auto;
}

footer a {
  color: var(--brand-electric);
  text-decoration: none;
  font-weight: 600;
}

/* Float logo animation for visual branding */
@keyframes float-logo {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.6);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
