/* ===================================
   Global Variables & Reset
   =================================== */

:root {
    --bg-dark: #0d0d1a;
    --bg-card: #1a1a2e;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --navy: #1e3a5f;
    --navy-light: #2d5a87;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --accent: #8b5cf6;
    --gradient: linear-gradient(135deg, var(--purple) 0%, var(--navy) 100%);
    --shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header & Navigation
   =================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    position: relative;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding-bottom: 5px;
    display: inline-block;
    position: relative;
}

/* Hover underline effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--purple-light);
}

/* Active page underline */
.nav-links a.active {
    color: var(--purple-light);
}

.nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--purple-light);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-submit {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

/* ===================================
   Hero Section (Main Page)
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.code-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.code-block .line {
    margin: 8px 0;
}

.code-block .keyword { color: var(--purple-light); }
.code-block .string { color: #4ade80; }
.code-block .comment { color: var(--text-secondary); }

/* ===================================
   Sections
   =================================== */

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Skills Section
   =================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.skill-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.skill-tag {
    background: rgba(124, 58, 237, 0.2);
    color: var(--purple-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ===================================
   Projects Section
   =================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image svg {
    width: 80px;
    height: 80px;
    fill: white;
    opacity: 0.8;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   News/Blog Section
   =================================== */

.news-section {
    background: rgba(26, 26, 46, 0.5);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(124, 58, 237, 0.1);
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s;
}

.news-card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
}

.news-card.active {
    border-color: var(--purple);
}

.news-date {
    color: var(--purple-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-card h3,
.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.news-card p,
.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.news-sidebar {
    position: sticky;
    top: 100px;
}

/* ===================================
   Blog Page Specific Styles
   =================================== */

.blog-header {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
}

.blog-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.blog-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Search and Filter Section */
.search-filter-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: var(--shadow);
}

.search-bar {
    position: relative;
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50px;
    padding: 15px 50px 15px 25px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--purple-light);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--purple-light);
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    color: var(--text-primary);
    font-weight: 600;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--bg-dark);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--purple-light);
    color: var(--purple-light);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.sort-select {
    background: var(--bg-dark);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    padding: 8px 35px 8px 15px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a78bfa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-select:focus {
    outline: none;
    border-color: var(--purple-light);
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.results-count {
    font-size: 0.95rem;
}

.clear-filters {
    color: var(--purple-light);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.clear-filters:hover {
    opacity: 0.8;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 80px;
}

/* Article Cards */
.articles-grid {
    display: grid;
    gap: 30px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(124, 58, 237, 0.3);
}

.article-image {
    width: 100%;
    height: 220px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.3;
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--purple-light);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.page-btn:hover {
    border-color: var(--purple-light);
    color: var(--purple-light);
}

.page-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Newsletter */
.newsletter {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin: 60px 0;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.newsletter h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--purple-light);
}

.newsletter-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
}

/* ===================================
   Article Page Specific Styles
   =================================== */

.article-header {
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--purple-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

.article-main {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 25px 0 12px;
    color: var(--purple-light);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 15px 0 15px 25px;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 10px;
}

.article-content pre {
    background: var(--bg-dark);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-content code {
    background: rgba(124, 58, 237, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--purple-light);
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* Related Articles */
.related-articles {
    padding: 80px 0;
    background: linear-gradient(to bottom, transparent, rgba(124, 58, 237, 0.05));
}

.related-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
}

.related-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ===================================
   Sidebar Styles
   =================================== */

.sidebar {
    position: sticky;
    top: 100px;
    margin-bottom: 100px;
    height: fit-content;
}

.sidebar-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 25px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--purple-light);
}

.sidebar-ad {
    background: var(--bg-dark);
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.sidebar-ad span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    cursor: pointer;
    transition: color 0.3s;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: var(--purple-light);
}

.category-name {
    color: var(--text-primary);
}

.category-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.popular-post,
.related-post {
    padding: 15px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.popular-post:last-child,
.related-post:last-child {
    border-bottom: none;
}

.popular-post a,
.related-post a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.popular-post a:hover,
.related-post a:hover {
    color: var(--purple-light);
}

.popular-date,
.related-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===================================
   Ad Banners
   =================================== */

.ad-banner {
    background: var(--bg-card);
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin: 40px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-ad {
    background: var(--bg-dark);
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-ad span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   Modal Styles
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 1;
}

.modal-close:hover {
    background: var(--purple);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.modal-body {
    padding: 40px;
}

.modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-date {
    color: var(--purple-light);
    margin-bottom: 20px;
}

.modal-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-text p {
    margin-bottom: 15px;
}

.modal-text h3 {
    color: var(--purple-light);
    margin: 20px 0 10px;
}

.modal-text code {
    background: rgba(124, 58, 237, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--purple-light);
}

.modal-text pre {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.modal-ad {
    background: var(--bg-dark);
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   Comments Section
   =================================== */

.comments-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 40px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.comments-header {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-count {
    background: var(--gradient);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.comment-form {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-notice {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 600;
    color: var(--purple-light);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.contact-item-text span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contact-item-text a,
.contact-item-text p {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* ===================================
   Footer
   =================================== */

footer {
    background: var(--bg-card);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-links h4 {
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul,
.footer-links ul {
    list-style: none;
}

.footer-section ul li,
.footer-links li {
    margin-bottom: 10px;
}

.footer-section a,
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-section a:hover,
.footer-links a:hover {
    color: var(--purple-light);
}

.footer-about .logo {
    margin-bottom: 15px;
    display: inline-block;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-contacts .contact-item {
    margin-bottom: 15px;
}

.footer-contacts .contact-icon {
    width: 40px;
    height: 40px;
}

.footer-contacts .contact-icon svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-link:hover {
    background: var(--purple);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* ===================================
   Success Message
   =================================== */

.success-message {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #4ade80;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.success-message.show {
    opacity: 1;
    max-height: 100px;
}

/* ===================================
   Scroll Animations
   =================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-layout,
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid rgba(124, 58, 237, 0.2);
        transition: left 0.3s;
        gap: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .blog-title {
        font-size: 2rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .article-image {
        height: 180px;
    }

    .article-main {
        padding: 25px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}