/* ==========================================================================
   ⚡ ROBERTSCREATIONS.COM - SYSTEMS ARCHITECT OBSIDIAN THEME SYSTEM
   ========================================================================== */

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

:root {
  --bg-void: #030303;
  --bg-card: #0b0c10;
  --bg-panel: #0d0f14;
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(99, 102, 241, 0.15);
  
  /* Cyber Gradients */
  --accent-indigo: #6366f1;
  --accent-blue: #3b82f6;
  --accent-mint: #10b981;
  --accent-pink: #ec4899;
  --accent-yellow: #f59e0b;
  
  --text-pure: #ffffff;
  --text-bright: #f3f4f6;
  --text-dim: #9ca3af;
  --text-dark: #4b5563;

  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --glow-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.05);
}

/* ==========================================================================
   🏛️ CORE STYLE RESET
   ========================================================================== */

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

html, body {
  background-color: var(--bg-void);
  color: var(--text-bright);
  font-family: var(--font-sans);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* ==========================================================================
   📡 FLOATING GLASS HEADER
   ========================================================================== */

.portfolio-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: rgba(11, 12, 16, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 99px;
  padding: 0.8rem 2.5rem;
  z-index: 1000;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.02);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.neon-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

.site-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-pure);
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-blue));
  transition: width 0.3s ease;
}

.site-nav a:hover {
  color: var(--text-pure);
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.active {
  color: var(--text-pure);
}

.site-nav a.active::after {
  width: 100%;
}

/* ==========================================================================
   ⚡ DYNAMIC TELEMETRY HERO SECTION
   ========================================================================== */

.portfolio-hero {
  padding: 13rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-glass);
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent-mint);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 1.2rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  background: rgba(16, 185, 129, 0.05);
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-pure);
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-indigo) 30%, var(--accent-pink) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

/* Floating Terminal Metric Display (Right Col) */
.hero-telemetry-panel {
  background: rgba(11, 12, 16, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
}

.hero-telemetry-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), transparent 70%);
  z-index: -1;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.telemetry-row:last-child {
  border-bottom: none;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.telemetry-value {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent-mint);
}

.telemetry-value.blue { color: var(--accent-blue); }
.telemetry-value.pink { color: var(--accent-pink); }
.telemetry-value.yellow { color: var(--accent-yellow); }

/* ==========================================================================
   🔘 BUTTON DESIGNS
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
  color: var(--text-pure);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.6);
}

.btn-outline-cyber {
  background-color: transparent;
  color: var(--text-pure);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline-cyber:hover {
  transform: translateY(-3px);
  border-color: var(--text-pure);
  background-color: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   📁 PORTFOLIO GRID / TELEMETRY BOARDS
   ========================================================================== */

.portfolio-main {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-pure);
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 700px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.portfolio-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-indigo);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
}

/* Simulated prompt panel header tab */
.card-header-tab {
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.6rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dark);
}

.portfolio-card:hover .card-dots span:first-child { background-color: var(--accent-indigo); }
.portfolio-card:hover .card-dots span:nth-child(2) { background-color: var(--accent-blue); }
.portfolio-card:hover .card-dots span:last-child { background-color: var(--accent-mint); }

.card-status-label {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--text-dark);
  text-transform: uppercase;
}

.portfolio-card:hover .card-status-label {
  color: var(--accent-mint);
}

.card-image-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: #050608;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .card-image {
  transform: scale(1.04);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.card-image-wrap:hover .image-overlay {
  opacity: 1;
}

.btn-visit {
  background: var(--text-pure);
  color: var(--bg-void);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-visit:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.card-body {
  padding: 1.8rem;
}

.card-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--accent-indigo);
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.card-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-pure);
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}

.card-link {
  display: block;
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.card-body p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==========================================================================
   💻 CODESPACE / CARBON PANELS
   ========================================================================== */

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  margin-top: 5rem;
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

.carbon-panel {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.panel-header {
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dots span.red { background-color: #ef4444; }
.dots span.yellow { background-color: #f59e0b; }
.dots span.green { background-color: #10b981; }

.title-text {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.panel-body {
  padding: 2.5rem;
}

.subpage-padding {
  padding: 3.5rem;
}

.post-article h2 {
  font-family: var(--font-mono);
  color: var(--text-pure);
  font-size: 1.6rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.post-article p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.post-article ul {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.post-article ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.post-article ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-indigo);
}

/* ==========================================================================
   📅 DEVELOPER SIDEBAR
   ========================================================================== */

.portfolio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.bio-widget {
  text-align: center;
}

.bio-avatar {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 1.2rem;
  color: var(--text-pure);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.bio-widget h3 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-pure);
  margin-bottom: 0.2rem;
}

.bio-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-mint);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.bio-text {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.sidebar-widget h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-pure);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.6rem;
  letter-spacing: 1px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  color: var(--text-pure);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
  outline: none;
  background-color: rgba(255, 255, 255, 0.02);
}

.btn-contact {
  background: var(--accent-indigo);
  color: var(--text-pure);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  padding: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-contact:hover {
  background: #4f46e5;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.blogroll-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.blogroll-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.6rem;
}

.blogroll-list li:last-child {
  border-bottom: none;
}

.blogroll-list a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.blogroll-list a:hover {
  color: var(--accent-pink);
}

/* ==========================================================================
   🌌 PORTFOLIO SLIDER COMPONENT
   ========================================================================== */

.portfolio-slider-page {
  padding-top: 10rem;
}

.portfolio-slider-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

.slider-wrapper {
  position: relative;
  height: 420px;
}

@media (max-width: 800px) {
  .slider-wrapper {
    height: auto;
  }
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-item.active {
  position: relative;
  opacity: 1;
  pointer-events: all;
}

.slide-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
  height: 100%;
}

@media (max-width: 800px) {
  .slide-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.slide-image-frame {
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  height: 360px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

@media (max-width: 800px) {
  .slide-image-frame {
    height: 200px;
  }
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.slide-info-col h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}

.slide-domain-link {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--accent-pink);
  text-decoration: none;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.slide-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.dot.active {
  background: var(--accent-indigo);
  box-shadow: 0 0 10px var(--accent-indigo);
}

.slider-controls .btn-prev,
.slider-controls .btn-next {
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  border-radius: 99px;
}

/* ==========================================================================
   🏛️ PORTFOLIO FOOTER
   ========================================================================== */

.portfolio-footer {
  background-color: #020202;
  border-top: 1px solid var(--border-glass);
  padding: 5rem 2rem 3rem;
  margin-top: 6rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-pure);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.disclaimer-text {
  font-family: var(--font-code);
  font-size: 0.75rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}
