/* ==========================================================================
   Jenson Jose Portfolio - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   CSS Variables / Theme
   ========================================================================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --accent: #10b981;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --card-bg: rgba(30, 41, 59, 0.5);
    --border: rgba(148, 163, 184, 0.1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Animated Background
   ========================================================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 40% 40%, rgba(14, 165, 233, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 45%);
    animation: bgMove 25s ease-in-out infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 70% 90%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 40%);
    animation: bgMove2 30s ease-in-out infinite reverse;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(3%, 3%) rotate(2deg) scale(1.02); }
    50% { transform: translate(-2%, 5%) rotate(0deg) scale(1); }
    75% { transform: translate(-3%, 2%) rotate(-2deg) scale(1.02); }
}

@keyframes bgMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-4%, 2%) scale(1.03); }
    66% { transform: translate(3%, -3%) scale(0.98); }
}

/* ==========================================================================
   Floating Particles
   ========================================================================== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8), 0 0 20px rgba(99, 102, 241, 0.4);
    animation: float-up linear infinite;
}

.particles span:nth-child(1) { left: 10%; animation-duration: 20s; animation-delay: 0s; width: 3px; height: 3px; }
.particles span:nth-child(2) { left: 20%; animation-duration: 25s; animation-delay: -5s; width: 5px; height: 5px; background: rgba(236, 72, 153, 0.6); box-shadow: 0 0 10px rgba(236, 72, 153, 0.8); }
.particles span:nth-child(3) { left: 30%; animation-duration: 18s; animation-delay: -2s; width: 4px; height: 4px; }
.particles span:nth-child(4) { left: 40%; animation-duration: 22s; animation-delay: -7s; width: 6px; height: 6px; background: rgba(14, 165, 233, 0.6); box-shadow: 0 0 10px rgba(14, 165, 233, 0.8); }
.particles span:nth-child(5) { left: 50%; animation-duration: 28s; animation-delay: -3s; width: 3px; height: 3px; }
.particles span:nth-child(6) { left: 60%; animation-duration: 19s; animation-delay: -8s; width: 5px; height: 5px; background: rgba(168, 85, 247, 0.6); box-shadow: 0 0 10px rgba(168, 85, 247, 0.8); }
.particles span:nth-child(7) { left: 70%; animation-duration: 24s; animation-delay: -1s; width: 4px; height: 4px; }
.particles span:nth-child(8) { left: 80%; animation-duration: 21s; animation-delay: -6s; width: 3px; height: 3px; background: rgba(16, 185, 129, 0.6); box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); }
.particles span:nth-child(9) { left: 90%; animation-duration: 26s; animation-delay: -4s; width: 5px; height: 5px; }
.particles span:nth-child(10) { left: 15%; animation-duration: 23s; animation-delay: -9s; width: 4px; height: 4px; background: rgba(249, 115, 22, 0.5); box-shadow: 0 0 10px rgba(249, 115, 22, 0.7); }
.particles span:nth-child(11) { left: 25%; animation-duration: 27s; animation-delay: -2s; width: 3px; height: 3px; }
.particles span:nth-child(12) { left: 45%; animation-duration: 20s; animation-delay: -5s; width: 5px; height: 5px; background: rgba(6, 182, 212, 0.6); box-shadow: 0 0 10px rgba(6, 182, 212, 0.8); }
.particles span:nth-child(13) { left: 55%; animation-duration: 24s; animation-delay: -8s; width: 4px; height: 4px; }
.particles span:nth-child(14) { left: 75%; animation-duration: 22s; animation-delay: -3s; width: 6px; height: 6px; background: rgba(99, 102, 241, 0.5); }
.particles span:nth-child(15) { left: 85%; animation-duration: 19s; animation-delay: -6s; width: 3px; height: 3px; background: rgba(236, 72, 153, 0.5); box-shadow: 0 0 10px rgba(236, 72, 153, 0.7); }

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==========================================================================
   Floating Geometric Shapes
   ========================================================================== */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: float-shape ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-duration: 15s;
    border-color: rgba(99, 102, 241, 0.15);
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    border-radius: 50%;
    animation-duration: 18s;
    animation-delay: -3s;
    border-color: rgba(236, 72, 153, 0.12);
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 80%;
    transform: rotate(45deg);
    animation-duration: 20s;
    animation-delay: -5s;
    border-color: rgba(14, 165, 233, 0.15);
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-duration: 22s;
    animation-delay: -7s;
    border-color: rgba(168, 85, 247, 0.12);
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 75%;
    right: 30%;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation-duration: 16s;
    animation-delay: -2s;
    border-color: rgba(16, 185, 129, 0.15);
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(20px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-10px, 20px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translate(15px, 10px) rotate(270deg) scale(1.05);
    }
}

