/* portfolio.css - Ultra-modern Dark Mode Portfolio Styles */
:root {
    --bg-dark: #000000;
    --bg-card: rgba(13, 17, 23, 0.85);
    --bg-card-hover: rgba(22, 27, 34, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.4);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #000000;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.main-content {
    flex: 1;
    width: 100%;
}

/* Navbar */
.navbar {
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main);
    text-decoration: none;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-contact {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-contact:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-section {
    padding: 4.5rem 0;
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.featured-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.featured-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent-cyan));
}

.featured-project-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.project-details {
    min-width: 0;
}

.project-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    max-width: 100%;
    word-break: break-word;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.25;
    word-break: break-word;
}

.project-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #e2e8f0;
    padding: 0.4rem 0.95rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.tech-badge:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.project-features {
    list-style: none;
    margin-bottom: 2rem;
}

.project-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
    line-height: 1.5;
}

.project-features li i {
    color: var(--accent-emerald);
    margin-top: 0.25rem;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-launch {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
    max-width: 100%;
    word-break: break-word;
}

.btn-launch:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

/* Project Visual Mockup */
.project-preview {
    background: #090d14;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    min-width: 0;
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.preview-url {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.preview-content {
    background: linear-gradient(180deg, #131a29 0%, #090d14 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    min-width: 0;
}

.preview-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 0;
}

.preview-card-item h5 {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    word-break: break-word;
}

.preview-card-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-word;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #000000;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .featured-project-card {
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 900px) {
    .projects-section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

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

    .featured-project-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .projects-section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

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

    .section-desc {
        font-size: 0.95rem;
    }

    .projects-wrapper {
        gap: 2rem;
    }

    .featured-project-card {
        padding: 1.5rem 1.15rem;
        border-radius: 18px;
        gap: 1.5rem;
    }

    .project-tag {
        font-size: 0.72rem;
        padding: 0.25rem 0.65rem;
        margin-bottom: 0.75rem;
    }

    .project-title {
        font-size: 1.55rem;
        margin-bottom: 0.75rem;
    }

    .project-desc {
        font-size: 0.92rem;
        margin-bottom: 1.25rem;
        line-height: 1.55;
    }

    .project-features {
        margin-bottom: 1.5rem;
    }

    .project-features li {
        font-size: 0.88rem;
        gap: 0.6rem;
        margin-bottom: 0.55rem;
    }

    .project-features li i {
        font-size: 0.9rem;
        margin-top: 0.2rem;
    }

    .project-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-launch {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .project-preview {
        padding: 1rem;
        border-radius: 14px;
    }

    .preview-bar {
        padding-bottom: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .preview-url {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        max-width: 60%;
    }

    .preview-content {
        padding: 1rem 0.75rem;
        border-radius: 10px;
    }

    .preview-grid {
        gap: 0.65rem;
    }

    .preview-card-item {
        padding: 0.75rem 0.5rem;
    }

    .preview-card-item h5 {
        font-size: 0.82rem;
    }

    .preview-card-item span {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 0.75rem;
    }

    .featured-project-card {
        padding: 1.25rem 0.85rem;
        border-radius: 16px;
    }

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

    .btn-launch {
        font-size: 0.88rem;
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

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