/*
Theme Name: Saad Portfolio
Theme URI: https://saadsharifahmed.com
Author: Saad Sharif Ahmed
Author URI: https://saadsharifahmed.com
Description: A modern, professional portfolio theme for Saad Sharif Ahmed - AI Engineer & AI Product Manager
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saad-portfolio
*/

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--gray);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

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

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

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.search-toggle:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    transition: color 0.3s ease;
    line-height: 1;
}

.search-close:hover {
    color: var(--primary);
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-form {
    position: relative;
    width: 100%;
}

.search-form label {
    width: 100%;
}

.search-field {
    width: 100%;
    padding: 1rem 3rem 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gray-light);
    outline: none;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-color: var(--primary);
}

.search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 2rem;
    padding: 0;
}

.search-submit svg {
    width: 32px;
    height: 32px;
}

/* Search Results Page */
.search-results-page {
    padding-top: 80px;
}

.search-header {
    background: var(--light);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.search-header h1 span {
    color: var(--primary);
    font-style: italic;
}

.search-page-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-page-form .search-field {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--gray);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.search-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.search-item:hover {
    transform: translateY(-5px);
}

.search-item-image {
    height: 200px;
    overflow: hidden;
}

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

.search-item:hover .search-item-image img {
    transform: scale(1.05);
}

.search-item-content {
    padding: 1.5rem;
}

.search-item-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-item h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.search-item h2 a {
    color: var(--dark);
    transition: color 0.3s ease;
}

.search-item h2 a:hover {
    color: var(--primary);
}

.search-item p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results h2 {
    margin-bottom: 1rem;
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #0a0a1a 0%, #0f0f2a 50%, #1a1a3a 100%);
    position: relative;
    overflow: hidden;
}

.neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    z-index: 2;
}

.hero-content h1 {
    color: var(--white);
}

.hero-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.hero-content .hero-text {
    color: rgba(255, 255, 255, 0.6);
}

.hero-content .hero-badge {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-stats {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.6);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.2s ease;
}

.hero-badge::before {
    content: '✨';
}

.hero h1 {
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease 0.2s both;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.2s ease 0.4s both;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeInUp 1.2s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--light);
    box-shadow: var(--shadow);
}

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

.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-download svg {
    transition: transform 0.3s ease;
}

.btn-download:hover svg {
    transform: translateY(2px);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1.6s ease 0.6s both;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.4) 50%, rgba(168, 85, 247, 0.4) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 6s ease-in-out infinite, pulse 3s ease-in-out infinite, rotate 20s linear infinite;
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.3),
        0 0 120px rgba(139, 92, 246, 0.2),
        inset 0 0 60px rgba(255, 255, 255, 0.05);
}

.hero-headshot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 40px rgba(99, 102, 241, 0.4),
        0 0 80px rgba(139, 92, 246, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1.2s ease 1.0s both;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

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

.section-header h2 {
    white-space: nowrap;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--light);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    margin-bottom: 0.25rem;
    color: var(--dark);
    font-size: 1.1rem;
}

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

