:root {
    --primary-red: #c80007;
    --secondary-red: #780000;
    --light-yellow: #fff9c4;
    --light-blue: #e3f2fd;
    --light-green: #e8f5e9;
    --fun-orange: #ff9800;
    --fun-purple: #9c27b0;
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: #fafafa;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary-red);
}

.navbar-brand .logo {
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo {
    transform: rotate(5deg) scale(1.1);
}

.sticky-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff5252 100%);
    box-shadow: 0 4px 20px rgba(200, 0, 7, 0.3);
    border-bottom: 3px solid var(--fun-orange);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dropdown-menu {
    border-radius: 15px;
    border: 2px solid var(--fun-orange);
    overflow: hidden;
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-yellow);
    padding-left: 1.5rem;
}

.application-button {
    background: linear-gradient(to right, var(--fun-orange), var(--fun-purple));
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid white;
}

.application-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-section {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23fff9c4" opacity="0.3"/><path d="M0 0L100 100" stroke="%23ff9800" stroke-width="2" opacity="0.2"/><path d="M100 0L0 100" stroke="%23ff9800" stroke-width="2" opacity="0.2"/></svg>'),
    linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    border-bottom: 8px dotted var(--fun-orange);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="5" fill="%23c80007" opacity="0.2"/></svg>');
    animation: floating 20s infinite linear;
}

@keyframes floating {
    0% { background-position: 0 0; }
    100% { background-position: 400px 400px; }
}

.hero-title {
    font-size: 3.5rem;
    text-shadow: 3px 3px 0 rgba(255, 152, 0, 0.3);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="10" viewBox="0 0 20 10"><path d="M0,5 Q5,0 10,5 T20,5" stroke="%23ff9800" fill="transparent" stroke-width="2"/></svg>') repeat-x;
}

.btn-tertiary {
    background: linear-gradient(to right, var(--primary-red), #ff5252);
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(200, 0, 7, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-tertiary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s ease;
}

.btn-tertiary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(200, 0, 7, 0.4);
}

.btn-tertiary:hover::before {
    left: 100%;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="10" viewBox="0 0 30 10"><circle cx="5" cy="5" r="4" fill="%23ff9800"/><circle cx="15" cy="5" r="4" fill="%239c27b0"/><circle cx="25" cy="5" r="4" fill="%23c80007"/></svg>') repeat-x;
}

.card {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-red);
    border-bottom: 2px dotted var(--fun-orange);
    padding-bottom: 0.5rem;
}

.learn-more-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, var(--fun-orange), var(--fun-purple));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 10px;
    margin-left: 20px;
    margin-bottom: 20px;
    width: 150px;
    text-align: center;
}

.learn-more-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

.footer {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff5252 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="10" viewBox="0 0 100 10"><path d="M0,0 Q20,15 40,5 T80,5 T100,0" fill="white" opacity="0.3"/></svg>') repeat-x;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.scroll-hidden {
    opacity: 0;
    transition: all 0.7s;
    filter: blur(5px);
    transform: translateY(50px);
}

.scroll-show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.stagger-item:nth-child(2) {
    transition-delay: 200ms;
}

.stagger-item:nth-child(3) {
    transition-delay: 400ms;
}

.stagger-item:nth-child(4) {
    transition-delay: 600ms;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.rotate-animation {
    animation: rotate 10s infinite linear;
}

@keyframes rotate {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.05);}
    100% {transform: scale(1);}
}

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

    .nav-link {
        margin: 0.2rem 0;
    }
}
