
:root {
    --achieve-main: #6400FF;
    --achieve-light: #DED9F6;
    --achieve-medium-light: #C3B4E5;
    --achieve-medium: #A083C9;
    --achieve-medium-dark: #8058AC;
    --achieve-dark: #592986;
    --achieve-text-dark: #333;
    --achieve-text-light: #fff;
    --achieve-bg-light: #f8f9fa;
    --achieve-card-bg-light: #fff;
    --achieve-bg-dark: #121212;
    --achieve-card-bg-dark: #1e1e1e;
    --achieve-text-dark-mode: #e0e0e0;
}
/* ✅ Light Mode - Force White Background */
body:not(.dark-mode) {
    background-color: #ffffff !important;
    color: #000 !important;
}

/* ✅ Fix Sections (Replace Dark BG with White in Light Mode) */
body:not(.dark-mode) .achievements-section,
body:not(.dark-mode) .achieve-container,
body:not(.dark-mode) .card,
body:not(.dark-mode) .navbar {
    background-color: #ffffff !important;
    color: #000 !important;
}

/* ✅ Dark Mode - Keep as is */
body.dark-mode {
    background-color: #121212 !important;
    color: #ffffff !important;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--achieve-bg-light);
    padding: 20px;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

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

.achieve-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.achieve-header h1 {
    color: var(--achieve-main);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.achieve-header h1:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--achieve-main);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.achieve-header h1:hover:after {
    width: 100%;
}

.achieve-header p {
    color: var(--achieve-text-dark);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.achieve-card {
    background: var(--achieve-card-bg-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(100, 0, 255, 0.1);
    height: 100%;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.achieve-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--achieve-main);
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.achieve-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(100, 0, 255, 0.25);
}

.achieve-card:hover:before {
    height: 100%;
    opacity: 0.1;
}

.achieve-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    transition: all 0.8s;
    z-index: 2;
}

.achieve-card:hover::after {
    top: 100%;
    left: 100%;
}

.achieve-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #fff;
    background: var(--achieve-main);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(100, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.achieve-card:hover .achieve-icon {
    transform: scale(1.15) rotate(15deg);
}

.achieve-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-30deg);
    transition: all 0.7s ease;
}

.achieve-card:hover .achieve-icon::before {
    left: 120%;
}

.achieve-card h3 {
    color: var(--achieve-main);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.achieve-card:hover h3 {
    transform: scale(1.05);
}

.achieve-card p {
    color: var(--achieve-text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.achievement-stat {
    margin-top: auto;
    font-weight: 600;
    color: var(--achieve-main);
    font-size: 1.2rem;
    background: var(--achieve-light);
    padding: 8px 16px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.achieve-card:hover .achievement-stat {
    opacity: 1;
    transform: translateY(0);
}

/* Added Particle Effect */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    z-index: -1;
}

/* Added counter section */
.achievement-counters {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 50px;
    background: rgba(100, 0, 255, 0.05);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(100, 0, 255, 0.1);
    transition: all 0.3s ease;
}

.counter-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--achieve-main);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.counter-title {
    font-size: 1rem;
    color: var(--achieve-text-dark);
    transition: color 0.3s ease;
}

.counter-icon {
    font-size: 1.8rem;
    color: var(--achieve-medium);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.counter-item:hover .counter-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--achieve-main);
}

/* Animation Classes */
.achieve-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.achieve-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Section */
.achievement-timeline {
    position: relative;
    margin-top: 70px;
    margin-bottom: 50px;
    padding: 20px 0;
}

.timeline-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--achieve-main);
    font-weight: 700;
    font-size: 2rem;
    position: relative;
}

.timeline-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--achieve-main);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-container {
    position: relative;
    padding: 0 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--achieve-medium-light);
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--achieve-main);
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    background: var(--achieve-main);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 5px 10px rgba(100, 0, 255, 0.2);
}

.timeline-content {
    background: var(--achieve-card-bg-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(100, 0, 255, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--achieve-main);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 0, 255, 0.2);
}

.timeline-content h3 {
    color: var(--achieve-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--achieve-text-dark);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

/* Testimonials Section */
.testimonials-section {
    margin-top: 70px;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--achieve-main);
    font-weight: 700;
    font-size: 2rem;
    position: relative;
}

.testimonials-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--achieve-main);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 20px;
}

