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

:root {
    --primary: #374151;
    --primary-light: #6b7280;
    --accent-coral: #fecaca;
    --accent-pink: #fed7d7;
    --accent-beige: #ccaeae45;
    --accent-pinkish: #dfd1d1;
    --accent-yellow: #fde68a;
    --accent-green: #d1fae5;
    --accent-blue: #dbeafe;
    --accent-purple: #e9d5ff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #fefefe;
    --bg-secondary: #f9fafb;
    --border: #f3f4f6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

/* Logo styles */
.logo-image {
   height: 50px;
   width: auto;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   box-shadow: 2px 6px 20px rgb(211, 120, 117);
   display: block;
   border-radius: 10px;
   background-color: #d37875;
}

.logo-image:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(254, 202, 202, 0.5), 
                0 0 20px rgba(254, 202, 202, 0.2);
}

/* Header adjustments */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(254, 254, 254, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

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

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

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

/* Hero Section */
.hero {
    padding: 12rem 2rem 6rem; /* Changed from 8rem to 12rem */
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    animation: breathe 4s ease-in-out infinite;
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}
/* Projects Section - Controlled by JavaScript */

.projects {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    align-items: center;
    min-height: 600px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-list.has-active {
    align-items: flex-start;
}

/* Project Item - Initially Centered */
.project-item {
    background: white;
    border-radius: 20px;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 70%;
    margin-left: 0;
    position: relative;
    line-height: 3.5;
    /* Shrink animation */
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When list has active - non-active projects shrink */
.projects-list.has-active .project-item:not(.active) {
    max-width: 45%;
}

/* Active state - move to right (COMPACT - no width/height expansion yet) */
.project-item.active {
    position: absolute;
    right: 0;
    width: 45%;
    max-width: none;
    box-shadow: var(--shadow-xl);
    z-index: 10;
    line-height: 2;
    min-height: 120px; /* Start compact */
    /* Move animation - position ONLY, no width/height */
    transition: position 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                right 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expand height AFTER movement is complete */
.project-item.active.expand-height {
    min-height: 400px;
    transition: position 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                right 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:nth-child(1) {
    border-color: var(--accent-coral);
}

.project-item:nth-child(2) {
    border-color: var(--accent-pink);
}

.project-item:nth-child(3) {
    border-color: var(--accent-yellow);
}

/* Project Header */
.project-header {
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
}

.project-header:hover {
    background: var(--bg-secondary);
}

.project-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.project-icon {
    width: 160px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.project-item:nth-child(1) .project-icon {
    background: var(--accent-coral);
}

.project-item:nth-child(2) .project-icon {
    background: var(--accent-pink);
}

.project-item:nth-child(3) .project-icon {
    background: var(--accent-yellow);
}

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

.project-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
}

.project-toggle {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 0.25rem;
    margin-left: auto;
}

.project-item.active .project-toggle {
    transform: rotate(45deg);
}

/* Project Content - ALWAYS HIDDEN by default */
.project-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    opacity: 0;
    transition: none; /* NO transition initially */
}

/* Show content class - added by JS after movement */
.project-item.show-content .project-content {
    max-height: 500px;
    opacity: 1;
    padding: 0 2rem 2rem 2rem;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.tech-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link.primary {
    background: var(--text-primary);
    color: white;
}

.project-link.primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

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

.project-link.secondary:hover {
    background: white;
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .projects-list {
        align-items: stretch;
        min-height: auto;
    }

    .project-item {
        max-width: 100%;
    }

    .projects-list.has-active .project-item:not(.active) {
        max-width: 100%;
    }

    .project-item.active {
        position: static;
        transform: none;
        width: 100%;
        right: auto;
        top: auto;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 4rem 1rem;
    }

    .projects-container {
        max-width: 100%;
    }

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

    .project-header {
        padding: 1.5rem;
        min-height: 100px;
    }

    .project-header-content {
        gap: 1rem;
    }

    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-content {
        padding: 0 1.5rem;
    }

    .project-item.show-content .project-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}
/* About Section - Two Column Layout */

.about {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
}

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

.about-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-underline {
    width: 60px;
    height: 4px;
    background: var(--accent-purple);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

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

.about-left,
.about-right {
    display: flex;
    flex-direction: column;
}

.about-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.skill-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.75rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent-coral);
    color: var(--text-primary);
    border-color: var(--accent-coral);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about {
        padding: 4rem 1rem;
    }

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

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

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

    
}
/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

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

.footer h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}
/* Updated Social Links with Logo Icons */

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Fun floating elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    opacity: 0.6;
    animation: float 25s infinite ease-in-out;
    font-size: 2rem;
    filter: blur(0.5px);
}

.floating-element.shape {
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-coral), transparent);
    width: 100px;
    height: 100px;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 40%;
    right: 10%;
    animation-delay: 8s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 16s;
}

.floating-element:nth-child(4) {
    top: 60%;
    right: 25%;
    animation-delay: 12s;
}

.floating-element:nth-child(5) {
    bottom: 40%;
    right: 5%;
    animation-delay: 20s;
}

/* Interactive cursor trail */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent-coral);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--text-primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Fun hover effects for project cards */
.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.project-card:hover::after {
    animation: shine 0.6s ease-in-out;
}

