body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: #e2e8f0;
}

.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animated-gradient-bg {
    background: linear-gradient(-45deg, #020617, #0f172a, #1e293b, #334155);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.05), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 25px -8px rgba(56, 189, 248, 0.15), 0 0 0 1px rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #38bdf8;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language switcher styles */
#language-switcher {
    position: relative;
}

#language-switcher span[data-lang] {
    transition: all 0.3s ease;
}

#language-switcher span[data-lang]:hover {
    transform: scale(1.05);
}

#language-switcher span[data-lang].opacity-100 {
    opacity: 1;
    color: #ffffff;
}

#language-switcher span[data-lang].opacity-60 {
    opacity: 0.6;
    color: #94a3b8;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #38bdf8;
    border: 3px solid #0f172a;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background-color: #818cf8;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* Enhanced profile image hover effect */
.profile-image {
    transition: all 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced button hover effects */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Achievement metrics styling */
.achievement-metric {
    transition: all 0.3s ease;
}

.achievement-metric:hover {
    transform: translateY(-2px);
}

.achievement-metric .text-sky-400 {
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* Social proof badges */
.social-proof-badge {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.social-proof-badge:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

/* Proficiency level indicators */
.proficiency-expert {
    color: #38bdf8;
    font-weight: 600;
}

.proficiency-advanced {
    color: #818cf8;
    font-weight: 500;
}

/* What I'm Looking For section */
.career-goals-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
}

.career-goals-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.1);
}

/* Skill tag animations */
.skill-tag {
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background-color: #1e293b;
    border-color: #38bdf8;
}

/* Enhanced toolkit styles */
.toolkit-item {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.08);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Minimal sections - remove card backgrounds */
.testimonials-section .card,
.education-section .card,
.cta-section .card,
.projects-section .card {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.testimonials-section .card:hover,
.education-section .card:hover,
.cta-section .card:hover,
.projects-section .card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.testimonials-section .card::before,
.education-section .card::before,
.cta-section .card::before,
.projects-section .card::before {
    display: none;
}

.toolkit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.toolkit-item:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.3);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.08);
}

.toolkit-item:hover::before {
    transform: scaleX(1);
}

.toolkit-icon {
    color: #64748b;
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.primary-stack .toolkit-icon {
    color: #38bdf8;
}

.primary-stack .toolkit-icon::before {
    content: '●';
}

.secondary-stack .toolkit-icon::before {
    content: '○';
}

.toolkit-item:hover .toolkit-icon {
    opacity: 1;
    transform: scale(1.1);
}

.toolkit-name {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

/* Enhanced section transitions */
.section-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.grid-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.grid-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-item:nth-child(1) { transition-delay: 0.1s; }
.grid-item:nth-child(2) { transition-delay: 0.2s; }
.grid-item:nth-child(3) { transition-delay: 0.3s; }
.grid-item:nth-child(4) { transition-delay: 0.4s; }
.grid-item:nth-child(5) { transition-delay: 0.5s; }
.grid-item:nth-child(6) { transition-delay: 0.6s; }

/* Tech Logo Grid Styles */
.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tech-logo-item:hover {
    transform: translateY(-4px);
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.1);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.tech-logo-item:hover .tech-icon {
    transform: scale(1.1);
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    text-align: center;
    transition: color 0.3s ease;
}

.tech-logo-item:hover .tech-name {
    color: #38bdf8;
}

/* Project Layout Styles */
.project-item {
    margin-bottom: 6rem;
}

.project-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
}

/* Video container styling */
.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* Remove background for video containers */
.project-image-container:has(.video-container) {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.video-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Remove background for slideshow containers */
.project-image-container:has(.arena-slideshow),
.project-image-container:has(.bookwiz-slideshow) {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.project-image-container .arena-slideshow,
.project-image-container .bookwiz-slideshow {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.project-image-container .arena-slideshow .slideshow-container,
.project-image-container .bookwiz-slideshow .slideshow-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(129, 140, 248, 0.1) 0%, transparent 50%);
}

.project-content {
    padding: 1rem 0;
}

/* Project text styling improvements */
.project-content .space-y-4 > * + * {
    margin-top: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

/* Mobile responsiveness for projects */
@media (max-width: 1024px) {
    .project-item {
        margin-bottom: 4rem;
    }
    
    .project-image-container {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .project-content {
        padding: 0;
    }
}

/* BookWiz Slideshow Styles */
.bookwiz-slideshow {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Arena Slideshow Styles */
.arena-slideshow {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    width: 100%;
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
}

.slideshow-prev {
    left: 10px;
}

.slideshow-next {
    right: 10px;
}

.slideshow-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #334155;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #38bdf8;
    transform: scale(1.2);
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-proof-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .toolkit-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-logo-item {
        padding: 1rem 0.75rem;
    }
    
    .tech-icon {
        font-size: 2rem;
    }
    
    .slideshow-container {
        min-height: 300px;
    }
    
    .slideshow-prev,
    .slideshow-next {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .slideshow-prev {
        left: 5px;
    }
    
    .slideshow-next {
        right: 5px;
    }
}
