/*
Theme Name: Cyber Portfolio
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A tech-focused WordPress portfolio and blog theme for cyber security professionals
Version: 1.0.0
License: GPL v2 or later
Text Domain: cyber-portfolio
Domain Path: /languages
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #1a1a2e;
    --text-color: #e4e4e7;
    --dark-bg: #0f0f1e;
    --card-bg: #16213e;
    --accent: #ff006e;
    --success: #00ff88;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: var(--secondary-color);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.site-title:hover {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--primary-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    margin: 0.5rem;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.site-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.content-area {
    min-width: 0;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Blog Posts */
.post-list {
    list-style: none;
}

.post-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-item:hover {
    background-color: rgba(0, 212, 255, 0.05);
    transform: translateX(5px);
}

.post-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Skills */
.skills-container {
    margin: 2rem 0;
}

.skill-item {
    background-color: var(--card-bg);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent));
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--primary-color);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Sidebar */
.sidebar .widget {
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.widget-title {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

/* Typography & code blocks */
pre, code, kbd {
    background-color: #0b0b18;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 4px;
}
pre {
    padding: 1rem;
    overflow: auto;
}
code {
    padding: 0.1rem 0.3rem;
}
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
    .site-content {
        grid-template-columns: 1fr;
    }
}
