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

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #f0f0f0;
    overflow-x: hidden;
    background-color: #0a1929;
    position: relative;
}

/* Background Elements */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.ocean-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(0, 119, 182, 0.3));
    z-index: -1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%230077B6" /><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%230077B6" /><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%230077B6" /></svg>');
    background-size: 1200px 100px;
    animation: wave 12s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.5;
    animation: wave2 15s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes wave2 {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0a1929 0%, #070d14 100%);
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 5s infinite ease-in-out;
    z-index: -1;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

/* Header */
.header {
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #d4af37;
    overflow: hidden;
}

.header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #d4af37, #f9f1cd, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.header h2 {
    font-family: 'Great Vibes', cursive;
    color: #f7d977;
    text-shadow: 0 0 15px rgba(255, 239, 186, 0.8);
    margin-bottom: 1rem;

    position: relative;
    z-index: 1;
}

.tech-line {
    font-family: monospace;
    color: #64ffda;
    margin-top: 1rem;
    animation: typing 3s steps(40) 1s infinite;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #64ffda;
    width: fit-content;
    margin: 0 auto;
    padding-right: 5px;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* House Banners */
.house-banners {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.banner {
    text-align: center;
    width: 250px;
    margin: 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

.banner:hover {
    transform: scale(1.05);
}

.banner h3 {
    font-family: 'Cinzel', serif;
    margin-bottom: 0.5rem;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.sigil {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(10, 25, 41, 0.8);
    border: 2px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.sigil-tech {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(23, 97, 235, 0.2), rgba(23, 97, 235, 0.1));
    z-index: 1;
}

.sigil-symbol {
    font-size: 2.5rem;
    color: #d4af37;
    z-index: 2;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.banner p {
    margin-top: 1rem;
    font-style: italic;
    color: #f0f0f0;
}

.banner .skills {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64ffda;
}

/* Timeline */
.timeline {
    margin: 4rem 0;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    /* Position from the left consistently */
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #d4af37, #64ffda);
    z-index: 1;
    transform: none;
    /* Remove the transform property */
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Update timeline content to be positioned correctly */
.timeline-content {
    width: calc(100% - 40px);
    margin-left: 40px;
    /* Consistent left margin */
    padding: 1.5rem;
    background: rgba(10, 25, 41, 0.8);
    border: 2px solid #d4af37;
    border-radius: 10px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Update the dot position to be consistent */
.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #d4af37;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: -30px;
    /* Position dot on the left consistently */
    right: auto;
    /* Remove any right positioning */
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Remove any conflicting styles for the .timeline-content.left class */
.timeline-content.left::after {
    right: auto;
    left: -30px;
}

.timeline-date {
    color: #64ffda;
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.timeline-title {
    color: #d4af37;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

/* Journey Counter */
.journey-counter {
    text-align: center;
    padding: 2rem;
    margin: 3rem 0;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid #d4af37;
}

.journey-counter h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #d4af37;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.counter-box {
    background: rgba(7, 17, 28, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #64ffda;
}

.counter-title {
    color: #d4af37;
    margin-bottom: 1rem;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.counter-desc {
    color: #64ffda;
    font-style: italic;
}

/* Story Section */
.story-section {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid #d4af37;
}

.story-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #d4af37;
}

.story-content {
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: #64ffda;
    font-weight: bold;
}

.quote-block {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(7, 17, 28, 0.8);
    border-left: 4px solid #d4af37;
    font-style: italic;
}

/* Countdown */
.countdown-section {
    text-align: center;
    padding: 3rem 1rem;
    margin: 3rem 0;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid #d4af37;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.countdown-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.countdown-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.countdown-item {
    width: 120px;
    padding: 1.5rem;
    background: rgba(7, 17, 28, 0.8);
    border: 2px solid #d4af37;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #64ffda;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.countdown-label {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #d4af37;
}

.countdown-message {
    font-style: italic;
    margin-top: 2rem;
    color: #f0f0f0;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Events Section */
.events-section {
    margin: 4rem 0;
}

.events-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #d4af37;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 2px solid #d4af37;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

/* Faded Event Styles */
.event-card.faded {
    opacity: 0.5;
    position: relative;
}

.event-card.faded::after {
    content: 'Completed';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    background: rgba(212, 175, 55, 0.8);
    color: #0a1929;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.2rem;
}

.event-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.event-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.event-date {
    font-family: monospace;
    color: #64ffda;
    margin-bottom: 1rem;
}

.event-location {
    color: #f0f0f0;
}

/* Special Features */
.special-features {
    margin: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 2px solid #d4af37;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #64ffda;
}

.feature-content {
    color: #f0f0f0;
}

/* Quotes */
.quote-section {
    text-align: center;
    padding: 2rem 1rem;
    margin: 3rem 0;
    position: relative;
}

.quote {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 2rem;
}

.quote::before,
.quote::after {
    content: '"';
    color: #d4af37;
    font-size: 3rem;
    position: absolute;
    top: -20px;
}

.quote::before {
    left: 0;
}

.quote::after {
    right: 0;
    transform: rotate(180deg);
}

.quote-author {
    color: #64ffda;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(7, 17, 28, 0.9);
    backdrop-filter: blur(10px);
    border-top: 3px solid #d4af37;
    position: relative;
    z-index: 1;
}

/* Reduced Hashtags */
.hashtags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hashtag {
    font-family: monospace;
    color: #64ffda;
    background: rgba(10, 25, 41, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #64ffda;
    transition: all 0.3s ease;
}

.hashtag:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: scale(1.05);
}

/* Updated Anniversary Counter */
.anniversary-counter {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(7, 17, 28, 0.8);
    border-radius: 10px;
    border: 1px solid #64ffda;
    display: none;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.anniversary-counter h3 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.anniversary-value {
    font-size: 2rem;
    color: #64ffda;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

/* Post Wedding Section */
.post-wedding-message {
    text-align: center;
    padding: 3rem 1rem;
    margin: 3rem 0;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid #d4af37;
    display: none;
}

.post-wedding-message h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #d4af37;
}

.post-wedding-message p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.thank-you-message {
    text-align: center;
    padding: 3rem 1rem;
    margin: 3rem 0;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid #d4af37;
    display: none;
}

.thank-you-message h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #d4af37;
}

.thank-you-message p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}






/* Credits Section */
.credits {
    margin-top: 2rem;
    font-size: 1rem;
    color: #f0f0f0;
}

.credits .heart {
    color: #e74c3c;
    font-size: 1.2rem;
    animation: heartbeat 1.5s infinite ease-in-out;
    display: inline-block;
}

.credits a {
    color: #64ffda;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.credits a:hover {
    color: #d4af37;
    text-decoration: underline;
}



@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .countdown-display {
        gap: 1rem;
    }

    .countdown-item {
        width: 100px;
        padding: 1rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .timeline::before {
        left: auto;
        /* Remove the left positioning */
        right: 20px;
        /* Position from the right instead */
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 0;
        /* Remove the left margin */
        margin-right: 40px;
        /* Add right margin instead */
    }

    .timeline-content::after {
        right: -30px;
        /* Position the dot on the right */
        left: auto;
        /* Remove any left positioning */
    }

    .quote {
        font-size: 1.2rem;
        padding: 0 1.5rem;
    }
}

/* Animation and Special Effects */
.fade-in {
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.dragon-fly {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M70,50c-10-20-40-30-50-30c20,0,40,10,50,30c10-20,30-30,50-30C100,20,80,30,70,50z" fill="%23d4af37" opacity="0.2"/></svg>');
    background-size: contain;
    animation: dragonFly 20s linear infinite;
    z-index: 0;
    opacity: 0.4;
}

@keyframes dragonFly {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(calc(100vw + 100px), calc(50vh - 100px)) rotate(45deg);
    }

    50% {
        transform: translate(calc(50vw - 100px), calc(100vh + 100px)) rotate(90deg);
    }

    75% {
        transform: translate(calc(-100px), calc(50vh - 100px)) rotate(135deg);
    }

    100% {
        transform: translate(0, 0) rotate(180deg);
    }
}

.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #64ffda;
    opacity: 0.4;
    border-radius: 50%;
}

/* Iron Man Glow */
.iron-man-glow {
    display: inline-block;
    position: relative;
}

.iron-man-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px #e74c3c;
    animation: arc-reactor 2s infinite ease-in-out;
}

@keyframes arc-reactor {

    0%,
    100% {
        box-shadow: 0 0 20px #e74c3c;
    }

    50% {
        box-shadow: 0 0 40px #e74c3c;
    }
}

/* Dragon Fire */
.dragon-fire {
    display: inline-block;
    position: relative;
}

.dragon-fire::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px #d4af37;
    animation: dragon-breath 3s infinite ease-in-out;
}

@keyframes dragon-breath {

    0%,
    100% {
        box-shadow: 0 0 20px #d4af37;
    }

    50% {
        box-shadow: 0 0 40px #d4af37;
    }
}

/* Timeline styles for events */
.future-event {
    opacity: 0.7;
}

.next-event {
    opacity: 1;
    border-left: 4px solid #FFD700;
}

.past-event {
    opacity: 1;
}

/* Optional: add visual indicator for completed events */
.past-event .timeline-content::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 15px;
    color: #4CAF50;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Fix for mobile scrolling issues */
html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #f0f0f0;
    background-color: #0a1929;
}

/* Adjust background elements for mobile */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    will-change: transform;
    /* Optimize for animations */
}

/* Optimize wave animations for mobile */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%230077B6" /><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%230077B6" /><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%230077B6" /></svg>');
    background-size: 1200px 100px;
    animation: wave 12s linear infinite;
    transform: translateZ(0);
    /* Force hardware acceleration */
}

/* Reduce the number of stars and particles for mobile */
@media (max-width: 768px) {
    .stars .star {
        opacity: 0.5;
    }

    .tech-particles .particle {
        opacity: 0.3;
    }

    /* Reduce or eliminate dragon animation on mobile */
    .dragon-fly {
        display: none;
    }
}

/* Fix for fade-in animations on mobile */
@media (max-width: 768px) {
    .fade-in {
        animation: none;
        opacity: 1;
    }


    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px;
    }

    /* Make counter boxes stack properly on mobile */
    .counter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Adjust countdown items for mobile */
    .countdown-display {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown-item {
        width: 70px;
        height: auto;
        padding: 0.75rem;
        margin: 0.25rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }
}

/* Improved header for mobile */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .header h2 {
        font-size: 1rem;
    }

    .tech-line {
        font-size: 0.8rem;
        animation: none;
        /* Remove typing animation on mobile */
        border-right: none;
        white-space: normal;
        width: 100%;
    }
}

/* Fix for house banners on mobile */
@media (max-width: 768px) {
    .house-banners {
        flex-direction: column;
        align-items: center;
    }

    .banner {
        margin: 1rem 0;
    }
}

/* Fix for event cards on mobile */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        margin-bottom: 1rem;
    }

    .event-card:hover {
        transform: none;
        /* Remove hover effect on mobile */
    }
}

/* Fix for story section on mobile */
@media (max-width: 768px) {
    .story-section {
        padding: 1rem;
    }

    .story-content {
        line-height: 1.5;
    }

    .quote-block {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* Improved footer for mobile */
@media (max-width: 768px) {
    .footer {
        padding: 1rem;
    }

    .hashtags {
        flex-direction: column;
        align-items: center;
    }

    .hashtag {
        margin-bottom: 0.5rem;
    }
}