/*code by: Arif billah */
:root {
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --card-bg: rgba(15, 15, 35, 0.85);
    --neon-blue: #00f3ff;
    --neon-purple: #bd00ff;
    --neon-green: #00ff9d;
    --neon-pink: #ff00c8;
    --neon-yellow: #ffcc00;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d0;
}

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

/* body styling removed from here — it was leaking a 20px padding onto the
   whole site (not just the skills section) and fighting the site's real
   font. Global body styles belong in the main stylesheet only. */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Skills Section Specific Styles */
#skills {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.postimg.cc/C11nsN8d/s.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.12;
    z-index: -1;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--neon-blue);
    text-align: center;
    text-shadow: 0 0 15px var(--neon-blue), 0 0 25px rgba(0, 243, 255, 0.5);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 15px var(--neon-blue);
    border-radius: 2px;
}

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

.skill-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 243, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(0, 243, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(0, 243, 255, 0.2);
    border-color: var(--neon-blue);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category h3 {
    color: var(--neon-blue);
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, currentColor, transparent) 1;
}

.skill-category h3 i {
    margin-right: 15px;
    font-size: 1.6rem;
    text-shadow: 0 0 10px currentColor;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border-left: 4px solid var(--neon-blue);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.skill-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-list li:hover {
    transform: translateX(8px);
    border-left: 4px solid var(--neon-green);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.skill-list li:hover::before {
    transform: translateX(100%);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    margin-right: 20px;
    font-size: 1.6rem;
    color: var(--neon-blue);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.skill-list li:hover .skill-icon {
    transform: scale(1.1);
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px var(--neon-blue);
}

.skill-info {
    flex: 1;
}

.skill-info strong {
    color: var(--neon-green);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 8px var(--neon-green);
    letter-spacing: 0.5px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(189, 0, 255, 0.15);
    border: 1px solid var(--neon-purple);
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(189, 0, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-tag:hover {
    background: var(--neon-purple);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--neon-purple);
    transform: translateY(-2px);
}

.skill-tag:hover::before {
    transform: translateX(100%);
}

.skill-tag i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Specific category colors */
.cybersecurity h3 {
    color: var(--neon-blue);
}

.development h3 {
    color: var(--neon-purple);
}

.tools h3 {
    color: var(--neon-green);
}

.programming h3 {
    color: var(--neon-pink);
}

/* Animation for section entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-category {
    animation: fadeInUp 1.0s ease forwards;
}

.skill-category:nth-child(1) { animation-delay: 0.5s; }
.skill-category:nth-child(2) { animation-delay: 0.6s; }
.skill-category:nth-child(3) { animation-delay: 0.7s; }
.skill-category:nth-child(4) { animation-delay: 0.8s; }

/* Responsive design */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .skill-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skill-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    #skills::before {
        background-position: left center;
        background-attachment: scroll;
    }
    
    .skill-category {
        padding: 20px;
    }
}

/* Scroll animation for skills */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-list li {
    opacity: 0;
}

.skill-list li.visible {
    animation: slideInLeft 0.9s ease forwards;
}

.skill-list li:nth-child(1) { animation-delay: 0.5s; }
.skill-list li:nth-child(2) { animation-delay: 0.6s; }
.skill-list li:nth-child(3) { animation-delay: 0.7s; }

/*sklis show left to right*/

.skills-marquee {
  background: linear-gradient(90deg, #0f0f0f, #1a1a1a);
  padding: 30px 0;
  overflow: hidden;
  position: relative;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  /* Improve rendering */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.skills-marquee::before,
.skills-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.skills-marquee::before {
  left: 0;
  background: linear-gradient(to right, #0f0f0f 0%, transparent 100%);
}

.skills-marquee::after {
  right: 0;
  background: linear-gradient(to left, #0f0f0f 0%, transparent 100%);
}

.skills-marquee .marquee {
  display: flex;
  width: max-content;
  flex-direction: row;
  animation: marquee-right-to-left 25s linear infinite !important;
  animation-direction: normal !important;
  animation-play-state: running;
  will-change: transform;
  /* Improve rendering */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.skills-marquee .marquee-content {
  display: flex;
  /* Improve rendering */
  transform: translateZ(0);
}

.skills-marquee span {
  display: inline-flex;
  align-items: center;
  margin: 0 20px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  /* Improve text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.skills-marquee span i {
  margin-right: 8px;
  font-size: 20px;
}

/* Cybersecurity skills - Blue theme */
.skills-marquee span:nth-child(1),
.skills-marquee span:nth-child(2),
.skills-marquee span:nth-child(3) {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: 1px solid #2c80c5;
}

/* Frontend skills - Purple theme */
.skills-marquee span:nth-child(4),
.skills-marquee span:nth-child(5),
.skills-marquee span:nth-child(6),
.skills-marquee span:nth-child(7),
.skills-marquee span:nth-child(8) {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  border: 1px solid #8e44ad;
}

/* Backend skills - Green theme */
.skills-marquee span:nth-child(9),
.skills-marquee span:nth-child(10),
.skills-marquee span:nth-child(11),
.skills-marquee span:nth-child(12) {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  border: 1px solid #27ae60;
}

/* Database skills - Orange theme */
.skills-marquee span:nth-child(13),
.skills-marquee span:nth-child(14),
.skills-marquee span:nth-child(15),
.skills-marquee span:nth-child(16) {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  border: 1px solid #d35400;
}

/* Security Tools - Red theme */
.skills-marquee span:nth-child(17),
.skills-marquee span:nth-child(18),
.skills-marquee span:nth-child(19),
.skills-marquee span:nth-child(20) {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: 1px solid #c0392b;
}

/* Version Control - Pink theme */
.skills-marquee span:nth-child(21),
.skills-marquee span:nth-child(22),
.skills-marquee span:nth-child(23) {
  background: linear-gradient(135deg, #ff6b8b, #ff4757);
  color: white;
  border: 1px solid #ff4757;
}

/* Cloud & Deployment - Teal theme */
.skills-marquee span:nth-child(24),
.skills-marquee span:nth-child(25),
.skills-marquee span:nth-child(26) {
  background: linear-gradient(135deg, #00cec9, #00a8ff);
  color: white;
  border: 1px solid #00a8ff;
}

/* Programming Languages - Gold theme */
.skills-marquee span:nth-child(27),
.skills-marquee span:nth-child(28),
.skills-marquee span:nth-child(29) {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  border: 1px solid #e67e22;
}

/* Hover effects */
.skills-marquee span:hover {
  transform: translateY(-5px) scale(1.1) translateZ(0); /* Added translateZ(0) */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* Cybersecurity hover */
.skills-marquee span:nth-child(1):hover,
.skills-marquee span:nth-child(2):hover,
.skills-marquee span:nth-child(3):hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Frontend hover */
.skills-marquee span:nth-child(4):hover,
.skills-marquee span:nth-child(5):hover,
.skills-marquee span:nth-child(6):hover,
.skills-marquee span:nth-child(7):hover,
.skills-marquee span:nth-child(8):hover {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  box-shadow: 0 8px 20px rgba(155, 89, 182, 0.4);
}

/* Backend hover */
.skills-marquee span:nth-child(9):hover,
.skills-marquee span:nth-child(10):hover,
.skills-marquee span:nth-child(11):hover,
.skills-marquee span:nth-child(12):hover {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

/* Database hover */
.skills-marquee span:nth-child(13):hover,
.skills-marquee span:nth-child(14):hover,
.skills-marquee span:nth-child(15):hover,
.skills-marquee span:nth-child(16):hover {
  background: linear-gradient(135deg, #d35400, #e67e22);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

/* Security Tools hover */
.skills-marquee span:nth-child(17):hover,
.skills-marquee span:nth-child(18):hover,
.skills-marquee span:nth-child(19):hover,
.skills-marquee span:nth-child(20):hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

/* Version Control hover */
.skills-marquee span:nth-child(21):hover,
.skills-marquee span:nth-child(22):hover,
.skills-marquee span:nth-child(23):hover {
  background: linear-gradient(135deg, #ff4757, #ff6b8b);
  box-shadow: 0 8px 20px rgba(255, 107, 139, 0.4);
}

/* Cloud & Deployment hover */
.skills-marquee span:nth-child(24):hover,
.skills-marquee span:nth-child(25):hover,
.skills-marquee span:nth-child(26):hover {
  background: linear-gradient(135deg, #00a8ff, #00cec9);
  box-shadow: 0 8px 20px rgba(0, 206, 201, 0.4);
}

/* Programming Languages hover */
.skills-marquee span:nth-child(27):hover,
.skills-marquee span:nth-child(28):hover,
.skills-marquee span:nth-child(29):hover {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

@keyframes marquee-right-to-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Pause animation on hover */
.skills-marquee:hover .marquee {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .skills-marquee .marquee {
    animation: marquee-right-to-left 25s linear infinite !important;
    animation-play-state: running !important;
  }
}

/* Additional fixes for blurry text */
@media (-webkit-min-device-pixel-ratio: 1.5) {
  .skills-marquee span {
    -webkit-font-smoothing: subpixel-antialiased;
  }
}

/* Update the skills-grid to be 2 columns */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns instead of auto-fit */
    gap: 30px;
    margin-top: 30px;
}

/* For mobile view, keep it as 1 column */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}