/* ==========================================================================
   TABLE OF CONTENTS:
   1. Root Variables & CSS Reset
   2. Base Element Styles
   3. Keyframes & Animations
   4. Layout & Shared Components (Header, Footer, Preloader, ScrollTop, etc.)
   5. Page: Index Specific Styles (Hero, About, Section CTAs)
   6. Page: Blog Specific Styles (Blog Hero, Grid, Cards, Detail)
   7. Page: Projects Specific Styles (Projects Hero, Grid, Cards)
   8. Utilities & Background Effects
   9. Responsive Media Queries
   ========================================================================== */

/* 1. Root Variables & CSS Reset
   ========================================================================== */
   :root {
    /* Colors */
    --primary-color: #4e8cff;
    --primary-rgb: 78, 140, 255;
    --secondary-color: #ff6bcb;
    --secondary-rgb: 255, 107, 203;
    --accent-color: #33ffdd; /* Used in blog section background */
    --accent-rgb: 51, 255, 221;
    --dark-bg: #0a0a0f;
    --darker-bg: #050301;
    --card-bg: #e8e8e8; /* Used for project icon background */

    /* Glassmorphism & Borders */
    --glass-bg: rgba(255, 255, 255, 0.04); /* Subtle glass */
    --glass-border: rgba(255, 255, 255, 0.1); /* Subtle border */
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus-border: var(--primary-color);
    
    /* Icon Glassmorphism */
    --icon-glass-bg: rgba(255, 255, 255, 0.08);
    --icon-glass-hover-bg: rgba(255, 255, 255, 0.15);
    --icon-glass-border: rgba(255, 255, 255, 0.1);
    --icon-glass-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    --icon-glass-hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 10px rgba(var(--primary-rgb), 0.15);
    --icon-glass-blur: blur(10px);

    /* Text */
    --text-light: #e0e0e0;
    --text-heading: #ffffff;
    --text-muted: #8892b0;

    /* Effects */
    --glow-primary: rgba(var(--primary-rgb), 0.3);
    --glow-secondary: rgba(var(--secondary-rgb), 0.25);
    --shadow-color: rgba(0, 0, 0, 0.4);

    /* Transitions & Timing */
    --transition-speed: 0.4s;
    --transition-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* From old file */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* From old file */

    /* Layout & Spacing */
    --border-radius: 15px; /* General border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 30px;

    /* Z-index */
    --z-backdrop: -2;
    --z-deco: -1;
    --z-content: 1;
    --z-footer: 5;
    --z-scrolltop: 998;
    --z-particles: 999; /* Ensure particles are behind header/content if fixed */
    --z-header: 1000;
    --z-preloader: 1001;
    --z-mobile-nav: 1000; /* Nav menu */
    --z-mobile-toggle: 1001; /* Toggle button */
    --z-notification: 1002; /* New content notification */

    scroll-behavior: smooth;
  }

  /* Modern CSS Reset */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  html {
    font-size: 16px; /* Maintain base font size */
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    min-height: 100vh;
    text-rendering: optimizeSpeed;
  }

  /* Prevent body scroll when mobile nav is active */
  body.mobile-nav-active {
    overflow-y: hidden;
  }

  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto; /* Ensure aspect ratio is maintained */
  }

  input, button, textarea, select {
    font: inherit;
  }

  /* Reduced motion preferences */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }


  #projects,
  .projects-section {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  /* 2. Base Element Styles
     ========================================================================== */
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
  }
  a:hover, a:focus {
    color: var(--secondary-color);
    outline: none;
  }

  h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.3; /* Consistent line height */
    margin-bottom: 1rem; /* Consistent margin */
  }

  p {
    margin-bottom: 1.5em; /* Consistent paragraph spacing */
  }

  button, .button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0;
  }
  button:focus, .button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  button:focus:not(:focus-visible), .button:focus:not(:focus-visible) {
    outline: none;
  }

  /* Basic input styling (can be overridden) */
  input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: var(--text-light);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
  }
  input:focus, textarea:focus {
    outline: none;
    border-color: var(--input-focus-border);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
  }

  /* 3. Keyframes & Animations
     ========================================================================== */
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.4; }
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }
  @keyframes loading-bounce { /* From blog.html */
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
  }
  @keyframes float { /* From old style.css - keep if needed */
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
  }

  /* Animation Trigger Classes (IntersectionObserver) */
  .animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s var(--transition-ease), transform 0.8s var(--transition-ease);
  }
  .animate-on-scroll.fade-in { animation-name: fadeIn; }
  .animate-on-scroll.fade-in-up { animation-name: fadeInUp; }
  .animate-on-scroll.fade-in-left { animation-name: fadeInLeft; }
  .animate-on-scroll.fade-in-right { animation-name: fadeInRight; }
  .animate-on-scroll.scale-up { animation-name: scaleUp; }
  .animate-on-scroll.visible {
    opacity: 1;
    transform: none;
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
    animation-timing-function: var(--transition-ease);
  }

  /* Stagger Children Animation */
  .stagger-children > * {
    opacity: 0;
    transition: opacity 0.6s var(--transition-ease), transform 0.6s var(--transition-ease);
  }
  .stagger-children.visible > * {
    opacity: 1;
    transform: none;
  }

  /* 4. Layout & Shared Components
     ========================================================================== */

  /* Container */
  .container { /* Base container from index.html */
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }
  /* Alternate container widths if needed, prefix with page class */
  .blog-container, .projects-container { /* From blog/projects */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }

  /* Header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease; /* Added padding transition */
    background-color: rgba(10, 10, 15, 0.01);
    padding: 12px 0; /* Default padding */
  }
  .header.scrolled {
    background-color: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 3px 15px var(--shadow-color);
    padding: 8px 0; /* Reduced padding */
  }
  .header .header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px; /* Wider container for header */
    margin: 0 auto;
    padding: 0 25px; /* Header-specific padding */
  }
  .logo-container .logo-image {
    height: 40px;
    display: block;
    transition: transform 0.3s ease;
  }
  .logo-container:hover .logo-image {
    transform: rotate(-5deg) scale(1.05);
  }

  /* Desktop Navigation */
  .nav-menu {
    display: flex;
    align-items: center;
  }
  .nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 25px;
    padding: 8px 12px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: var(--radius-sm);
    font-weight: 500;
    position: relative; /* For underline */
  }
  .nav-menu a.active, .nav-menu a:hover {
    color: #fff;
    background-color: rgba(var(--primary-rgb), 0.2);
  }
  /* Optional underline for active link */
  /* .nav-menu a.active::after {
    content: ''; position: absolute; bottom: -2px; left: 10px;
    right: 10px; height: 2px; background-color: var(--primary-color);
  } */

  /* Mobile Navigation Toggle */
  .mobile-nav-toggle {
    display: none; /* Hidden by default */
    background: var(--icon-glass-bg);
    backdrop-filter: var(--icon-glass-blur);
    -webkit-backdrop-filter: var(--icon-glass-blur);
    border: 1px solid var(--icon-glass-border);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    z-index: var(--z-mobile-toggle); /* Above nav menu */
    transition: var(--transition);
    padding: 5px; /* Easier to tap */
    line-height: 1; /* Prevent extra spacing */
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--icon-glass-shadow);
  }
  .mobile-nav-toggle:hover {
    color: var(--primary-color);
    background: var(--icon-glass-hover-bg);
    box-shadow: var(--icon-glass-hover-shadow);
    transform: translateY(-2px);
  }
  .mobile-nav-toggle i {
    display: block; /* Ensure icon takes up space */
  }

  /* Preloader */
  .preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--dark-bg);
    display: flex; align-items: center; justify-content: center;
    z-index: var(--z-preloader);
    opacity: 1; visibility: visible;
    transition: opacity 0.6s ease 0.2s, visibility 0s linear 0.8s; /* Match index.html timing */
  }
  .preloader.hide {
    opacity: 0; visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
  }
  .preloader-circle {
    width: 50px; height: 50px;
    border: 5px solid rgba(var(--primary-rgb), 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  /* Footer */
  .footer {
    background-color: var(--darker-bg);
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px; /* Space above footer */
    position: relative;
    z-index: var(--z-footer);
  }
  .footer .container { /* Reuse index.html container style */
      max-width: 1140px; margin: 0 auto; padding: 0 20px;
      text-align: center;
  }
  .footer .copyright p {
      margin: 0;
      line-height: 1.7;
  }
  .footer .copyright strong {
      color: var(--text-light);
  }
  .footer .copyright a {
      color: var(--primary-color);
      text-decoration: none;
      transition: color 0.3s ease;
      font-weight: 500;
  }
  .footer .copyright a:hover {
      color: var(--secondary-color);
      text-decoration: underline;
  }

  /* Scroll Top Button */
  .scroll-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 46px; height: 46px;
    background: transparent;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-scrolltop);
    border: 1px solid var(--glass-border);
    transform: translateY(20px); /* Start below */
  }
  .scroll-top.active {
    opacity: 1; visibility: visible;
    transform: translateY(0);
  }
  .scroll-top:hover {
    background: transparent;
    transform: scale(1.1);
    color: var(--primary-color);
  }

  /* General Section Styling */
  .section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
  }
  .section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
  }
  .section-title h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-heading);
    text-shadow: 0 0 15px var(--glow-primary);
  }
  .section-title p.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 25px auto;
    line-height: 1.7;
  }
  .section-title h2::after {
    content: ''; display: block; width: 70px; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0; border-radius: 3px;
  }

  /* Shared Section CTA Button */
  .section-cta-button {
      display: inline-block;
      margin-top: 30px;
      padding: 15px 45px;
      font-size: 1.3rem;
      font-weight: 600;
      color: #fff;
      background: linear-gradient(45deg, rgba(var(--primary-rgb), 0.8), rgba(var(--secondary-rgb), 0.8));
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 10px;
      text-decoration: none;
      transition: all var(--transition-speed) var(--transition-ease);
      box-shadow: 0 5px 25px var(--shadow-color);
      background-size: 150% auto;
  }
  .section-cta-button:hover, .section-cta-button:focus {
      transform: translateY(-4px) scale(1.02);
      background-position: right center;
      box-shadow: 0 8px 30px var(--glow-primary), 0 0 15px var(--glow-secondary);
      border-color: rgba(255, 255, 255, 0.4);
      color: #fff;
  }
  .section-cta-button i {
      margin-left: 12px;
      transition: transform 0.3s ease;
  }
  .section-cta-button:hover i {
      transform: translateX(4px);
  }


  /* 5. Page: Index Specific Styles
     ========================================================================== */

  /* Index Hero */
  .hero { /* Combined from index.html */
    position: relative;
    padding: 180px 0 100px 0;
    min-height: 100vh; /* Consider 100svh or 100dvh if mobile issues persist */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--dark-bg); /* Fallback */
    text-align: center;
  }
  .hero .hero-content {
    position: relative;
    z-index: var(--z-content);
    padding: 20px;
  }
  .hero h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 25px var(--glow-primary);
    color: var(--text-heading);
    font-weight: 800;
    animation: fadeIn 1s ease-out 0.2s both;
  }
  .hero .hero-buttons {
    margin-top: 40px;
    display: flex;
    flex-direction: column; /* Stack buttons */
    align-items: center;
    gap: 25px;
    animation: fadeInUp 1s ease-out 0.5s both;
  }
  .hero .hero-cta-button {
    font-size: 1.5rem; font-weight: 600; padding: 16px 35px;
    border-radius: 50px; /* Pill shape */
    transition: all var(--transition-speed) var(--transition-ease);
    color: #fff; border: 2px solid transparent;
    text-decoration: none; display: inline-block;
    box-shadow: 0 6px 20px rgba(0,0,0, 0.25);
    background-size: 200% auto;
  }
  .hero .hero-cta-button i {
    margin-left: 10px; font-size: 1.3rem; vertical-align: middle;
    transition: transform 0.3s ease;
  }
  .hero .learn-more-link {
    background-image: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    border-color: rgba(255, 255, 255, 0.2);
  }
  .hero .projects-link {
    background-image: linear-gradient(45deg, var(--accent-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    font-size: 1.3rem; /* Slightly smaller */
    padding: 14px 30px;
  }
  .hero .hero-cta-button:hover, .hero .hero-cta-button:focus {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px var(--glow-primary), 0 0 20px var(--glow-secondary);
    background-position: right center;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
  }
  .hero .hero-cta-button:hover i {
    transform: translateX(5px) rotate(10deg);
  }
  .hero::after { /* Gradient fade at bottom */
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 25%;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0) 0%, var(--dark-bg) 95%);
    z-index: 0; pointer-events: none;
  }

  /* About Me Section (Index) */
  .about-me-section { background-color: var(--dark-bg); }
  .about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Text first */
    gap: 60px;
    align-items: center;
  }
  .about-text p {
    margin-bottom: 1.6em; line-height: 1.8; font-size: 1.15rem;
    color: var(--text-light);
  }
  .about-text .vibe-comment {
    font-style: italic; color: var(--text-muted); border-left: 4px solid var(--primary-color);
    padding: 15px 20px; margin: 30px 0; opacity: 0.9; font-size: 1.1rem;
    background: rgba(var(--primary-rgb), 0.06); border-radius: 0 8px 8px 0;
    box-shadow: inset 3px 0 10px rgba(var(--primary-rgb), 0.1);
  }
  .about-image-container {
    position: relative; perspective: 1200px;
  }
  .glassy-surface {
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 25px; padding: 25px;
    box-shadow: 0 10px 40px 0 rgba(var(--primary-rgb), 0.1), 0 0 20px var(--glow-primary);
    transform: rotateY(-7deg) rotateX(4deg) translateZ(10px);
    transition: transform 0.6s var(--transition-ease), box-shadow 0.6s var(--transition-ease);
    overflow: hidden; position: relative;
  }
  .glassy-surface::before { /* Subtle inner glow */
    content: ''; position: absolute; inset: 0; border-radius: 25px;
    box-shadow: inset 0 0 30px rgba(var(--primary-rgb), 0.15);
    opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
  }
  .glassy-surface:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03) translateZ(20px);
    box-shadow: 0 15px 50px 0 rgba(var(--primary-rgb), 0.2), 0 0 35px var(--glow-primary);
  }
  .glassy-surface:hover::before { opacity: 1; }
  .glassy-surface img {
    display: block; width: 100%; height: auto; border-radius: 15px; object-fit: cover;
  }

  /* Projects Section (Index) */
  .projects-section { background-color: #08080d; position: relative; }
  .projects-intro {
    text-align: center; max-width: 750px; margin: -20px auto 40px auto;
    color: var(--text-light); font-size: 1.15rem; line-height: 1.8; opacity: 0.9;
  }
  .projects-cta-container { text-align: center; }

  /* Blog Section (Index) */
  .blog-section {
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.06) 0%, transparent 35%),
                      radial-gradient(circle at bottom right, rgba(var(--secondary-rgb), 0.06) 0%, transparent 35%);
    position: relative;
  }
  .blog-intro {
    text-align: center; max-width: 750px; margin: -20px auto 40px auto;
    color: var(--text-light); font-size: 1.15rem; line-height: 1.8; opacity: 0.9;
  }
  .blog-cta-container { text-align: center; }

  /* 6. Page: Blog Specific Styles
     ========================================================================== */

  /* Blog Hero */
  .blog-hero {
    background: linear-gradient(rgba(10, 10, 15, 0.7), rgba(10, 10, 15, 0.9)), url('assets/img/bg-blog.jpg') center center no-repeat;
    background-size: cover;
    padding: 140px 0 80px 0; /* Adjust padding top for header */
    position: relative;
    color: #fff;
    text-align: center;
  }
  .blog-hero::before { /* Optional subtle overlay */
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--dark-bg) 90%);
    opacity: 0.5;
  }
  .blog-hero-content {
    position: relative; z-index: var(--z-content);
    max-width: 800px; margin: 0 auto; padding: 0 15px;
  }
  .blog-hero h1 {
    font-size: 3.2rem; font-weight: 800; margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }
  .blog-hero p {
    font-size: 1.15rem; color: var(--text-light); opacity: 0.9;
    margin-bottom: 30px; max-width: 650px; margin-left: auto; margin-right: auto;
  }
  .blog-search {
    display: flex; max-width: 500px; margin: 0 auto;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0, 0.1);
  }
  .blog-search input[type="text"] {
    flex-grow: 1; padding: 12px 15px; border: none; background: transparent;
    color: var(--text-light); font-size: 1rem; outline: none;
  }
  .blog-search input[type="text"]::placeholder { color: var(--text-muted); opacity: 0.7; }
  .blog-search input[type="text"]:focus {
     box-shadow: inset 0 0 0 1px var(--primary-color);
  }
  .blog-search button {
    padding: 0 18px; 
    border: none; 
    background: var(--icon-glass-bg);
    backdrop-filter: var(--icon-glass-blur);
    -webkit-backdrop-filter: var(--icon-glass-blur);
    color: var(--primary-color); 
    font-size: 1.2rem; 
    cursor: pointer;
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
  }
  .blog-search button:hover {
    color: #fff; 
    background: var(--icon-glass-hover-bg);
  }
  .sr-only { /* Screen reader only */
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
  }

  /* Blog Main Content */
  .blog-main { padding: 60px 0; }

  /* Blog Grid */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 30px;
  }

  /* Blog Card */
  .blog-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--border-radius); overflow: hidden; display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.4s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0, 0.15);
    height: 100%; /* Ensure cards in a row have same height */
  }
  .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(var(--primary-rgb), 0.2);
    background: rgba(var(--primary-rgb), 0.04);
  }
  .blog-card-image {
    height: 200px; background-color: #1a1a2e; /* Fallback color */
    overflow: hidden; position: relative;
    transition: height 0.3s ease; /* Add transition for height change */
  }
  .blog-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease; cursor: pointer; display: block;
  }
  .blog-card:hover .blog-card-image img { transform: scale(1.05); }
  .blog-card-content {
    padding: 20px 25px; flex-grow: 1; display: flex; flex-direction: column;
  }
  .blog-card-date {
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; display: block;
  }
  .blog-card-title {
    font-size: 1.3rem; font-weight: 600; color: #fff; margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2;
    overflow: hidden; text-overflow: ellipsis;
  }
  .blog-card-excerpt {
    font-size: 1rem; color: var(--text-light); line-height: 1.6;
    flex-grow: 1; margin-bottom: 15px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-clamp: 3;
    overflow: hidden; text-overflow: ellipsis; opacity: 0.9;
  }
  .blog-card-link {
    margin-top: auto; align-self: flex-start; padding: 8px 18px;
    font-size: 0.95rem; font-weight: 600; color: var(--primary-color);
    background-color: transparent; border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm); text-decoration: none;
    transition: all 0.3s ease; cursor: pointer;
  }
  .blog-card-link:hover {
    background-color: var(--primary-color); color: #fff;
    box-shadow: 0 0 15px var(--glow-primary);
  }
  .blog-card-link i {
    margin-left: 8px; vertical-align: middle; transition: transform 0.3s ease;
  }
  .blog-card-link:hover i { transform: translateX(3px); }

  /* Article Detail View */
  .article-detail {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--border-radius); padding: 30px 40px; margin-bottom: 40px;
    color: var(--text-light);
  }
  .article-header {
    margin-bottom: 30px; padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border); position: relative;
  }
  .article-title {
    font-size: 2.5rem; font-weight: 700; color: #fff;
    margin-bottom: 15px; line-height: 1.3;
  }
  .article-meta {
    display: flex; align-items: center; color: var(--text-muted); font-size: 0.9rem;
  }
  .article-meta i {
    margin-right: 8px; color: var(--primary-color); font-size: 1rem;
  }
  .article-back-top, .article-back-bottom {
    color: var(--primary-color); text-decoration: none; font-weight: 500;
    transition: color 0.3s ease; display: inline-flex; align-items: center;
  }
  .article-back-top:hover, .article-back-bottom:hover { color: var(--secondary-color); }
  .article-back-top i, .article-back-bottom i { margin-right: 5px; font-size: 1.2rem; }
  .article-back-top { position: absolute; top: 5px; right: 0; }
  .article-back-bottom {
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--glass-border);
  }
  .article-featured-image {
    width: 100%; max-height: 500px; object-fit: cover;
    border-radius: 10px; margin-bottom: 30px; background-color: #1a1a2e;
  }
  .article-content { font-size: 1.1rem; line-height: 1.8; }
  .article-content p { margin-bottom: 1.5em; }
  .article-content h2, .article-content h3 {
    color: #fff; margin-top: 2em; margin-bottom: 1em;
  }
  .article-content a {
    color: var(--primary-color); text-decoration: underline; transition: color 0.3s ease;
  }
  .article-content a:hover { color: var(--secondary-color); }
  .article-content img {
    max-width: 100%; height: auto; border-radius: 8px; margin: 25px 0; display: block;
  }

  /* Blog Loading/No Results */
  .loading-animation {
    display: flex; justify-content: center; align-items: center;
    min-height: 300px; width: 100%; grid-column: 1 / -1;
  }
  .loading-dots .dot {
    width: 12px; height: 12px; margin: 0 6px; background-color: var(--primary-color);
    border-radius: 50%; display: inline-block;
    animation: loading-bounce 1.4s infinite ease-in-out both;
  }
  .loading-dots .dot:nth-child(1) { animation-delay: -0.32s; }
  .loading-dots .dot:nth-child(2) { animation-delay: -0.16s; }
  .no-results {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
    grid-column: 1 / -1; background: rgba(var(--primary-rgb), 0.03);
    border-radius: 10px; border: 1px dashed var(--glass-border);
  }
  .no-results i {
    font-size: 3.5rem; color: var(--primary-color); margin-bottom: 20px; display: block;
  }
  .no-results h3 { color: #fff; margin-bottom: 10px; font-size: 1.5rem; }

  /* Blog Load More */
  .blog-loadmore {
    text-align: center; margin-top: 40px; grid-column: 1 / -1;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .blog-loadmore.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
  }
  .loadmore-btn {
    display: inline-block; padding: 14px 40px; font-size: 1.2rem; font-weight: 600;
    color: var(--text-light); background-color: transparent;
    border: 2px solid var(--primary-color); border-radius: 8px; text-decoration: none;
    transition: all 0.3s ease; cursor: pointer;
  }
  .loadmore-btn:hover {
    background-color: var(--primary-color); color: #fff;
    box-shadow: 0 0 25px var(--glow-primary);
  }
  .loadmore-btn i { margin-left: 10px; }

  /* New Content Notification */
  .new-content-notification {
    position: fixed; bottom: 30px; right: 90px; /* Default position */
    background: rgba(30, 30, 40, 0.95); color: white; padding: 12px 16px;
    border-radius: 8px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(100px); opacity: 0; visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s, left 0s, right 0s; /* Added left/right transition timing */
    z-index: var(--z-notification);
  }
  .new-content-notification.show {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s, left 0s, right 0s;
  }
  .new-content-notification i { color: var(--primary-color); }

  /* 7. Page: Projects Specific Styles
     ========================================================================== */

  /* Projects Hero */
  .projects-hero {
    background: linear-gradient(rgba(10, 10, 15, 0.7), rgba(10, 10, 15, 0.9)), url('assets/img/bg-projects.jpg') center center no-repeat;
    background-size: cover; padding: 140px 0 80px 0; position: relative;
    color: #fff; text-align: center;
  }
  .projects-hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--dark-bg) 90%);
    opacity: 0.5;
  }
  .projects-hero-content {
    position: relative; z-index: var(--z-content); max-width: 800px; margin: 0 auto; padding: 0 15px;
  }
  .projects-hero h1 {
    font-size: 3.2rem; font-weight: 800; margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }
  .projects-hero p {
    font-size: 1.15rem; color: var(--text-light); opacity: 0.9; margin-bottom: 0;
    max-width: 650px; margin-left: auto; margin-right: auto; line-height: 1.6;
  }

  /* Projects Main Content */
  .projects-main { padding: 60px 0; }

  /* Projects Grid - Modern Bento Box Layout */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Project Card - Transparent (match default cards) */
  .project-card {
    position: relative;
    display: block;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 0;
    
    /* Initial animation state */
    transform: translateY(20px);
  }

  /* Hover Effects - Subtle and Clean */
  .project-card:hover {
    transform: translateY(-4px);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(var(--primary-rgb), 0.15);
  }

  /* Icon Container - Completely Transparent */
  .project-card-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: transparent;
    transition: all 0.3s ease;
  }

  /* No hover background - stays transparent */
  .project-card:hover .project-card-image {
    background: transparent;
  }

  /* Lottie icon - white with NO glow by default */
  .project-card lord-icon {
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
  }

  /* On hover: add glow and keep white */
  .project-card:hover lord-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  }

  /* Content Styling */
  .project-card-content {
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .project-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-heading);
    transition: color 0.3s ease;
  }

  .project-card:hover .project-card-title {
    color: var(--primary-color);
  }

  .project-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    transition: color 0.3s ease;
  }

  .project-card:hover .project-card-description {
    color: var(--text-light);
    opacity: 0.9;
  }

  /* Link Indicator - Clean and Simple */
  .project-card-link-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
  }

  .project-card:hover .project-card-link-indicator {
    gap: 10px;
  }

  .project-card-link-indicator i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
  }

  .project-card:hover .project-card-link-indicator i {
    transform: translateX(3px);
  }

  /* Alternative Layout: Masonry-style (if you want variety) */
  .projects-grid.masonry {
    grid-auto-rows: auto;
  }

  .projects-grid.masonry .project-card:nth-child(3n+1) {
    grid-row: span 2;
  }

  /* Featured project style (first card) - Subtle */
  .project-card:first-child {
    grid-column: span 2;
  }

  @media (max-width: 768px) {
    .project-card:first-child {
      grid-column: span 1;
    }
  }

  /* Loading and Error States - Modernized */
  .loading-indicator {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 80px 20px;
  }

  .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
  }

  .error-message i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 16px;
  }


  /* 8. Utilities & Background Effects
     ========================================================================== */

  /* Background Effects (Noise, Grid, Floating Deco) */
  .noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: var(--z-backdrop); opacity: 0.05;
    background-image: url('assets/img/noise.png');
  }
  .grid-pattern {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: var(--z-backdrop); opacity: 0.05;
    background-image: linear-gradient(rgba(var(--glass-border), 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--glass-border), 0.5) 1px, transparent 1px);
    background-size: 40px 40px;
  }
  .radial-gradient { /* Example gradient for pages */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: var(--z-backdrop); opacity: 0.05;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
  }
  .floating-deco {
    position: absolute; /* Relative to parent section */
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 12s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: var(--z-deco);
    transition: opacity 0.3s ease; /* Add transition for hiding */
  }
  /* Vanta.js Target */
  #hero { /* Ensure Vanta attaches correctly */
      width: 100%;
      /* min-height handled by .hero style */
  }
  /* Particles Container */
  #particles {
      position: fixed; /* Changed to fixed for consistent background effect */
      top: 0; left: 0;
      width: 100%; height: 100%; /* Cover viewport */
      z-index: var(--z-particles);
      pointer-events: none;
      overflow: hidden; /* Prevent particles causing scrollbars */
  }
  /* Individual particle styles applied via JS */


  /* 9. Responsive Media Queries
     ========================================================================== */

  @media (max-width: 992px) {
    .container, .blog-container, .projects-container { max-width: 960px; }
    .section { padding: 80px 0; }
    .section-title h2 { font-size: 2.8rem; }

    /* Index Specific */
    .hero { padding: 150px 0 80px 0; min-height: 90vh; }
    .hero h1 { font-size: 3.8rem; }
    .hero .hero-cta-button { font-size: 1.3rem; padding: 14px 30px; }
    .hero .projects-link { font-size: 1.2rem; padding: 12px 28px;}
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .about-image-container { order: -1; max-width: 450px; margin: 0 auto 40px auto; }
    .glassy-surface { transform: rotateY(0deg) rotateX(0deg); padding: 20px; }
    .section-cta-button { font-size: 1.2rem; padding: 14px 40px; }

    /* Blog Specific */
    .blog-hero h1 { font-size: 2.8rem; }
    .article-title { font-size: 2rem; }
    .blog-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

    /* Projects Specific */
    .projects-hero h1 { font-size: 2.8rem; }
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  }

  @media (max-width: 768px) {
    .container, .blog-container, .projects-container {
        max-width: 720px;
        padding-left: 15px; padding-right: 15px;
    }
    .header .header-container { padding: 10px 15px; } /* Adjusted padding */

    /* Mobile Nav Overlay */
    .nav-menu {
      position: fixed; top: 0; right: -100%; /* Start off-screen */
      width: 80%; max-width: 300px; height: 100vh;
      background-color: rgba(15, 15, 25, 0.98); backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      flex-direction: column; padding: 80px 20px 20px 20px; /* Add top padding for header */
      box-shadow: -5px 0 20px rgba(0,0,0,0.3);
      transition: right 0.4s var(--transition-ease);
      align-items: flex-start; /* Align items left */
      z-index: var(--z-mobile-nav); /* Below toggle */
      overflow-y: auto; /* Allow scrolling if content overflows */
    }
    .nav-menu.active { right: 0; /* Slide in */ }
    .nav-menu a {
        margin: 15px 0; font-size: 1.1rem; padding: 10px 15px;
        width: 100%; text-align: left; border-bottom: 1px solid var(--glass-border);
    }
     .nav-menu a:last-child { border-bottom: none; }
    .mobile-nav-toggle { display: block; /* Show toggle */ }

    /* Index Specific */
    .hero { padding: 120px 0 60px 0; min-height: 80vh; }
    .hero h1 { font-size: 3rem; }
    .hero .hero-cta-button { font-size: 1.2rem; padding: 12px 25px; }
    .hero .projects-link { font-size: 1.1rem; padding: 10px 22px; }
    .hero .hero-buttons { gap: 20px; }
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 2.4rem; }
    .section-title p.subtitle { font-size: 1.1rem; }
    .about-content { gap: 30px; }
    .about-text p, .about-text .vibe-comment { font-size: 1.05rem; }
    .section-cta-button { font-size: 1.1rem; padding: 12px 35px; }
    .footer { padding: 30px 0; margin-top: 60px; }
    .scroll-top { width: 42px; height: 42px; font-size: 22px; bottom: 20px; right: 20px;}

    /* Blog Specific */
    .blog-hero { padding: 100px 0 60px 0; }
    .blog-hero h1 { font-size: 2.4rem; }
    .blog-hero p { font-size: 1.05rem; }
    .blog-search { max-width: 90%; }
    .article-detail { padding: 20px; }
    .article-title { font-size: 1.8rem; }
    .article-back-top { position: static; margin-bottom: 15px; } /* Stack back button */
    .blog-grid { grid-template-columns: 1fr; } /* Single column */
    .new-content-notification {
        right: auto; /* Override desktop position */
        left: 20px; /* Position from left to avoid scroll-top */
        bottom: 20px; /* Align vertically with scroll-top */
    }

    /* Projects Specific */
    .projects-hero { padding: 100px 0 60px 0; }
    .projects-hero h1 { font-size: 2.4rem; }
    .projects-hero p { font-size: 1.05rem; }
    .projects-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 20px;
    }
    
    .project-card {
        padding: 24px;
    }
    
    .project-card-title {
        font-size: 1.3rem;
    }
    
    .project-card-image {
        width: 100px;
        height: 100px;
    }

    /* Utilities */
    .floating-deco {
        /* Hide decorative elements on smaller screens for clarity/performance */
        opacity: 0;
        pointer-events: none;
    }
  }

  @media (max-width: 576px) {
    .container, .blog-container, .projects-container { max-width: 100%; } /* Use full width */

    /* Index Specific */
    .hero { padding: 100px 0 50px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero .hero-cta-button { font-size: 1.1rem; padding: 10px 20px; }
    .hero .projects-link { font-size: 1rem; padding: 9px 18px; }
    .section-title h2 { font-size: 2.1rem; }
    .section-title p.subtitle { font-size: 1rem; }
    .about-text p, .about-text .vibe-comment { font-size: 1rem; }
    .glassy-surface { padding: 15px; border-radius: 20px; }
    .glassy-surface img { border-radius: 10px; }
    .projects-intro, .blog-intro { font-size: 1rem; }
    .section-cta-button { font-size: 1rem; padding: 10px 30px; }
    .footer .copyright { font-size: 0.9rem; }

    /* Blog Specific */
    .blog-hero h1 { font-size: 2rem; }
    .blog-card-image { height: 160px; /* Smaller image height */ }
    .blog-card-title { font-size: 1.15rem; }
    .blog-card-excerpt { font-size: 0.95rem; }
    .article-title { font-size: 1.6rem; }
    .article-content { font-size: 1rem; }
    .loadmore-btn { font-size: 1.1rem; padding: 12px 30px; }

    /* Projects Specific */
    .projects-hero h1 { font-size: 2rem; }
    .project-card-image { height: 160px; /* Smaller image height */ }
    .project-card-image lord-icon { width: 100px; height: 100px; } /* Smaller icon */
    .project-card-title { font-size: 1.2rem; }
    .project-card-description { font-size: 0.95rem; }
  }

  /* 11. Custom Animated Cursor, Context Menu, and Floating Chatbox
     ========================================================================== */
  :root {
    --z-cursor: 1100;
    --z-contextmenu: 1101;
    --z-chatbox: 1102;
  }

  /* Hide native cursor when enhanced cursor is active */
  body.cursor-enhanced {
    cursor: none;
  }
  /* Ensure native pointer never shows over interactive elements while enhanced cursor is active */
  body.cursor-enhanced *,
  body.cursor-enhanced a,
  body.cursor-enhanced button,
  body.cursor-enhanced [role="button"],
  body.cursor-enhanced [onclick],
  body.cursor-enhanced input,
  body.cursor-enhanced textarea,
  body.cursor-enhanced select,
  body.cursor-enhanced .btn,
  body.cursor-enhanced .button,
  body.cursor-enhanced .icon-btn,
  body.cursor-enhanced .project-card,
  body.cursor-enhanced img,
  body.cursor-enhanced svg {
    cursor: none !important;
  }

  /* Animated cursor composed of a core dot and outer ring */
  .animated-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    transform: translate3d(-50%, -50%, 0);
    pointer-events: none;
    z-index: var(--z-cursor);
    will-change: transform;
    mix-blend-mode: normal;
    perspective: 500px;
  }
  .animated-cursor .cursor-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0) 70%);
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.8), 0 0 8px rgba(var(--secondary-rgb), 0.4);
    transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .animated-cursor .cursor-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(var(--primary-rgb), 0.6), rgba(var(--secondary-rgb), 0.6), rgba(var(--primary-rgb), 0.6));
    mask: radial-gradient(circle, transparent 42%, black 43%);
    -webkit-mask: radial-gradient(circle, transparent 42%, black 43%);
    animation: cursorSpin 2.5s linear infinite;
    filter: blur(0.2px);
    transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
                filter 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
                background 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
    transform-style: preserve-3d;
  }
  @keyframes cursorSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
  @keyframes cursor3DSpin {
    0%   { transform: translate(-50%, -50%) rotateX(18deg) rotateY(0deg) rotate(0deg); }
    25%  { transform: translate(-50%, -50%) rotateX(12deg) rotateY(90deg) rotate(90deg); }
    50%  { transform: translate(-50%, -50%) rotateX(18deg) rotateY(180deg) rotate(180deg); }
    75%  { transform: translate(-50%, -50%) rotateX(24deg) rotateY(270deg) rotate(270deg); }
    100% { transform: translate(-50%, -50%) rotateX(18deg) rotateY(360deg) rotate(360deg); }
  }
  @keyframes cursorExitPulse {
    0%   { transform: translate(-50%, -50%) scale(1.12); filter: blur(0.35px) brightness(1.12) saturate(1.05); }
    50%  { transform: translate(-50%, -50%) scale(1.02); }
    100% { transform: translate(-50%, -50%) scale(1.0); filter: blur(0.2px) brightness(1) saturate(1); }
  }

  /* Cursor states: clickable hover and active press */
  .animated-cursor.clickable .cursor-ring {
    background: conic-gradient(from 0deg,
      rgba(var(--primary-rgb), 0.95),
      rgba(var(--secondary-rgb), 0.95),
      rgba(var(--primary-rgb), 0.95)
    );
    filter: blur(0.35px) brightness(1.12) saturate(1.05);
    transform: translate(-50%, -50%) scale(1.12);
    animation: cursor3DSpin 1.15s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.6), 0 0 22px rgba(var(--secondary-rgb), 0.35);
  }
  .animated-cursor.clickable .cursor-core {
    box-shadow: 0 0 22px rgba(var(--primary-rgb), 0.95), 0 0 10px rgba(var(--secondary-rgb), 0.6);
    transform: translate(-50%, -50%) translateZ(6px);
  }

  .animated-cursor.active .cursor-ring {
    transform: translate(-50%, -50%) scale(0.9);
    animation: cursorPulse 300ms ease-out 1;
  }
  .animated-cursor.active .cursor-core {
    transform: translate(-50%, -50%) scale(0.85);
  }

  /* Smooth exit when leaving clickable targets */
  .animated-cursor.clickable-exit .cursor-ring {
    animation: cursorExitPulse 220ms cubic-bezier(0.4, 0.0, 0.2, 1) 1;
  }
  .animated-cursor.clickable-exit .cursor-core {
    transform: translate(-50%, -50%) translateZ(2px);
  }
  @keyframes cursorPulse {
    0% { transform: translate(-50%, -50%) scale(1.0); }
    50% { transform: translate(-50%, -50%) scale(0.86); }
    100% { transform: translate(-50%, -50%) scale(0.9); }
  }

  /* Custom Context Menu */
  .custom-context-menu {
    position: fixed;
    min-width: 180px;
    max-width: 240px;
    background: rgba(20, 20, 28, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.04) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-contextmenu);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }
  .custom-context-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 160ms ease, transform 160ms ease;
  }
  .custom-context-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    transition: background 120ms ease, color 120ms ease;
  }
  .custom-context-menu .menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }
  .custom-context-menu .menu-item i { color: var(--primary-color); }

  /* Floating Chatbox that can follow the cursor */
  .floating-chatbox {
    position: fixed;
    width: 320px;
    max-width: min(92vw, 380px);
    background: rgba(18, 18, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-light);
    z-index: var(--z-chatbox);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.96);
    transition: opacity 160ms ease, transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 180ms;
    /* Ambient border glow */
    position: fixed;
  }
  /* Subtle animated glow ring */
  .floating-chatbox::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
      from 0deg,
      rgba(var(--primary-rgb), 0.55),
      rgba(var(--secondary-rgb), 0.45),
      rgba(var(--primary-rgb), 0.55)
    );
    filter: blur(14px);
    opacity: 0.25;
    z-index: -1;
    animation: glowPulse 4.5s ease-in-out infinite;
  }
  .floating-chatbox.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 160ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 0 18px 50px rgba(0,0,0,0.6), 0 0 22px rgba(var(--primary-rgb), 0.18);
  }
  @keyframes glowPulse {
    0%, 100% { opacity: 0.18; filter: blur(14px); }
    50% { opacity: 0.32; filter: blur(18px); }
  }
  .floating-chatbox .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  }
  .floating-chatbox .chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.3px;
  }
  .floating-chatbox .chat-title .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.8), rgba(var(--secondary-rgb), 0.8));
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 4px 12px rgba(0,0,0,0.25);
  }
  .floating-chatbox .chat-controls {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .floating-chatbox .icon-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--icon-glass-bg);
    border: 1px solid var(--icon-glass-border);
    color: var(--text-light);
    transition: var(--transition-fast);
    cursor: pointer;
  }
  .floating-chatbox .icon-btn i {
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
  }
  .floating-chatbox .icon-btn:hover {
    background: var(--icon-glass-hover-bg);
    color: #fff;
    transform: translateY(-1px);
  }
  .floating-chatbox .chat-body {
    max-height: 40vh;
    overflow-y: auto;
    padding: 10px 12px 0 12px;
    font-size: 0.92rem;
    position: relative;
  }
  /* Polished scrollbar for chat body */
  .floating-chatbox .chat-body::-webkit-scrollbar { width: 8px; }
  .floating-chatbox .chat-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 8px; }
  .floating-chatbox .chat-body::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.6), rgba(var(--secondary-rgb), 0.6)); border-radius: 8px; }
  .floating-chatbox .chat-body::-webkit-scrollbar-thumb:hover { filter: brightness(1.05); }
  .floating-chatbox .chat-body { scrollbar-width: thin; scrollbar-color: rgba(120,120,140,0.6) rgba(255,255,255,0.06); }
  .floating-chatbox .hint {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
  }
  .floating-chatbox .msg {
    display: block;
    margin: 6px 0;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(4px);
    animation: chatFadeIn 220ms ease forwards;
  }
  .floating-chatbox .msg.bot {
    color: #cfd3ff;
    font-weight: 600;
  }
  .floating-chatbox .msg.user {
    color: #e9e9e9;
    font-weight: 600;
    opacity: 0.95;
  }
  /* Blinking caret while the last message is streaming */
  .floating-chatbox .msg.bot:last-child::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1.1em;
    margin-left: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 1px;
    vertical-align: -2px;
    animation: blinkCaret 1s steps(2, start) infinite;
  }
  @keyframes blinkCaret { 50% { opacity: 0; } }
  @keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .floating-chatbox .chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 12px 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: linear-gradient(0deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  }
  .floating-chatbox .chat-input input[type="text"] {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 10px 12px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .floating-chatbox .chat-input input[type="text"]::placeholder {
    color: rgba(255,255,255,0.6);
  }
  .floating-chatbox .chat-input input[type="text"]:focus {
    border-color: rgba(var(--primary-rgb), 0.8);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
  }
  .floating-chatbox .send-btn {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9), rgba(var(--secondary-rgb), 0.8));
    color: #fff;
    border: 0;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
  }
  .floating-chatbox .send-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }
  /* Subtle sheen sweep on hover */
  .floating-chatbox .send-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    height: 100%; width: 120%;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
  }
  .floating-chatbox .send-btn:hover::after { left: 120%; }

  @media (max-width: 480px) {
    .custom-context-menu {
      min-width: 160px;
      max-width: 80vw;
    }
    .floating-chatbox {
      width: 92vw;
    }
  }

  /* Floating action button for opening chat (mobile friendly) - HIDDEN */
  .chat-fab {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

/* Global Glassmorphism Icon Style */
.icon-glass {
  background: var(--icon-glass-bg);
  backdrop-filter: var(--icon-glass-blur);
  -webkit-backdrop-filter: var(--icon-glass-blur);
  border: 1px solid var(--icon-glass-border);
  border-radius: 50%;
  box-shadow: var(--icon-glass-shadow);
  transition: all 0.3s var(--transition-ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-glass:hover {
  background: var(--icon-glass-hover-bg);
  box-shadow: var(--icon-glass-hover-shadow);
  transform: translateY(-2px);
}

/* Social Media Icons - Add if not present */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    font-size: 1.2rem;
    background: var(--icon-glass-bg);
    backdrop-filter: var(--icon-glass-blur);
    -webkit-backdrop-filter: var(--icon-glass-blur);
    border: 1px solid var(--icon-glass-border);
    box-shadow: var(--icon-glass-shadow);
    transition: var(--transition);
    color: var(--text-light);
}

.social-icon:hover {
    background: var(--icon-glass-hover-bg);
    transform: translateY(-3px);
    box-shadow: var(--icon-glass-hover-shadow);
    color: var(--primary-color);
}

/* ==========================================================================
   10. Whoami Page Specific Styles (Imported from whoami-style.css)
   ========================================================================== */

/* Whoami Page CSS Variables (Additional) */
:root {
  /* Whoami-specific fonts */
  --default-font-whoami: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font-whoami: "Raleway", sans-serif;
  --nav-font-whoami: "Poppins", sans-serif;
  
  /* Whoami-specific colors */
  --whoami-background-color: #050301;
  --whoami-default-color: #e0e0e0;
  --whoami-heading-color: #ffffff;
  --whoami-accent-color: #0078ff;
  --whoami-surface-color: #050301;
  --whoami-contrast-color: #ffffff;
  
  /* Nav Menu Colors for Whoami */
  --whoami-nav-color: #e0e0e0;
  --whoami-nav-hover-color: #ffffff;
  --whoami-nav-mobile-background-color: #1e1e1e;
  --whoami-nav-dropdown-background-color: #252525;
  --whoami-nav-dropdown-color: #e0e0e0;
  --whoami-nav-dropdown-hover-color: #0078ff;
}

/* Whoami Color Presets */
.light-background {
  --background-color: #1e1e1e;
  --surface-color: #252525;
  --default-color: #e0e0e0;
  --heading-color: #ffffff;
}

/* Whoami page fixes */
.whoami-page .header .sitename { display: none; }
.whoami-page .header .logo-symbol { display: none; }
/* Hide the entire centered logo on whoami to avoid overlap */
.whoami-page .header .logo { display: none; }

/* Ensure the skills grid (the table-looking section) fits correctly */
.whoami-page .skills-section .container { width: 100%; max-width: 1200px; margin: 0 auto; }
.whoami-page .skills-container { width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }

/* Make About tabs span the full text column width */
.whoami-page .tab-container { width: 100%; max-width: 100%; }
.whoami-page .tab-nav { width: 100%; gap: 0; }
.whoami-page .tab-btn { flex: 1 1 0; text-align: center; padding-left: 0; padding-right: 0; }

/* =========================
   Whoami Page: Refactor (scoped)
   ========================= */
.whoami-page .about.section { padding-top: 60px; padding-bottom: 60px; }
.whoami-page .about .container { max-width: 1200px; margin: 0 auto; }
.whoami-page .about .row { --bs-gutter-x: 2rem; --bs-gutter-y: 2rem; }

/* Profile card and text column alignment */
.whoami-page .profile-card { height: 100%; display: flex; flex-direction: column; }
.whoami-page .about-content { height: 100%; display: flex; flex-direction: column; }

/* Tabs - full width and clean underline */
.whoami-page .tab-nav { display: flex; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 18px; }
.whoami-page .tab-btn { background: transparent; border: 0; color: var(--text-light); font-weight: 600; padding: 12px 0; position: relative; }
.whoami-page .tab-btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary-color); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.whoami-page .tab-btn.active { color: var(--primary-color); }
.whoami-page .tab-btn.active::after { transform: scaleX(1); }
.whoami-page .tab-content { flex: 1; }

/* Skills grid sizing and fit */
.whoami-page .skills-section { background: transparent; padding-top: 40px; padding-bottom: 20px; }
.whoami-page .skills-section .container { max-width: 1200px; margin: 0 auto; }
.whoami-page .skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; width: 100%; max-width: 100%; }
.whoami-page .skills-category { width: 100%; box-sizing: border-box; }

