/* ============================================
   PERSONAL PORTFOLIO - STYLES
   Modern dark theme, fully responsive
   ============================================ */

/* ----- CSS VARIABLES (easy theme changes) ----- */
:root {
    --bg-dark: #0f0f17;
    --bg-card: #1a1a26;
    --bg-card-hover: #222235;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --accent: #6366f1;       /* indigo/purple accent */
    --accent-light: #818cf8;
    --border: #2a2a3a;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ----- BASE RESET ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- NAVBAR ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 15, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--accent-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-light);
}

/* Hamburger button (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    list-style: none;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.mobile-link:hover {
    color: var(--accent-light);
}

/* ----- HERO SECTION ----- */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15), transparent 60%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
}

.hero-photo {
    flex-shrink: 0;
    position: relative;
}

.hero-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-light);
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.15), 0 0 50px rgba(139, 92, 246, 0.45);
}

.hero-text {
    max-width: 620px;
    flex: 1;
    min-width: 300px;
}

.hero-name {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-bio {
    max-width: 650px;
    margin: 0 auto 36px 0;
    color: var(--text-secondary);
    font-size: 17px;
}

.hero-bio p + p {
    margin-top: 16px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn .btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

/* Icon-only buttons (social) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* ----- SECTION SHARED STYLES ----- */
.projects, .skills, .contact {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(28px, 5vw, 40px);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 17px;
}

/* ----- PROJECTS ----- */
.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.project-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-emoji {
    font-size: 56px;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 20px;
    margin-bottom: 6px;
}

.project-meta {
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tag {
    display: inline-block;
    padding: 8px 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.project-link-pill {
    display: inline-block;
    padding: 10px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.project-link:hover {
    color: white;
}

/* ----- SKILLS ----- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.skill-category {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.skill-heading {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--accent-light);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: white;
}

/* ----- CONTACT ----- */
.text-accent {
    color: var(--accent-light);
}

.contact-info-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-chip:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.contact-chip-icon {
    font-size: 18px;
}

/* Contact form */
.contact-form {
    max-width: 640px;
    margin: 0 auto 48px;
    padding: 32px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.submit-btn {
    width: 100%;
    padding: 14px 28px;
    background-color: var(--accent);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--accent-light);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.form-message.success {
    color: #10b981;
}

.form-message.error {
    color: #ef4444;
}

@media (max-width: 600px) {
    .contact-form {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Or find me on */
.find-me-on {
    text-align: center;
}

.find-me-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
}

.find-me-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.find-me-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.find-me-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* ----- FOOTER ----- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ----- WHAT I DO (SERVICES) ----- */
.services-subheading {
    text-align: center;
    font-size: 24px;
    margin-bottom: 32px;
    color: var(--accent-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 44px;
    display: block;
    margin-bottom: 16px;
}

.service-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }

    .hero-bio {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .projects, .skills, .contact {
        padding: 60px 0;
    }
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-detail {
    padding: 100px 0 80px;
    color: var(--text-primary);
}

.back-link {
    display: inline-block;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #fff;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.detail-title {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--accent);
}

.detail-subtitle {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.detail-actions {
    margin-bottom: 48px;
}

/* Project mockup / preview */
.detail-mockup {
    margin-bottom: 64px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.detail-mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot.red { background-color: #ff5f57; }
.mockup-dot.yellow { background-color: #febc2e; }
.mockup-dot.green { background-color: #28c840; }

.mockup-url {
    flex: 1;
    margin-left: 12px;
    padding: 4px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    font-family: monospace;
}

.detail-mockup-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 48px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.mockup-app-emoji {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.mockup-app-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.mockup-app-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
    line-height: 1.6;
}

.detail-section {
    margin-bottom: 56px;
}

.detail-heading {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.detail-paragraph {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 820px;
}

/* Tech stack groups */
.tech-group {
    margin-bottom: 28px;
}

.tech-group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-chip {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tech-chip:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

/* Feature list */
.feature-list {
    list-style: none;
    padding: 0;
    max-width: 820px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.feature-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-light);
    font-size: 16px;
}

.feature-list li strong {
    color: var(--text-primary);
}

/* Challenges */
.challenge-block {
    margin-bottom: 36px;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.challenge-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Outcome blocks */
.outcome-block {
    margin-bottom: 36px;
}

.outcome-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 14px;
}

.detail-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .project-detail {
        padding: 90px 0 60px;
    }

    .detail-subtitle {
        font-size: 16px;
    }

    .detail-paragraph {
        font-size: 15px;
    }

    .feature-list li {
        font-size: 15px;
    }
}
