@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Abhaya+Libre:wght@400;500;600;700&display=swap');

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

@font-face {
    font-family: '0KDBOLIDDA';
    src: url('font/0KDBOLIDDA bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Background Image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('./images/olendra-studio-design.gif');
    background-size: 100% auto;  /* Default for desktop: full width */
    background-position: top;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1;
}

/* Add overlay to improve text readability */
.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.3) 0%, rgba(42, 82, 152, 0.3) 100%);
    pointer-events: none;
}

/* Ensure the container fills the viewport while maintaining content visibility */
.container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: relative;
    overflow: auto;
}

/* Header Styles */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 5px;
    z-index: 2;
}

.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Content Wrapper */
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 10px;
    flex: 1;
    padding-top: 0vh;
}

/* Wishes Container */
.wishes-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.wishes {
    text-align: center;
    color: white;
    padding: 20px;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 85, 255, 0.0);
    border-radius: 15px;
}

h1.sinhala {
    font-family: '0KDBOLIDDA', sans-serif;
    font-size: 280%;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 0.8),
                 0 0 45px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4);
    font-weight: bold;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
    line-height: 1.4;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1.sinhala span.english {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
}

h1.english {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 200%;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 0.8),
                 0 0 45px rgba(255, 255, 255, 0.6);
    line-height: 1.3;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.2px;
    animation: glow 2s ease-in-out infinite alternate;
}

h1.tamil {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 120%;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 0.8),
                 0 0 45px rgba(255, 255, 255, 0.6);
    line-height: 1.3;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.2px;
    animation: glow 2s ease-in-out infinite alternate;
}

h3.tamil {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 180%;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 0.8),
                 0 0 45px rgba(255, 255, 255, 0.6);
    line-height: 1.2;
    color: #fff;
    font-weight: bold;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
                     0 0 30px rgba(255, 255, 255, 0.6),
                     0 0 45px rgba(255, 255, 255, 0.4);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1),
                     0 0 40px rgba(255, 255, 255, 0.8),
                     0 0 60px rgba(255, 255, 255, 0.6);
    }
}

/* Footer Styles */
.footer {
    width: 100%;
    text-align: center;
    color: white;
    padding: 5px;
    z-index: 2;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 5px;
}

