/*--------------------------------------------------------------
# Index.html Specific Overrides
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Hero Section - Canvas Integration for Index
--------------------------------------------------------------*/
section#hero-fullscreen {
  position: relative;
  overflow: hidden;
}

section#hero-fullscreen .container {
  position: relative;
  z-index: 1;
}

/*--------------------------------------------------------------
# Hero Section - Modern Fullscreen Layout (Index Only)
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #000000 0%, #0e0064 35%, #000000 100%);
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
}

.hero-bg-gradient,
.hero-bg-image,
.hero-bg-blur-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-blur-overlay {
  backdrop-filter: blur(22px);
  z-index: 3;
}

canvas#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/*--------------------------------------------------------------
# Hero Content Typography & Layout Overrides
--------------------------------------------------------------*/
.hero-section .hero-content {
  margin: auto;
  z-index: 109 !important;
}

.hero-section .hero-content .staggered-heading,
.hero-section .hero-content h2 {
  font-size: 88px;
  font-weight: 900;
  text-align: center;
  font-family: var(--font-primary);
  color: white;
}

.hero-content .container p {
  margin-top: 30px;
  padding-bottom: 48px;
  padding-right: 17%;
  padding-left: 17%;
  color: white;
}

/*--------------------------------------------------------------
# Hero Background Effects
--------------------------------------------------------------*/
.hero-bg-wrap,
.hero-bg-image,
.hero-bg-gradient,
.hero-bg-blur-overlay,
#scene {
  isolation: isolate;
}

/*--------------------------------------------------------------
# Blob Pattern Overlay (Index Only)
--------------------------------------------------------------*/

/* Main rotation container - Controls rotation area for ALL blobs */
.hero-blobs-container {
  position: absolute;
  /*top: 8vh;           
  left: 50%;          
  width: 800px;       
  height: 650px;      */
  top: -8vh;
  left: 55%;
  width: 540px;
  height: 500px;
  transform: translate(-50%, 0);
  pointer-events: none;
  z-index: 107;
}

/* Purple Blob Container - Rotates at its own speed */
.blob-container-purple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  animation: rotate-purple 32s linear infinite;  /* 32s = half of 16s */
}

@keyframes rotate-purple {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Original Blob (Purple) - 100% size */
.blobpattern2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 733px;
  height: 600px;
  opacity: .675 !important;
  z-index: 108 !important;
  pointer-events: none;
}

.blobpattern2 path {
  stroke-width: 40px;
  stroke-opacity: 0.2;
  fill-opacity: .5;
  stroke: #b047ff;
  fill: #b047ff;
}

/* Pink Blob Container - Rotates at its own speed */
.blob-container-pink {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  animation: rotate-pink 40s linear infinite;  /* 40s = slower than purple */
}

@keyframes rotate-pink {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Blob 2 (Pink) - 25% of original (increased from 20%) */
.hero-blob2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(-366.5px);  /* Touch left edge of purple blob */
  width: 183.25px;    /* 733px * 0.25 (was 146.6px at 20%) */
  height: 150px;      /* 600px * 0.25 (was 120px at 20%) */
  opacity: .25 !important;
  pointer-events: none;
  z-index: 107;
  filter: blur(20px);  
}

.hero-blob2 path {
  stroke-width: 40px;
  stroke-opacity: 0.2;
  fill-opacity: .5;
  stroke: #ff88d4;
  fill: #ff54c2;
}

/* Green Blob Container - Rotates at its own speed */
.blob-container-green {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  animation: rotate-green 36s linear infinite;  /* 36s = between purple and pink */
}

@keyframes rotate-green {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Blob 3 (Green) - 50% of original (increased from 40%) */
.hero-blob3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(366.5px);  /* Touch right edge of purple blob */
  width: 366.5px;     /* 733px * 0.50 (was 293.2px at 40%) */
  height: 300px;      /* 600px * 0.50 (was 240px at 40%) */
  opacity: .235 !important;
  pointer-events: none;
  z-index: 106;
  filter: blur(30px);  
}

.hero-blob3 path {
  stroke-width: 40px;
  stroke-opacity: 0.2;
  fill-opacity: .5;
  stroke: #bcff55;
  fill: greenyellow;
}
    

