a {
    color: #d40000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #d40000, #ff4444);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

a:hover {
    color: #ff0000 !important;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    background-color: #FFFFFF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    overflow-x: hidden;
}
   
.notice {
    text-align: left;
    align-content: center;
    padding: 5px;
    background-color: #E5E5E5;
    color: black;
    display: flex;
    justify-content: center;
}

.container {
    width: 70%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice .container span {
    vertical-align: middle;
    font-size: 14px;
}

.notice .container img {
    vertical-align: middle;
    max-height: 15px;
}

header {
    text-align: left;
    align-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: #FFFFFF;
    border-bottom: 1px solid rgb(214, 214, 214);
    color: black;
    display: flex;
    justify-content: center;
    z-index: 90;
}

#cup {
    vertical-align: middle;
    max-height: 30px;
    margin-right: -6px;
}

header img {
    vertical-align: middle;
    max-height: 25px;
    margin-right: -6px;
}

.header-buttons {
    align-content: center;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-buttons a {
    font-size: 1.125em;
    font-weight: normal;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(0, 0, 0, 0.822);
    position: relative;
}

.header-buttons a:hover {
    color: #d40000;
}

#ytbutton {
    font-size: 1.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: bold;
    background: linear-gradient(45deg, #d40000, #ff4444);
    color: rgba(255, 255, 255, 0.932);
    padding: 10px 20px;
    border-radius: 50px; 
    position: relative;
    white-space: nowrap;
}

/* Remove all text effects for YouTube button */
#ytbutton::after {
    display: none;
}

#ytbutton:hover {
    text-decoration: none;
    transform: translateY(-2px);
    background: linear-gradient(45deg, #ff0000, #ff6666);
    color: rgba(255, 255, 255, 0.932) !important;
}

.page-hero {
    width: 100%;
    height: 200px;
    background: url('../images/hero_bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.page-hero h1 {
    color: #ffffff;
    font-size: 3em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
}

.hero {
    width: 100%;
    height: 500px;
    background: url('../images/hero_bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero .logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.75));
}

.hero h1 {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: normal;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
    line-height: 1.2;
}

.hero-button {
    background: linear-gradient(45deg, #d40000, #ff4444);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* Remove all text effects for hero buttons */
.hero-button::after {
    display: none;
}

.hero-button:hover {
    background: linear-gradient(45deg, #ff0000, #ff6666);
    color: white !important;
}

.hero-button:active {
    transform: translateY(0);
}

.minor-hero-button {
    background: linear-gradient(45deg, #777777, #9b9b9b);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* Remove all text effects for minor hero buttons */
.minor-hero-button::after {
    display: none;
}

.minor-hero-button:hover {
    background: linear-gradient(45deg, #888888, #adadad);
    color: white !important;
}

.minor-hero-button:active {
    transform: translateY(0);
}

/* About Section Styles */
.about {
    width: 100%;
    padding: 80px 20px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 0, 0, 0.02) 0%, rgba(255, 68, 68, 0.02) 100%);
    pointer-events: none;
}

.about-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.about h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.about p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    text-align: left;
    max-width: 100%;
}

.about p:last-child {
    margin-bottom: 0;
}

.about a {
    color: #d40000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.about a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #d40000, #ff4444);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.about a:hover {
    color: #ff0000;
}

.about a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.about em {
    font-style: italic;
    color: #666;
    font-weight: 500;
}

/* Series Section Styles */
.series {
    width: 100%;
    padding: 80px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    position: relative;
}

.series::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 0, 0, 0.01) 0%, rgba(255, 68, 68, 0.01) 100%);
    pointer-events: none;
}

.series-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.series h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.series-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.series-item {
    background: linear-gradient(45deg, #ff1818, #ffffff, #ffffff, #ffffff);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.series-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 0, 0, 0.02) 0%, rgba(255, 68, 68, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.series-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(212, 0, 0, 0.2);
}

.series-item:hover::before {
    opacity: 1;
}

.series-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.series-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    gap: 0;
    min-width: 0;
}

.series-item:hover img {
    transform: scale(1.05);
}

.series-item h3 {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.series-item p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #141414;
    margin-bottom: 25px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.series-button {
    background: linear-gradient(45deg, #d40000, #ff4444);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    min-width: 200px;
    text-align: center;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
    white-space: nowrap;
}

/* Remove text effects for series buttons */
.series-button::after {
    display: none;
}

.series-button:hover {
    background: linear-gradient(45deg, #ff0000, #ff6666);
    color: white !important;
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.3));
}

.series-button:active {
    transform: translateY(0);
}

/* Add icon to series buttons */
.series-button::before {
    content: "\f04b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.9em;
    margin-right: 8px;
}

/* Animation for scroll-in effect */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.series-item {
    animation: fadeInUp 0.6s ease-out;
}

.series-item:nth-child(2) {
    animation-delay: 0.2s;
}

.series-item:nth-child(3) {
    animation-delay: 0.4s;
}

/* Additional hover effects for better interactivity */
.series-item h3 {
    transition: color 0.3s ease;
}

.series-item:hover h3 {
    color: #d40000;
}

.series-item p {
    transition: color 0.3s ease;
}

.series-item:hover p {
    color: #555;
}

.series-info {
    text-align: left;
}

.year {
    font-weight: lighter !important;
}

/* Body Content Section Styles */
.body-content {
    width: 100%;
    padding: 80px 20px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    position: relative;
}

.body-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 0, 0, 0.02) 0%, rgba(255, 68, 68, 0.02) 100%);
    pointer-events: none;
}

.body-content .content {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.body-content p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    text-align: left;
}

.body-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.body-content li {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    padding-left: 0;
}

.body-content strong {
    color: #333;
    font-weight: 600;
}

.project-image {
    width: 150px !important;
    height: auto !important;
    border-radius: 15px;
}

#dorabot {
    background: linear-gradient(45deg, #5d39e0, #ffffff, #ffffff) !important;
}

#holiday-tracker-hub {
    background: linear-gradient(45deg, #007EE0, #ffffff, #ffffff) !important;
}

/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        width: 85%;
    }
    
    .series-item img {
        width: 250px;
        height: 170px;
    }
}

