.section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.connect-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
    position: relative;
}

.connect-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.connect-item:hover::before {
    transform: translateX(100%);
}

.connect-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.connect-item svg {
    width: 3rem;
    height: 3rem;
    margin-right: 1.5rem;
}

.expertise-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.expertise-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.expertise-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.expertise-category h3 {
    color: var(--highlight-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.expertise-list {
    list-style-type: none;
    padding: 0;
}

.expertise-item {
    background-color: rgba(157, 78, 221, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(157, 78, 221, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.expertise-item:hover::before {
    left: 100%;
}

.expertise-item:hover {
    background-color: rgba(157, 78, 221, 0.2);
    box-shadow: 0 2px 10px rgba(157, 78, 221, 0.3);
    transform: translateX(5px);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-video {
    flex: 1;
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.about-tagline {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text h4 {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 60px 0;
}

.carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    box-sizing: border-box;
}

.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-button:hover {
    background: var(--highlight-color);
}

.carousel-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-dot.active {
    background: var(--highlight-color);
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(100% - 20px);
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }

    .project-icon {
        font-size: 2.5rem;
    }
}

/* Glitch effect styles */
.glitch-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.glitch {
    position: relative;
    display: inline-block;
    color: var(--highlight-color);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(51px, 9999px, 28px, 0);
    }
    20% {
        clip: rect(70px, 9999px, 71px, 0);
    }
    40% {
        clip: rect(92px, 9999px, 90px, 0);
    }
    60% {
        clip: rect(23px, 9999px, 42px, 0);
    }
    80% {
        clip: rect(80px, 9999px, 16px, 0);
    }
    100% {
        clip: rect(67px, 9999px, 62px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(14px, 9999px, 56px, 0);
    }
    20% {
        clip: rect(34px, 9999px, 87px, 0);
    }
    40% {
        clip: rect(72px, 9999px, 46px, 0);
    }
    60% {
        clip: rect(67px, 9999px, 95px, 0);
    }
    80% {
        clip: rect(26px, 9999px, 75px, 0);
    }
    100% {
        clip: rect(53px, 9999px, 30px, 0);
    }
}

/* Add responsive styles for smaller screens */
@media (max-width: 600px) {
    .carousel-container {
        max-width: 100%;
        padding: 0;
    }

    .carousel-item {
        padding: 0 10px;
    }

    .carousel-item iframe {
        height: 500px;
    }

    .carousel-button {
        padding: 10px 15px;
        font-size: 18px;
    }
}

/* Work Experience Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--highlight-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--primary-bg);
    border: 4px solid var(--highlight-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--highlight-color);
    top: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -25px;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--text-color);
}

.timeline-content h3 {
    margin: 0 0 10px 0;
    color: var(--highlight-color);
    font-size: 1.2rem;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    color: var(--accent-color);
    font-size: 1rem;
}

.timeline-date {
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 10px;
}

/* Academic Experience Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.education-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(45deg);
    z-index: -1;
    transition: all 0.5s ease;
}

.education-item:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.education-icon {
    width: 80px;
    height: 80px;
    background-color: var(--highlight-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.education-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--text-color);
}

.education-item h3 {
    color: var(--highlight-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.education-item h4 {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.education-date {
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 15px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-icon {
        left: 0;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
    }
}