.testimonial-card {
    background: var(--achieve-card-bg-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(100, 0, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(100, 0, 255, 0.2);
}

.testimonial-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 3rem;
    color: var(--achieve-main);
    opacity: 0.2;
}

.testimonial-content {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--achieve-text-dark);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--achieve-main);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    color: var(--achieve-main);
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: var(--achieve-text-dark);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--achieve-medium-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--achieve-main);
    transform: scale(1.3);
}

.slider-arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
}

.arrow-btn {
    background: var(--achieve-main);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-shadow: 0 5px 10px rgba(100, 0, 255, 0.3);
}

.arrow-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(100, 0, 255, 0.4);
}


    .counter-value {
        font-size: 2rem;
    }

    .counter-title {
        font-size: 0.9rem;
    }

/* Color theme adaptation for cards */
.achieve-card[data-color="#DED9F6"] .achieve-icon {
    background: var(--achieve-light);
    color: var(--achieve-main);
}

.achieve-card[data-color="#C3B4E5"] .achieve-icon {
    background: var(--achieve-medium-light);
    color: var(--achieve-main);
}

.achieve-card[data-color="#A083C9"] .achieve-icon {
    background: var(--achieve-medium);
    color: var(--achieve-text-light);
}

.achieve-card[data-color="#8058AC"] .achieve-icon {
    background: var(--achieve-medium-dark);
    color: var(--achieve-text-light);
}

.achieve-card[data-color="#592986"] .achieve-icon {
    background: var(--achieve-dark);
    color: var(--achieve-text-light);
}

.achieve-card[data-color="#6400FF"] .achieve-icon {
    background: var(--achieve-main);
    color: var(--achieve-text-light);
}

/* Dark mode */
body.dark-mode {
    background-color: var(--achieve-bg-dark);
}

body.dark-mode .achieve-card {
    background: var(--achieve-card-bg-dark);
}

body.dark-mode .achieve-card p {
    color: var(--achieve-text-dark-mode);
}

body.dark-mode .achieve-header p {
    color: var(--achieve-text-dark-mode);
}

body.dark-mode .counter-title {
    color: var(--achieve-text-dark-mode);
}

body.dark-mode .timeline-content {
    background: var(--achieve-card-bg-dark);
}

body.dark-mode .timeline-content p {
    color: var(--achieve-text-dark-mode);
}

body.dark-mode .testimonial-card {
    background: var(--achieve-card-bg-dark);
}

body.dark-mode .testimonial-content {
    color: var(--achieve-text-dark-mode);
}

body.dark-mode .author-info p {
    color: var(--achieve-text-dark-mode);
}

/* Theme toggle button */
.theme-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    background: var(--achieve-main);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(100, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(100, 0, 255, 0.4);
}

.theme-toggle i {
    font-size: 1.1rem;
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

body.dark-mode .theme-toggle .fa-sun {
    display: inline-block;
}

body:not(.dark-mode) .theme-toggle .fa-moon {
    display: inline-block;
}

body:not(.dark-mode) .theme-toggle .fa-sun {
    display: none;
}

/* Ripple effect for theme toggle */
.ripple-effect {
    position: fixed;
    border-radius: 50%;
    background: var(--achieve-main);
    transform: scale(0);
    animation: ripple 0.8s ease-out;
    pointer-events: none;
    z-index: 999;
    opacity: 0.2;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Pulsing animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Particles animation */
@keyframes particleAnimation {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Added animations for countup */
.counter-value {
    visibility: hidden;
}

.counter-value.animated {
    visibility: visible;
}

/* Add this CSS to achievements-styles.css */

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(100, 0, 255, 0.2);
  }
  
  .modal-header {
    background-color: var(--achieve-main);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
  }
  
  .modal-title {
    font-weight: 600;
  }
  
  .modal-body {
    padding: 20px;
    background-color: var(--achieve-bg-light);
  }
  
  .achievement-modal-img {
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  /* Image animation */
  .animate-entrance {
    animation: zoomIn 0.7s ease forwards;
  }
  
  @keyframes zoomIn {
    0% {
      opacity: 0;
      transform: scale(0.8);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* Make cards more clickable */
  .achieve-card {
    cursor: pointer;
    position: relative;
  }
  
  /* Add subtle indicator for clickable cards */
  .achieve-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 98%, var(--achieve-main) 99%);
    border-radius: 12px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
  }
  
  .achieve-card:hover::before {
    opacity: 0.8;
  }
  
  /* Dark mode adjustments */
  body.dark-mode .modal-body {
    background-color: var(--achieve-bg-dark);
  }
  
  body.dark-mode .modal-content {
    background-color: var(--achieve-card-bg-dark);
    color: var(--achieve-text-dark-mode);
  }