/*
Theme Name: Nasrin C Portfolio
Theme URI: https://nasrinc.dev
Author: Nasrin C
Author URI: https://nasrinc.dev
Description: A premium, modern, SaaS-style portfolio theme designed for Full-Stack Developers and WordPress Experts. Features rich glassmorphism cards, fluid animations, typewriter subtitles, and mock dashboard UIs.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nasrin-portfolio
Tags: portfolio, dark, modern, two-columns, custom-header, translation-ready, professional
*/

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
  --color-primary: #4F46E5;
  --color-secondary: #06B6D4;
  --color-accent: #10B981;
  --color-bg-dark: #0F172A;
  --color-card-dark: #111827;
  --color-text-light: #F8FAFC;
  --color-text-muted: #94A3B8;
}

/* =============================================
   Base Resets & Overrides
   ============================================= */

/* Override ALL WordPress default styles */
html {
  scroll-behavior: smooth;
  background-color: #0F172A !important;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix admin bar shifting content */
body.admin-bar #site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar #site-header {
    top: 46px;
  }
}

/* Override WordPress block styles */
.wp-site-blocks,
.entry-content,
.has-global-padding {
  padding: 0 !important;
  margin: 0 !important;
}

* {
  box-sizing: border-box;
}

::selection {
  background-color: rgba(79, 70, 229, 0.4);
  color: #F8FAFC;
}

/* =============================================
   Custom Scrollbar
   ============================================= */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0F172A;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #1E293B #0F172A;
}

/* =============================================
   Typography — Font Classes
   ============================================= */
.font-outfit {
  font-family: 'Outfit', sans-serif !important;
}

.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

/* =============================================
   Glassmorphism Classes
   ============================================= */
.glass-panel {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-navbar {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(17, 24, 39, 0.75);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px 0 rgba(79, 70, 229, 0.1);
  transform: translateY(-4px);
}

/* =============================================
   Glowing Radial Gradients
   ============================================= */
.glow-primary {
  background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15), transparent 60%);
}

.glow-secondary {
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15), transparent 60%);
}

.glow-accent {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.12), transparent 60%);
}

/* =============================================
   Neon Border Light Effect
   ============================================= */
.border-glow {
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.15);
}

/* =============================================
   Timeline Vertical Line
   ============================================= */
.timeline-line {
  background: linear-gradient(to bottom, transparent, rgba(79, 70, 229, 0.5) 20%, rgba(6, 182, 212, 0.5) 80%, transparent);
}

/* =============================================
   CSS Animations
   ============================================= */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-float-y {
  animation: floatY 6s ease-in-out infinite;
}

.animate-float-y-slow {
  animation: floatY 8s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse-slow {
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Ping animation for the "Available" badge dot */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* =============================================
   Scroll Reveal Effect
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   Loading Screen
   ============================================= */
@keyframes logoPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(2deg); }
}
.loader-logo {
  animation: logoPulse 2.5s ease-in-out infinite;
}

/* =============================================
   Skill Tab Buttons
   ============================================= */
.skill-tab-btn {
  cursor: pointer;
  color: #94A3B8;
}

.skill-tab-btn.active {
  background-color: rgba(30, 41, 59, 1);
  color: #fff;
}

.skill-tab-btn:hover:not(.active) {
  color: #CBD5E1;
  background-color: rgba(30, 41, 59, 0.5);
}

/* =============================================
   Skill Card Filter Transitions
   ============================================= */
.skill-card-node {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* =============================================
   Nav Link Active/Hover Enhancement
   ============================================= */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #4F46E5, #06B6D4);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* =============================================
   Form Input Focus Styles
   ============================================= */
input:focus,
textarea:focus {
  outline: none !important;
  border-color: rgba(79, 70, 229, 0.5) !important;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.15) !important;
}

/* =============================================
   Gradient Text Helper
   ============================================= */
.text-gradient {
  background: linear-gradient(to right, #4F46E5, #06B6D4, #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   Prevent WordPress <p> and <a> defaults
   ============================================= */
a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* =============================================
   Typewriter Cursor Blink
   ============================================= */
@keyframes blink {
  0%, 50% { border-color: #06B6D4; }
  51%, 100% { border-color: transparent; }
}

#typewriter-text {
  border-right: 2px solid #06B6D4;
  animation: blink 1s step-end infinite;
}

/* =============================================
   Responsive Utility Overrides
   ============================================= */
@media (max-width: 768px) {
  .glass-card:hover {
    transform: translateY(-2px);
  }
}
