:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-gradient: linear-gradient(to bottom, #ffffff 0%, #ccff33 50%, #9ef01a 100%);
    --secondary-color: #333333;
    --card-bg: rgba(51, 51, 51, 0.8);
    --card-border: rgba(204, 255, 51, 0.2);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

nav a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 100% 200%;
    background-position: 0 0;
}

.money-bill {
    position: absolute;
    top: 0;
    width: 50px;
    animation: fall 4s linear forwards, fadeIn 0.5s ease forwards;
    opacity: 0;
    transform: rotate(0deg);
}

@keyframes fall {
    0% {
        top: 0;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        top: 100vh;
        opacity: 0;
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

h1, h2, h3 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 100% 200%;
    background-position: 0 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Ensure section titles are centered */
section#experience,
section#skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
}

section#experience > h2,
section#skills > h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
}

/* Experience Cards Grid */
.experience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1050px;
}

/* Experience Card */
.experience-card {
    background: var(--card-bg);
    border: 3px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.experience-card:hover::before {
    transform: scaleX(1);
}

.experience-card:hover {
    transform: translateY(-8px);
    border-color: rgba(204, 255, 51, 0.4);
    box-shadow: 0 20px 40px rgba(204, 255, 51, 0.1);
}

.experience-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.experience-tag {
    background: linear-gradient(135deg, rgba(204, 255, 51, 0.1), rgba(158, 240, 26, 0.1));
    border: 1px solid rgba(204, 255, 51, 0.3);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Skills Cards Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1050px;
}

/* Skill Card */
.skill-category {
    background: var(--card-bg);
    border: 3px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-8px);
    border-color: rgba(204, 255, 51, 0.4);
    box-shadow: 0 20px 40px rgba(204, 255, 51, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 100% 200%;
    margin: 0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(204, 255, 51, 0.1), rgba(158, 240, 26, 0.1));
    border: 1px solid rgba(204, 255, 51, 0.3);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    border-color: rgba(204, 255, 51, 0.6);
    box-shadow: 0 8px 16px rgba(204, 255, 51, 0.2);
}

.skill-tag:hover::before {
    left: 100%;
}

.proficiency-indicator {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.proficiency-dots {
    display: flex;
    gap: 0.3rem;
    margin-left: 0.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(204, 255, 51, 0.3);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-gradient);
    transform: scale(1.2);
}

.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    color: #ccff33;
}

.contact-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-item span {
    font-size: 0.9rem;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    background-color: var(--secondary-color);
}

#profitcalc:link,
#profitcalc:visited,
#profitcalc:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    section#experience,
    section#skills {
        margin-top: 2rem;
    }

    .experience,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .experience-card,
    .skill-category {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    nav {
        gap: 0.5rem;
    }

    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
