/*
  FAMAPP INSPIRED DESIGN SYSTEM
  Author: Antigravity
  Purpose: High-contrast, vibrant, modern portfolio theme (Black & Orange)
*/

:root {
  --bg-main: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: #121212;
  --primary: #FF8A00;
  /* FamApp Orange */
  --secondary: #FFD600;
  /* Neon Yellow Accent */
  --accent: #FF5C00;
  /* Deep Orange */
  --text-main: #FFFFFF;
  --text-dim: #bbbbbb;
  --glass-border: rgba(255, 138, 0, 0.2);
  --neon-shadow: 0 0 15px rgba(255, 138, 0, 0.3);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Fixes */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden !important;
  position: relative;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  line-height: 1.6;
}

a {
  transition: var(--transition);
  text-decoration: none !important;
  color: var(--primary);
}

a:hover {
  color: var(--secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}

/* Section Common */
.section {
  padding: 120px 0 !important;
  background-color: var(--bg-main) !important;
}

.section .container {
  padding-left: 15px;
  padding-right: 15px;
}

.bg-dark-variant {
  background-color: var(--bg-surface) !important;
}

.section-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: clamp(1px, 0.5vw, 4px);
  margin-bottom: clamp(2rem, 4vw, 4rem);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(40px, 8vw, 60px);
  height: 3px;
  background: var(--primary);
  box-shadow: var(--neon-shadow);
}

/* Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.95) !important;
  padding: 15px 0;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease;
  border-bottom: 1px solid rgba(255, 138, 0, 0.1);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar.affix {
  background: rgba(0, 0, 0, 0.98) !important;
  backdrop-filter: blur(10px);
  padding: 8px 0;
  border-bottom: 1px solid rgba(228, 144, 47, 0.2);
  box-shadow: 0 4px 20px rgba(255, 138, 0, 0.15);
}

.navbar.affix .nav-link {
  color: var(--text-main) !important;
  opacity: 0.9;
}

.navbar.affix .nav-link:hover {
  color: var(--primary) !important;
  opacity: 1;
}

.navbar.affix .navbar-toggler-icon {
  filter: none;
}

.navbar-brand img {
  height: 40px;
}

/* Hamburger Menu Icon - Fixed for Mobile */
.navbar-toggler {
  border: 2px solid var(--primary) !important;
  padding: 10px 12px !important;
  border-radius: 8px;
  background: rgba(255, 138, 0, 0.15) !important;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.4);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF8A00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e") !important;
  width: 26px;
  height: 20px;
}

.navbar.affix .navbar-toggler {
  border-color: #333 !important;
  background: rgba(0, 0, 0, 0.08) !important;
}

.navbar.affix .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 0 12px;
  position: relative;
  opacity: 0.8;
}

.nav-link:hover {
  opacity: 1;
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -4px;
  left: 0;
  transition: var(--transition);
}

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

/* Hero Header */
.header {
  height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(255, 138, 0, 0.08), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255, 138, 0, 0.05), transparent 40%);
  position: relative;
}

.header .subtitle {
  color: var(--primary);
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: clamp(2px, 0.5vw, 4px);
  text-transform: uppercase;
}

.header .title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 15px 0;
  color: var(--text-main);
}

.header .header-mono {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-dim);
  border-left: 2px solid var(--primary);
  padding-left: 15px;
}

/* Professional Curved CI/CD Pipeline Visual */
.curved-pipeline-viz {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.base-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 2;
}

.active-path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: path-flow 4s linear infinite;
  filter: drop-shadow(0 0 8px var(--primary));
}

@keyframes path-flow {
  0% {
    stroke-dashoffset: 400;
  }

  100% {
    stroke-dashoffset: -400;
  }
}

.node-wrapper {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
}

/* Symmetric W-Shape Positions (5 Nodes) */
.n1-pos {
  left: 12%;
  top: 25%;
}

.n2-pos {
  left: 31%;
  top: 62%;
}

.n3-pos {
  left: 50%;
  top: 25%;
}

.n4-pos {
  left: 69%;
  top: 62%;
}

.n5-pos {
  left: 88%;
  top: 25%;
}

.p-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.4s ease;
}

