/* ======= Tech Wave Timeline + Glassmorphism Design ======= */

/* General Styles */
#about {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #1a1a2e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    font-weight: 700;
}

.section-title p {
    font-size: 18px;
    color: #b8c5d6;
    margin-top: 15px;
    opacity: 0.9;
}

/* Timeline Tech Wave Container */
.timeline-horizontal {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
}

/* Tech Wave Background */
.timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #00d4ff 10%,
        #0099cc 30%,
        #0066ff 50%,
        #0099cc 70%,
        #00d4ff 90%,
        transparent 100%
    );
    transform: translateY(-50%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: wave-pulse 3s ease-in-out infinite;
    z-index: 1;
}

/* Animated particles */
.timeline-horizontal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 212, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0, 153, 204, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 212, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particles-float 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Timeline Items */
.timeline-item {
    min-width: 320px;
    max-width: 340px;
    margin: 0 25px;
    position: relative;
    z-index: 3;
    animation: scroll-horizontal 120s linear infinite;
    animation-play-state: running;
}

.timeline-item:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Glassmorphism Cards */
.timeline-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism hover effect */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.1), 
        transparent
    );
    transition: left 0.5s ease;
}

.timeline-item:hover::before {
    left: 100%;
}

/* Tech Icons with Pulse Effect */
.timeline-icon {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #ffffff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    animation: icon-pulse 2s ease-in-out infinite;
}

.timeline-icon::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: icon-ring 3s linear infinite;
}

/* Content Styling */
.timeline-content h3 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.timeline-content p {
    font-size: 15px;
    color: #b8c5d6;
    text-align: justify;
    line-height: 1.6;
    opacity: 0.9;
}

/* Animations */
@keyframes wave-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scaleY(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scaleY(1.2);
    }
}

@keyframes particles-float {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-150px) translateY(-100px);
    }
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.4),
            inset 0 2px 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.6),
            inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
}

@keyframes icon-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(1400px);
    }
    100% {
        transform: translateX(-5500px);
    }
}

/* Special background colors for different items */
.timeline-item:nth-child(odd) {
    background: rgba(0, 212, 255, 0.08);
}

.timeline-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item:nth-child(3n) {
    background: rgba(0, 153, 204, 0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
    #about {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .timeline-horizontal {
        height: 400px;
    }
    
    .timeline-item {
        min-width: 280px;
        max-width: 300px;
        margin: 0 15px;
        padding: 25px 20px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .timeline-content h3 {
        font-size: 20px;
    }
    
    .timeline-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .timeline-horizontal {
        height: 350px;
    }
    
    .timeline-item {
        min-width: 250px;
        max-width: 270px;
        margin: 0 10px;
        padding: 20px 15px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .timeline-content h3 {
        font-size: 18px;
    }
    
    .timeline-content p {
        font-size: 13px;
    }
}

/* ======= Tech Dashboard Skills Section ======= */

/* Skills Section Background */
#skills {
    background: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#skills::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 153, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(120, 219, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Code Background Effect */
#skills::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(0, 212, 255, 0.02) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 212, 255, 0.02) 100%);
    background-size: 50px 50px;
    animation: code-grid 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Skills Container */
.skills {
    position: relative;
    z-index: 2;
}

.skills .section-title h2 {
    font-size: 42px;
    color: #333333;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    font-weight: 700;
}

.skills .section-title p {
    font-size: 18px;
    color: #666666;
    margin-top: 15px;
    opacity: 0.9;
}

/* Skills Content */
.skills .content h3 {
    font-size: 32px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skills .content p {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Tech Dashboard Grid */
.skills-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Dashboard Cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 30px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

/* Card Hover Effect */
.dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.1), 
        transparent
    );
    transition: left 0.5s ease;
}

.dashboard-card:hover::before {
    left: 100%;
}

/* Circular Progress */
.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.circular-progress .bg-circle {
    stroke: rgba(255, 255, 255, 0.1);
}

.circular-progress .progress-circle {
    stroke: url(#gradient);
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    animation: progress-fill 2s ease-in-out forwards;
}

.circular-progress .progress-circle:nth-child(2) {
    stroke: #00d4ff;
}

.circular-progress .progress-circle:nth-child(3) {
    stroke: #0099cc;
}

.circular-progress .progress-circle:nth-child(4) {
    stroke: #0066ff;
}

.circular-progress .progress-circle:nth-child(5) {
    stroke: #ff6b6b;
}

/* Progress Text */
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-label {
    font-size: 14px;
    color: #666666;
    margin-top: 5px;
    opacity: 0.8;
}

/* Card Title */
.card-title {
    font-size: 18px;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Card Description */
.card-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    opacity: 0.9;
}

/* Tech Icons */
.tech-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Animations */
@keyframes code-grid {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes progress-fill {
    to {
        stroke-dashoffset: var(--progress);
    }
}

@keyframes card-glow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 20px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 30px rgba(0, 212, 255, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #skills {
        padding: 60px 0;
    }
    
    .skills .section-title h2 {
        font-size: 32px;
    }
    
    .skills-dashboard {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .dashboard-card {
        padding: 25px 20px;
    }
    
    .circular-progress {
        width: 100px;
        height: 100px;
    }
    
    .progress-text {
        font-size: 20px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .skills-dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-card {
        padding: 20px 15px;
    }
    
    .circular-progress {
        width: 80px;
        height: 80px;
    }
    
    .progress-text {
        font-size: 18px;
    }
}