/* --------------------------------------------------
   Meer Lashkr Portfolio - Main Stylesheet
-------------------------------------------------- */

:root {
    --bg-dark: #070a13;
    --bg-card: rgba(17, 25, 40, 0.6);
    --bg-glass: rgba(10, 15, 30, 0.7);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --accent-teal: #0d9488;
    --accent-teal-rgb: 13, 148, 136;
    --accent-violet: #8b5cf6;
    --accent-violet-rgb: 139, 92, 246;
    --accent-emerald: #10b981;
    --accent-emerald-rgb: 16, 185, 129;

    --text-white: #f3f4f6;
    --text-gray: #a1a1aa;
    --text-muted: #52525b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Base & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* --- Background Ambient Glows --- */
.ambient-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.glow-1 {
    top: -10vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(139,92,246,0.6) 0%, rgba(0,0,0,0) 70%);
    animation: pulseGlow 12s infinite alternate;
}

.glow-2 {
    top: 50vh;
    right: -10vw;
    background: radial-gradient(circle, rgba(13,148,136,0.6) 0%, rgba(0,0,0,0) 70%);
    animation: pulseGlow 18s infinite alternate-reverse;
}

.glow-3 {
    bottom: -10vw;
    left: 20vw;
    background: radial-gradient(circle, rgba(16,185,129,0.5) 0%, rgba(0,0,0,0) 70%);
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.1) translate(3%, 5%); opacity: 0.18; }
    100% { transform: scale(0.9) translate(-3%, -2%); opacity: 0.12; }
}

/* --- Layout Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-teal);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-teal) 50%, var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-teal) 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-teal);
    transform: translateY(-3px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-teal);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-text:hover {
    color: var(--accent-violet);
}

.btn-text i {
    transition: transform 0.2s ease;
}

.btn-text:hover i {
    transform: translateX(3px);
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-teal);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-teal));
    transition: var(--transition-smooth);
}

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

.btn-contact {
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    border: 1px solid rgba(13, 148, 136, 0.4);
    background: rgba(13, 148, 136, 0.05);
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 11rem;
    padding-bottom: 5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: var(--accent-teal);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    display: inline-block;
    position: relative;
}

.badge-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: scale(1.5);
    opacity: 0.4;
    animation: ping 1.5s infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 1.75rem;
    min-height: 2.5rem;
    height: auto;
}

.hero-subtitle span#typewriter {
    color: var(--text-white);
}

.cursor {
    animation: blink 0.8s infinite;
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-socials a {
    color: var(--text-gray);
    font-size: 1.25rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
}

.hero-socials a:hover {
    color: var(--text-white);
    border-color: var(--accent-teal);
    background: rgba(13, 148, 136, 0.05);
    transform: translateY(-3px);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    width: 320px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    position: relative;
    background: var(--bg-card);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.05);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 10, 19, 0.6) 0%, rgba(0,0,0,0) 50%);
}

.floating-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.floating-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-1 {
    top: 15%;
    left: -20%;
}

.card-2 {
    bottom: 10%;
    right: -15%;
}

.icon-box {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-violet);
}

.card-2 .icon-box {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.floating-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.floating-card p {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* --- Stats Section --- */
.stats-section {
    background: rgba(10, 15, 30, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-teal);
    background: linear-gradient(135deg, var(--text-white), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background-color: var(--border-color);
}

/* --- Pillars (About) Section --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-teal));
    opacity: 0;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: rgba(17, 25, 40, 0.8);
    box-shadow: var(--shadow-md);
}

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

.pillar-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-violet);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.pillar-card:nth-child(2) .pillar-icon {
    background: rgba(13, 148, 136, 0.08);
    color: var(--accent-teal);
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.pillar-card:nth-child(3) .pillar-icon {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.pillar-card h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pillar-role {
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.pillar-card:nth-child(2) .pillar-role {
    color: var(--accent-violet);
}

.pillar-card:nth-child(3) .pillar-role {
    color: var(--accent-emerald);
}

.pillar-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pillar-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.pillar-bullets li {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pillar-bullets li i {
    width: 1rem;
    height: 1rem;
    color: var(--accent-teal);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.skills-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.skills-category h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.skills-category h3 i {
    color: var(--accent-teal);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

.skill-tag:hover {
    color: var(--text-white);
    background: rgba(13, 148, 136, 0.06);
    border-color: rgba(13, 148, 136, 0.4);
    transform: translateY(-2px);
}

/* --- Projects Section --- */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: var(--text-white);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-image-box {
    height: 180px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(13, 148, 136, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.project-card:nth-child(even) .project-image-box {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(16, 185, 129, 0.08));
}

.project-icon-large {
    font-size: 3rem;
    color: var(--accent-violet);
    opacity: 0.8;
}

.project-card:nth-child(even) .project-icon-large {
    color: var(--accent-teal);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.proj-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-teal);
    background: rgba(13, 148, 136, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
}

.project-card:nth-child(even) .proj-tag {
    color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.08);
}

.project-content h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* --- Timeline (Experience) Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 2.25rem;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--accent-teal);
    position: absolute;
    left: 2.25rem;
    top: 0.5rem;
    margin-left: -8px;
    border: 3px solid var(--bg-dark);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-violet);
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.3);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    background: rgba(17, 25, 40, 0.8);
}

