/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Trebuchet MS', sans-serif;
    background: linear-gradient(to bottom, #87ceeb, #e0f7fa);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%2387ceeb"/><circle cx="20" cy="20" r="3" fill="%23ffffff" opacity="0.7"/><circle cx="50" cy="40" r="2" fill="%23ffffff" opacity="0.7"/><circle cx="80" cy="30" r="4" fill="%23ffffff" opacity="0.7"/><circle cx="30" cy="70" r="2" fill="%23ffffff" opacity="0.7"/><circle cx="70" cy="80" r="3" fill="%23ffffff" opacity="0.7"/></svg>');
    background-size: 200px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border: 8px double #4b0082;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Header */
header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    background: linear-gradient(to right, #ff69b4, #9370db, #20b2aa);
    border-radius: 10px;
    border: 3px solid #ff1493;
    position: relative;
}

h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px 0 #000, 5px 5px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Impact', 'Arial Black', sans-serif;
}

.tagline {
    font-size: 1.5rem;
    color: #ffff00;
    text-shadow: 1px 1px 1px #000;
    font-weight: bold;
}

/* Navigation */
nav {
    background: linear-gradient(to bottom, #4169e1, #1e3c72);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid #000080;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin: 0 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 5px;
    background: linear-gradient(to bottom, #ff4500, #ff8c00);
    border: 2px solid #ff0000;
    text-shadow: 1px 1px 1px #000;
    transition: all 0.3s;
}

nav a:hover {
    background: linear-gradient(to bottom, #ff8c00, #ff4500);
    transform: scale(1.1);
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background: linear-gradient(to bottom, #f0f8ff, #e6e6fa);
    border: 3px solid #4b0082;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
    background: linear-gradient(to bottom, #e6e6fa, #f0f8ff);
}

.service-card h3 {
    color: #4b0082;
    font-size: 1.4rem;
    margin-bottom: 10px;
    border-bottom: 2px dotted #9370db;
    padding-bottom: 5px;
}

.service-card a {
    color: #ff4500;
    text-decoration: none;
    font-weight: bold;
    word-break: break-all;
}

.service-card a:hover {
    text-decoration: underline;
}

.service-card p {
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to right, #2f4f4f, #000000);
    color: white;
    border-radius: 10px;
    border: 3px solid #228b22;
    margin-top: 20px;
    font-size: 0.9rem;
}

.counter {
    display: inline-block;
    background: #000;
    color: #0f0;
    padding: 3px 8px;
    font-family: 'Courier New', monospace;
    border-radius: 5px;
    margin: 0 5px;
}

/* Visitor counter animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 1s infinite;
}

/* Retro elements */
.retro-border {
    border: 8px ridge #ff1493;
    padding: 15px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.7);
}

.marquee {
    background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    padding: 10px;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    margin: 20px 0;
    animation: marquee 15s linear infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
}