.social-link {
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Facebook brand color */
.social-link.facebook:hover {
    transform: translateY(-5px);
    color: #1877f2;
}

/* WhatsApp brand color */
.social-link.whatsapp:hover {
    transform: translateY(-5px);
    color: #25d366;
}

/* Instagram gradient color */
.social-link.instagram:hover i {
    transform: translateY(-5px) scale(1.2);
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-link i {
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Remove transform from general hover since we handle it in specific cases */
.social-link.instagram:hover {
    transform: none;
}

/* Update responsive design */
@media (max-width: 768px) {
    .background-image {
        background-size: auto 100%;  /* Mobile: full height */
    }
    
    .wishes {
        padding: 15px;
    }
    
    h1.sinhala {
        font-size: 220%;
        letter-spacing: 1.5px;
    }
    
    h1.english {
        font-size: 180%;
    }

    h1.tamil {
        font-size: 120%;
    }
 
    .logo {
        max-width: 150px;
    }

    .social-link {
        font-size: 20px;
    }

    .content-wrapper {
        padding-top: 10vh;
    }
}

@media (max-width: 480px) {
    .wishes {
        padding: 10px;
    }
    
    h1.sinhala {
        font-size: 180%;
        letter-spacing: 1px;
    }
    
    h1.english {
        font-size: 120%;
    }
    h1.tamil {
        font-size: 90%;
    }
  
    .logo {
        max-width: 120px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        font-size: 18px;
    }

    .content-wrapper {
        padding-top: 3vh;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    h1.sinhala {
        font-size: 150%;
        letter-spacing: 0.8px;
    }
    
    h1.english {
        font-size: 120%;
    }

    h1.tamil {
        font-size: 90%;
    }
    
}

/* Update specific styles for Sinhala Unicode text */
.sinhala-text {
    font-family: 'Abhaya Libre', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Copyright text style */
.footer p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Aurudu Decorative Elements */
.aurudu-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurudu-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    will-change: transform;
}

.aurudu-element.kokis {
    background-image: url('./images/kokis.png');
}

.aurudu-element.kavum {
    background-image: url('./images/Kavum.png');
}

.aurudu-element.athirasa {
    background-image: url('./images/athirasa.png');
}

.aurudu-element.paniwalalu {
    background-image: url('./images/paniwalalu.png');
}

/* Random starting positions and animations for all elements */
.aurudu-element:nth-child(1) { 
    left: 0%; top: 15%; 
    animation: move1 10s linear infinite;
}
.aurudu-element:nth-child(2) { 
    left: 100%; top: 8%; 
    animation: move2 12s linear infinite;
}
.aurudu-element:nth-child(3) { 
    left: 35%; top: 0%; 
    animation: move3 15s linear infinite;
}
.aurudu-element:nth-child(4) { 
    left: 12%; top: 100%; 
    animation: move4 11s linear infinite;
}
.aurudu-element:nth-child(5) { 
    left: 0%; top: 12%; 
    animation: move5 13s linear infinite;
}
.aurudu-element:nth-child(6) { 
    left: 100%; top: 65%; 
    animation: move6 14s linear infinite;
}
.aurudu-element:nth-child(7) { 
    left: 75%; top: 0%; 
    animation: move7 16s linear infinite;
}
.aurudu-element:nth-child(8) { 
    left: 45%; top: 100%; 
    animation: move8 9s linear infinite;
}
.aurudu-element:nth-child(9) { 
    left: 0%; top: 55%; 
    animation: move9 17s linear infinite;
}
.aurudu-element:nth-child(10) { 
    left: 100%; top: 85%; 
    animation: move10 18s linear infinite;
}
.aurudu-element:nth-child(11) { 
    left: 55%; top: 0%; 
    animation: move11 19s linear infinite;
}
.aurudu-element:nth-child(12) { 
    left: 32%; top: 100%; 
    animation: move12 20s linear infinite;
}
.aurudu-element:nth-child(13) { 
    left: 0%; top: 62%; 
    animation: move13 21s linear infinite;
}
.aurudu-element:nth-child(14) { 
    left: 100%; top: 28%; 
    animation: move14 22s linear infinite;
}
.aurudu-element:nth-child(15) { 
    left: 72%; top: 0%; 
    animation: move15 23s linear infinite;
}
.aurudu-element:nth-child(16) { 
    left: 38%; top: 100%; 
    animation: move16 24s linear infinite;
}
.aurudu-element:nth-child(17) { 
    left: 0%; top: 42%; 
    animation: move17 25s linear infinite;
}
.aurudu-element:nth-child(18) { 
    left: 100%; top: 72%; 
    animation: move18 26s linear infinite;
}
.aurudu-element:nth-child(19) { 
    left: 62%; top: 0%; 
    animation: move19 27s linear infinite;
}
.aurudu-element:nth-child(20) { 
    left: 42%; top: 100%; 
    animation: move20 28s linear infinite;
}

/* Movement animations */
@keyframes move1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(1000px, 500px); }
}

@keyframes move2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-1000px, 300px); }
}

@keyframes move3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(800px, 1000px); }
}

@keyframes move4 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(600px, -1000px); }
}

@keyframes move5 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(1200px, 400px); }
}

@keyframes move6 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-800px, 600px); }
}

@keyframes move7 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(900px, 800px); }
}

@keyframes move8 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-700px, -900px); }
}

@keyframes move9 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(1100px, 700px); }
}

@keyframes move10 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-900px, 400px); }
}

@keyframes move11 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(700px, 900px); }
}

@keyframes move12 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-600px, -800px); }
}

@keyframes move13 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(1000px, 600px); }
}

@keyframes move14 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-800px, 500px); }
}

@keyframes move15 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(900px, 700px); }
}

@keyframes move16 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-700px, -600px); }
}

@keyframes move17 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(1100px, 800px); }
}

@keyframes move18 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-900px, 700px); }
}

@keyframes move19 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(800px, 900px); }
}

@keyframes move20 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-600px, -700px); }
}

/* Add hover effect to pause animation */
.aurudu-element:hover {
    animation-play-state: paused;
}
