/* CreepyDates - Dark Horror Theme CSS */

/* CSS Variables for Dark Horror Theme */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --tertiary-bg: #2a2a2a;
    --accent-red: #b30000;
    --blood-red: #8b0000;
    --pale-green: #98fb98;
    --ghostly-white: #f8f8ff;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #999999;
    --shadow-color: rgba(0, 0, 0, 0.8);
    --glow-red: rgba(179, 0, 0, 0.3);
    --glow-green: rgba(152, 251, 152, 0.2);
    
    --font-gothic: 'Creepster', 'Chiller', 'Nosifer', cursive;
    --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 20px var(--shadow-color);
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Creepster&family=Nosifer&display=swap');

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--primary-bg);
    color: var(--ghostly-white);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(179, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(152, 251, 152, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: var(--ghostly-white);
}

.skull-loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 3px solid var(--dark-gray);
    border-top: 3px solid var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--light-gray);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ghostly-white);
}

h1 {
    font-size: 2.5rem;
    font-family: var(--font-gothic);
    text-shadow: 2px 2px 4px var(--shadow-color);
}

h2 {
    font-size: 2rem;
    color: var(--accent-red);
    text-shadow: 1px 1px 2px var(--shadow-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--light-gray);
}

a {
    color: var(--pale-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--ghostly-white);
    text-shadow: 0 0 5px var(--glow-green);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--accent-red);
    font-family: var(--font-gothic);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--medium-gray);
}

.gradient-text {
    background: linear-gradient(45deg, var(--accent-red), var(--pale-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

/* Header and Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-gray);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-family: var(--font-gothic);
}

.nav-logo a {
    color: var(--accent-red);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo a:hover {
    text-shadow: 0 0 10px var(--glow-red);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--ghostly-white);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--pale-green);
    border-bottom-color: var(--pale-green);
    text-shadow: 0 0 5px var(--glow-green);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--ghostly-white);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-family: var(--font-gothic);
    text-shadow: 3px 3px 6px var(--shadow-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--light-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--accent-red), var(--blood-red));
    color: var(--ghostly-white);
    box-shadow: var(--box-shadow);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--glow-red);
}

.cta-button.secondary {
    background: transparent;
    color: var(--pale-green);
    border: 2px solid var(--pale-green);
}

.cta-button.secondary:hover {
    background: var(--pale-green);
    color: var(--primary-bg);
    box-shadow: 0 0 20px var(--glow-green);
}

/* Game Section */
.game-section {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-wrapper {
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--dark-gray);
}

.game-frame {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 600px;
    background: var(--dark-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    padding: 0.8rem 1.5rem;
    background: var(--tertiary-bg);
    color: var(--ghostly-white);
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.control-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

/* About Section */
.about-section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead-text {
    font-size: 1.2rem;
    color: var(--ghostly-white);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--light-gray);
}

.feature-list li::before {
    content: '🗡️';
    position: absolute;
    left: 0;
    color: var(--accent-red);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 200px;
    background: var(--dark-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    border: 2px dashed var(--medium-gray);
}

.game-screenshot {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 2px solid var(--dark-gray);
    transition: var(--transition);
}

.game-screenshot:hover {
    transform: scale(1.05);
    border-color: var(--accent-red);
    box-shadow: 0 8px 30px var(--glow-red);
}

/* Characters Section */
.characters-section {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.character-card {
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--dark-gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent-red);
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(179, 0, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.character-card:hover::before {
    left: 100%;
}

.character-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--dark-gray);
    border: 3px solid var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.character-image .image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: none;
    font-weight: 600;
    color: var(--ghostly-white);
}

.character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
    display: block;
    object-position: center center;
}

.character-card:hover .character-img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.character-name {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.character-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.character-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.trait {
    background: var(--tertiary-bg);
    color: var(--pale-green);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--pale-green);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--dark-gray);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--pale-green);
    box-shadow: 0 5px 20px var(--glow-green);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    color: var(--pale-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Guides Section */
.guides-section {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guide-card {
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--dark-gray);
}

.guide-title {
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.guide-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--light-gray);
    line-height: 1.6;
}

.guide-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--pale-green);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3,
.contact-form h3 {
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    padding: 1rem 0;
    border-bottom: 1px solid var(--dark-gray);
    color: var(--light-gray);
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-form-element {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--dark-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ghostly-white);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-bg);
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius);
    color: var(--ghostly-white);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pale-green);
    box-shadow: 0 0 5px var(--glow-green);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--accent-red), var(--blood-red));
    color: var(--ghostly-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glow-red);
}

/* Footer */
.main-footer {
    background: var(--primary-bg);
    border-top: 1px solid var(--dark-gray);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    padding: 0.3rem 0;
}

.footer-links a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--pale-green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    padding: 0.5rem;
    background: var(--dark-gray);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

.keywords-text {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.8;
}

.keywords-text a {
    color: var(--medium-gray);
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--medium-gray);
    margin: 0 0.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-red);
    color: var(--ghostly-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--blood-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--glow-red);
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--box-shadow);
        border-top: 1px solid var(--dark-gray);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .game-frame {
        height: 50vh;
        min-height: 400px;
    }
    
    .characters-grid,
    .features-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .character-card,
    .feature-card,
    .guide-card {
        margin-bottom: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .game-wrapper {
        padding: 1rem;
    }
    
    .game-frame {
        height: 40vh;
        min-height: 300px;
    }
    
    .character-card,
    .feature-card,
    .guide-card {
        padding: 1.5rem;
    }
    
    .contact-form-element {
        padding: 1.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-title {
        font-weight: 500;
    }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #000000;
        --secondary-bg: #111111;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .hamburger,
    .back-to-top,
    #loading-screen {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .game-section {
        display: none !important;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Better Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--pale-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-bg: #000000;
        --secondary-bg: #111111;
        --ghostly-white: #ffffff;
        --accent-red: #ff0000;
        --pale-green: #00ff00;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Selection Styles */
::selection {
    background: var(--accent-red);
    color: var(--ghostly-white);
}

::-moz-selection {
    background: var(--accent-red);
    color: var(--ghostly-white);
}