@font-face {
  font-family: 'CustomFont';
  src: url('font.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Colors - Cosmic 2026 Theme */
  --bg-dark: #050508;
  --bg-panel: #0f1016;
  
  /* Vibrant Gradient Definition for usage in accents */
  --gradient-primary: linear-gradient(135deg, #7000ff, #00d2ff); 
  
  --primary-accent: #00d2ff; /* Bright Cyan for text highlights */
  --secondary-accent: #7000ff; /* Deep Violet for depth */
  
  --primary-glow: rgba(0, 210, 255, 0.3);
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 20, 30, 0.4);
  
  /* Spacing */
  --gap-md: 1.5rem;
  --gap-lg: 3rem;
  
  /* Animation */
  --trans-fast: 0.3s ease;
  --trans-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'CustomFont', 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* Cosmic Background with Pixel Art Mosaic Overlay */
  background-image: 
    linear-gradient(rgba(15, 16, 22, 0.85), rgba(15, 16, 22, 0.85)), /* Slightly less fade */
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(0, 210, 255, 0.1) 2px, /* Increased opacity from 0.03 to 0.1 */
      rgba(0, 210, 255, 0.1) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 2px,
      rgba(112, 0, 255, 0.1) 2px, /* Increased opacity from 0.03 to 0.1 */
      rgba(112, 0, 255, 0.1) 4px
    ),
    radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.2) 0%, transparent 40%);
  background-size: 100% 100%, 8px 8px, 8px 8px, 100% 100%, 100% 100%; /* Increased size to 8px for visibility */
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--trans-fast);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-accent {
  color: var(--primary-accent);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--text-muted);
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem; /* More breathing room */
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(112, 0, 255, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6), 0 0 20px rgba(112,0,255,0.2); /* Glow effect */
}

/* Shine Effect on Hover */
.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.7s; 
  pointer-events: none;
}

.glass-card:hover::after {
  left: 150%;
}

/* Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap-md);
  padding: 4rem 0;
}

/* Layout Assignments */
.grid-profile { grid-column: span 12; }
.grid-stats { grid-column: span 12; }
.grid-roles { grid-column: span 12; }
.grid-about { grid-column: span 12; } 
.grid-stack { grid-column: span 12; }
.grid-exp { grid-column: span 12; }
.grid-contact { grid-column: span 12; }

@media (min-width: 768px) {
  .grid-profile { grid-column: span 6; grid-row: span 2; }
  .grid-about { grid-column: span 6; }
  .grid-stats { grid-column: span 3; } 
  .grid-roles { grid-column: span 12; } /* Certs full width on tablet to prevent wrapping */
  .grid-exp { grid-column: span 12; }
  .grid-stack { grid-column: span 12; }
}

@media (min-width: 1024px) {
  .grid-profile { grid-column: span 3; grid-row: span 2; }
  .grid-about { grid-column: span 6; }
  .grid-stats { grid-column: span 3; }
  .grid-roles { grid-column: span 5; }
  .grid-stack { grid-column: span 4; }
  .grid-exp { grid-column: span 12; }
}


/* Specific Component Styles */
.profile-img-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 4px; /* Space for gradient border */
  margin-bottom: 1.5rem;
  position: relative;
  background: var(--gradient-primary); /* Gradient border */
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--trans-fast);
  background: var(--bg-panel); /* Inner matte */
  border: 4px solid var(--bg-panel); /* Inner gap */
}

.glass-card:hover .profile-img {
  filter: grayscale(0%);
}

.badge {
  display: inline-block;
  padding: 0.35em 0.85em;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px; /* Slightly squarer for tech look */
  background: rgba(255, 255, 255, 0.05);
  margin-right: 0.5rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  border-color: var(--primary-accent);
}

.badge-accent {
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary-accent);
  border-color: var(--primary-accent);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px; 
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-accent);
  box-shadow: 0 0 10px var(--secondary-accent);
}

.stat-num {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* Animations included in class application */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Contact Icons */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px; /* Smooth corners */
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--trans-bounce);
  color: var(--text-muted);
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px -5px rgba(112, 0, 255, 0.4);
}

/* Certifications List - Fix Layout */
.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start; /* Align top to handle wrapping gracefully */
}


.cert-list li i {
    margin-top: 4px; /* Optical adjustment */
    color: var(--secondary-accent); /* Violet icon */
}

/* Timeline & Experience Styles */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.event {
  position: relative;
  margin-bottom: 3rem;
}

.event:last-child {
  margin-bottom: 0;
}

.event::before {
  content: "";
  position: absolute;
  left: -1.5rem; /* Adjusted for padding-left of timeline */
  left: calc(6px - 4px + 1px); /* Center on line: 6px line-left + 1px half-width - 4px half-dot */
  left: -23px; /* visual fix based on padding */
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--bg-panel);
  border: 2px solid var(--primary-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-glow);
  z-index: 1;
}

.event-top {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .event-top {
      flex-direction: row;
      justify-content: space-between;
      align-items: baseline;
  }
}

.years {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-accent);
  min-width: 120px;
}

.title-block {
  flex: 1;
}

.title-block .job {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.title-block .company-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 5px;
}

/* Ensure links in contact info inherit color but have hover state */
.contact-info a {
    transition: var(--trans-fast);
}
.contact-info a:hover {
    color: var(--primary-accent) !important; /* Force override of inherit */
    text-decoration: underline;
}

.contact-info {
    font-family: 'Inter', sans-serif;
}

.event-body {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.event-body p {
  margin-bottom: 0.8rem;
}

.event-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.event-body li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.event-body li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--secondary-accent);
}

.meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.8rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.meta strong {
  color: white;
}

/* AI Glow Overlay - Apple Intelligence Style */
.ai-glow-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.6s ease;
    overflow: hidden;

    /* Mask to create the border - Crossed Linear Gradients (Rectangular Fade) */
    /* Two gradients combined: 
       1. Top-to-Bottom (covers top/bottom edges)
       2. Left-to-Right (covers left/right edges)
       They overlap to form a seamless frame with a soft inward fade.
       The "8px" value controls how soft/long the fade is ("degrade").
    */
    -webkit-mask-image: 
        linear-gradient(to bottom, black 0%, transparent 8px, transparent calc(100% - 8px), black 100%),
        linear-gradient(to right, black 0%, transparent 8px, transparent calc(100% - 8px), black 100%);
    mask-image: 
        linear-gradient(to bottom, black 0%, transparent 8px, transparent calc(100% - 8px), black 100%),
        linear-gradient(to right, black 0%, transparent 8px, transparent calc(100% - 8px), black 100%);
    
    /* Default composite is 'add' (union), which is exactly what we want */
    -webkit-mask-composite: source-over;
    mask-composite: add;

    padding: 0;
    
    /* Bloom effect - reduced blur because the gradient provides the softness now 
       Increase shadows for the "light" feeling
    */
    filter: blur(5px) 
            drop-shadow(0 0 10px rgba(255, 0, 85, 0.5)) 
            drop-shadow(0 0 20px rgba(0, 191, 255, 0.5));
}

.ai-glow-overlay.active {
    opacity: 0.5;
}

/* Rotating Gradient */
.ai-glow-overlay::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg, 
        #ff2975, 
        #f222ff,
        #8c1eff,
        #09c6f9,
        #04d192, 
        #ff9d00,
        #ff2975
    );
    animation: rotateGlow 4s linear infinite;
}


@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


