/* Modern Dark Portfolio CSS - Based on Design Mockup */

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-orange: #ff6b35;
    --accent-orange-hover: #ff5722;
    --border-color: #333333;
    --card-bg: #151515;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-orange);
}

.nav-contact {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-contact:hover {
    color: var(--accent-orange);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: var(--bg-primary);
    margin-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
}

.hero-text {
    max-width: 500px;
}

.hero-greeting {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.learn-more {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.learn-more:hover {
    color: var(--accent-orange-hover);
    gap: 0.75rem;
}

.learn-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(2px);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 400px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.profile-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* What I Do Section */
.what-section {
    padding: 8rem 2rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

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

.what-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Work Section */
.work-section {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
}

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

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

.work-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.work-icon {
    color: var(--accent-orange);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

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

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

/* TradeStack Section */
.tradestack-section {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

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

.tradestack-container h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tradestack-container h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}


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

.project-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--accent-orange);
    font-size: 1rem;
    width: 20px;
}

.tech-stack {
    margin-bottom: 3rem;
}

.tech-stack h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tags span {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.project-screenshots {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-10px);
}

.screenshot-item img {
    width: 200px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 3px solid #333;
    background: #000;
}

.screenshot-item:hover img {
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

.screenshot-caption {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.screenshot-item:hover .screenshot-caption {
    color: var(--accent-orange);
}

/* Image Modal */
.image-modal .modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.image-modal .modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal .modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-orange);
}

.image-modal .modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--accent-orange);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.image-modal .modal-close:hover {
    background: var(--accent-orange-hover);
    transform: scale(1.1);
}

.image-modal .modal-caption {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
}

/* Experience Section */
.experience-section {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
}

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

.experience-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-orange);
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.timeline-year {
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.skills-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-used span {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact-section {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

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

.contact-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.contact-method:hover {
    color: var(--text-primary);
    border-color: var(--accent-orange);
    background: var(--bg-tertiary);
}

.contact-method i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    padding: 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link,
    .nav-contact {
        font-size: 0.85rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .what-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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

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

    .screenshots-container {
        flex-direction: column;
        gap: 2rem;
    }

    .screenshot-item img {
        width: 250px;
    }

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

    .contact-method {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .profile-image {
        width: 250px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .hero-section,
    .what-section,
    .work-section,
    .tradestack-section,
    .experience-section,
    .contact-section {
        padding: 4rem 1rem;
    }

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

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

    .section-header h3 {
        font-size: 1.8rem;
    }

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

    .nav-links {
        gap: 1rem;
    }

    .screenshots-container {
        gap: 1.5rem;
    }

    .screenshot-item img {
        width: 180px;
    }
}

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

.hero-content,
.work-card,
.timeline-item {
    animation: fadeInUp 0.6s ease-out forwards;
}