/* Skills Section */
.skills {
    padding: 60px 0;
    background: var(--light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.skill-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.skill-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.3rem 0;
    color: var(--gray);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background: var(--white);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    display: block;
    position: relative;
}

.timeline-item:nth-child(even) {
    padding: 0;
}

.timeline-content {
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.timeline-item:nth-child(even) .timeline-content {
    margin: 0;
}

.timeline-dot {
    position: absolute;
    left: -58px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--gradient);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -58px;
    right: auto;
}

.company-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.company-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.timeline-details {
    flex: 1;
    min-width: 0;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.timeline-date {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.timeline-company {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-location {
    color: var(--gray-light);
    font-size: 0.8rem;
}

.timeline-content p {
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
    color: var(--gray);
}

/* Education Section */
.education {
    padding: 100px 0;
    background: var(--light);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.edu-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.edu-card h3 {
    margin-bottom: 0.5rem;
}

.edu-card .institution {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.edu-card .year {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.certifications {
    margin-top: 0;
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateX(5px);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cert-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cert-item p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fc 0%, #f1f3f8 100%);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--light);
    background: var(--white);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
}

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

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

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

.project-card.hidden {
    display: none;
}

.project-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 1.25rem;
}

.project-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.project-content p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    padding: 0.25rem 0.6rem;
    background: var(--light);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

/* Project placeholder image styles */
.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--dark);
    color: var(--white);
}

.contact .section-header {
    color: var(--white);
}

.contact .section-header p {
    color: var(--gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: var(--gray-light);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--dark-light);
    padding: 2rem 0;
    text-align: center;
}

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

.footer a {
    color: var(--primary);
}

/* ==================== */
/* Blog Styles */
/* ==================== */

/* Blog Page Hero */
.blog-hero {
    padding: 150px 0 60px;
    background: linear-gradient(180deg, #0a0a1a 0%, #0f0f2a 50%, #1a1a3a 100%);
    text-align: center;
    color: var(--white);
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Blog Content Section */
.blog-content {
    padding: 80px 0;
    background: var(--light);
}

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

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
}

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

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

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.blog-category {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 500;
}

.blog-card-content h2,
.blog-card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.blog-card:hover .read-more {
    gap: 0.75rem;
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 1rem;
    background: var(--white);
    border-radius: 12px;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.blog-pagination a:hover {
    background: var(--primary);
    color: var(--white);
}

.blog-pagination .current {
    background: var(--gradient);
    color: var(--white);
}

.blog-pagination .prev,
.blog-pagination .next {
    gap: 0.5rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.no-posts h2 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.no-posts p {
    margin-bottom: 2rem;
    color: var(--gray);
}

/* ==================== */
/* Projects Archive Page */
/* ==================== */

.projects-page {
    min-height: 100vh;
}

.projects-hero {
    padding: 150px 0 60px;
    background: linear-gradient(180deg, #0a0a1a 0%, #0f0f2a 50%, #1a1a3a 100%);
    text-align: center;
    color: var(--white);
}

.projects-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.projects-content {
    padding: 80px 0;
    background: var(--light);
}

.projects-content .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-date {
    font-size: 0.85rem;
    color: var(--gray);
}

.no-projects {
    text-align: center;
    padding: 80px 20px;
}

.no-projects-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.no-projects h2 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.no-projects p {
    margin-bottom: 2rem;
    color: var(--gray);
}

.back-to-home {
    text-align: center;
    margin-top: 4rem;
}

/* ==================== */
/* Single Post Styles */
/* ==================== */

.single-post-page {
    background: var(--white);
}

/* Post Header */
.post-header {
    padding: 150px 0 60px;
    background: linear-gradient(180deg, #0a0a1a 0%, #0f0f2a 50%, #1a1a3a 100%);
    text-align: center;
    color: var(--white);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-category {
    padding: 0.35rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.post-category:hover {
    background: var(--primary);
    color: var(--white);
}

.post-date,
.post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.post-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Featured Image */
.post-featured-image {
    margin-top: -40px;
    margin-bottom: 3rem;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Post Content */
.post-content {
    padding: 0 0 4rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--primary-dark);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--dark);
}

.post-content pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--dark);
    border-radius: 12px;
    overflow-x: auto;
}

.post-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.post-content p code {
    padding: 0.2rem 0.5rem;
    background: var(--light);
    border-radius: 4px;
    color: var(--primary);
    font-size: 0.95rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Post Footer */
.post-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tags-label,
.share-label {
    font-weight: 600;
    color: var(--dark);
}

.tag {
    padding: 0.35rem 0.75rem;
    background: var(--light);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

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

.share-link {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.3s ease;
}

.share-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light);
    border-radius: 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-info h4 {
    margin: 0.25rem 0 0.5rem;
    color: var(--dark);
}

.author-info p {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    padding: 3rem 0;
    background: var(--light);
}

.post-navigation .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-post {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.nav-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.nav-post.empty {
    background: transparent;
    box-shadow: none;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.4;
}

.nav-next {
    text-align: right;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--white);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
}

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

.related-card {
    display: block;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 1.25rem;
}

.related-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.related-content h4 {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.4;
}

/* ==================== */
/* Homepage Blog Preview */
/* ==================== */

.blog-preview {
    padding: 100px 0;
    background: var(--light);
}

.blog-preview .section-header {
    margin-bottom: 3rem;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-preview .view-all {
    text-align: center;
}

/* Blog Responsive */
@media (max-width: 768px) {
    .blog-grid,
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation .container {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    10% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    20% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    30% { border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%; }
    40% { border-radius: 50% 50% 30% 70% / 50% 50% 70% 30%; }
    50% { border-radius: 30% 70% 60% 40% / 70% 30% 40% 60%; }
    60% { border-radius: 65% 35% 35% 65% / 35% 65% 65% 35%; }
    70% { border-radius: 45% 55% 70% 30% / 55% 45% 30% 70%; }
    80% { border-radius: 35% 65% 45% 55% / 65% 35% 55% 45%; }
    90% { border-radius: 55% 45% 55% 45% / 45% 55% 45% 55%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 60px rgba(99, 102, 241, 0.3), 0 0 120px rgba(139, 92, 246, 0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(99, 102, 241, 0.5), 0 0 160px rgba(139, 92, 246, 0.4);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }

    .hero-headshot {
        width: 240px;
        height: 240px;
    }

    .hero-text {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-content {
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
        border-left: 4px solid var(--primary);
    }

    .company-logo {
        width: 48px;
        height: 48px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

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

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

    .projects-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Timeline Expandable Content */
.timeline-expanded {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    animation: expandIn 0.3s ease-out;
}

.timeline-expanded.active {
    display: block;
}

@keyframes expandIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-expanded h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.timeline-expanded ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.timeline-expanded ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

.timeline-expanded ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.timeline-expanded ul ul {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.timeline-expanded ul ul li {
    padding-left: 1rem;
    font-style: italic;
}

.timeline-expanded ul ul li::before {
    content: "•";
    font-style: normal;
}

.timeline-expanded .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.timeline-expanded .tech-tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
}

.btn-show-more:hover {
    color: var(--secondary);
}

.btn-show-more .icon {
    transition: transform 0.3s ease;
}

.btn-show-more.active .icon {
    transform: rotate(180deg);
}

/* ===========================================
   PROJECT CARD LINK STYLES
   =========================================== */

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card-link:hover {
    text-decoration: none;
}

.project-view-text {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.no-projects-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    background: var(--light);
    border-radius: 20px;
}

/* ===========================================
   SINGLE PROJECT PAGE STYLES
   =========================================== */

.single-project {
    padding-top: 80px;
}

/* Project Hero */
.project-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 60px 0 80px;
    color: var(--white);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--white);
}

.project-hero-content {
    max-width: 800px;
}

.project-hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.project-hero-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-hero-excerpt {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.project-hero-tech .tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-hero-actions .btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.project-hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.project-hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Project Content */
.project-content-section {
    padding: 80px 0;
}

.project-featured-image {
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-body {
    max-width: 800px;
    margin: 0 auto;
}

.project-body h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.project-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.project-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.project-body ul,
.project-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.project-body li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.project-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.project-body pre {
    background: var(--dark);
    color: var(--gray-light);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.project-body code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.project-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray);
}

/* Related Projects */
.related-projects {
    background: var(--light);
    padding: 80px 0;
}

.related-projects h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.related-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive adjustments for single project */
@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 2rem;
    }
    
    .project-hero-excerpt {
        font-size: 1rem;
    }
    
    .project-hero-icon {
        font-size: 3rem;
    }
    
    .project-hero-actions {
        flex-direction: column;
    }
    
    .project-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .project-body h2 {
        font-size: 1.5rem;
    }
    
    .project-body p,
    .project-body li {
        font-size: 1rem;
    }
}

/* ===========================================
   CHAT WITH AI SECTION STYLES
   =========================================== */

.chat-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a1a 0%, #0f0f2a 50%, #1a1a3a 100%);
    position: relative;
    overflow: hidden;
}

.chat-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.chat-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.chat-section .container {
    position: relative;
    z-index: 2;
}

.chat-section .section-header {
    color: var(--white);
}

.chat-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chat-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.chat-wrapper iframe {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: var(--white);
    min-height: 500px;
}

.chat-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.chat-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chat-info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.chat-info-icon {
    font-size: 1.5rem;
}

.chat-info-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Chat Section Responsive */
@media (max-width: 768px) {
    .chat-section {
        padding: 80px 0;
    }

    .chat-wrapper {
        padding: 0.5rem;
    }

    .chat-wrapper iframe {
        height: 500px;
        min-height: 450px;
    }

    .chat-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .chat-info-item {
        width: 100%;
        justify-content: center;
    }
}
