* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate3d {
    0% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg) rotateX(10deg);
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate3d 20s linear infinite;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: pulse 3s ease-in-out infinite;
}

header p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.admin-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 600;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.admin-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

main {
    padding: 60px 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    perspective: 1000px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    transform-style: preserve-3d;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }
.tool-card:nth-child(n+7) { animation-delay: 0.7s; }

.tool-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.tool-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.tool-card:hover .tool-icon {
    transform: scale(1.2) rotateY(360deg);
    animation: pulse 1s ease-in-out infinite;
}

.tool-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.tool-card:hover .tool-title {
    color: #667eea;
    transform: translateX(-5px);
}

.tool-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-description {
    color: #555;
}

.no-tools {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-tools p {
    font-size: 1.2rem;
    color: #999;
}

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: gradient 3s ease infinite;
}

footer p {
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .tool-card {
        padding: 25px 20px;
    }

    .tool-icon {
        font-size: 3rem;
    }

    .tool-title {
        font-size: 1.3rem;
    }

    .tool-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 0;
    }

    header h1 {
        font-size: 1.7rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    main {
        padding: 40px 0;
    }

    .tool-card {
        padding: 20px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