.p-icon {
  width: 46px;
  height: 46px;
  background: #000;
  border: 1px solid rgba(255, 138, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #444;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.p-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.55rem;
  color: #444;
  letter-spacing: 1px;
}

/* Node States */
.p-node.completed .p-icon {
  color: #00ff00;
  border-color: rgba(0, 255, 0, 0.3);
  background: rgba(0, 255, 0, 0.05);
}

.p-node.completed .p-label {
  color: #fff;
}

.p-check {
  position: absolute;
  top: -5px;
  right: -5px;
  color: #00ff00;
  font-size: 1rem;
  background: #000;
  border-radius: 50%;
}

.p-node.active {
  transform: scale(1.2);
}

.p-node.active .p-icon {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 138, 0, 0.1);
  box-shadow: 0 0 25px rgba(255, 138, 0, 0.4);
}

.p-node.active .p-label {
  color: #fff;
}

.p-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

/* Floating Log Console */
.floating-console {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  min-width: 200px;
  font-family: monospace;
}

.console-header {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 3px;
}

.console-line {
  font-size: 0.55rem;
  color: #666;
}

.console-line.success {
  color: #00ff00;
  opacity: 0.8;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Mobile Responsiveness for Pipeline */
@media (max-width: 991px) {
  .curved-pipeline-viz {
    height: 200px;
    margin-top: 40px;
  }

  .p-icon {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .p-label {
    font-size: 0.45rem;
  }

  .p-pulse {
    width: 38px;
    height: 38px;
  }

  .floating-console {
    bottom: -30px;
    padding: 8px 12px;
    min-width: 160px;
  }

  .console-line {
    font-size: 0.5rem;
  }
}

/* Buttons */
.btn {
  padding: 15px 40px;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary) !important;
  color: var(--bg-main) !important;
  box-shadow: var(--neon-shadow);
}

.btn-primary:hover {
  background: white !important;
  transform: translateY(-5px);
}

.btn-outline-light {
  border: 2px solid var(--text-main) !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: var(--text-main) !important;
  color: var(--bg-main) !important;
}

/* About Section */
.profile-img {
  border: 4px solid var(--primary);
  box-shadow: 0 0 30px rgba(255, 138, 0, 0.2);
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 8px 15px;
  border-radius: 30px;
  /* Capsule shape */
  text-align: center;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.info-card h6 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0;
  font-weight: 800;
}

.info-card p {
  font-size: 0.70rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

.info-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(255, 138, 0, 0.1);
}

/* GitHub Actions Styling */
/* GitHub Actions Styling - Unified */

/* Unified styles for GitHub Action buttons */
.github-actions .btn {
    height: 42px !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: 30px !important;
    background: var(--primary) !important;
    color: var(--bg-main) !important;
    border: 1px solid var(--primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    margin-top: 5px;
}

.github-actions .btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 138, 0, 0.4);
}

.github-actions .btn i {
    font-size: 1.1rem;
}

/* Live Projects Slider */
.live-projects-wrapper {
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.live-projects-track {
    display: flex;
    width: max-content;
    animation: scroll-left 50s linear infinite;
}

.live-projects-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive Production Projects Slider */
@media (max-width: 991px) {
    .live-projects-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        mask-image: none !important; /* Better visibility on mobile */
        padding: 20px 0 40px !important;
    }

    .live-projects-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .live-projects-wrapper::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

    .live-projects-track {
        animation: none !important;
        display: flex !important;
        width: max-content !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .live-project-card-sm {
        width: 300px !important; /* Larger focus on mobile */
        margin-right: 15px !important;
        margin-left: 0 !important;
        scroll-snap-align: center;
        flex-shrink: 0 !important;
    }
}

.live-project-card-sm {
    width: 260px; /* Adjusted for better content fit */
    flex-shrink: 0;
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 30px 20px !important;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.live-project-card-sm::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 138, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.live-project-card-sm:hover {
    border-color: rgba(255, 138, 0, 0.4) !important;
    transform: translateY(-10px) scale(1.02) !important;
    background: rgba(255, 138, 0, 0.05) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 138, 0, 0.1);
}

.live-project-card-sm:hover::before {
    opacity: 1;
}

.live-project-card-sm img {
    height: 35px !important;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease;
}

.live-project-card-sm:hover img {
    transform: scale(1.1);
}

.live-project-card-sm h5 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.5px;
}

.live-project-card-sm p {
    font-size: 0.75rem !important;
    color: var(--text-dim) !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    height: 3.2em !important; 
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
}

.live-project-card-sm .btn-sm {
    margin-top: auto;
    width: fit-content;
    padding: 8px 18px !important;
    font-size: 0.7rem !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--primary) !important;
    border: none !important;
    color: var(--bg-main) !important;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2);
}