/*--------------------------------------------------------------
# AI Letter Rays Effect
--------------------------------------------------------------*/
canvas#ai-rays {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 108;
  opacity: 0;
  transition: opacity 0.6s ease;
  top: 0;
  left: 0;
}

canvas#ai-rays.active {
  opacity: 1;
}

/* CSS Variables for the rays */
:root {
  --ray-color-1: #ff3131;
  --ray-color-2: #7ed957;
  --ray-color-3: #ffde59;
  --ray-color-4: #ff66c4;
  --ray-color-5: #5ce1e6;
  --ray-color-6: #ff914d;
  
  --ray-scale-1: 0.6;
  --ray-scale-2: 0.8;
  --ray-scale-3: 1.0;
  --ray-scale-4: 1.2;
  --ray-scale-5: 1.5;
  
  --ray-height-1: 400px;
  --ray-width-1: 0.8px;
  --ray-height-2: 550px;
  --ray-width-2: 1px;
  --ray-height-3: 700px;
  --ray-width-3: 1.2px;
  --ray-height-4: 850px;
  --ray-width-4: 1.4px;
  --ray-height-5: 1000px;
  --ray-width-5: 1.6px;
  --ray-height-6: 1150px;
  --ray-width-6: 1.8px;
  --ray-height-7: 1300px;
  --ray-width-7: 2px;
  --ray-height-8: 1600px;
  --ray-width-8: 2.4px;
}




/*--------------------------------------------------------------
/*    Mobile - HERO Items   */
    @media (max-width: 992px) {
      .hero-blobs-container {
        width: 480px;
        height: 390px;
        top: 10vh;
      }
      
      .blobpattern2 {
        width: 440px;
        height: 360px;
      }
      
      .hero-blob2 {
        width: 110px;
        height: 90px;
        transform: translate(-50%, -50%) translateX(-220px);
      }
      
      .hero-blob3 {
        width: 220px;
        height: 180px;
        transform: translate(-50%, -50%) translateX(220px);
      }
    }
    
    @media (max-width: 576px) {
      .hero-blobs-container {
        width: 360px;
        height: 293px;
        top: 12vh;
      }
      
      .blobpattern2 {
        width: 330px;
        height: 270px;
      }
      
      .hero-blob2 {
        width: 82.5px;
        height: 67.5px;
        transform: translate(-50%, -50%) translateX(-165px);
      }
      
      .hero-blob3 {
        width: 165px;
        height: 135px;
        transform: translate(-50%, -50%) translateX(165px);
      }
    }



/*--------------------------------------------------------------
# Staggered Heading Color Override
--------------------------------------------------------------*/
/*.staggered-heading2 span.visible:nth-child(4) {
  background-image: linear-gradient(to right, #05a2ee, #ffdb1a, #a101c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}*/

.staggered-heading2 span.visible:nth-child(4) {
  /*background-image: linear-gradient(to right, #ff54c2, #31cdff, #d7ff52);*/
  background-image: linear-gradient(to right, rgba(255,255,255,0.0),
    #6fffff,
    #ff6bff,
    #b98cff,
    rgba(255,255,255,0.0)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}









/*-============================================================================
     CSS - GRADIENT TEXT THAT WORKS IN SAFARI & CHROME
     ============================================================================ */



/* Typewriter base styles */
/* Begin - Workign but the large text was not in this */
.staggered-heading2 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1.4;
  margin: 0 0 2rem 0;
  font-weight: 700;
  position: relative;
}

#typewriter span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

#typewriter span.visible {
  opacity: 1;
  transform: translateY(0);
}
/* End - Workign but the large text was not in this */





/* ============================================================================
   GRADIENT TEXT - SAFARI & CHROME COMPATIBLE
   The entire "AI-enabled" text gets the gradient
   ============================================================================ */