/* ==========================================================================
   Code Rain Effect
   ========================================================================== */
.code-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.code-rain span {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(99, 102, 241, 0.15);
    animation: code-fall linear infinite;
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
}

.code-rain span:nth-child(1) { left: 5%; animation-duration: 30s; animation-delay: 0s; }
.code-rain span:nth-child(2) { left: 15%; animation-duration: 35s; animation-delay: -5s; color: rgba(168, 85, 247, 0.12); }
.code-rain span:nth-child(3) { left: 25%; animation-duration: 28s; animation-delay: -10s; }
.code-rain span:nth-child(4) { left: 35%; animation-duration: 32s; animation-delay: -15s; color: rgba(14, 165, 233, 0.12); }
.code-rain span:nth-child(5) { left: 45%; animation-duration: 38s; animation-delay: -8s; }
.code-rain span:nth-child(6) { left: 55%; animation-duration: 33s; animation-delay: -12s; color: rgba(16, 185, 129, 0.12); }
.code-rain span:nth-child(7) { left: 65%; animation-duration: 29s; animation-delay: -3s; }
.code-rain span:nth-child(8) { left: 75%; animation-duration: 36s; animation-delay: -18s; color: rgba(236, 72, 153, 0.1); }
.code-rain span:nth-child(9) { left: 85%; animation-duration: 31s; animation-delay: -7s; }
.code-rain span:nth-child(10) { left: 95%; animation-duration: 34s; animation-delay: -14s; color: rgba(249, 115, 22, 0.1); }

@keyframes code-fall {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-1);
    animation: fadeInUp 0.8s ease;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--dark);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.role-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    color: #a5b4fc;
    transition: all 0.3s ease;
}

.role-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1.5rem auto 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--dark-lighter);
    border-color: var(--primary);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Social Links
   ========================================================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--text);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.social-link.github:hover { color: #fff; }
.social-link.linkedin:hover { color: #0a66c2; }
.social-link.twitter:hover { color: #1da1f2; }
.social-link.stackoverflow:hover { color: #f48024; }
.social-link.blog:hover { color: var(--accent); }

/* ==========================================================================
   Section Styles
   ========================================================================== */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card-spacer {
    min-width: 280px;
}

@media (max-width: 900px) {
    .skill-card-spacer {
        display: none;
    }
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.skill-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.github-repos-container {
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.github-repos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.github-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.github-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.github-repo-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.github-repo-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.github-repo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.github-repo-header i {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.github-repo-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.github-repo-name:hover {
    text-decoration: underline;
}

.github-repo-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.github-repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.github-repo-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.github-repo-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.github-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.github-cta-link {
    text-align: center;
    margin-top: 1rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.project-card > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-features {
    list-style: none;
    margin-bottom: 2rem;
}

.project-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.project-features li i {
    color: var(--accent);
    margin-top: 4px;
}

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

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-posts-container {
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.blog-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-post-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.blog-post-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.blog-post-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-post-date i {
    font-size: 0.75rem;
}

.blog-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.blog-post-link:hover {
    gap: 0.6rem;
}

.blog-post-link i {
    font-size: 0.8rem;
}

.blog-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.blog-cta-link {
    text-align: center;
    margin-top: 1rem;
}

.blog-cta {
    background: var(--gradient-1);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.blog-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.blog-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
}

.blog-cta .btn {
    background: white;
    color: var(--primary-dark);
    position: relative;
}

.blog-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    min-width: 160px;
}

.contact-social-link i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.contact-social-link span {
    font-weight: 600;
    font-size: 1rem;
}

.contact-social-link small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.contact-social-link:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.contact-social-link.linkedin:hover {
    border-color: #0a66c2;
    box-shadow: 0 10px 30px rgba(10, 102, 194, 0.3);
}

.contact-social-link.linkedin:hover i {
    color: #0a66c2;
}

.contact-social-link.twitter:hover {
    border-color: #1da1f2;
    box-shadow: 0 10px 30px rgba(29, 161, 242, 0.3);
}

.contact-social-link.twitter:hover i {
    color: #1da1f2;
}

.contact-social-link.github:hover {
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.contact-social-link.email:hover {
    border-color: #ea4335;
    box-shadow: 0 10px 30px rgba(234, 67, 53, 0.3);
}

.contact-social-link.email:hover i {
    color: #ea4335;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-text span {
    color: #ef4444;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        order: -1;
    }

    .blog-cta {
        padding: 2rem;
    }

    .blog-cta h2 {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
