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

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Animated gradient orbs */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 600px at 15% 30%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(circle 800px at 85% 70%, rgba(168, 85, 247, 0.12), transparent),
        radial-gradient(circle 500px at 50% 90%, rgba(6, 182, 212, 0.1), transparent);
    z-index: 1;
}

/* Grid pattern overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 0.5px, transparent 0.5px),
        linear-gradient(90deg, var(--border-color) 0.5px, transparent 0.5px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 2;
}

/* Dot pattern */
.hero-section {
    background-image:
        radial-gradient(circle, var(--border-color) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0;
}

[data-theme="light"] .hero-section::before {
    background:
        radial-gradient(circle 600px at 15% 30%, rgba(37, 99, 235, 0.12), transparent),
        radial-gradient(circle 800px at 85% 70%, rgba(147, 51, 234, 0.1), transparent),
        radial-gradient(circle 500px at 50% 90%, rgba(8, 145, 178, 0.08), transparent);
}

[data-theme="light"] .hero-section::after {
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .hero-section {
    background-image:
        radial-gradient(circle, rgba(0, 0, 0, 0.1) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-left {
    text-align: left;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Code Editor Styles */
.code-editor {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .code-editor {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.editor-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.editor-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: auto;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red {
    background: #ff5f57;
}

.control-dot.yellow {
    background: #ffbd2e;
}

.control-dot.green {
    background: #28ca42;
}

.editor-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.editor-body {
    padding: 1.5rem;
    min-height: 350px;
    position: relative;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.editor-body pre {
    margin: 0;
    color: var(--text-primary);
}

.editor-body code {
    display: block;
    white-space: pre;
}

/* Syntax Highlighting */
.keyword { color: #ff79c6; }
.function { color: #50fa7b; }
.string { color: #f1fa8c; }
.comment { color: #6272a4; font-style: italic; }
.variable { color: #8be9fd; }
.operator { color: #ff79c6; }

[data-theme="light"] .keyword { color: #d73a49; }
[data-theme="light"] .function { color: #22863a; }
[data-theme="light"] .string { color: #032f62; }
[data-theme="light"] .comment { color: #6a737d; }
[data-theme="light"] .variable { color: #005cc5; }
[data-theme="light"] .operator { color: #d73a49; }

/* Cursor Animation */
.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--primary-color);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-right {
        order: -1;
    }

    .code-editor {
        max-width: 100%;
    }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .badge {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #3b82f6, #06b6d4, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.625;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.625;
}

/* ===== BUTTONS ===== */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.5);
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 1rem;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.section-alt {
    background: var(--bg-secondary);
}

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

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto;
}

.section-header-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 3rem;
}

/* ===== GRID STYLES ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(1, 1fr);
}

/* ===== CARD STYLES ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

[data-theme="light"] .card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.card-icon {
    margin: 0 auto 1rem;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-align: center;
}

.card-description {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

/* ===== PROJECT CARD STYLES ===== */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

[data-theme="light"] .project-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 12rem;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

[data-theme="light"] .project-tag {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    text-decoration: none;
}

.project-links a:hover {
    color: var(--primary-color);
}

/* ===== PROJECT FOOTER ===== */
.project-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

[data-theme="light"] .project-github-btn::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 0, 0, 0.05),
        transparent);
}

.project-github-btn:hover::before {
    left: 100%;
}

.project-github-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .project-github-btn:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.project-github-btn i {
    font-size: 1.25rem;
}

.project-no-source {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-style: italic;
}

.project-no-source i {
    font-size: 1rem;
}

/* ===== IMAGE COUNT BADGE ===== */
.image-count-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
}

[data-theme="light"] .image-count-badge {
    background: rgba(0, 0, 0, 0.6);
}

.image-count-badge i {
    font-size: 1rem;
}

/* ===== SEE MORE LINK ===== */
.see-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.see-more:hover {
    filter: brightness(110%);
    text-decoration: underline;
}

/* ===== BLOG CARD STYLES ===== */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

[data-theme="light"] .blog-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .blog-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 12rem;
    background: var(--bg-secondary);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    cursor: pointer;
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.blog-title:hover {
    color: var(--primary-color);
}

.blog-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

[data-theme="light"] .blog-tag {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

/* ===== COLOR VARIANTS ===== */
/* Cyan */
.bg-cyan {
    background: rgba(6, 182, 212, 0.2);
}

.bg-cyan:hover {
    background: rgba(6, 182, 212, 0.3);
}

.text-cyan {
    color: #22d3ee;
}

[data-theme="light"] .text-cyan {
    color: #0891b2;
}

.category-cyan,
.tag-cyan {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.3);
}

[data-theme="light"] .category-cyan,
[data-theme="light"] .tag-cyan {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.3);
}

/* Orange */
.bg-orange {
    background: rgba(249, 115, 22, 0.2);
}

.bg-orange:hover {
    background: rgba(249, 115, 22, 0.3);
}

.text-orange {
    color: #fb923c;
}

[data-theme="light"] .text-orange {
    color: #ea580c;
}

/* Purple */
.bg-purple {
    background: rgba(168, 85, 247, 0.2);
}

.bg-purple:hover {
    background: rgba(168, 85, 247, 0.3);
}

.text-purple {
    color: #c084fc;
}

[data-theme="light"] .text-purple {
    color: #9333ea;
}

.category-purple,
.tag-purple {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

[data-theme="light"] .category-purple,
[data-theme="light"] .tag-purple {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
    border-color: rgba(147, 51, 234, 0.3);
}

/* Blue */
.bg-blue {
    background: rgba(59, 130, 246, 0.2);
}

.bg-blue:hover {
    background: rgba(59, 130, 246, 0.3);
}

.text-blue {
    color: #60a5fa;
}

[data-theme="light"] .text-blue {
    color: #2563eb;
}

.category-blue,
.tag-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .category-blue,
[data-theme="light"] .tag-blue {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile-first adjustments (default styles for mobile) */
@media (max-width: 639px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 0 1rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }

    .btn-group {
        width: 100%;
    }

    .btn {
        width: 100%;
        font-size: 0.9375rem;
        padding: 0.875rem 1.25rem;
    }

    .social-links {
        justify-content: center;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 1rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .code-editor {
        max-width: 100%;
    }

    .editor-body {
        padding: 1rem;
        min-height: 250px;
        font-size: 0.75rem;
    }

    .project-card,
    .blog-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .project-image,
    .blog-image {
        height: 10rem;
    }

    .project-content,
    .blog-content {
        padding: 1rem;
    }

    .project-title,
    .blog-title {
        font-size: 1.125rem;
    }

    .project-description,
    .blog-description {
        font-size: 0.875rem;
    }
}

@media (min-width: 640px) {
    .btn-group {
        flex-direction: row;
    }

    .hero-title {
        font-size: 3rem;
    }

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header-flex {
        flex-direction: row;
        align-items: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-title {
        font-size: 4.5rem;
    }

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