/* Fun emoji reactions */
.emoji-reaction {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 1000;
    animation: emojiFloat 2s ease-out forwards;
}

/* Progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-pink), var(--accent-yellow));
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Easter egg - hidden message */
.easter-egg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--text-primary);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 200px;
}

.easter-egg.show {
    opacity: 1;
    transform: translateY(0);
}

/* Fun loading dots */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-coral);
    animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); opacity: 0.6; }
    25% { transform: translateY(-30px) translateX(20px) rotate(90deg); opacity: 0.8; }
    50% { transform: translateY(-15px) translateX(-15px) rotate(180deg); opacity: 0.4; }
    75% { transform: translateY(-45px) translateX(10px) rotate(270deg); opacity: 0.7; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--text-primary); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

@keyframes emojiFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes skillPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Project Article Pages */
.project-article {
    padding-top: 6rem;
    background: var(--bg-primary);
    min-height: 100vh;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-type,
.project-date {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.article-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Actions */
.article-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: white;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-share {
    background: var(--accent-beige);
    color: var(--text-primary);
    border: 1px solid var(--accent-pinkish);
}

.btn-share:hover {
    background: var(--accent-pinkish);
    transform: translateY(-2px);
}

/* Project Showcase */
.project-showcase {
    margin: 3rem 0;
}

.project-image-container {
    text-align: center;
}

.project-main-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
}

/* Image Placeholder Styles */
.image-placeholder {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--accent-coral));
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
}

.placeholder-content {
    text-align: center;
    color: var(--text-secondary);
}

.placeholder-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.placeholder-content p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.placeholder-content small {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Tech Overview */
.tech-overview {
    margin: 4rem 0;
}

.tech-overview h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.tech-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.tech-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.tech-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-coral);
    font-weight: bold;
}

/* Features Section */
.features-section {
    margin: 4rem 0;
}

.features-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-coral);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Development Process */
.development-process {
    margin: 4rem 0;
}

.development-process h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.process-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.process-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.process-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.improvement-highlight {
    background: var(--accent-beige);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--accent-pinkish);
}

.improvement-highlight h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.improvement-highlight p {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.improvement-highlight p:last-child {
    margin-bottom: 0;
}

.improvement-list {
    list-style: none;
    margin-top: 1rem;
}

.improvement-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.improvement-list li::before {
    content: '🎯';
    position: absolute;
    left: 0;
    top: 0.8rem;
}

/* Challenges Section */
.challenges-section {
    margin: 4rem 0;
}

.challenges-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.challenge-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-yellow);
}

.challenge-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.challenge-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

/* Code Quality Section */
.code-quality {
    margin: 4rem 0;
}

.code-quality h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.quality-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--accent-green);
}

.quality-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quality-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Future Improvements */
.future-improvements {
    margin: 4rem 0;
}

.future-improvements h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.improvement-item {
    background: linear-gradient(135deg, var(--bg-secondary), white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.improvement-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.improvement-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Project Links Section */
.project-links-section {
    margin: 4rem 0;
}

.project-links-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.resource-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.resource-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-coral);
}

.link-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.link-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.link-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Project Navigation */
.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4rem 0 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 2px solid var(--border);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-coral);
}

.nav-btn.home {
    background: var(--text-primary);
    color: white;
}

.nav-btn.home:hover {
    background: var(--primary-light);
}

/* Assignment Features Section */
.assignment-features {
    margin: 4rem 0;
}

.assignment-features h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.requirement-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-purple);
}

.requirement-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.requirement-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.feature-list strong {
    color: var(--text-primary);
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .article-container {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tech-grid,
    .features-grid,
    .quality-grid,
    .improvements-grid,
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .process-section,
    .challenge-item {
        padding: 1.5rem;
    }
}
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 8rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .projects {
        padding: 4rem 1rem;
    }

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

    .project-card {
        padding: 2rem;
    }

    .about {
        padding: 4rem 1rem;
    }

    .skills {
        gap: 0.7rem;
    }

    .floating-element {
        display: none;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Selection styling */
::selection {
    background: var(--accent-coral);
    color: var(--text-primary);
}
/* Contact Section - Let's Connect */

.contact {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    text-align: center;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.contact-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-pink), var(--accent-yellow));
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.contact-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact {
        padding: 6rem 1rem;
    }

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

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

    .contact-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}
/* Side Email Contact */
.side-contact {
    position: fixed;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    z-index: 50;
    transition: all 0.3s ease;
}
 /* Side Email Contact */
.side-contact {
    position: fixed;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    z-index: 50;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #dc7a78;
}

/* Right side email */
.side-contact.right {
    right: 3rem;
    bottom: 20%;
    transform: translateY(50%) rotate(90deg);
    transform-origin: right bottom;
}

/* Line before email */
.side-contact.right::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #dc7a78;
    margin-right: 1rem;
}

/* Line after email */
.side-contact.right::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #dc7a78;
    margin-left: 1rem;
}

/* Hover effect */
.side-contact:hover {
    color: #fecaca;
}

.side-contact:hover::before,
.side-contact:hover::after {
    background: #fecaca;
}

/* Mobile hide */
@media (max-width: 768px) {
    .side-contact {
        display: none;
    }
}
/* Project Subtitle */
.project-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.3rem;
    line-height: 1.4;
}