.glow-text {
  position: relative;
  display: inline-block;
  font-weight: inherit;
  white-space: nowrap;
  
  /* Create gradient background */
  background: linear-gradient(
    90deg,
    #ff8c00 0%,
    #d633ff 50%,
    #4fdcff 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  
  /* Clip background to text - Safari needs both */
  -webkit-background-clip: text;
  background-clip: text;
  
  /* Make text transparent to show gradient - Safari needs webkit prefix */
  -webkit-text-fill-color: transparent;
  color: transparent;
  
  /* Prevent any inheritance issues */
  background-origin: border-box;
  
  /* Smooth gradient animation */
  animation: gradient-shift 6s ease infinite;
}

/* Gradient animation */
@keyframes gradient-shift {
  0%, 100% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
}

/* Safari-specific fix for text rendering */
@supports (-webkit-background-clip: text) {
  .glow-text {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Ensure proper vertical alignment with other spans */
.glow-text {
  vertical-align: baseline;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .staggered-heading2 {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }
}

/* Medium screens - AI rays will auto-adjust to new font size */
@media (max-width: 992px) {
  .staggered-heading2 {
    font-size: 2rem; /* Changed from 2.5rem - rays will follow */
  }
}

/* ============================================================================
   AI RAYS CANVAS STYLING
   ============================================================================ */

#ai-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 108;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 2s ease; /* 2 second fade-in */
}

#ai-rays.active {
  opacity: 1;
}

/* Safari-specific optimizations */
@supports (-webkit-backdrop-filter: blur(1px)) {
  /* Safari-only: Faster fade-in for rays */
  #ai-rays {
    transition: opacity 1.5s ease;
  }
  
  /* Safari-only: Ensure text is immediately visible */
  #typewriter span {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid canvas - hide in Safari */
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.5s ease;
}

/* Safari: hide grid canvas */
@supports (-webkit-backdrop-filter: blur(1px)) {
  #scene {
    opacity: 0 !important;
  }
}

/* ============================================================================
   ALTERNATIVE: If gradient still doesn't show, use this fallback
   ============================================================================ */

/* Uncomment this if the gradient doesn't appear in Safari */
/*
.glow-text {
  background: linear-gradient(
    90deg,
    #ff8c00 0%,
    #d633ff 50%,
    #4fdcff 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}
*/

.hero-bg-blur-overlay {
  backdrop-filter: blur(22px);
  z-index: 3;
  background: transparent; /* ← Add this to ensure no background color */
  pointer-events: none; /* ← Add this so it doesn't block interactions */
}
















/*--------------------------------------------------------------
# Section Color Overrides for Index
--------------------------------------------------------------*/
.hero-section .hero-content h2,
.hero-content .container p,
#testimonials .section-header h2 {
  color: white;
}

.dotted-divider {
  background-image: radial-gradient(circle, #56d6ffa3 1px, transparent 1px);
}

#skills .section-header h2 {
  color: #fff;
  margin-top: 80px;
}

#skills .section-header p {
  color: #ce9eff;
  color: #f5ebff;
}

#testimonials .section-header h2 {
  margin-top: 40px;
}

/*--------------------------------------------------------------
# Portfolio Background Canvas Wrapper (Index Only)
--------------------------------------------------------------*/
.wrap {
  position: relative;
  z-index: 0;
}

#bgPort {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px; 
  pointer-events: none;
  z-index: 0;
  background-color: #1100669c; /* required for mask visibility */

  /* ==========================
     TUNABLE MASK VARIABLES
     ========================== */

  /* Vertical reach of the bowl (30–45% recommended) */
  --bowl-depth: 120%;

  /* Width of the bowl curve */
  --bowl-width: 80%;

  /* Softness of fade edge */
  --bowl-softness: 90%;

  /* Organic horizontal offset */
  --bowl-x: 50%;

  /* Anchor to bottom */
  --bowl-y: 110%;

  /* ==========================
     MASK
     ========================== */

  -webkit-mask-image:
    radial-gradient(
      ellipse var(--bowl-width) var(--bowl-depth)
      at var(--bowl-x) var(--bowl-y),
      transparent 0%,
      transparent calc(100% - var(--bowl-softness)),
      black 100%
    );

  mask-image:
    radial-gradient(
      ellipse var(--bowl-width) var(--bowl-depth)
      at var(--bowl-x) var(--bowl-y),
      transparent 0%,
      transparent calc(100% - var(--bowl-softness)),
      black 100%
    );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}