.live-project-card-sm .btn-sm:hover {
    background: white !important;
    color: black !important;
    transform: scale(1.05);
}

.live-project-card-sm .btn-sm.disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.status-badge.upcoming {
    background: rgba(255, 138, 0, 0.15);
    color: var(--primary);
    border-color: rgba(255, 138, 0, 0.3);
}


/* GitHub stats styling */
.gh-stats {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.gh-stat-item .stat-count {
  font-weight: 600;
  color: var(--text-main);
  margin-left: 2px;
}

.gh-stat-item .stat-label {
  color: var(--text-dim);
}

.gh-stat-item i {
  font-size: 0.85rem;
}

/* Experience Timeline */
.experience-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.exp-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 50px;
}

.exp-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 138, 0, 0.2);
}

.exp-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 12px;
  transition: var(--transition);
}

.exp-content:hover {
  border-color: var(--primary);
  background: rgba(255, 138, 0, 0.05);
  transform: translateX(10px);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.exp-title {
  color: var(--text-main);
  margin: 0;
}

.exp-date {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  background: rgba(255, 138, 0, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.exp-company {
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.exp-list {
  padding-left: 20px;
  color: var(--text-dim);
  margin: 0;
}

.exp-list li {
  margin-bottom: 10px;
}

/* Skills Showcase Card */
.skills-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 25px;
  width: 100%;
  height: 100%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.skills-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-shadow);
  border-color: var(--primary);
}

.showcase-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.showcase-title i {
  color: var(--primary);
  font-size: 1.4rem;
}

.skills-pills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.skill-pill {
  background: rgba(255, 138, 0, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 138, 0, 0.2);
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: none;
  transition: all 0.3s ease;
  cursor: default;
  display: inline-block;
  letter-spacing: 0.5px;
}

.skill-pill:hover {
  background: var(--primary);
  color: var(--bg-main);
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--neon-shadow);
}

/* Projects Layout (Website Theme Colors) */
.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neon-shadow);
  border-color: var(--primary);
  background: rgba(255, 138, 0, 0.05);
}

.project-icon-wrapper {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  background: rgba(255, 138, 0, 0.1);
  border: 1px solid rgba(255, 138, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover .project-icon-wrapper {
  background: rgba(255, 138, 0, 0.2);
  box-shadow: 0 0 20px rgba(255, 138, 0, 0.3);
}

.project-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-icon-wrapper img {
  transform: scale(1.1);
}

.project-icon-wrapper i {
  font-size: 32px;
  color: var(--primary);
}

.project-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: none;
  margin: 0;
  padding: 0;
}

.project-info h5 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: 0px;
}

.project-info p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

.project-info .btn-github {
  padding: 12px 20px;
  font-size: 0.9rem;
  align-self: flex-start;
  width: fit-content;
  border-radius: 8px;
  background: rgba(255, 138, 0, 0.1) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(255, 138, 0, 0.3) !important;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.project-info .btn-github:hover {
  background: var(--primary) !important;
  color: var(--bg-main) !important;
  box-shadow: var(--neon-shadow);
  transform: translateY(-2px);
}

/* Goals */
.goal-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 12px;
  transition: var(--transition);
  height: 100%;
  text-align: center;
}

.goal-box i {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}

.goal-box h5 {
  font-weight: 700;
  margin-bottom: 12px;
}

.goal-box p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.goal-box:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(255, 138, 0, 0.15);
}

/* Footer */
.page-footer {
  background: #020408 !important;
  padding: 100px 0 50px;
  border-top: 1px solid var(--glass-border);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 1.4rem;
  color: var(--text-main);
  width: 55px;
  height: 55px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid rgba(255, 138, 0, 0.4);
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none !important;
}

.social-links a i {
  line-height: 0;
}

.social-links a:hover {
  color: var(--bg-main);
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 138, 0, 0.4);
}

@media (hover: none) {
  .social-links a:hover {
    transform: none;
  }
}

