/* Portfolio Styles */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-light: #334155;
    --text-dark: #e2e8f0;
    --card-light: #ffffff;
    --card-dark: #1e293b;
    --border-light: #e2e8f0;
    --border-dark: #334155;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-orange: #f59e0b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: background 0.3s, border 0.3s;
}

body.dark .nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border-dark);
}

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

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

body.dark .nav-links a {
    color: var(--text-dark);
}

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

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 5px;
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

body.dark .hero p {
    color: #94a3b8;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

body.dark .project-card {
    background: var(--card-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.project-content p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

body.dark .project-content p {
    color: #94a3b8;
}

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

.tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Project Page */
.project-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

body.dark .project-hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.project-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

body.dark .project-meta span {
    color: #94a3b8;
}

.project-detail-content {
    padding: 60px 0;
}

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

.project-description h2 {
    font-size: 1.5rem;
    margin: 40px 0 15px;
    color: var(--primary);
}

.project-description p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-description ul {
    margin: 15px 0 25px 25px;
}

.project-description li {
    margin-bottom: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background: var(--card-light);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

body.dark .feature-item {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

body.dark .feature-item p {
    color: #94a3b8;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: white;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.cert-card {
    background: var(--card-light);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .cert-card {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cert-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cert-card p {
    color: #64748b;
    font-size: 0.9rem;
}

body.dark .cert-card p {
    color: #94a3b8;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Skills Section */
.skills-section {
    background: rgba(102, 126, 234, 0.03);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 20px;
}

body.dark .skills-section {
    background: rgba(102, 126, 234, 0.08);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    text-align: center;
    padding: 20px;
}

.skill-item h4 {
    margin-bottom: 5px;
}

.skill-item p {
    color: #64748b;
    font-size: 0.85rem;
}

body.dark .skill-item p {
    color: #94a3b8;
}

/* Project Image Showcase */
.project-showcase {
    margin: 40px 0;
}

.showcase-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.dark .showcase-image {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--card-light);
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
}

body.dark .footer {
    background: var(--card-dark);
    border-top-color: var(--border-dark);
}

.footer p {
    color: #64748b;
    font-size: 0.9rem;
}

body.dark .footer p {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

body.dark .footer-links a {
    color: var(--text-dark);
}

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

/* Breadcrumb */
.breadcrumb {
    padding: 100px 0 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

body.dark .breadcrumb a {
    color: #94a3b8;
}

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

.breadcrumb span {
    color: var(--text-light);
}

body.dark .breadcrumb span {
    color: var(--text-dark);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 40px;
    transition: gap 0.3s;
}

.back-link:hover {
    gap: 12px;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

body.dark .nav-toggle {
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-light);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border-light);
    }
    
    body.dark .nav-links {
        background: var(--card-dark);
        border-bottom-color: var(--border-dark);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .project-hero h1 {
        font-size: 1.75rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .cta-button {
        text-align: center;
        justify-content: center;
    }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}