#bgPort canvas {
  background: transparent;
  background-color: transparent;
}

#portfolio,
.card-container {
  position: relative;
  z-index: 2;
}

/*--------------------------------------------------------------
# Section - Skills
--------------------------------------------------------------*/
#skills.skills {
  border-top: 1px solid #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
}

.skills-content p b {
  font-size: 100%;
  font-weight: 600;
  color: #cf9eff;
  color: #f5ebff;
}

/*.skills .progress {
  margin-top: 0px;
  height: auto;
  display: block;
  background: none;
  border-radius: 0;
}*/

/*.skills .progress .skill */
.skills .skill {
  margin: 0 0 6px 0;
  text-transform: uppercase;
  text-align: center;
  display: block;
  padding-top: 25px;
  font-weight: 600;
  letter-spacing: 0.025rem;
  font-family: "Poppins", sans-serif;
  color: #efefef;
}

/*.skills .progress .skill .val*/
.skills .skill .val {
  float: right;
  font-style: normal;
  color: #f8f8f8;
  display: none;
}
/*
.skills .progress-bar-wrap {
  background: #dcd5c8;
  background: #ff54c2;
}

.skills .progress-bar {
  width: 1px;
  height: 2px;
  transition: 0.9s;
  background-color: #6d4195;
}*/

.skills-list {
  margin-top: 12px;
}

.skills-list ul,
.skills-list ul li {
  list-style-type: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px dotted #d19eff57;
}

.skills-list ul:last-of-type, 
.skills-list ul li:last-of-type,
.skills-list ul > li:last-of-type {
  border-bottom: none;
}

.skills-list h3 {
  margin-top: 30px;
  font-size: 95%;
  font-weight: bold;
}

.skills-list ul li {
  font-size: 90%;
  letter-spacing: .035rem;
  color: #b9b8bf;
  padding: 20px 0;
}

.skills-icon {
  width: 67px;
  height: 68px;
  opacity: 1;
  padding-bottom: 10px;
}

.skills-icon .shape {
  fill: #00ddff;
  fill: #ff54c2;
}

.skills-icon path {
  border: none;
  stroke: none;
  fill-opacity: 1;
}

#skills .section-header h2 {
  color: #fff;
  margin-top: 80px;
}

#skills .section-header p {
  padding-top: 16px;
  max-width: 61%;
  color: #f5ebff;
}

.wrapper-skills-card {
  margin-top: 60px;
  padding: 40px;
  border-radius: 12px;
  background-color: #0e0119;
  border: 4px solid #871bff59;
  filter: drop-shadow(0px 0px 16px rgba(255, 84, 194, 0.35));
}

.wrapper-skills-card.col1,
.wrapper-skills-card.col3 {
  width: 80%;
  border: none;
  filter: drop-shadow(0px 0px 5px rgba(255, 84, 194, 0.05));
}

.wrapper-skills-card.col1 {
  border-right: 1px solid #871bffb8;
}
.wrapper-skills-card.col2 {
  border: 1px solid #871bffd4;
}
.wrapper-skills-card.col3 {
  margin-left: 20%;
  border-left: 1px solid #871bffb8;
}

.col-lg-12 .wrapper-skills-card {
  border: none;
  /*border-top: 3px dotted #a24fffed;*/
  border-top: 2px dotted #bc3affd9;
  text-align: center;
  filter: drop-shadow(0px 0px 5px rgba(255, 84, 194, 0.35));
}

/* Add flexbox to the parent row */
.skills-content.skills-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Ensure the text-center div takes full width */
.skills-content.skills-list .text-center {
  width: 100%;
  flex-basis: 100%;
}

/* Reset margin-top for col1 and col3 since flexbox handles centering */
.wrapper-skills-card.col1,
.wrapper-skills-card.col3 {
  margin-top: 0;
}

/* Ensure col-lg-12 takes full width */
.skills-content.skills-list .col-lg-12 {
  width: 100%;
  flex-basis: 100%;
}

 /*Added CSS for Bezuer Curves */
 /* ============================================
   BEZIER CONNECTION LINES - CSS
   Add this to your stylesheet
   ============================================ */

