:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-yellow: #f4a261;
    --text-color: #0a0a0a;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f5;
    --border-color: #000000;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
    letter-spacing: 0.02em;
}

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

/* Navigation */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 60px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Animated Shapes */
.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.08;
    animation: float 25s infinite ease-in-out;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 10%;
    left: 5%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-yellow);
    bottom: 15%;
    right: 10%;
    border-radius: 0;
    animation-delay: 8s;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: var(--secondary-color);
    top: 40%;
    right: 15%;
    border-radius: 50%;
    animation-delay: 15s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 30px) rotate(45deg);
    }
}

/* Blog Section */
.blog-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: left;
    font-weight: 900;
    letter-spacing: -0.02em;
    border-left: 6px solid var(--primary-color);
    padding-left: 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.post-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--primary-color);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    transform: translate(3px, 3px);
    border-color: var(--primary-color);
}

.post-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.post-excerpt {
    color: var(--text-color);
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* Post View */
.post-view {
    margin-bottom: 60px;
}

.post-view.hidden {
    display: none;
}

.back-button {
    background: var(--text-color);
    color: white;
    border: 3px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.back-button:hover {
    background: var(--primary-color);
    transform: translate(2px, 2px);
}

.post-content {
    background: var(--bg-color);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 50px;
    animation: fadeIn 0.5s ease;
}

.post-content h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    border-left: 6px solid var(--primary-color);
    padding-left: 20px;
}

.post-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 900;
    letter-spacing: -0.01em;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 900;
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-content code {
    background: #f0f0f0;
    padding: 3px 8px;
    border: 1px solid #dddddd;
    border-radius: 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 25px;
    border: 3px solid var(--border-color);
    border-radius: 0;
    overflow-x: auto;
    margin-bottom: 25px;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--border-color);
    border-radius: 0;
    margin: 25px 0;
}

.post-content blockquote {
    border-left: 6px solid var(--primary-color);
    background: var(--bg-secondary);
    padding: 20px 20px 20px 25px;
    margin: 25px 0;
    color: var(--text-color);
    font-style: italic;
    font-weight: 500;
}

.post-content ul,
.post-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

/* About Section */
.about-section {
    margin-bottom: 60px;
}

.about-section.hidden {
    display: none;
}

.about-content {
    background: var(--bg-color);
    border: 3px solid var(--border-color);
    border-radius: 0;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: left;
    font-weight: 900;
    letter-spacing: -0.02em;
    border-left: 6px solid var(--primary-color);
    padding-left: 20px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 3px solid var(--border-color);
    color: var(--text-light);
    margin-top: 80px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 1s ease;
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 15px;
    }

    .post-content,
    .about-content {
        padding: 25px;
    }
}