* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #0a0a0a;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-size: cover; /* This ensures it covers the full area */
    background: url('../images/colorado.jpg') no-repeat center center;
    filter: blur(3px);
    z-index: -2;
}

.background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

#background-image {
    width: 100%;
}

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

.container {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.header p {
    font-size: 1.3rem;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

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

.cards-container {
    margin: 0 auto;
    padding: 2rem 0;
}

.card {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    margin: 0 0 6rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: white;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card::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.8s;
}

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

.card.right {
    margin-left: 40%;
    margin-right: 0;
    transform: translateX(100px);
}

.card.left {
    margin-right: 40%;
}

.card.visible {
    opacity: 1;
    transform: translateX(0);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.card.right .card-content {
    flex-direction: row-reverse;
}

.card-text {
    flex: 1;
}

.card-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 300;
}

.card p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hobby-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.hobby-item {
    background: rgba(103, 126, 234, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hobby-item:hover {
    background: rgba(103, 126, 234, 0.5);
    transform: scale(1.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.resume-card {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 242, 200, 0.22);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 228, 101, 0.49);
    border-radius: 15px;
    padding: 0.7rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0 5px 5px rgba(207, 255, 125, 0.14);
    text-decoration: none;
    display: inline-block;
}

.resume-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.resume-card:active {
    transform: translateY(0);
}

a {
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .card {
        padding: 2rem;
        margin: 2rem 0;
    }

    .card-content {
        flex-direction: column;
        text-align: center;
    }

    .card.right .card-content {
        flex-direction: column;
    }

    .card-image {
        width: 150px;
        height: 150px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}