/* SVG Overlay Container */
#skills-connection-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* Wrapper positioning context - add this class to parent section */
.skills-section-wrapper {
  position: relative;
}

/* Connection Path Styling */
.connection-path {
  stroke: white;
  stroke-width: 2px;
  fill: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.connection-path:hover {
  opacity: 1;
  stroke-width: 3px;
}

/* Glow Ball Styling */
.glow-ball {
  fill: white;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) 
          drop-shadow(0 0 16px rgba(255, 255, 255, 0.6));
  opacity: 0;
}

/* Trail Effect */
.glow-trail {
  stroke: white;
  stroke-width: 3px;
  fill: none;
  opacity: 0;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* Responsive: Hide below 992px */
@media (max-width: 991px) {
/*  #skills-connection-svg {
    display: none;
  }*/
}

/* Animation Classes */
.animating {
  opacity: 1;
}

.connection-path.visible {
  animation: pathFadeIn 0.8s ease-out forwards;
}

@keyframes pathFadeIn {
  from {
    opacity: 0;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }
  to {
    opacity: 0.6;
    stroke-dashoffset: 0;
  }
}

@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0 0 16px rgba(255, 255, 255, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1)) 
            drop-shadow(0 0 24px rgba(255, 255, 255, 0.8));
  }
}

.glow-ball.animating {
  animation: glowPulse 1s ease-in-out infinite;
}

.wrapper-skills-card {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Performance optimization */
#skills-connection-svg * {
  will-change: opacity;
}

.glow-ball.animating {
  will-change: transform, opacity;
}



#skills.skills {
  position: relative; /* ← ADD THIS LINE */
  border-top: 1px solid #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
}

/* Make sure SVG is positioned correctly */
#skills-connection-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/*#skills-connection-svg {
  z-index: 999 !important;
  background: rgba(255, 0, 0, 0.1); 
}*/
/* ==========================================
End of new css for Bezuier Curves
========================================== */


/*  ==================================================================================== Skills BG and Shapes ====================================================================================*/


#skills.gradient-bg-skills {
  position: relative;
  overflow: hidden;
}

.gradient-bg-skills .octagon-overlay {
  position: absolute;
  width: 100%; /* Full width of section */
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .68;
  /*opacity:  1;*/
}

.gradient-bg-skills .octagon-overlay svg {
  width: 100%;
  height: 100%;
}

.gradient-bg-skills .container {
  position: relative;
  z-index: 1;
}




/* Control individual polygon opacities */
.polygon-1 { opacity: 1; }
.polygon-2 { opacity: 0.75; }
.polygon-3 { opacity: 0.5; }
.polygon-4 { opacity: 0.25; }
.polygon-5 { opacity: 0.0; }

/* Control individual apothem line opacities */
.apothem-line-right { opacity: .20; }
.apothem-line-down-right { opacity: 0.20; }
.apothem-line-down { opacity: 0.20; }
.apothem-line-down-left { opacity: 0.20; }
.apothem-line-left { opacity: 0.20; }
.apothem-line-up-left { opacity: 0.20; }
.apothem-line-up { opacity: 0.25; }
.apothem-line-up-right { opacity: 0.20; }


/* All polygons */
.octagon-overlay path {
  stroke-width: .4 !important; /* Change from 2 to any value */
}

/* Individual polygons */
.polygon-1 { stroke-width: .4 !important; }
.polygon-2 { stroke-width: .4 !important; }
.polygon-3 { stroke-width: .4 !important; }
.polygon-4 { stroke-width: .4 !important; }
.polygon-5 { stroke-width: .4 !important; }

/* All lines */
.octagon-overlay line {
  stroke-width: .4 !important;
}

/* Individual lines */
.apothem-line-right { stroke-width: .5 !important; }

/*  =============== Colors ===============  */
/* Octagon overlay specific styles - won't affect other SVGs */
.octagon-overlay path {
  fill: none !important;
  stroke: #ffffff !important;
}

.octagon-overlay line {
  fill: none !important;
}

/* Optional: If you want semi-transparent white fill instead of none */
.octagon-overlay path {
    fill: none !important; /* 10% white fill */
}






