/*
Theme Name: Glitch Gang
Theme URI: https://glitchgang.com/
Author: Glitch Gang
Author URI: https://glitchgang.com/
Description: A vibrant community theme for tech enthusiasts and digital creators.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glitch-gang
*/

/* Global Styles */
:root {
    --primary-color: #FFD700; /* Gold color from logo */
    --secondary-color: #DAA520; /* Darker gold for contrast */
    --dark-color: #121212; /* Deep black background */
    --light-color: #f8f9fa;
    --accent-color: #FFD700; /* Gold accent */
    --danger-color: #ff3300;
    --success-color: #00ff00;
    --text-color: #e0e1dd;
    --border-radius: 0px;
    --box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3); /* Gold shadow */
    --transition: all 0.3s ease;
    --glitch-shadow: 0 0 10px rgba(255, 215, 0, 0.7); /* Gold glitch effect */
}

/* Responsive media defaults */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Improve small-screen layout for contact section */
@media (max-width: 768px) {
    .contact-container {
        display: block;
    }
    .contact-form, .contact-info {
        width: 100%;
        margin: 0 0 2rem 0;
    }
}

/* Footer links stack on mobile */
@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Typography scaling for headers on very small devices */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
}
/* Light Theme Variables */
[data-theme="light"] {
    --primary-color: #DAA520; /* Darker gold for light theme */
    --secondary-color: #B8860B; /* Even darker gold */
    /* Keep a dark base to preserve design in light mode */
    --dark-color: #121212; /* Dark background retained */
    --light-color: #f8f9fa; /* Light text/background accents */
    --accent-color: #DAA520;
    --text-color: #e0e1dd; /* Light text for dark base */
    --box-shadow: 0 4px 20px rgba(218, 165, 32, 0.3);
    --glitch-shadow: 0 0 10px rgba(218, 165, 32, 0.7);
}

/* Glitch Blogs & Admin Styles */
.admin-dashboard .form-group textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #eee;
    padding: 0.8rem;
    font-family: inherit;
    resize: vertical;
}

.status-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 2px;
}

.status-read { background: #222; color: #666; }
.status-unread { background: var(--primary-color); color: #000; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: #111;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 600px;
    position: relative;
    padding: 2rem;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover { color: var(--primary-color); }

/* Global Grid Layouts */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #0a0a0a;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #222;
}

.data-table th {
    background: #111;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.data-table tr:hover { background: #151515; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(18, 18, 18, 0.98);
        padding: 2rem;
        border-bottom: 2px solid var(--primary-color);
    }
    .menu-toggle { display: block; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(45deg, rgba(255, 221, 0, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 221, 0, 0.05) 50%, rgba(255, 221, 0, 0.05) 75%, transparent 75%, transparent),
        linear-gradient(-45deg, rgba(255, 221, 0, 0.03) 25%, transparent 25%, transparent 50%, rgba(255, 221, 0, 0.03) 50%, rgba(255, 221, 0, 0.03) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Press Start 2P', 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-header p {
    color: #adb5bd;
    max-width: 600px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
    position: relative;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(255, 221, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    margin-left: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px var(--primary-color);
    letter-spacing: 1px;
}

.shield-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    box-shadow: var(--glitch-shadow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    color: #adb5bd;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(6px);
}
.breadcrumbs a {
    color: #adb5bd;
}
.breadcrumbs a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}
.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #666;
}
.breadcrumbs [aria-current="page"] {
    color: var(--primary-color);
}
/* Theme Toggle Button */
.theme-toggle {
    margin-right: 1rem;
}

.theme-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    box-shadow: var(--glitch-shadow);
    transform: scale(1.1);
}

/* Top Logo Section */
.top-logo-section {
    position: relative;
    padding: 100px 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(30, 30, 30, 0.9) 100%);
    overflow: hidden;
}

.logo-container {
    flex: 0 0 auto;
    z-index: 10;
}

.top-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    animation: pulse 3s infinite alternate;
}

