:root {
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-subtle: #f8fafc;
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f5f3ff 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Grain Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.015;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s 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(--primary);
}

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

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 120px;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.03) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.025) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

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

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-frame {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    padding: 4px;
    position: relative;
    box-shadow: 0 20px 60px rgba(59,130,246,0.15);
}

@keyframes glow {
    0%, 100% { box-shadow: 0 20px 60px rgba(59,130,246,0.15); }
    50% { box-shadow: 0 20px 70px rgba(139,92,246,0.2); }
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    overflow: hidden;
}

.profile-image svg {
    width: 200px;
    height: 200px;
    fill: white;
    opacity: 0.9;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card.flutter {
    top: 10%;
    right: -20px;
    animation-delay: -2s;
}

.floating-card.dart {
    bottom: 20%;
    left: -40px;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-card span {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-card .icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Section Styles */
section {
    padding: 120px 40px;
}

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

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

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

/* About Section */
.about {
    background: var(--bg-subtle);
    position: relative;
}

.about-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 100px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.4s ease;
}

.about-image-frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.about-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #ddd6fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-placeholder svg {
    width: 200px;
    height: 200px;
    fill: rgba(99, 102, 241, 0.3);
}

.about-content {
    padding: 40px 0;
}

.about-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.2;
    color: var(--primary);
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.highlight-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: rgba(59,130,246,0.2);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.highlight-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.highlight-card h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    background: var(--bg-subtle);
}

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

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

.skill-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

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

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

.skill-card h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

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

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-weight: 500;
}

/* Projects Section */
.projects {
    background: white;
}

.projects-container {
    max-width: 1000px;
    margin: 0 auto;
}

.projects-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.projects-grid::-webkit-scrollbar {
    height: 6px;
}

.projects-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

.project-icon {
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    scroll-snap-align: center;
}

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

.project-icon.active .icon-circle {
    box-shadow: 0 0 0 4px rgba(59,130,246,0.3);
}

.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.project-logo-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-icon span {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-icon.active span {
    color: var(--primary);
    font-weight: 600;
}

/* Project Showcase */
.project-showcase {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: none;
    animation: fadeIn 0.4s ease;
}

.project-showcase.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-info {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.project-details h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-details p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
    background: white;
    border-radius: var(--radius-full);
    color: var(--accent);
    font-weight: 500;
    border: 1px solid rgba(59,130,246,0.2);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-2px);
}

.project-link.outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.project-screenshots {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.project-screenshots::-webkit-scrollbar {
    height: 8px;
}

.project-screenshots::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.project-screenshots::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.project-screenshots::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

.screenshot {
    flex: 0 0 auto;
    width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Experience Section */
.experience {
    background: var(--primary);
    color: white;
}

.experience .section-label {
    color: var(--accent-light);
}

.experience .section-title {
    color: white;
}

.experience .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.experience-container {
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.2);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

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

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.timeline-content {
    background: rgba(255,255,255,0.05);
    padding: 32px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.timeline-company {
    color: var(--accent-light);
    font-weight: 500;
}

.timeline-date {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.timeline-description {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.timeline-achievements {
    list-style: none;
}

.timeline-achievements li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.timeline-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 48px;
}

.contact-card {
    background: var(--bg-subtle);
    padding: 32px 48px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    min-width: 200px;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: white;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-card h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-link:hover {
    background: #f3f4f6;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.social-link img {
    opacity: 1;
}

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

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-tagline {
        margin: 0 auto 32px;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .profile-frame {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-content {
        padding: 0;
    }

    .about-content h3 {
        font-size: 2rem;
    }

    .project-info {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    section {
        padding: 80px 24px;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .projects-grid {
        gap: 20px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 20px 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    .project-screenshots {
        padding: 16px 20px;
        scrollbar-width: none;
    }

    .project-screenshots::-webkit-scrollbar {
        display: none;
    }

    .project-icon {
        flex: 0 0 auto;
        min-width: 100px;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .project-showcase {
        padding: 24px;
    }

    .project-screenshots {
        gap: 12px;
    }

    .screenshot {
        width: 180px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-card {
        width: 100%;
        min-width: auto;
    }

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

    .timeline-date {
        margin-top: 8px;
    }

    footer {
        padding: 60px 24px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .project-icon span {
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        word-spacing: 0.1em;
    }

    .profile-frame {
        width: 250px;
        height: 250px;
    }

    .contact-icon img {
        width: 40px !important;
        height: 40px !important;
    }

    .project-showcase {
        padding: 20px;
    }

    .screenshot {
        width: 160px;
    }

    .skill-card {
        padding: 24px;
    }

    .timeline-content {
        padding: 24px;
    }

    footer {
        padding: 60px 20px;
    }
}

/* Blog Specific Styles */
.blog-header {
    text-align: center;
    padding: 160px 20px 60px;
    background: var(--bg-subtle);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 120px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.blog-image {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.blog-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 12px;
}


/* Blog Post Page Styles */
.blog-post {
    background: white;
    padding: 140px 40px 120px;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 48px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.blog-post-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.blog-post-title {
    font-family: "Syne", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

.blog-post-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-post-image {
    background: linear-gradient(135deg, #FFF5EB 0%, #FFE8D6 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.blog-post-content h2 {
    font-family: "Syne", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.blog-post-content h3 {
    font-family: "Syne", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text);
}

.blog-post-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.blog-post-content strong {
    color: var(--text);
    font-weight: 600;
}

.blog-post-cta {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin: 60px 0;
}

.blog-post-cta h3 {
    font-family: "Syne", sans-serif;
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.blog-post-cta p {
    margin-bottom: 24px;
}

.blog-post-author {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 32px;
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    margin-top: 60px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
