/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* Star Animation */
.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
    opacity: 0;
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: var(--opacity);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Shooting Star Animation */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
    animation: shoot var(--duration) infinite linear;
    opacity: 0;
    transform: rotate(var(--angle));
}

@keyframes shoot {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(var(--angle)) scale(1);
    }
    5% {
        opacity: 1;
    }
    20% {
        transform: translateX(var(--distance)) translateY(var(--distance)) rotate(var(--angle)) scale(1.2);
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: translateX(var(--distance)) translateY(var(--distance)) rotate(var(--angle)) scale(1);
    }
}

/* Project Card Styles */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.project-card .project-image {
    height: 200px;
    overflow: hidden;
}

.project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card .project-content {
    padding: 1.5rem;
}

.project-card .project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-card .project-description {
    color: #a0aec0;
    margin-bottom: 1rem;
}

.project-card .project-links {
    display: flex;
    gap: 1rem;
}

.project-card .project-links a {
    display: inline-flex;
    align-items: center;
    color: #4299e1;
    font-weight: 600;
    transition: color 0.2s ease;
}

.project-card .project-links a:hover {
    color: #2b6cb0;
}

.project-card .project-links a svg {
    margin-left: 0.25rem;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-open {
        display: block !important;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Utility Classes */
.text-gradient {
    background: linear-gradient(90deg, #3182ce 0%, #805ad5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient {
    background: linear-gradient(90deg, #3182ce 0%, #805ad5 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3182ce;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2b6cb0;
}
