:root {
    --primary-color: #ff0099;
    --secondary-color: #00ccff;
    --background-color: rgba(0, 0, 0, 0.9);
    --text-color: #fff;
    --font-audiowide: 'Audiowide', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: sans-serif;
}

.hero-section {
    position: relative;
    height: 100vh;
    background: url('Mothersheep2.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-color);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section h1 {
    font-size: 4rem;
    text-shadow: 0 0 10px var(--primary-color);
    z-index: 2;
}

.hero-section p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
    z-index: 2;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    text-align: center;
    z-index: 3;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    display: inline;
    margin: 0 15px;
}

.navbar a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

.navbar select {
    background-color: #333;
    color: var(--primary-color);
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.navbar select option {
    background-color: #000;
    color: #fff;
}

.content-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color); /* Changed to secondary color */
    margin-bottom: 20px;
    /* text-shadow: 0 0 10px #e79eca;  Removed text shadow */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Or a subtle shadow */
}

.content-section p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-audiowide);
    text-shadow: white;
}

.typing-main {
    font-family: var(--font-audiowide);
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--secondary-color), 0 0 20px var(--secondary-color), 0 0 25px var(--primary-color);
    border-right: 4px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    width: 0; /* Added width 0 back */
    animation: typing-main 2s steps(65, end) forwards;
    animation-fill-mode: forwards;
}

@keyframes typing-main {
    from { width: 0; }
    to { width: var(--text-width); }
}

.typing-sub {
    font-family: var(--font-audiowide);
    font-size: clamp(1rem, 4vw, 2rem);
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color), 0 0 15px var(--primary-color), 0 0 20px var(--primary-color), 0 0 25px var(--secondary-color);
    border-right: 2px solid var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing-sub 2s steps(65, end) 4s forwards, blink-caret-sub 0.75s step-end 6s;
}

@keyframes typing-sub {
    from { width: 0; }
    to { width: var(--text-width); } /* Corrected: Use --text-width */
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

@keyframes blink-caret-sub {
    from, to { border-color: transparent; }
    50% { border-color: var(--secondary-color); }
}

@media (max-width: 480px) {
    .typing-main {
        font-size: 10vw;
    }
    .typing-sub {
        font-size: 5vw;
    }
    .navbar li {
        display: block;
        margin: 10px 0;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background-color: #333;
    padding: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.grid-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.grid-item p {
    font-size: clamp(1rem, 1vw, 1rem); /* Reduced vw value */
    word-break: break-word; /* Added word-break */
}

.footer {
    background-color: var(--background-color);
    padding: 20px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}