.dots-pattern {
    flex: 1;
    height: 200px;
    background-image: radial-gradient(circle, #FFD700 2px, transparent 2px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    /* Updated Premium SaaS Quality Background */
    background: 
        radial-gradient(circle at 15% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 20%),
        linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle Grid Overlay for Tech Feel */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

/* Add left-aligned hero variant for home */
.hero.hero-left {
    justify-content: flex-start;
}

.hero-left .hero-content {
    padding-left: 2rem;
}

/* Brand row: gold logo + heading aligned left */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero overrides to expand media and logo size */
.hero-left .hero-content {
    max-width: 1000px;
}

/* Right-size the gold logo and remove effects in hero */
.hero-left .hero-brand .gold-logo {
    width: 300px;
    height: auto;
}
.hero-left .gold-logo {
    filter: none;
    animation: none;
}

/* Keep logo and text side-by-side without wrapping */
.hero-left .hero-brand {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-brand .gold-logo {
    width: 240px;
    height: auto;
}

/* Hero Image */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 50%;
    position: relative;
    z-index: 2;
}

.gold-logo {
    width: 420px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
    animation: pulse 3s infinite alternate;
    position: relative;
    z-index: 2;
}

/* Glitch Gang Logo (keeping for backward compatibility) */
.gg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
}

.gg-logo svg {
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    letter-spacing: 0.06em; /* expand character spacing without changing size */
    word-spacing: 0.2em;    /* add breathing room between words */
    padding: 0.4rem 0.8rem; /* subtle padding around header text */
}

/* Top (hero) section header spacing rules: apply to h1-h3 only in hero */
.hero {
    --header-space-scale: 1; /* base scale for spacing ratios */
}

.hero .hero-content h1,
.hero .hero-content h2,
.hero .hero-content h3 {
    /* consistent spacing ratios using scale; font sizes unchanged */
    margin-block: calc(0.8rem * var(--header-space-scale));
    padding-inline: calc(0.6rem * var(--header-space-scale));
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hero .hero-content h2 { letter-spacing: 0.04em; word-spacing: 0.16em; }
.hero .hero-content h3 { letter-spacing: 0.03em; word-spacing: 0.12em; }

/* Responsive adjustments: reduce spacing scale on smaller screens */
@media (max-width: 768px) {
    .hero { --header-space-scale: 0.85; }
}
@media (max-width: 480px) {
    .hero { --header-space-scale: 0.7; }
}


.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #adb5bd;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.cyber-graphic {
    width: 500px;
    height: 500px;
    position: relative;
    display: none;
}

.network-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: pulse 3s infinite alternate;
}

.shield-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    animation: shield-pulse 2s infinite alternate;
}

.shield-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background-color: rgba(218, 165, 32, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.5);
    animation: shield-pulse 2s infinite alternate 0.5s;
}

.shield-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: rgba(76, 201, 240, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.5);
    animation: shield-pulse 2s infinite alternate 1s;
}

/* Threat Counter Section */
.threat-counter {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 3rem 2rem;
    background-color: rgba(20, 39, 78, 0.3);
    border-radius: 10px;
    margin: -50px auto 0;
    max-width: 1200px;
    position: relative;
    z-index: 10;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-item {
    text-align: center;
    padding: 1rem;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.counter-label {
    font-size: 1rem;
    color: #adb5bd;
}

/* Services Section */
.services {
    background-color: rgba(13, 27, 42, 0.5);
}

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

.service-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6), rgba(18, 18, 18, 0.8));
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more i {
    transition: var(--transition);
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* About Section */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    color: var(--success-color);
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-dashboard {
    width: 100%;
    height: 400px;
    background-color: rgba(30, 30, 30, 0.3);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: var(--box-shadow);
}

.security-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* Center and fit the gold logo inside the dashboard rectangle */
.security-dashboard .dashboard-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    z-index: 1;
}

/* Solutions Section */
.solutions {
    background-color: rgba(18, 18, 18, 0.5);
}

.solutions-tabs {
    margin-top: 3rem;
}

.tab-headers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-header {
    padding: 0.8rem 1.5rem;
    background-color: rgba(30, 30, 30, 0.3);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.05);
}

.tab-header.active, .tab-header:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.tab-content {
    display: none;
    background: linear-gradient(145deg, rgba(20, 39, 78, 0.6), rgba(13, 27, 42, 0.8));
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tab-content p {
    margin-bottom: 1.5rem;
}

.solution-features {
    margin-bottom: 2rem;
}

.solution-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution-features i {
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    padding: 2rem;
}