/* Responsive tweaks */
@media (max-width: 992px) {
  .whoami-page .about .row { --bs-gutter-x: 1.25rem; }
}
@media (max-width: 768px) {
  .whoami-page .tab-btn { font-size: .95rem; padding: 10px 0; }
  .whoami-page .skills-container { grid-template-columns: 1fr; gap: 18px; }
}


.dark-background {
  --background-color: #050301;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #121212;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #0078ff;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ffffff;
  --surface-color: #3393ff;
  --contrast-color: #ffffff;
}

/* Whoami Page Specific Body Styles */
.whoami-page body {
  color: var(--whoami-default-color);
  background-color: var(--whoami-background-color);
  font-family: var(--default-font-whoami);
}

.whoami-page a {
  color: var(--whoami-accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

.whoami-page a:hover {
  color: color-mix(in srgb, var(--whoami-accent-color), transparent 25%);
  text-decoration: none;
}

.whoami-page h1, .whoami-page h2, .whoami-page h3, .whoami-page h4, .whoami-page h5, .whoami-page h6 {
  color: var(--whoami-heading-color);
  font-family: var(--heading-font-whoami);
}

/* Whoami Hero Section */
.whoami-page .hero {
  width: 100%;
  min-height: calc(100vh - 92px);
  position: relative;
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.whoami-page .hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  mask-image: linear-gradient(to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 20%,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.65) 60%,
    rgba(0, 0, 0, 0.35) 80%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 20%,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.65) 60%,
    rgba(0, 0, 0, 0.35) 80%,
    transparent 100%);
}