/* Anchor just the letter A */
.ai-anchor {
  display: inline-block;
  position: relative;
}


.ai-word {
  display: inline-block;
  position: relative;

  background: linear-gradient(
    90deg,
    #ff3131,
    #ffde59,
    #7ed957,
    #5ce1e6
  );

  background-size: 200% 100%;
  background-position: 0% 50%;

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  font-weight: inherit;
}


.ai-word > span {
  color: inherit;
  -webkit-text-fill-color: inherit;
}


.ai-anchor,
.ai-letter {
  position: relative;
  display: inline-block;
}

#ai-rays {
  will-change: transform;
  contain: strict;
}



/* AI Rays canvas — Safari safe */
canvas#ai-rays {
  position: absolute;
  /*inset: -2px 10px;*/
  inset: -1px -1px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 108;
  opacity: 0;
  transition: opacity 0.6s ease;
  transform: translateZ(0); /* Safari GPU hint */
}

canvas#ai-rays.active {
  opacity: 1;
}

/* Prevent Safari blur + transform stacking bugs */
.hero-bg-wrap {
  will-change: opacity;
}





#typewriter span {
  display: inline-block;
  will-change: opacity, transform;
}









/*NEW CSS*/

/* Typewriter base styles */
.staggered-heading2 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1.4;
  margin: 0 0 2rem 0;
  font-weight: 700;
  position: relative;
}

#typewriter span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

#typewriter span.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   GRADIENT TEXT - SAFARI & CHROME COMPATIBLE
   The entire "AI-enabled" text gets the gradient
   ============================================================================ */

.glow-text {
  position: relative;
  display: inline-block;
  font-weight: inherit;
  white-space: nowrap;
  
  /* Create gradient background */
  background: linear-gradient(
    90deg,
    #ff8c00 0%,
    #d633ff 50%,
    #4fdcff 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  
  /* Clip background to text - Safari needs both */
  -webkit-background-clip: text;
  background-clip: text;
  
  /* Make text transparent to show gradient - Safari needs webkit prefix */
  -webkit-text-fill-color: transparent;
  color: transparent;
  
  /* Prevent any inheritance issues */
  background-origin: border-box;
  
  /* Smooth gradient animation */
  animation: gradient-shift 6s ease infinite;
}

/* Gradient animation */
@keyframes gradient-shift {
  0%, 100% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
}

/* Safari-specific fix for text rendering */
@supports (-webkit-background-clip: text) {
  .glow-text {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Ensure proper vertical alignment with other spans */
.glow-text {
  vertical-align: baseline;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .staggered-heading2 {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }
}

/* ============================================================================
   ALTERNATIVE: If gradient still doesn't show, use this fallback
   ============================================================================ */

/* Uncomment this if the gradient doesn't appear in Safari */
/*
.glow-text {
  background: linear-gradient(
    90deg,
    #ff8c00 0%,
    #d633ff 50%,
    #4fdcff 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}
*/






/*--------------------------------------------------------------
# Media Queries - Tablet (max 992px) - Index Specific
--------------------------------------------------------------*/
/* ============================================
   MOBILE iPad Pro  (gradient not loading)
   ============================================ */
/*@media (min-width: 992px) and (max-width: 1100px) {*/
@media (max-width: 1024px) {

  .hero-section .hero-content h2 {
    font-size: 69px;
  }
  
  .hero-content .container p {
    padding-right: 0%;
    padding-left: 0%;
  }

  .hero-bg-image {
    background: url(../img/hero-fullscreen-bg.jpg) center center;
    background-size: cover;
    opacity: .1;
  }

  #about .section-header p {
    font-size: 1.5rem;
    padding-bottom: 30px;
  }

  #portfolio.portfolio p {
    width: 72%;
  }

  #card-dodaif2 {
    height: 300px; 
    min-height: 300px; 
  }

  #skills .section-header p {
    max-width: 86%;
  }

  .testimonials .section-header p {
    max-width: inherit;
  }
  #footer {
    min-height: 600px;
  }

}


