/* Additional Portfolio Page Styles */

/* About Page Specific Styles */
.about-hero {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-4xl);
    padding: var(--spacing-2xl);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-xl);
}

.about-intro {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-avatar {
    flex-shrink: 0;
}

.about-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

/* Timeline Styles */
.journey-timeline {
    position: relative;
    padding-left: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    padding-left: var(--spacing-2xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid var(--color-bg-primary);
}

.timeline-date {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.timeline-content h3 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.timeline-content p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.service-card {
    background: var(--color-bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    text-align: center;
    transition: transform var(--transition-normal);
    border: 1px solid var(--color-border);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg) auto;
    font-size: var(--font-size-xl);
}

.service-card h3 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

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

/* Detailed Skills Section */
.skills-detailed {
    display: grid;
    gap: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
}

.skill-category-detailed h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.skill-category-detailed i {
    color: var(--color-primary);
}

.skill-bars {
    display: grid;
    gap: var(--spacing-lg);
}

.skill-bar {
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.skill-info span:first-child {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.skill-info span:last-child {
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
}

.skill-progress {
    height: 8px;
    background: var(--color-bg-tertiary);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--border-radius-full);
    width: 0;
    transition: width 2s ease-in-out;
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.interest-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.interest-item i {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.interest-item h4 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.interest-item p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

/* Connect Section */
.connect-section {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-xl);
    margin: var(--spacing-2xl) 0;
}

.connect-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

/* Projects Page Specific Styles */
.projects-hero {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border: 2px solid var(--color-border);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: var(--font-weight-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

/* Detailed Project Cards */
.projects-grid-detailed {
    display: grid;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.project-card-detailed {
    background: var(--color-bg-primary);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
}

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

.project-card-detailed .project-image {
    height: 250px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.project-status {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status:contains("Completed") {
    background: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
}

.project-status:contains("In Development") {
    background: rgba(255, 193, 7, 0.1);
    color: var(--color-warning);
}

.project-status:contains("Active Development") {
    background: rgba(23, 162, 184, 0.1);
    color: var(--color-info);
}

.project-features {
    margin: var(--spacing-lg) 0;
}

.project-features h4 {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.project-features ul {
    margin-left: var(--spacing-md);
}

.project-features li {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* GitHub Stats */
.github-stats {
    text-align: center;
    margin: var(--spacing-4xl) 0;
    padding: var(--spacing-2xl);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.stat-card {
    background: var(--color-bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-card img {
    width: 100%;
    border-radius: var(--border-radius-md);
}

.github-link {
    margin-top: var(--spacing-xl);
}

.projects-cta {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-xl);
    margin-top: var(--spacing-2xl);
}

/* Contact Page Specific Styles */
.contact-hero {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.contact-main {
    margin-bottom: var(--spacing-2xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.contact-methods {
    display: grid;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.contact-method {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.contact-details h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.contact-details p {
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
}

.contact-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-style: italic;
}

.contact-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.contact-link:hover {
    text-decoration: underline;
}

/* Social Section */
.social-section {
    margin-top: var(--spacing-2xl);
}

.social-links-detailed {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    text-decoration: none;
    transform: translateX(5px);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    transition: background-color var(--transition-fast);
}

.social-link:hover .social-icon {
    background: var(--color-text-inverse);
    color: var(--color-primary);
}

.social-info {
    display: flex;
    flex-direction: column;
}

.social-platform {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.social-handle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.social-link:hover .social-platform,
.social-link:hover .social-handle {
    color: var(--color-text-inverse);
}

/* Contact Form Section */
.contact-form-section {
    background: var(--color-bg-secondary);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
}

.form-container h2 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.form-container p {
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-secondary);
}

.form-error {
    color: var(--color-danger);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-note {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.form-note i {
    color: var(--color-success);
}

/* FAQ Section */
.contact-faq {
    margin: var(--spacing-4xl) 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.faq-item {
    background: var(--color-bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

.faq-item h4 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.faq-item p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
}

/* Contact CTA */
.contact-cta {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-xl);
    margin: var(--spacing-2xl) 0;
}

.cta-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-intro {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .journey-timeline {
        padding-left: var(--spacing-lg);
    }

    .timeline-item {
        padding-left: var(--spacing-lg);
    }

    .timeline-item::before {
        left: -20px;
    }

    .journey-timeline::before {
        left: 10px;
    }

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

    .connect-actions,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .connect-actions .btn,
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Animation for skill progress bars */
.skill-progress-fill[data-width] {
    animation: skill-fill 2s ease-in-out forwards;
}

@keyframes skill-fill {
    from {
        width: 0;
    }

    to {
        width: var(--skill-width, 50%);
    }
}

/* Custom animation for AOS */
[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
    opacity: 0;
}

[data-aos="fade-left"] {
    transform: translateX(30px);
    opacity: 0;
}

/* Enhanced focus styles for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--border-radius-md);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}