
/* Base styles */
body {
    scroll-behavior: smooth;
    @apply bg-gray-900 text-gray-100;
}
/* Skill cards */
.skill-card {
    @apply bg-gray-800 p-6 rounded-xl shadow-md text-center border border-gray-700;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}
.skill-card i {
    @apply w-12 h-12 mb-4 mx-auto p-3 rounded-full bg-primary-50;
}

.skill-card h3 {
    @apply text-xl font-semibold mb-2;
}

.skill-card p {
    @apply text-gray-600;
}

/* Project cards */
.project-card {
    @apply bg-gray-800 rounded-xl shadow-md overflow-hidden border border-gray-700;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
}
.project-image {
    @apply h-48 overflow-hidden;
}

.project-image img {
    @apply w-full h-full object-cover transition-transform hover:scale-110;
}

.project-content {
    @apply p-6;
}

.project-content h3 {
    @apply text-xl font-bold mb-2;
}

.project-content p {
    @apply text-gray-600 mb-4;
}

.project-tags {
    @apply flex flex-wrap gap-2 mb-4;
}
.project-tags span {
    @apply text-xs bg-gray-700 text-gray-200 px-2 py-1 rounded;
}
.project-link {
    @apply text-primary-500 font-medium hover:text-primary-600 flex items-center gap-1;
}

.project-link::after {
    content: '→';
    @apply transition-transform;
}

.project-link:hover::after {
    @apply transform translate-x-1;
}

/* 3D Hero */
.hero-3d {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.hero-3d-content {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.hero-3d-image {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

/* 3D shine overlay */
.card-shine {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.08) 0%, transparent 60%);
}

.skill-card:hover .card-shine,
.project-card:hover .card-shine {
    opacity: 1;
}

/* 3D float animation for hero image */
@keyframes float3d {
    0%, 100% { transform: translateZ(30px) rotateX(2deg) rotateY(-2deg); }
    25% { transform: translateZ(30px) rotateX(-2deg) rotateY(3deg); }
    50% { transform: translateZ(30px) rotateX(2deg) rotateY(2deg); }
    75% { transform: translateZ(30px) rotateX(-2deg) rotateY(-3deg); }
}

.hero-float {
    animation: float3d 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Hero Mask/Slide-in Reveal */
.hero-3d-content .mask-reveal {
    clip-path: inset(0 0 100% 0);
    transform: translateY(40px);
    opacity: 0;
    animation: maskSlideIn 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero-3d-content .mask-reveal:nth-child(1) { animation-delay: 0.2s; }
.hero-3d-content .mask-reveal:nth-child(2) { animation-delay: 0.4s; }
.hero-3d-content .mask-reveal:nth-child(3) { animation-delay: 0.6s; }
.hero-3d-content .mask-reveal:nth-child(4) { animation-delay: 0.8s; }

.hero-3d-image .mask-reveal-image {
    clip-path: inset(0 100% 0 0);
    transform: translateX(60px);
    opacity: 0;
    animation: maskSlideInRight 1s cubic-bezier(0.77, 0, 0.175, 1) 0.5s forwards;
}

@keyframes maskSlideIn {
    0% {
        clip-path: inset(0 0 100% 0);
        transform: translateY(40px);
        opacity: 0;
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes maskSlideInRight {
    0% {
        clip-path: inset(0 100% 0 0);
        transform: translateX(60px);
        opacity: 0;
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
        opacity: 1;
    }
}

/* Skills Mask/Slide-in Reveal */
.mask-reveal-skills {
    clip-path: inset(0 0 100% 0);
    transform: translateY(40px);
    opacity: 0;
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1), transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.mask-reveal-skills.revealed {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
    opacity: 1;
}

.mask-reveal-card {
    clip-path: inset(0 0 100% 0);
    transform: translateY(50px);
    opacity: 0;
    transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.175, 1), transform 0.7s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: calc(var(--card-delay) * 0.15s);
}

.mask-reveal-card.revealed {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }