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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated particles background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(0, 132, 61, 0.15);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

/* Logo section */
.logo-section {
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-size: 56px;
    font-weight: 700;
    color: #00843D;
    letter-spacing: 3px;
}

.logo-subtitle {
    font-size: 20px;
    color: #555;
    font-weight: 500;
    margin-top: 8px;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 50px;
    justify-items: center;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(0, 132, 61, 0.2);
    border-radius: 50%;
    width: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    text-decoration: none;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 132, 61, 0.15);
    animation: fadeInUp 0.8s ease-out backwards;
    position: relative;
}

.card.static {
    cursor: default;
    background: rgba(245, 245, 245, 0.8);
    border-color: rgba(0, 132, 61, 0.15);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:not(.static):hover {
    background: #00843D;
    color: white;
    border-color: #00843D;
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 132, 61, 0.35);
}

.card:not(.static):active {
    transform: scale(1.02);
}

.card-copy-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.6;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
}

.card-info {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.85;
    line-height: 1.5;
}

.card.static .card-info {
    font-size: 15px;
    line-height: 1.6;
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #00843D;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 8px 25px rgba(0, 132, 61, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* About section */
.about-section {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 60px auto 0;
    padding: 0 20px;
    text-align: center;
}

.about-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 132, 61, 0.1);
}

/* Footer */
footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px 20px;
    color: #666;
    font-size: 14px;
}

/* Desktop: custom layout - 2-3-2 pattern */
@media (min-width: 769px) {
    .cards {
        display: grid;
        grid-template-columns: repeat(5, 280px);
        gap: 25px;
        justify-content: center;
        max-width: 100%;
    }
    
    /* First row: 2 cards (Kontakt, E-post) - centered, span multiple columns */
    .card:nth-child(1) {
        grid-column: 2 / 3;
    }
    
    .card:nth-child(2) {
        grid-column: 4 / 5;
    }
    
    /* Second row: 3 cards (Registriandmed, Swedbank, LHV) - columns 1, 3, 5 */
    .card:nth-child(3) {
        grid-column: 1 / 2;
    }
    
    .card:nth-child(4) {
        grid-column: 3 / 4;
    }
    
    .card:nth-child(5) {
        grid-column: 5 / 6;
    }
    
    /* Third row: 2 cards (Asukoht, Teenused) - centered, span multiple columns */
    .card:nth-child(6) {
        grid-column: 2 / 3;
    }
    
    .card:nth-child(7) {
        grid-column: 4 / 5;
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .logo-text {
        font-size: 44px;
    }

    .logo-subtitle {
        font-size: 18px;
    }

    .card {
        width: 260px;
        height: 260px;
        padding: 35px 25px;
        font-size: 18px;
    }

    .card-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .card-info {
        font-size: 15px;
    }

    .about-text {
        font-size: 15px;
        padding: 20px 25px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .container {
        padding: 40px 15px;
    }

    .logo-text {
        font-size: 38px;
    }

    .logo-subtitle {
        font-size: 16px;
    }

    .card {
        width: 240px;
        height: 240px;
        padding: 30px 20px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-info {
        font-size: 14px;
    }

    .card-copy-label {
        font-size: 12px;
    }

    .copy-notification {
        font-size: 16px;
        padding: 15px 30px;
    }

    .about-text {
        font-size: 14px;
        padding: 18px 20px;
    }
}