/* Mobile Styles - Large */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    /* Header Mobile */
    .container {
        width: 90%;
        padding: 0 15px;
    }
    
    .header-buttons {
        gap: 10px;
    }
    
    .header-buttons a {
        font-size: 1em;
    }
    
    #ytbutton {
        font-size: 1em;
        padding: 8px 16px;
    }
    
    /* Hero Mobile */
    .hero {
        height: 400px;
        padding: 30px 15px;
    }
    
    .page-hero {
        height: 150px;
        padding: 20px 15px;
    }
    
    .hero .logo-image {
        max-width: 280px;
    }
    
    .hero h1 {
        font-size: 1.3em;
        line-height: 1.3;
    }
    
    .page-hero h1 {
        font-size: 2.2em;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-button,
    .minor-hero-button {
        padding: 12px 24px;
        font-size: 1.1em;
    }
    
    /* About Mobile */
    .about {
        padding: 60px 15px;
    }
    
    .about h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }
    
    .about p {
        font-size: 1.1em;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    /* Series Mobile */
    .series {
        padding: 60px 15px;
    }
    
    .series h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    
    .series-list {
        gap: 25px;
        margin-top: 30px;
    }
    
    .series-item {
        padding: 25px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }
    
    .series-item img {
        width: 100%;
        max-width: 350px;
        height: 200px;
    }
    
    .series-item-content {
        text-align: center;
        width: 100%;
    }
    
    .series-item h3 {
        font-size: 1.6em;
        margin-bottom: 12px;
    }
    
    .series-item p {
        font-size: 1em;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .series-button {
        padding: 10px 20px;
        font-size: 1em;
        min-width: 180px;
    }
    
    /* Body Content Mobile */
    .body-content {
        padding: 60px 15px;
    }
    
    .body-content p {
        font-size: 1.1em;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .body-content li {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    /* Notice Mobile */
    .notice .container {
        width: 90%;
    }
    
    .notice .container span {
        font-size: 13px;
    }
}

/* Mobile Styles - Small */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    /* Header Mobile Small */
    header {
        padding: 10px 0;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .header-buttons a {
        font-size: 0.9em;
    }
    
    #ytbutton {
        font-size: 0.9em;
        padding: 6px 12px;
    }
    
    /* Hero Mobile Small */
    .hero {
        height: 350px;
        padding: 20px 10px;
    }
    
    .page-hero {
        height: 120px;
        padding: 15px 10px;
    }
    
    .hero .logo-image {
        max-width: 220px;
    }
    
    .hero h1 {
        font-size: 1.1em;
        line-height: 1.4;
    }
    
    .page-hero h1 {
        font-size: 1.8em;
    }
    
    .hero-content {
        gap: 15px;
    }
    
    .hero-button,
    .minor-hero-button {
        padding: 10px 20px;
        font-size: 1em;
        width: 90%;
        max-width: 260px;
        justify-content: center;
    }
    
    /* About Mobile Small */
    .about {
        padding: 40px 10px;
    }
    
    .about h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .about p {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    /* Series Mobile Small */
    .series {
        padding: 40px 10px;
    }
    
    .series h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .series-list {
        gap: 20px;
        margin-top: 25px;
    }
    
    .series-item {
        padding: 20px;
        border-radius: 15px;
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    
    .series-item img {
        width: 100%;
        max-width: 300px;
        height: 180px;
        border-radius: 12px;
    }
    
    .series-item-content {
        text-align: center;
        width: 100%;
    }
    
    .series-item h3 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    
    .series-item p {
        font-size: 0.95em;
        margin-bottom: 18px;
        line-height: 1.5;
        text-align: center;
    }
    
    .series-button {
        padding: 8px 18px;
        font-size: 0.95em;
        border-radius: 20px;
        min-width: 160px;
    }
    
    /* Body Content Mobile Small */
    .body-content {
        padding: 40px 10px;
    }
    
    .body-content p {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    .body-content li {
        font-size: 0.95em;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    /* Notice Mobile Small */
    .notice {
        padding: 8px 5px;
    }
    
    .notice .container {
        width: 100%;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .notice .container span {
        font-size: 12px;
    }
    
    /* Project Image Mobile */
    .project-image {
        width: 120px !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .hero .logo-image {
        max-width: 180px;
    }
    
    .series-item img {
        max-width: 250px;
        height: 160px;
    }
    
    .hero-button,
    .minor-hero-button {
        width: 95%;
        max-width: 220px;
        font-size: 0.9em;
        padding: 8px 16px;
    }
    
    .series-button {
        min-width: 140px;
        font-size: 0.9em;
    }
}

/* Ensure all elements stay within viewport */
* {
    box-sizing: border-box;
    max-width: 100%;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
}

/* Make sure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly interactive elements */
@media (max-width: 768px) {
    a, .hero-button, .minor-hero-button, .series-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}