@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #0f0f11;
    --surface-color: #18181b;
    --surface-hover: #27272a;
    --primary-color: #d9f99d;
    /* Lime Green */
    --secondary-color: #a78bfa;
    /* Soft Purple */
    --accent-color: #f472b6;
    /* Pink */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
    --card-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.display-1 {
    font-size: 4rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    background: var(--surface-color);
    border-radius: var(--card-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Specific Grid Items */
.item-hero {
    grid-column: span 12;
    min-height: 400px;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(167, 139, 250, 0.1), transparent 40%), var(--surface-color);
}

.item-about {
    grid-column: span 8;
}

.item-stats {
    grid-column: span 4;
    background: linear-gradient(135deg, var(--surface-color), #202025);
}

.item-competitions {
    grid-column: span 4;
    background: linear-gradient(135deg, #202025, var(--surface-color));
}

.item-experience {
    grid-column: span 8;
}

.item-skills {
    grid-column: span 12;
}

.item-project {
    grid-column: span 4;
    min-height: 350px;
    padding: 0;
    /* Full image */
}

.item-contact {
    grid-column: span 12;
    text-align: center;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, var(--surface-color), #1e1e24);
}

.item-versions {
    grid-column: span 12;
    text-align: center;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to left, var(--surface-color), #1e1e24);
}

@media (max-width: 992px) {

    .item-about,
    .item-stats,
    .item-project,
    .item-experience,
    .item-competitions {
        grid-column: span 12;
    }
}

/* Skills Grid */
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
    cursor: pointer;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: scale(1.2);
}

/* Project Cards */
.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    /* Changed from text-muted for better visibility */
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

/* Buttons */
.btn-glow {
    background: var(--text-main);
    color: var(--bg-color);
    height: 50px;
    padding: 0 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-glow:hover {
    background: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: rotate(15deg);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Project Type Tag (next to title) */
.project-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(217, 249, 157, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-type-tag i {
    font-size: 0.9em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Project Type Badge */

/* Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-action-primary {
    color: var(--bg-color);
    background: linear-gradient(135deg, var(--primary-color), #d4f787);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(217, 249, 157, 0.3);
}

.btn-action-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(217, 249, 157, 0.5);
}

.btn-action-secondary {
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(217, 249, 157, 0.1), rgba(167, 139, 250, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(217, 249, 157, 0.15);
}

.btn-action-secondary:hover {
    background: linear-gradient(135deg, rgba(217, 249, 157, 0.2), rgba(167, 139, 250, 0.2));
    border-color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(217, 249, 157, 0.3);
}