.whoami-page .hero::before {
  content: "";
  background: color-mix(in srgb, var(--whoami-background-color), transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom,
    rgba(5, 3, 1, 0) 0%,
    rgba(5, 3, 1, 0.2) 40%,
    rgba(5, 3, 1, 0.4) 60%,
    rgba(5, 3, 1, 0.7) 80%,
    rgba(5, 3, 1, 0.9) 95%,
    rgb(5, 3, 1) 100%);
}

.whoami-page .hero .container {
  position: relative;
  z-index: 3;
}

.whoami-page .hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.whoami-page .hero p {
  margin: 5px 0 0 0;
  font-size: 36px;
  font-weight: 600;
}

.whoami-page .hero p span {
  letter-spacing: 1px;
}

/* Whoami About Section */
.whoami-page .about .container {
  background-color: var(--whoami-surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.whoami-page .about .skills-content h5 {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 15px 0;
}

.whoami-page .about .progress {
  height: 36px;
  display: block;
  background: none;
  border-radius: 0;
  margin-top: 15px;
}

.whoami-page .about .progress .skill {
  color: var(--whoami-default-color);
  padding: 0;
  margin: 0 0 2px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font-whoami);
  font-size: 15px;
  color: white;
}

.whoami-page .about .progress .skill .val {
  float: right;
  font-style: normal;
}

.whoami-page .about .progress-bar-wrap {
  background: color-mix(in srgb, var(--whoami-default-color), transparent 90%);
  height: 10px;
}

.whoami-page .about .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--whoami-accent-color);
}

