/* Modern achievements Page Styles */

/* Hero Section */
.achievements-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.achievements-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.achievements-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 30%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.achievements-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.achievements-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 0.95rem;
}

.achievements-hero .hero-badge .material-icons {
    font-size: 20px;
}

.achievements-hero .hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.achievements-hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 400;
}

.achievements-hero .hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* Category Navigation */
.category-nav {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid rgba(1, 175, 254, 0.2);
    background: white;
    border-radius: 50px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.category-btn:hover {
    border-color: var(--primary-color);
    background: rgba(1, 175, 254, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 175, 254, 0.15);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(1, 175, 254, 0.3);
}

.category-btn .material-icons {
    font-size: 20px;
}

/* achievements Sections */
.achievements-section {
    padding: 80px 0;
    background: white;
}

.achievements-section.alternate-section {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 175, 254, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(1, 175, 254, 0.2);
    order: -1;
}

.section-badge .material-icons {
    font-size: 18px;
}

.section-header .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
    order: 1;
}

.section-header .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    order: 2;
}

/* Projects Grid - Carousel Style */
.projects-grid {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    overflow: hidden;
}

.projects-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    align-items: stretch;
}

.projects-carousel .project-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Blur effects for carousel edges */
.projects-grid::before,
.projects-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.projects-grid::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.projects-grid::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* Alternate sections get different blur colors */
.alternate-section .projects-grid::before {
    background: linear-gradient(to right, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.alternate-section .projects-grid::after {
    background: linear-gradient(to left, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.project-badge .material-icons {
    font-size: 16px;
}

/* Project Visual */
.project-visual {
    position: relative;
    height: 300px;
    overflow: hidden;
}

/* Project Content */
.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.image-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.project-visual:hover .gallery-overlay {
    opacity: 1;
}

.gallery-btn {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.gallery-btn .material-icons {
    font-size: 24px;
}

.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Project Content */
.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: space-between;
}

.project-header {
    margin-bottom: 16px;
    text-align: center;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: rgba(1, 175, 254, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(1, 175, 254, 0.2);
}

.project-description {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 24px;
    flex: 1;
    min-height: 100px;
}

/* Project Specifications */
.project-specs {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item:hover {
    color: var(--primary-color);
}

.spec-item .material-icons {
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.spec-content {
    flex: 1;
    min-width: 0;
}

.spec-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
    line-height: 1.2;
}

.spec-value {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
}

/* Modern CTA Section - Updated */
.modern-cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.5) 1px, transparent 0);
    background-size: 40px 40px;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-icon .material-icons {
    font-size: 40px;
    color: white;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.cta-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.modern-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.modern-btn.primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.modern-btn.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
}

.modern-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.modern-btn.secondary:hover {
    background: white;
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.modern-btn .material-icons {
    font-size: 20px;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-nav .material-icons {
    font-size: 28px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(0, 0, 0, 0.8);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .achievements-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .achievements-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .achievements-hero .hero-stats {
        gap: 30px;
        margin-bottom: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-header .section-title {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        padding: 0 20px;
    }
    
    .projects-grid::before,
    .projects-grid::after {
        display: none;
    }
    
    .projects-carousel {
        gap: 0;
    }
    
    .projects-carousel .project-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 550px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .project-content {
        padding: 25px 20px;
    }
    
    .project-header h3 {
        font-size: 1.4rem;
        min-height: 50px;
    }
    
    .specs-grid {
        gap: 6px;
    }
    
    .spec-item {
        padding: 10px 0;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modern-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .achievements-hero {
        min-height: 70vh;
    }
    
    .achievements-hero .hero-title {
        font-size: 2rem;
    }
    
    .achievements-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .projects-grid {
        padding: 0 10px;
    }
    
    .project-content {
        padding: 20px 15px;
    }
    
    .project-visual {
        height: 250px;
    }
    
    .floating-card {
        width: 80px;
        height: 80px;
    }
    
    .achievements-hero .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
}