.timeline-content h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    background: rgba(7, 10, 19, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-teal);
    background: rgba(7, 10, 19, 0.6);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.btn-submit {
    width: 100%;
}

.form-status {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    text-align: center;
}

.form-status.success {
    color: var(--accent-emerald);
}

.form-status.error {
    color: #ef4444;
}

.contact-info h3 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-text {
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent-teal);
    font-size: 1.25rem;
}

.info-item h5 {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.info-item p {
    font-weight: 600;
}

.social-links-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-pill:hover {
    border-color: var(--accent-teal);
    background: rgba(13, 148, 136, 0.05);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    background: #05070d;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

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

/* --- Project Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    background: #0a0f1e;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
}

.modal.open .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-header-section {
    margin-bottom: 2rem;
}

.modal-header-section h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 600;
}

.modal-content-text {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.modal-content-text h4 {
    color: var(--text-white);
    margin: 1.5rem 0 0.5rem 0;
    font-family: var(--font-title);
    font-size: 1.15rem;
}

.modal-content-text ul {
    margin-left: 1.5rem;
    list-style: disc;
    margin-bottom: 1rem;
}

.modal-content-text li {
    margin-bottom: 0.4rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* --- Blog Page Specific Styles --- */
.blog-main-content {
    padding-top: 7.5rem;
    min-height: calc(100vh - 12rem);
}

.blog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.blog-filter-btn:hover, .blog-filter-btn.active {
    background: rgba(13, 148, 136, 0.08);
    border-color: var(--accent-teal);
    color: var(--text-white);
}

.blog-search-box {
    position: relative;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
}

#blog-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    transition: var(--transition-smooth);
}

#blog-search-input:focus {
    border-color: var(--accent-teal);
    background: rgba(255, 255, 255, 0.04);
}

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

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.blog-card-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(13, 148, 136, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-teal);
}

.blog-card:nth-child(even) .blog-card-image {
    color: var(--accent-violet);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(139, 92, 246, 0.05));
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--accent-teal);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.blog-card-content h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog-card-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-footer span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Reader Page Specific Styles --- */
.blog-reader-section {
    padding-top: 2rem;
    padding-bottom: 8rem;
}

.blog-reader-container {
    max-width: 800px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-back:hover {
    color: var(--accent-teal);
}

.full-article-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.full-article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.full-article-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.full-article-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.full-article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-white);
}

.full-article-body p {
    margin-bottom: 2rem;
}

.full-article-body h2 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 3rem 0 1.25rem 0;
    color: var(--text-white);
}

.full-article-body h3 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem 0;
}

.full-article-body ul, .full-article-body ol {
    margin-left: 1.75rem;
    margin-bottom: 2rem;
}

.full-article-body li {
    margin-bottom: 0.5rem;
}

.full-article-body blockquote {
    border-left: 4px solid var(--accent-teal);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-gray);
    margin: 2.5rem 0;
}

.full-article-body code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.full-article-body pre {
    background: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.full-article-body pre code {
    background: none;
    padding: 0;
    font-size: 0.85em;
    color: var(--text-white);
}

.hidden {
    display: none !important;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 4.5rem;
        right: -100%;
        width: 70%;
        height: calc(100vh - 4.5rem);
        background: rgba(7, 10, 19, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        transition: var(--transition-smooth);
        padding: 3rem 2rem;
    }

    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .btn-contact {
        width: 100%;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .full-article-title {
        font-size: 2.25rem;
    }

    .stats-container {
        justify-content: center;
    }

    .stat-item {
        flex: unset;
        width: 45%;
    }

    .stat-divider {
        display: none;
    }
}