.whoami-page .about .about-me h4 {
  font-size: 28px;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 30px;
  font-weight: 700;
}

.whoami-page .about .about-me h4:after {
  content: "";
  position: absolute;
  display: block;
  width: 64px;
  height: 3px;
  background: var(--whoami-accent-color);
  left: 0;
  bottom: 0;
  margin: auto;
}

.whoami-page .about .about-me p {
  font-size: 18px;
}

/* CV Button */
.btn-cv {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.btn-cv:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-cv:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* About Section Specific */
.whoami-page .about.section {
  padding: 100px 0;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #0078D4, #28A8EA);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
}

/* Profile Card */
.profile-card {
  background-color: #1e1e1e53;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #322c2c, 0 0 20px rgba(0, 0, 0, 0.3);
}

.profile-image-container {
  height: 350px;
  overflow: hidden;
  position: relative;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}

.profile-image:hover {
  transform: scale(1.03);
}

.profile-info {
  padding: 25px;
  text-align: center;
}

.profile-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.profile-contact {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #555;
}

.contact-item i {
  margin-right: 10px;
  color: #0078D4;
  font-size: 1rem;
}

/* Tab System */
.tab-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tab-nav {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 2px solid #121212;
}

.tab-btn {
  padding: 12px 25px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn:focus {
  outline: none;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0078D4;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.tab-btn.active {
  color: #0078D4;
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  flex-grow: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s;
}

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

.tab-pane p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.interest-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 15px;
  background-color: #121212;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.interest-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.interest-item i {
  font-size: 1.8rem;
  color: #0078D4;
  margin-bottom: 10px;
}

.interest-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

/* Skills Section */
.skills-section {
  margin-top: 80px;
  background-color: #121212;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.skills-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.skills-header p {
  color: #777;
  font-size: 1rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skills-category {
  background-color: #242424;
  border-radius: 10px;
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skills-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.category-header i {
  font-size: 1.5rem;
  color: #0078D4;
  margin-right: 15px;
}

.category-header h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  margin-bottom: 0;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
}

.skill-percentage {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.skill-progress {
  height: 8px;
  background-color: #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(to right, #1680c2, #009dff);
  border-radius: 10px;
  position: relative;
  transition: width 1.5s cubic-bezier(0.26, 0.86, 0.44, 0.97);
}

/* Contact Section Overrides */
.whoami-page .contact .info-item {
  background: #121212;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.26), 0.08;
  transition: transform 0.3s ease-in-out;
  height: 100%;
  border-left: 5px solid #3498db;
}

.whoami-page .contact .info-item:hover {
  transform: translateY(-5px);
}

.whoami-page .contact .info-item i {
  font-size: 32px;
  color: #3498db;
  margin-right: 20px;
  line-height: 0;
}

.whoami-page .contact .info-item h3 {
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
}

.whoami-page .contact .info-item p {
  font-size: 16px;
  margin-bottom: 0;
}

.whoami-page .contact .social-links {
  margin-top: 40px;
}

.whoami-page .contact .social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f8f9fa;
  margin: 0 10px;
  color: #333;
  font-size: 20px;
  transition: all 0.3s ease;
}

.whoami-page .contact .social-links a:hover {
  background: #3498db;
  color: #fff;
  transform: translateY(-5px);
}

.whoami-page .contact .social-links a.facebook:hover {
  background: #1877f2;
}

.whoami-page .contact .social-links a.behance:hover {
  background: #1769ff;
}

.whoami-page .contact .social-links a.soundcloud:hover {
  background: #ff3300;
}

.whoami-page .contact .social-links a.instagram:hover {
  background: #e4405f;
}

.whoami-page .contact .social-links a.youtube:hover {
  background: #ff0000;
}

.whoami-page .contact .social-links a.linkedin:hover {
  background: #0077b5;
}

/* Resume & Skills Section */
.resume-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
}

.resume-column {
  flex: 1;
  min-width: 280px;
}

.resume-title {
  position: relative;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary, #0ea2bd);
  font-weight: 700;
}

.resume-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 3px;
  width: 50px;
  background-color: var(--color-primary, #0ea2bd);
}

.skill-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  position: relative;
}

.skill-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.75rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease-in-out,
    box-shadow 0.4s ease-in-out,
    border-color 0.4s ease-in-out;
  cursor: default;
  overflow: hidden;
  position: relative;
  min-height: auto;
  height: auto;
  z-index: 1;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
    rgba(14, 162, 189, 0.15) 0%,
    transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary, #0ea2bd);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary, #0ea2bd);
  transition: font-size 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
}

.skill-content ul {
  margin: 0;
  padding-left: 0;
  list-style-type: none;
  text-align: left;
}

.skill-content ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.skill-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary, #0ea2bd);
}

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

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-primary, #0ea2bd);
}

.timeline-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
}

.timeline-location {
  font-size: 0.9rem;
  color: var(--color-primary, #0ea2bd);
  margin-bottom: 0.75rem;
}

.timeline-body ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.timeline-body ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.timeline-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.timeline:before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Whoami Responsive Design */
@media (max-width: 992px) {
  .whoami-page .profile-card {
    margin-bottom: 30px;
  }

  .whoami-page .about-content {
    height: auto;
  }
}

@media (max-width: 768px) {
  .btn-cv {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .whoami-page .hero h2 {
    font-size: 32px;
  }

  .whoami-page .hero p {
    font-size: 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .profile-image-container {
    height: 280px;
  }

  .about-content {
    padding: 25px;
  }

  .tab-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}