/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Particle Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}
.particle:nth-child(2) {
    top: 80%;
    left: 80%;
    animation-delay: 1s;
}
.particle:nth-child(3) {
    top: 40%;
    left: 70%;
    animation-delay: 2s;
}
.particle:nth-child(4) {
    top: 60%;
    left: 30%;
    animation-delay: 3s;
}
.particle:nth-child(5) {
    top: 10%;
    left: 60%;
    animation-delay: 4s;
}
.particle:nth-child(6) {
    top: 90%;
    left: 40%;
    animation-delay: 5s;
}
.particle:nth-child(7) {
    top: 30%;
    left: 10%;
    animation-delay: 1.5s;
}
.particle:nth-child(8) {
    top: 70%;
    left: 90%;
    animation-delay: 2.5s;
}
.particle:nth-child(9) {
    top: 50%;
    left: 50%;
    animation-delay: 3.5s;
}
.particle:nth-child(10) {
    top: 15%;
    left: 85%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Main Container */
.container {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Bento Box Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 2fr 2fr auto;
    gap: 20px;
    min-height: 100vh;
    grid-template-areas:
        "hero hero certification"
        "hero hero certification"
        "stats disclaimer authority";
}

/* Card Base Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

/* Grid Area Assignments */
.hero-card {
    grid-area: hero;
    animation-delay: 0.2s;
}
.certification-card {
    grid-area: certification;
    animation-delay: 0.4s;
}
.stats-card {
    grid-area: stats;
    animation-delay: 0.6s;
}
.disclaimer-card {
    grid-area: disclaimer;
    animation-delay: 0.8s;
}
.authority-card {
    grid-area: authority;
    animation-delay: 1s;
}

/* Hero Card Styles */
.hero-card {
    padding: 15px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    border-radius: 15px;
    overflow: hidden;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.1);
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.hero-image.active {
    opacity: 1;
    transform: scale(1);
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

/* Pagination Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Sparkles Animation */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}
.sparkle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 0.5s;
}
.sparkle:nth-child(3) {
    top: 30%;
    left: 30%;
    animation-delay: 1s;
}
.sparkle:nth-child(4) {
    top: 70%;
    left: 70%;
    animation-delay: 1.5s;
}
.sparkle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes sparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Certification Card Styles */
.certification-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.galaxy-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.certification-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.name-text {
    font-family: "Dancing Script", cursive;
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 10px #ffd700;
    }
    to {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

.highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.galaxy-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    font-weight: 700;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Stamp */
.stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border: 3px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(-15deg);
}

.stamp-inner {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stats-card h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
}

/* Disclaimer Card */
.disclaimer-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.disclaimer-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.disclaimer-list {
    list-style: none;
}

.disclaimer-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Authority Card */
.authority-card {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    text-align: center;
}

.authority-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.authority-text {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.sub-authority {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.sub-authority-small {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.3;
    font-style: italic;
}

.certification-date-text {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.date-note {
    font-size: 0.7rem;
    color: #777;
    font-style: italic;
    margin-bottom: 15px;
}

.seal {
    width: 60px;
    height: 60px;
    border: 2px solid #333;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
}

.seal-inner {
    text-align: center;
}

.seal-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #333;
}

.seal-stars {
    font-size: 0.8rem;
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    animation: confettiFall 3s linear forwards;
}

.confetti:nth-child(2n) {
    background: #4ecdc4;
}
.confetti:nth-child(3n) {
    background: #45b7d1;
}
.confetti:nth-child(4n) {
    background: #ffd700;
}
.confetti:nth-child(5n) {
    background: #ff9a9e;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "hero hero"
            "certification certification"
            "stats disclaimer"
            "authority authority";
    }

    .galaxy-title {
        font-size: 1.8rem;
    }
    .name-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .card {
        padding: 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "certification"
            "stats"
            "disclaimer"
            "authority";
        gap: 15px;
    }

    .galaxy-title {
        font-size: 1.5rem;
    }
    .name-text {
        font-size: 2rem;
    }
    .certification-text {
        font-size: 1rem;
    }

    .image-container {
        min-height: 450px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .card {
        padding: 15px;
    }

    .galaxy-title {
        font-size: 1.3rem;
    }
    .name-text {
        font-size: 1.8rem;
    }
    .certification-text {
        font-size: 0.9rem;
    }

    .disclaimer-list li {
        font-size: 0.8rem;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }

    /* Carousel mobile adjustments */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .image-container {
        min-height: 350px;
    }
}