@media (min-width: 768px) and (max-width: 1023px) {

  .hero-section .hero-content h2 {
    font-size: 51px;
  }
  
  .hero-content .container p {
    padding-right: 0%;
    padding-left: 0%;
  }

  .hero-bg-image {
    background: url(../img/hero-fullscreen-bg.jpg) center center;
    background-size: cover;
    opacity: .1;
  }

  #about .section-header p {
    font-size: 1.5rem;
    padding-bottom: 30px;
  }

  .about .about-img {
    margin: 0;
  }

  #portfolio.portfolio p {
    width: 72%;
  }

  #card-dodaif2 {
    height: 300px; 
    min-height: 300px; 
  }

  #skills .section-header p {
    max-width: 86%;
  }

  .testimonials .section-header p {
    max-width: inherit;
  }
  #footer {
    min-height: 600px;
  }

  .hero-content .container p,
  #about .section-header h2,
  #about .section-header p,
  #portfolio.portfolio h2,
  #portfolio.portfolio h4,
  #portfolio.portfolio p,
  #skills .section-header h2,
  #skills .section-header p,
  #testimonials .section-header h2, 
  .testimonials .section-header p
    {
    text-align: center;
  }

  .wrapper-skills-card.col1,
  .wrapper-skills-card.col2,
  .wrapper-skills-card.col3,
  .col-lg-12 .wrapper-skills-card,
  #skills .section-header p {
    width: 100%;
    max-width: 100%;
  }

  .wrapper-skills-card.col1,
  .wrapper-skills-card.col2,
  .wrapper-skills-card.col3,
  .col-lg-12 .wrapper-skills-card {
    margin: 16px 0 ;
    padding: 40px;
    background-color: #0e0119;
    border: 4px solid #871bff59;
    filter: drop-shadow(0px 0px 5px rgba(255, 84, 194, 0.35));
  }
  .skills .skill {
    text-align: left;
  }




#skills-connection-svg {
  background: rgba(255, 0, 0, 0.2) !important; /* Red tint to see SVG bounds */
  z-index: 99999 !important;
}

.glow-ball {
  fill: red !important; /* Make spheres red for testing */
  opacity: 1 !important; /* Force visible */
}



}





















/*@media (max-width: 992px) {*/
@media (max-width: 767px) {  
  .hero-section {
    margin-top: 40px;
    /*background-color: black;*/
  }

  /*.hero-bg-wrap,
  .hero-bg-gradient,
  .hero-bg-image 
  .hero-bg-blur-overlay {
    opacity: 0 !important; 
  }*/

  .hero-bg-blur-overlay {
    z-index: 0; /* Move behind the gradient background */
    backdrop-filter: blur(8px); /* Lighter blur */
  }

  .hero-bg-blur-overlay {
    backdrop-filter: blur(12px); /* Reduce blur on mobile for better performance */
    background: transparent !important;
    opacity: 0.8; /* Adjust if needed - controls blur intensity */
  }
  .hero-bg-image {
/*    position: absolute;
    inset: 0;
    z-index: 2;*/
    background: url(../img/hero-fullscreen-bg.jpg) center center;
    background-size: cover;
    transform: scale(1.1);
    opacity: .2;
  }

  .hero-section .hero-content {
    width: 90%;
  }

  .hero-section .hero-content h2 {
    font-size: 2rem;
    text-align: left;
    margin-left: 20px;
  }

  .hero-content .container p {
    padding: 0;
  }

  .hero-section .hero-content h2,
  .hero-content .container p {
    color: white;
  }

  .hero-section .container {
    margin-left: 0px;
    padding: 0 20px;
  }

  .glow-text::before {
    filter: blur(52px);
    width: 300px;
    height: 100px;
    margin-top: -40px;
  }

  .hero-bg-wrap.blurred > .hero-bg-image {
    opacity: 0.1;
  }

  .dotted-divider {
    background-image: radial-gradient(circle, #ffffff7d 1px, transparent 1px);
    display: none;
  }

  .hero-bg-image {
    background-size: auto;
  }

  .custom-button {
    width: 320px;
  }
  
  #portfolio.portfolio p {
    width: 100%;
  }

  .wrapper-skills-card.col1,
  .wrapper-skills-card.col2,
  .wrapper-skills-card.col3,
  .col-lg-12 .wrapper-skills-card,
  #skills .section-header p {
    width: 100%;
    max-width: 100%;
  }

  .wrapper-skills-card.col1,
  .wrapper-skills-card.col2,
  .wrapper-skills-card.col3,
  .col-lg-12 .wrapper-skills-card {
    margin: 16px 0 ;
    padding: 40px;
    background-color: #0e0119;
    border: 4px solid #871bff59;
    filter: drop-shadow(0px 0px 5px rgba(255, 84, 194, 0.35));
  }
  .skills .skill {
    text-align: left;
  }
  
}

