/* ─────────────────────────────────────────────────────────────────────────────
   Majid Portfolio
   ───────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0c;
    --surface: #111114;
    --surface2: #18181c;
    --border: #25252b;
    --text: #ededee;
    --muted: #8a8a9a;
    --accent: #a78bfa;
    --accent-glow: rgba(167, 139, 250, 0.12);
    --accent-soft: rgba(167, 139, 250, 0.08);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --t: 0.2s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface2);
    border-radius: 99px;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent-text {
    color: var(--accent);
    font-weight: 600;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 40px;
    font: 600 0.9rem 'Inter', sans-serif;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0c;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.2);
}

.btn-primary:hover {
    background: #b8a2ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(167, 139, 250, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-full {
    width: 100%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 16px 0;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, padding 0.2s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(12px);
    border-color: var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 700 1.1rem 'Inter', sans-serif;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    color: var(--accent);
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--muted);
    font: 500 0.85rem 'Inter', sans-serif;
    transition: all 0.2s;
}

.nav-link i {
    font-size: 0.8rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--surface2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

@media (max-width: 720px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 6px;
        background: rgba(10, 10, 12, 0.96);
        backdrop-filter: blur(16px);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-140%);
        opacity: 0;
        pointer-events: none;
        transition: 0.25s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 24px 70px;
    max-width: 1060px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--border);
    font: 500 0.75rem 'Inter', sans-serif;
    color: var(--muted);
    margin-bottom: 24px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80aa;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: clamp(2.3rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 450px;
    margin-bottom: 32px;
}

.subtitle-icon {
    color: var(--accent);
    margin-right: 5px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-socials {
    display: flex;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font: 500 0.8rem 'Inter', sans-serif;
    text-decoration: none;
    transition: 0.2s;
}

.social-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.hero-visual {
    flex: 0 0 300px;
}

.profile-card {
    padding: 0;
    background: #111114;
    border: 1px solid #2a2a30;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
}

.profile-banner {
    width: 100%;
    height: 110px;
    background: #1e1e24;
}

.profile-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-content {
    padding: 0 24px 28px;
}

.profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: -44px;
    margin-bottom: 12px;
}

.profile-avatar {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #5865F2;
    border: 4px solid #111114;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: #111114;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.status-indicator.dnd::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f23f43;
}

.status-indicator.dnd::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 3.5px;
    background: #111114;
    border-radius: 2px;
}

.profile-badge {
    background: var(--accent-soft);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    color: var(--accent);
    font-size: 1rem;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.profile-info h3 {
    font-size: 1.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #f0f0f5;
}

.profile-tag {
    font-size: 0.8rem;
    background: #2a2a30;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 500;
    color: #b0b0c0;
}

.profile-info p {
    font-size: 0.9rem;
    color: #9f9faf;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.profile-info i {
    color: var(--accent);
}

.profile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 22px 0;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stat-icon {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #9f9faf;
    font-weight: 500;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ptag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 30px;
    background: #1c1c22;
    border: 1px solid #2c2c34;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ddd;
}

.ptag i {
    color: var(--accent);
}

@media (max-width: 860px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        max-width: 300px;
        margin: 0 auto;
        width: 100%;
    }
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--border);
    font: 600 0.7rem 'Inter', sans-serif;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.section-tag i {
    color: var(--accent);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--muted);
    font-size: 0.9rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.service-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s ease, border-color 0.2s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    background: #131317;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    background: var(--accent-soft);
    color: var(--accent);
    transition: 0.2s;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
}

.service-card>p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

.service-list li i {
    color: var(--accent);
    font-size: 0.7rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.skill-card {
    padding: 20px;
    transition: border-color 0.2s;
}

.skill-card:hover {
    border-color: var(--accent);
    background: #131317;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.skill-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: #1e1e24;
}

.js-icon {
    color: #f7df1e;
    background: #1e1c12;
}

.node-icon {
    color: #6cc24a;
    background: #142010;
}

.discord-icon {
    color: #5865f2;
    background: #12132a;
}

.html-icon {
    color: #e44d26;
    background: #201610;
}

.py-icon {
    color: #3776ab;
    background: #111c2a;
}

.skill-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.skill-bar {
    height: 5px;
    background: var(--surface2);
    border-radius: 99px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 99px;
    transition: width 1s cubic-bezier(0.2, 0.9, 0.4, 1);
}

.skill-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.skill-desc {
    font-size: 0.7rem;
    color: var(--muted);
}

.skill-pct {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

@media (max-width: 720px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    padding: 28px;
    background: rgba(17, 17, 20, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cinfo-icon {
    width: 48px;
    height: 48px;
    border-radius: 20px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-info p {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 18px;
    background: #0d0d10;
    border: 1px solid #26262c;
    text-decoration: none;
    color: var(--text);
    transition: 0.2s;
}

.contact-item:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.ci-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 1rem;
}

.ci-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ci-val {
    font-size: 0.85rem;
    font-weight: 600;
}

.ci-arrow {
    color: var(--muted);
    font-size: 0.7rem;
}

.contact-form {
    padding: 28px;
    background: rgba(17, 17, 20, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 600 0.75rem 'Inter', sans-serif;
    color: var(--muted);
    margin-bottom: 6px;
}

.input-wrap input,
.input-wrap textarea {
    width: 100%;
    background: #0c0c0e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    transition: 0.2s;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
    border-color: var(--accent);
}

.form-status {
    text-align: center;
    padding: 8px;
    border-radius: 30px;
    margin-top: 12px;
    display: none;
    font-size: 0.8rem;
}

.form-status.success {
    background: #10b98120;
    color: #6ee7b7;
    display: block;
}

.form-status.error {
    background: #ef444420;
    color: #fca5a5;
    display: block;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px 24px;
    text-align: center;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    margin: 0 4px;
    transition: 0.2s;
}

.footer-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.footer-copy {
    color: var(--muted);
    font-size: 0.7rem;
}

.back-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 99;
}

.back-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-top:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.typing-cursor {
    display: inline-block;
    color: var(--accent);
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.splash-prefix {
    color: var(--muted);
}

.scroll-progress {
    display: none;
}

.sd-track {
    display: none;
}