/* Portfolio Specific Styles */

/* Use the main theme variables and gradients */
.portfolio-page {
    --portfolio-primary: var(--accent);
    --portfolio-secondary: var(--accent-hover);
    --portfolio-accent: var(--accent-light);
    --portfolio-gradient: var(--gradient);
    --hero-text: #ffffff;
    --timeline-line: var(--border);
    --skill-hover-border: var(--accent);
}

/* Light theme specific adjustments - Soft pastel blue */
[data-theme="light"] .portfolio-page {
    --portfolio-gradient: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    --hero-text: #1e40af;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --skill-hover-bg: rgba(59, 130, 246, 0.1);
}

/* Dark theme specific adjustments - Muted dark with soft gradient */
[data-theme="dark"] .portfolio-page {
    --portfolio-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --hero-text: #cbd5e1;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --skill-hover-bg: rgba(96, 165, 250, 0.15);
}

/* Ocean theme - Soft cyan/sky blue */
[data-theme="ocean"] .portfolio-page {
    --portfolio-gradient: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%);
    --hero-text: #0c4a6e;
    --card-shadow: 0 4px 6px rgba(7, 89, 133, 0.1);
    --card-hover-shadow: 0 10px 30px rgba(7, 89, 133, 0.2);
    --skill-hover-bg: rgba(14, 165, 233, 0.1);
}

/* Forest theme - Soft mint green */
[data-theme="forest"] .portfolio-page {
    --portfolio-gradient: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    --hero-text: #14532d;
    --card-shadow: 0 4px 6px rgba(20, 83, 45, 0.1);
    --card-hover-shadow: 0 10px 30px rgba(20, 83, 45, 0.2);
    --skill-hover-bg: rgba(34, 197, 94, 0.1);
}

/* Sunset theme - Soft peach/coral */
[data-theme="sunset"] .portfolio-page {
    --portfolio-gradient: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    --hero-text: #78350f;
    --card-shadow: 0 4px 6px rgba(120, 53, 15, 0.1);
    --card-hover-shadow: 0 10px 30px rgba(120, 53, 15, 0.2);
    --skill-hover-bg: rgba(245, 158, 11, 0.1);
}

/* Midnight theme - Deep muted purple */
[data-theme="midnight"] .portfolio-page {
    --portfolio-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --hero-text: #e9d5ff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    --card-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    --skill-hover-bg: rgba(167, 139, 250, 0.15);
}

/* Rose theme - Soft pink/blush */
[data-theme="rose"] .portfolio-page {
    --portfolio-gradient: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
    --hero-text: #881337;
    --card-shadow: 0 4px 6px rgba(136, 19, 55, 0.1);
    --card-hover-shadow: 0 10px 30px rgba(136, 19, 55, 0.2);
    --skill-hover-bg: rgba(244, 63, 94, 0.1);
}

/* Monochrome theme - Soft gray */
[data-theme="monochrome"] .portfolio-page {
    --portfolio-gradient: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    --hero-text: #171717;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --skill-hover-bg: rgba(23, 23, 23, 0.1);
}

/* Cyberpunk theme - Muted neon with dark base */
[data-theme="cyberpunk"] .portfolio-page {
    --portfolio-gradient: linear-gradient(135deg, #14001f 0%, #1f0029 100%);
    --hero-text: #00ffff;
    --card-shadow: 0 4px 6px rgba(255, 0, 255, 0.2);
    --card-hover-shadow: 0 10px 30px rgba(255, 0, 255, 0.4);
    --skill-hover-bg: rgba(255, 0, 255, 0.15);
}

/* Portfolio Header */
.portfolio-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(var(--bg-primary-rgb), 0.95);
}

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

.portfolio-logo {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--portfolio-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    color: var(--hero-text);
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.primary {
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: var(--accent-hover);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--hero-text);
    border: 2px solid var(--hero-text);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.projects-section,
.skills-section,
.experience-section,
.contact-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--portfolio-gradient);
    border-radius: 2px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

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

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

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

.tech-tag {
    background: var(--accent-light);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

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

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--portfolio-primary);
}

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

.skill-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.skill-category-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--skill-hover-border);
    color: var(--portfolio-primary);
    background: var(--skill-hover-bg);
    transform: translateY(-2px);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 45%;
    text-align: right;
    padding-right: 2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.timeline-item:nth-child(odd) .timeline-date {
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
}

.timeline-content {
    flex: 0 0 45%;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

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

.timeline-content h4 {
    color: var(--portfolio-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--portfolio-primary);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.achievements {
    list-style: none;
    padding: 0;
}

.achievements li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--portfolio-primary);
}

/* Contact Section */
.contact-section {
    background: var(--bg-secondary);
}

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

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--portfolio-primary);
    color: var(--portfolio-primary);
    transform: translateY(-2px);
}

/* Footer */
.portfolio-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .portfolio-header nav {
        flex-direction: column;
        gap: 1rem;
    }

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

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

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

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

    .timeline-item {
        flex-direction: column !important;
        margin-left: 40px;
    }

    .timeline-date {
        text-align: left !important;
        padding: 0 0 1rem 0 !important;
    }

    .timeline-content::before {
        left: -28px;
        transform: translateX(0);
    }
}