/* Responsive Optimization */
@media (max-width: 991px) {
  .img-holder {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .navbar-collapse {
    background: rgba(10, 10, 10, 0.98) !important;
    border: 1px solid rgba(255, 138, 0, 0.3);
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(255, 138, 0, 0.2);
  }

  .navbar.affix .navbar-collapse {
    background: rgba(10, 10, 10, 0.98) !important;
    border-color: rgba(255, 138, 0, 0.3);
  }

  .nav-link {
    padding: 12px 16px !important;
    margin: 4px 0;
    color: var(--text-main) !important;
  }

  .nav-link:hover {
    background: rgba(255, 138, 0, 0.1);
    border-radius: 8px;
  }
}

@media (max-width: 768px) {

  /* Header Section */
  .header {
    height: auto;
    min-height: 100vh;
    padding: 100px 15px 50px;
    text-align: center;
  }

  .header .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .header .infos {
    text-align: center;
    width: 100%;
  }

  .header .subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }

  .header .title {
    font-size: 2rem;
    margin: 10px 0;
  }

  .header .header-mono {
    border-left: none;
    padding-left: 0;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
  }

  .header .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
  }

  .header .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 !important;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  /* All Sections */
  .section {
    padding: 50px 15px !important;
  }

  .section .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section-title {
    font-size: 1.8rem;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 2rem;
  }

  /* About Section */
  #about .row {
    text-align: center;
  }

  #about .col-md-5,
  #about .col-md-7 {
    width: 100%;
    max-width: 100%;
  }

  #about p {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .profile-img {
    max-width: 180px !important;
    margin: 0 auto 30px !important;
  }

  /* Experience Section */
  .experience-timeline::before {
    left: 10px;
  }

  .exp-item {
    padding-left: 40px;
    margin-bottom: 30px;
  }

  .exp-icon {
    width: 32px;
    height: 32px;
    left: -6px;
    font-size: 0.9rem;
  }

  .exp-content {
    padding: 18px;
  }

  .exp-content:hover {
    transform: none;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .exp-title {
    font-size: 1.1rem;
  }

  .exp-company {
    font-size: 0.95rem;
  }

  .exp-date {
    font-size: 0.75rem;
  }

  .exp-list li {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Skills Section */
  .skills-grid {
    gap: 10px;
    padding: 0 10px;
  }

  .skill-item {
    padding: 12px 18px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
  }

  /* Portfolio Section */
  .project-card {
    margin-bottom: 20px;
  }

  #portfolio .col-md-6,
  #portfolio .col-lg-3 {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }

  /* Goals Section */
  .goal-box {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  /* Footer */
  .page-footer {
    padding: 50px 15px 30px;
  }

  .page-footer .row {
    text-align: center;
  }

  .page-footer .col-sm-6 {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {

  /* Global Mobile Styles */
  body {
    font-size: 14px;
  }

  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .section {
    padding: 40px 15px !important;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Header */
  .header {
    padding: 90px 15px 40px;
  }

  .header .subtitle {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .header .title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .header .header-mono {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .header .btn {
    max-width: 100%;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  /* About Section */
  #about {
    text-align: center;
  }

  #about p {
    text-align: left;
    font-size: 0.9rem;
  }

  .profile-img {
    margin: 0 auto 25px !important;
    display: block;
    max-width: 160px !important;
  }

  .info-badges {
    justify-content: center;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .info-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px !important;
    padding: 10px 20px;
  }

  .info-card h6 {
    font-size: 1.1rem;
  }

  .info-card p {
    font-size: 0.75rem;
    white-space: normal;
  }

  .github-actions {
    width: 100%;
  }

  .github-actions .d-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .github-actions .btn {
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  /* Experience */
  .exp-item {
    padding-left: 35px;
  }

  .exp-icon {
    width: 28px;
    height: 28px;
    left: -4px;
  }

  .exp-content {
    padding: 15px;
  }

  .exp-title {
    font-size: 1rem;
  }

  .exp-company {
    font-size: 0.9rem;
  }

  .exp-list li {
    font-size: 0.85rem;
  }

  /* Skills */
  .skills-grid {
    gap: 8px;
  }

  .skill-item {
    width: 100%;
    max-width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .skill-item:hover {
    transform: translateY(-2px) scale(1.01);
  }

  /* Portfolio */
  .project-card {
    margin-bottom: 20px;
  }

  .project-info {
    padding: 15px;
  }

  .project-info h5 {
    font-size: 1rem;
  }

  .project-info p {
    font-size: 0.85rem;
  }

  /* Goals */
  .goal-box {
    padding: 20px 15px;
  }

  .goal-box i {
    font-size: 2.2rem;
  }

  .goal-box h5 {
    font-size: 1rem;
  }

  .goal-box p {
    font-size: 0.85rem;
  }

  /* Footer */
  .page-footer {
    padding: 50px 15px 30px;
  }

  .social-links {
    gap: 10px;
  }

  .social-links a {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .page-footer .h5 {
    font-size: 0.95rem !important;
  }

  .text-dim {
    font-size: 0.85rem;
  }
}

/* Fix for ultra-small devices (iPhone SE, Fold, etc) */
@media (max-width: 375px) {
  .section {
    padding: 40px 12px !important;
  }

  .exp-content {
    padding: 12px;
  }

  .exp-item {
    padding-left: 32px;
  }

  .exp-icon {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
    left: -3px;
  }

  .info-card {
    max-width: 100%;
    padding: 6px 12px;
  }

  .skill-item {
    width: 100% !important;
    max-width: 280px !important;
    min-height: auto !important;
    padding: 15px 20px !important;
  }

  .social-links a {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .header .btn {
    max-width: 100%;
    padding: 12px 20px;
  }
}

/* Additional breakpoint for larger phones */
/* @media (min-width: 480px) and (max-width: 767px) {
  .header .btn {
    max-width: 300px;
  }

  .info-card {
    max-width: 260px;
  }

  .skill-item {
    max-width: 300px;
  }
} */

/* =========================================
   PRODUCTION LEVEL RESPONSIVE FIX PACK
   Added by User Request to fix Layout Structure
   ========================================= */

/* 🚨 1. FIX ROW OVERFLOW */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

[class*="col-"] {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* 🚨 2. Force All Images Fully Responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 🚨 3. Hero Section Proper Centering (Mobile Fix) */
@media (max-width: 768px) {
  .header {
    height: auto;
    padding: 120px 20px 60px;
    text-align: center;
  }

  .header .title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.2;
  }

  .header .subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .header .header-mono {
    border-left: none;
    padding-left: 0;
    margin-top: 15px;
  }

  .header .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
  }

  .header .btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto !important;
  }
}

/* 🚨 4. Timeline Proper Mobile Layout Fix */
@media (max-width: 768px) {
  .experience-timeline::before {
    left: 10px;
  }

  .exp-item {
    padding-left: 35px;
  }

  .exp-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    left: -4px;
  }

  .exp-content {
    padding: 15px;
    text-align: left;
  }
}

/* 🚨 5. Skills Grid Breaking Fix Removed - Handled Above */

/* 🚨 6. Project Cards Fix */
.project-card {
  min-height: 100%;
}

@media (max-width: 768px) {
  .project-card {
    margin-bottom: 20px;
  }
}

/* 🚨 7. Section Padding Overkill Fix */
@media (max-width: 768px) {
  .section {
    padding: 60px 20px !important;
  }
}

/* 🚨 8. Prevent Horizontal Scroll (Ultimate Fix) */
body {
  overflow-x: hidden;
}

* {
  max-width: 100%;
}
/* =========================================
   SIDEBAR & PHOTO GALLERY (SEO VISIBILITY)
   ========================================= */

/* Floating Profile Sidebar */
.profile-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--neon-shadow);
    transition: var(--transition);
}

.sidebar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.sidebar-img:hover {
    transform: scale(1.2);
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--primary);
}

/* About Section Photo Stack */
.photo-stack {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 50px;
}

.photo-stack img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-stack img:nth-child(1) { transform: rotate(-5deg); z-index: 4; }
.photo-stack img:nth-child(2) { transform: rotate(3deg); z-index: 3; opacity: 0.8; }
.photo-stack img:nth-child(3) { transform: rotate(-10deg); z-index: 2; opacity: 0.6; }
.photo-stack img:nth-child(4) { transform: rotate(8deg); z-index: 1; opacity: 0.4; }

.photo-stack:hover img {
    transform: rotate(0) translate(0, -10px);
    opacity: 1;
    z-index: 5;
}

/* Footer Profile Gallery */
.footer-profile-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-profile-gallery img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    object-fit: cover;
    transition: var(--transition);
}

.footer-profile-gallery img:hover {
    transform: scale(1.1);
    border-color: #fff;
}

/* Navbar Identity Badge */
.nav-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.nav-identity img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .profile-sidebar {
        right: 10px;
        padding: 5px;
        gap: 8px;
    }
    .sidebar-img {
        width: 35px;
        height: 35px;
    }
    .photo-stack {
        width: 200px;
        height: 200px;
    }
}