/*

.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: linear-gradient(
    145deg,
    #000000 0%,
    #0e0064 35%,
    #000000 100%
  );
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient { z-index: 0; }
.hero-bg-image    { z-index: 1; }
.hero-bg-blur-overlay { z-index: 2; }

.hero-section .hero-content {
  position: relative;
  z-index: 10;
}
*/


/* ============================================
   MOBILE SVG FIX - Add to your CSS
   The SVG needs proper dimensions on mobile
   ============================================ */

/* Desktop - SVG is absolute positioned within #skills */
@media (min-width: 992px) {
  #skills-connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
  }
}

/* Mobile - SVG needs to cover the entire viewport/document */
@media (max-width: 991px) {
  #skills-connection-svg {
    position: fixed;        /* Changed from absolute */
    top: 0;
    left: 0;
    width: 100vw;          /* Full viewport width */
    height: 100vh;         /* Full viewport height */
    pointer-events: none;
    z-index: 999;          /* Above cards so we can see it */
    overflow: visible;
  }
  
  /* Alternative if fixed doesn't work with your layout */
  /* Uncomment this if you need absolute positioning instead */
  
  #skills-connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 999;
    overflow: visible;
  }
  
}

/* Make sure #skills section has position context */
#skills.skills {
  position: relative;
}


/*--------------------------------------------------------------
# HERO SECTION - MINIMAL CSS UPDATE (Colors Only)
--------------------------------------------------------------*/
/* ONLY add/update these specific styles
   DO NOT remove any existing Portfolio or Skills styles */

/*--------------------------------------------------------------
# Updated Gradient Text Color (AI-enabled)
--------------------------------------------------------------*/

/* Update ONLY this selector - leave all other .glow-text alone */
#typewriter .glow-text,
.hero-section .glow-text {
  background: linear-gradient(
    90deg,
    #ff6bff 0%,    /* magenta */
    #6fffff 33%,   /* cyan */
    #b98cff 66%,   /* violet */
    #00f6ff 100%   /* neon cyan */
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}









/*--------------------------------------------------------------
# Updated Blob Colors
--------------------------------------------------------------*/

/* Purple blob -> Violet */
.blobpattern2 path {
  stroke: #b98cff !important;
  fill: #b98cff !important;
}

/* Pink blob -> Magenta */
.hero-blob2 path {
  stroke: #ff6bff !important;
  fill: #ff6bff !important;
}

/* Green blob -> Cyan */
.hero-blob3 path {
  stroke: #6fffff !important;
  fill: #6fffff !important;
}

/*--------------------------------------------------------------
# AI Rays Canvas - Ensure No Conflicts
--------------------------------------------------------------*/

/* Make sure #ai-rays only affects hero, not portfolio */
.hero-section canvas#ai-rays,
.hero-section #ai-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 108;
  opacity: 0;
  transition: opacity 2s ease;
  transform: translateZ(0);
}

.hero-section #ai-rays.active {
  opacity: 1;
}

/*--------------------------------------------------------------
# Typewriter - Safari Compatibility
--------------------------------------------------------------*/

@supports (-webkit-backdrop-filter: blur(1px)) {
  #typewriter span {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .hero-section #ai-rays {
    transition: opacity 1.5s ease;
  }

}







/* FORCE SPHERES VISIBLE - TEMPORARY TEST */
/*@media (max-width: 991px) {
  .glow-ball {
    fill: red !important;
    opacity: 1 !important;
  }
  
  #skills-connection-svg circle {
    fill: red !important;
    opacity: 1 !important;
  }
}*/



