/* ========================================
   CHRISTMAS THEME STYLES
   ======================================== */

:root {
    /* Christmas Colors */
    --xmas-red: #D42426;
    --xmas-green: #165B33;
    --xmas-gold: #FFD700;
    --xmas-white: #F8F9FA;
    --xmas-dark-green: #0B2E1A;

    /* Overrides for this page */
    --accent: var(--xmas-red);
    --accent-hover: #b01b1d;
}

/* Snowflakes Animation */
.snowflake {
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}

@keyframes snowflakes-fall {
    0% {
        top: -10%;
    }

    100% {
        top: 100%;
    }
}

@keyframes snowflakes-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(80px);
    }
}

.snowflake:nth-of-type(0) {
    left: 1%;
    animation-delay: 0s, 0s;
}

.snowflake:nth-of-type(1) {
    left: 10%;
    animation-delay: 1s, 1s;
}

.snowflake:nth-of-type(2) {
    left: 20%;
    animation-delay: 6s, 0.5s;
}

.snowflake:nth-of-type(3) {
    left: 30%;
    animation-delay: 4s, 2s;
}

.snowflake:nth-of-type(4) {
    left: 40%;
    animation-delay: 2s, 2s;
}

.snowflake:nth-of-type(5) {
    left: 50%;
    animation-delay: 8s, 3s;
}

.snowflake:nth-of-type(6) {
    left: 60%;
    animation-delay: 6s, 2s;
}

.snowflake:nth-of-type(7) {
    left: 70%;
    animation-delay: 2.5s, 1s;
}

.snowflake:nth-of-type(8) {
    left: 80%;
    animation-delay: 1s, 0s;
}

.snowflake:nth-of-type(9) {
    left: 90%;
    animation-delay: 3s, 1.5s;
}

.snowflake:nth-of-type(10) {
    left: 25%;
    animation-delay: 2s, 0s;
}

.snowflake:nth-of-type(11) {
    left: 65%;
    animation-delay: 4s, 2.5s;
}

/* Hero Section Override */
.xmas-hero {
    background: linear-gradient(135deg, var(--xmas-dark-green) 0%, var(--xmas-green) 50%, var(--xmas-dark-green) 100%);
    position: relative;
    overflow: hidden;
}

.xmas-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* Set the desired color here */
    background-color: #23613d;
    background-size: 2vh;
    opacity: 1;
    pointer-events: none;

    /* Use the SVG as a mask */
    -webkit-mask-image: url('assets/xmas-svgs/Asset 4xmas.svg');
    mask-image: url('assets/xmas-svgs/Asset 4xmas.svg');

    /* Ensure the mask covers the area */
    -webkit-mask-size: cover;
    mask-size: 14vh;

    /* Remove the original background-image property */
    /* background-image: url('assets/xmas-svgs/Asset 31xmas.svg'); */
}

.xmas-title {
    color: var(--xmas-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.xmas-subtitle {
    color: var(--xmas-white);
}

/* Festive Offer Section */
.festive-offer-section {
    background-color: var(--xmas-red);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.festive-offer-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.festive-offer-title {
    font-size: var(--font-size-xl);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    color: var(--xmas-gold);
}

.festive-offer-text {
    font-size: var(--font-size-md);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.festive-decoration {
    position: absolute;
    width: 100px;
    height: auto;
    opacity: 0.2;
    pointer-events: none;
}

.decoration-left {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.decoration-right {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Portfolio Card Override for Christmas */
.xmas-card {
    border-color: var(--xmas-gold);
}

.xmas-card:hover {
    border-color: var(--xmas-red);
    box-shadow: 0 8px 32px rgba(212, 36, 38, 0.2);
}

.xmas-card .card-category {
    background-color: var(--xmas-green);
}

.xmas-card:hover .card-button {
    background-color: var(--xmas-red);
    border-color: var(--xmas-red);
}

/* Navigation Override */
.navbar.xmas-nav {
    border-bottom: 2px solid var(--xmas-gold);
}

.nav-link:hover {
    color: var(--xmas-gold);
}

.nav-link::after {
    background: var(--xmas-gold);
}