/*
Theme Name: Dark Web Theme
Description: A dark web aesthetic WordPress theme with neon green accents, glitch effects, and terminal-like design
Version: 1.0
Author: StarBoy
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: 'Courier New', 'Roboto Mono', monospace;
    color: #E0E0E0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    background-color: #121212;
    padding: 1rem 2rem;
    border-bottom: 1px solid #00FF7F;
    box-shadow: 0 2px 10px rgba(0, 255, 127, 0.3);
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00FF7F;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glitch 2s infinite;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

/* Glitch Animation */
@keyframes glitch {
    0%, 90%, 100% {
        text-shadow: 
            0.05em 0 0 #00FF7F,
            -0.05em -0.025em 0 #FF0033,
            0.025em 0.05em 0 #00FF7F;
    }
    15% {
        text-shadow: 
            0.05em 0 0 #00FF7F,
            -0.05em -0.025em 0 #FF0033,
            0.025em 0.05em 0 #00FF7F;
    }
    20% {
        text-shadow: none;
    }
    25% {
        text-shadow: 
            0.05em 0 0 #00FF7F,
            -0.05em -0.025em 0 #FF0033,
            0.025em 0.05em 0 #00FF7F;
        transform: translate(-2px, 1px);
    }
    30% {
        text-shadow: 
            -0.05em 0 0 #00FF7F,
            0.025em 0.025em 0 #FF0033,
            -0.05em -0.05em 0 #00FF7F;
        transform: translate(1px, -1px);
    }
    35% {
        text-shadow: 
            0.05em 0 0 #00FF7F,
            -0.05em -0.025em 0 #FF0033,
            0.025em 0.05em 0 #00FF7F;
        transform: translate(0);
    }
}

/* Navigation */
.main-navigation {
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.main-link {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: block;
    border-right: 1px solid rgba(0, 255, 127, 0.3);
}

.main-link:hover {
    color: #FF0033;
    text-shadow: 0 0 10px #FF0033, 0 0 20px #FF0033;
    border-color: #FF0033;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.5);
    background: rgba(255, 0, 51, 0.1);
}

/* Dropdown Toggle */
.dropdown-toggle {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '▼';
    color: #00FF7F;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid #00FF7F;
    border-top: none;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 255, 127, 0.2);
    display: none; /* Hide by default */
}

/* Show dropdown on hover for desktop */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Touch/click support for mobile */
.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(0, 255, 127, 0.2);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: #E0E0E0;
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    color: #00FF7F;
    background: rgba(0, 255, 127, 0.1);
    border-left-color: #00FF7F;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
    padding-left: 1.2rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #00FF7F;
    color: #00FF7F;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: #FF0033;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #00FF7F;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.menu-toggle:hover .hamburger-line {
    background: #FF0033;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-section {
    background: #000000;
    background-image: 
        radial-gradient(circle at 25% 25%, #00FF7F 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, #00FF7F 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(0, 255, 127, 0.1) 50%, transparent 51%);
    animation: matrix 10s linear infinite;
}

@keyframes matrix {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.terminal-text {
    font-size: 1.2rem;
    color: #00FF7F;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.terminal-text .line {
    display: block;
    margin-bottom: 0.5rem;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Main Content */
.main-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00FF7F;
    border-radius: 0;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(0, 255, 127, 0.3),
        inset 0 0 20px rgba(0, 255, 127, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00FF7F, transparent, #00FF7F);
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 255, 127, 0.5),
        inset 0 0 20px rgba(0, 255, 127, 0.2);
}

.card-title {
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.card-content {
    color: #E0E0E0;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background-color: #121212;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #00FF7F;
    margin-top: 4rem;
}

.footer-text {
    color: #666666;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Custom Cursor for Terminal Sections */
.terminal-cursor {
    cursor: none;
}

.terminal-cursor::after {
    content: '_';
    color: #00FF7F;
    animation: blink 1s infinite;
    font-weight: bold;
}

/* Responsive Design */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(18, 18, 18, 0.95);
        border: 1px solid #00FF7F;
        border-top: none;
    }

    .nav-menu.show {
        display: flex;
    }

    .dropdown-toggle {
        display: inline-block;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.8);
        margin-left: 1rem;
        border: none;
        box-shadow: none;
    }

    .menu-item.has-dropdown.active .dropdown-menu {
        display: block;
    }

    .main-link {
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 127, 0.3);
    }
}
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .terminal-text {
        font-size: 1rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
}

/* WordPress Specific Styles */
.wp-block-group {
    margin: 0;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Skip Link */
.skip-link {
    background: #00FF7F;
    color: #000000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    position: absolute;
    left: -9999px;
    z-index: 999999;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
    top: 0;
}
