/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
 width: 8px;
}
::-webkit-scrollbar-track {
 background: #0b0f19;
}
::-webkit-scrollbar-thumb {
 background: #1e3a8a;
 border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
 background: #0ea5e9;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
body {
 background-color: #0b0f19;
 color: #cbd5e1;
}

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

/* ==========================================================================
   GLASS EFFECTS
   ========================================================================== */
.glass {
 background: rgba(12, 17, 30, 0.8);
 backdrop-filter: blur(16px);
 -webkit-backdrop-filter: blur(16px);
 border: 1px solid rgba(255, 255, 255, 0.08);
 box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-card {
 background: rgba(21, 27, 43, 0.2);
 backdrop-filter: blur(6px);
 border: 1px solid rgba(255, 255, 255, 0.05);
 transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
 background: rgba(21, 27, 43, 0.6);
 border-color: rgba(14, 165, 233, 0.5);
 transform: scale(1.01) translateY(-3px) !important;
 box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.25);
}

.glass-badge {
 display: inline-block;
 padding: 0.25rem 0.5rem;
 border-radius: 0.25rem;
 background-color: rgba(255, 255, 255, 0.05);
 font-family: "JetBrains Mono", monospace;
 font-size: 10px;
 color: #9ca3af;
 border: 1px solid rgba(255, 255, 255, 0.1);
 transition: all 0.3s ease;
}

.glass-badge.accent {
 background-color: rgba(139, 92, 246, 0.1);
 color: #a78bfa;
 border-color: rgba(139, 92, 246, 0.2);
}

.glass-badge.primary {
 background-color: rgba(14, 165, 233, 0.1);
 color: #38bdf8;
 border-color: rgba(14, 165, 233, 0.2);
}

/* ==========================================================================
   TEXT EFFECTS
   ========================================================================== */
.text-gradient {
 background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

.glitch-text {
 position: relative;
}

.glitch-text:before,
.glitch-text:after {
 content: attr(data-text);
 position: absolute;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 pointer-events: none;
 clip: rect(0, 0, 0, 0);
}

.glitch-text:before {
 left: -2px;
 text-shadow: 1px 0 #0ea5e9;
 background: #0b0f19;
 animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text:after {
 left: 2px;
 text-shadow: -1px 0 #8b5cf6;
 background: #0b0f19;
 animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.scanline {
 width: 100%;
 height: 150px;
 z-index: 10;
 background: linear-gradient(
  0deg,
  rgba(0, 0, 0, 0) 0%,
  rgba(14, 165, 233, 0.1) 50%,
  rgba(0, 0, 0, 0) 100%
 );
 opacity: 0.2;
 position: absolute;
 bottom: 100%;
 animation: scanline 4s linear infinite;
 pointer-events: none;
}

.reveal {
 opacity: 0;
 transform: translateY(20px);
 filter: blur(4px);
 transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
 opacity: 1;
 transform: translateY(0);
 filter: blur(0);
}

@keyframes scanline {
 0% {
  bottom: 100%;
 }
 100% {
  bottom: -150px;
 }
}

@keyframes glitch-anim-1 {
 0% {
  clip: rect(32px, 9999px, 5px, 0);
  transform: skew(0.5deg);
 }
 15% {
  clip: rect(50px, 9999px, 12px, 0);
  transform: skew(-0.5deg);
 }
 30% {
  clip: rect(10px, 9999px, 45px, 0);
  transform: skew(1.5deg);
 }
 45%,
 100% {
  clip: rect(0, 9999px, 9999px, 0);
  transform: skew(0deg);
 }
}

@keyframes glitch-anim-2 {
 0% {
  clip: rect(12px, 9999px, 55px, 0);
  transform: skew(-1.5deg);
 }
 15% {
  clip: rect(38px, 9999px, 20px, 0);
  transform: skew(1deg);
 }
 30% {
  clip: rect(60px, 9999px, 15px, 0);
  transform: skew(-0.5deg);
 }
 45%,
 100% {
  clip: rect(0, 9999px, 9999px, 0);
  transform: skew(0deg);
 }
}

/* Animation Delays - replacing inline styles */
.anim-delay-1 {
 animation-delay: 1s;
}
.anim-delay-2 {
 animation-delay: 2s;
}
.anim-delay-3 {
 animation-delay: 3s;
}

/* Transition Delays - replacing inline styles */
.trans-delay-100 {
 transition-delay: 100ms;
}
.trans-delay-200 {
 transition-delay: 200ms;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav-menu-item {
 display: block;
 padding: 0.5rem 0.75rem;
 font-size: 0.875rem;
 color: #9ca3af;
 transition: color 0.3s ease;
 position: relative;
 cursor: pointer;
}

.nav-menu-item:hover {
 color: #ffffff;
}

.nav-menu-item::after {
 content: "";
 position: absolute;
 bottom: -4px;
 left: 0;
 width: 0;
 height: 2px;
 background-color: #0ea5e9;
 transition: width 0.3s ease;
}

.nav-menu-item:hover::after {
 width: 100%;
}

.nav-menu-item.sec-accent::after {
 background-color: #8b5cf6;
}

/* ==========================================================================
   TAGS & BADGES
   ========================================================================== */
.tech-tag {
 display: inline-block;
 padding: 0.125rem 0.5rem;
 background-color: #000000;
 border-radius: 0.25rem;
 font-family: "JetBrains Mono", monospace;
 font-size: 10px;
 color: #9ca3af;
 border: 1px solid rgba(255, 255, 255, 0.1);
 margin-right: 0.5rem;
 margin-bottom: 0.5rem;
}

.tech-tag.subtle {
 border-color: rgba(255, 255, 255, 0.05);
 color: #6b7280;
}

.lab-tag {
 display: inline-flex;
 align-items: center;
 padding: 0.25rem 0.5rem;
 background-color: #0b0f19;
 border: 1px solid rgba(255, 255, 255, 0.05);
 border-radius: 0.25rem;
 font-size: 10px;
 color: #9ca3af;
 font-family: "JetBrains Mono", monospace;
 white-space: nowrap;
}

.tech-badge-compact {
 display: inline-block;
 padding: 0.25rem 0.5rem;
 border-radius: 0.25rem;
 font-size: 10px;
 font-family: "JetBrains Mono", monospace;
}

.tech-badge-compact.tech-badge-primary {
 background-color: rgba(14, 165, 233, 0.1);
 color: #0ea5e9;
 border: 1px solid rgba(14, 165, 233, 0.2);
}

.tech-badge-compact.tech-badge-accent {
 background-color: rgba(139, 92, 246, 0.1);
 color: #8b5cf6;
 border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.cert-card {
 display: block;
 padding: 1rem;
 border-radius: 0.75rem;
 border: 1px solid rgba(255, 255, 255, 0.05);
 transition: all 0.3s ease;
 text-decoration: none;
}

.cert-card:hover {
 border-color: rgba(14, 165, 233, 0.3);
 background: rgba(21, 27, 43, 0.4);
 transform: translateY(-2px);
}

.cert-card:hover i.fa-medal,
.cert-card:hover i.fa-lock,
.cert-card:hover i.fa-check-double {
 transform: scale(1.1);
 transition: transform 0.3s ease;
}

.cert-card:hover i.fa-external-link-alt {
 color: #ffffff;
 transition: color 0.3s ease;
}

.card-lab {
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: 0.75rem;
 padding: 1.5rem;
 position: relative;
 overflow: hidden;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline-card {
 display: flex;
 flex-direction: column;
 gap: 1rem;
 justify-content: space-between;
 background-color: rgba(255, 255, 255, 0.05);
 padding: 1.5rem;
 border-radius: 0.75rem;
 border: 1px solid rgba(255, 255, 255, 0.05);
 transition: all 0.3s ease;
}

.timeline-card:hover {
 background-color: rgba(255, 255, 255, 0.15);
}

.timeline-card.primary:hover {
 border-color: rgba(14, 165, 233, 0.3);
}

.timeline-card.accent:hover {
 border-color: rgba(139, 92, 246, 0.3);
}

.timeline-card .tech-tag {
 background-color: rgba(14, 165, 233, 0.1);
 color: #0ea5e9;
 border-color: rgba(14, 165, 233, 0.2);
}

.timeline-card .tech-tag.subtle {
 background-color: #0b0f19;
 border-color: rgba(255, 255, 255, 0.05);
 color: #6b7280;
}

.timeline-row {
 position: relative;
 padding-left: 2rem;
}

.timeline-list-item {
 display: flex;
 align-items: flex-start;
}

.timeline-list-item > span {
 color: #0ea5e9;
 margin-right: 0.5rem;
}

@media (min-width: 768px) {
 .timeline-card {
  flex-direction: row;
 }
 .timeline-row {
  padding-left: 3rem;
 }
 .timeline-meta {
  width: 40%;
 }
 .timeline-content {
  width: 60%;
 }
}

/* ==========================================================================
   LAB COMPONENTS
   ========================================================================== */
.lab-row {
 border-bottom: 1px solid rgba(255, 255, 255, 0.05);
 padding-bottom: 0.5rem;
 margin-bottom: 0.75rem;
}

.lab-row:last-child {
 border-bottom: none;
 margin-bottom: 0;
}

.lab-row-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 0.25rem;
}

.lab-label {
 color: #9ca3af;
 font-family: "JetBrains Mono", monospace;
 font-size: 0.75rem;
}

.lab-meta {
 font-size: 10px;
 color: #6b7280;
 text-transform: uppercase;
}

.lab-desc {
 color: #d1d5db;
 font-size: 0.75rem;
 line-height: 1.625;
}

.lab-header-icon {
 width: 2rem;
 height: 2rem;
 border-radius: 0.25rem;
 display: flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
}

/* ==========================================================================
   ICON LIST
   ========================================================================== */
.icon-list-item {
 display: flex;
 align-items: flex-start;
 font-size: 0.875rem;
 color: #d1d5db;
 margin-bottom: 0.75rem;
}

.icon-list-item i {
 margin-top: 0.25rem;
 margin-right: 0.75rem;
 font-size: 0.75rem;
 flex-shrink: 0;
}

/* ==========================================================================
   FEATURE ICON BOX
   ========================================================================== */
.feature-icon-box {
 width: 3.5rem;
 height: 3.5rem;
 border-radius: 0.75rem;
 display: flex;
 align-items: center;
 justify-content: center;
 margin-bottom: 1.5rem;
 font-size: 1.5rem;
 transition: transform 300ms;
}

.group:hover .feature-icon-box {
 transform: scale(1.1) !important;
}

/* ==========================================================================
   SOCIAL
   ========================================================================== */
.social-circle {
 width: 4rem;
 height: 4rem;
 border-radius: 9999px;
 background-color: rgba(21, 27, 43, 1);
 border: 1px solid rgba(255, 255, 255, 0.1);
 display: flex;
 align-items: center;
 justify-content: center;
 color: white;
 box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
 transition: all 0.3s ease;
}

.social-circle:hover {
 transform: translateY(-0.5rem);
}

.social-circle.linkedin:hover {
 background-color: #0ea5e9;
 border-color: #0ea5e9;
}

.social-circle.credly:hover {
 background-color: #22c55e;
 border-color: #22c55e;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-link:hover {
 color: #0ea5e9;
 background: #0ea5e91a;
 border-color: #0ea5e933;
 box-shadow: 0 0 15px #0ea5e933;
}

/* ==========================================================================
   COLOR SECTION MODIFIERS
   ========================================================================== */

/* Accent (Purple) Section */
.color-accent-sec .icon {
 background-color: rgba(139, 92, 246, 0.1);
 color: #a78bfa;
}

.color-accent-sec .icon-list-item i {
 color: #a78bfa;
}

.color-accent-sec .tech-badge {
 background-color: rgba(139, 92, 246, 0.1);
 color: #a78bfa;
 border-color: rgba(139, 92, 246, 0.2);
}

.color-accent-sec .glass-card:hover {
 border-color: rgba(139, 92, 246, 0.3);
}

/* Primary (Blue) Section */
.color-primary-sec .icon {
 background-color: rgba(14, 165, 233, 0.1);
 color: #0ea5e9;
}

.color-primary-sec .icon-list-item i {
 color: #0ea5e9;
}

.color-primary-sec .tech-badge {
 background-color: rgba(14, 165, 233, 0.1);
 color: #0ea5e9;
 border-color: rgba(14, 165, 233, 0.2);
}

.color-primary-sec .glass-card:hover {
 border-color: rgba(14, 165, 233, 0.3);
}

/* Override classes for mixed sections */
.color-primary-sec .tech-badge.accent-override {
 background-color: rgba(139, 92, 246, 0.1);
 color: #a78bfa;
 border-color: rgba(139, 92, 246, 0.2);
}

.color-primary-sec .icon.accent-override {
 background-color: rgba(139, 92, 246, 0.1);
 color: #a78bfa;
}
