/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #000000;
    --card-bg: #0a0a0a;
    --border-color: #1f1f1f;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-hover: #1a1a1a;
    --orange-glow: #ff5e00;
    --purple-glow: #7d00ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* This part deletes the highlight effect */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
}

/* --- MAIN CONTAINER --- */
.hero-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- CARDS GENERAL STYLE --- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #e0e0e0;
}

/* --- TOP ROW SPLIT (RESPONSIVE) --- */
.top-row {
    display: grid;
    grid-template-columns: 2fr 350px;
    gap: 24px;
    align-items: stretch;
}

/* Intro Card Styling */
.intro-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-small img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-text h3 {
    font-size: 15px;
    font-weight: 600;
}

.meta-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-hover);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.icon-box:hover {
    background: #333;
}

.btn-pill {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0 20px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: 0.2s;
}

.btn-pill:hover {
    background: #fff;
    color: #000;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    font-weight: 500;
}

.bio {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
    max-width: 90%;
}

/* --- AVATAR CARD (RESPONSIVE) --- */
.avatar-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.memoji {
    width: 75%;
    height: auto;
    max-width: 300px;
    object-fit: contain;
    z-index: 2;
    filter: none;
    display: block;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at center, white 0.5px, transparent 1px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0.5px, transparent 1px);
    background-size: 100px 100px, 70px 70px;
    background-position: 0 0, 35px 35px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    animation: moveStars 50s linear infinite;
}

@keyframes moveStars {
    from {
        background-position: 0 0, 35px 35px;
    }

    to {
        background-position: 0 700px, 35px 735px;
    }
}

/* --- ANIMATED TRAIN (MARQUEE) SECTION --- */
.logo-section {
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logo-label {
    color: #666;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: bold;
    /* This makes the text bold */
}

.logo-overflow-mask {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-track {
    display: inline-flex;
    gap: 60px;
    /* This creates the train movement */
    animation: trainMove 20s linear infinite;
}

.logo-item {
    font-size: 15px;
    color: #fff;
    opacity: 0.6;
    white-space: nowrap;
    cursor: default;
    flex-shrink: 0;
}

@keyframes trainMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- CREDENTIALS CARD --- */
.credentials-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 200px;
}

.cred-content h2 {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 24px;
}

.uni-text {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 8px;
}

.certs-text {
    font-size: 16px;
    color: #d3d3d3;
    font-family: monospace;
    letter-spacing: -0.5px;
}

.cred-action {
    margin-bottom: 50px;
    margin-right: 40px;
}

.cv-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.cv-link:hover {
    background: rgba(248, 248, 248, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.cv-link svg {
    transition: transform 0.3s ease;
}

.cv-link:hover svg {
    transform: rotate(-90deg);
}

/* --- PROJECTS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    border-color: #333;
    transform: translateY(-4px);
}

.card-glow {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    height: 70%;
    z-index: 0;
    opacity: 0.15;
    filter: blur(60px);
    transition: opacity 0.3s ease;
}

.glow-orange {
    background: radial-gradient(circle at 50% 50%, var(--orange-glow), transparent 60%);
}

.glow-purple {
    background: radial-gradient(circle at 50% 50%, var(--purple-glow), transparent 60%);
}

.project-card:hover .card-glow {
    opacity: 0.25;
}

.project-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px;
}

.project-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.preview-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease;
}

.project-card:hover .preview-img {
    transform: scale(1.03) translateY(-5px);
}

.project-details {
    margin-top: auto;
}

.project-title {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
}

.project-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- SERVICES / HELP CARD --- */
.help-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    padding: 60px;
    gap: 40px;
}

.help-content h2 {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 50px;
    letter-spacing: -1.5px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 50px;
}

.service-item h4 {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-tag {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 400;
}

.service-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 90%;
}

.cta-arrow-link {
    /* --- Layout & Base --- */
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    /* --- Transitions --- */
    /* We add 'text-shadow' and 'filter' to the transition so the light turns on slowly */
    transition: gap 0.3s ease, text-shadow 0.3s ease, filter 0.3s ease;
}

.cta-arrow-link:hover {
    /* 1. Move the arrow */
    gap: 16px;

    /* 2. SUPER GLOW Effect */
    /* We stack shadows: Sharp Core + Medium Bloom + Wide Atmosphere */
    text-shadow:
        0 0 5px #fff,
        /* Inner sharp light (Intensity) */
        0 0 20px #fff,
        /* Soft bloom (Bright) */
        0 0 50px #fff,
        /* Wide glow (Atmosphere) */
        0 0 100px rgba(255, 255, 255, 0.8);
    /* Far reaching light */
}

/* Optional: Make the arrow glow just as hard */
.cta-arrow-link:hover svg {
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 20px #fff);
}


.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 40px;
    border-radius: 20px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.45s ease, color 0.45s ease;
}

/* On hover the white background fades in slowly and text turns dark.
   No layout/gap changes so it stays a single stable "like" appearance. */
.btn-pill:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
}

.help-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.help-avatar {
    width: 100%;
    max-width: 350px;
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.9));
    transform: scaleX(-1);
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
    border-top: 1px solid transparent;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 12px;
    color: #fff;
}

.footer-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.footer-social-icon {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-social-icon:hover {
    opacity: 1;
}

.copyright {
    font-size: 13px;
    color: #444;
}

.copyright span {
    color: #666;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .top-row {
        grid-template-columns: 1fr;
    }

    .avatar-card {
        height: 400px;
    }

    .memoji {
        width: auto;
        height: 80%;
        max-width: none;
    }

    .credentials-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

    .help-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        text-align: center;
    }

    .help-content h2 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .service-item h4 {
        justify-content: center;
        flex-wrap: wrap;
    }

    .service-desc {
        margin: 0 auto;
    }

    .help-visual {
        order: -1;
        margin-bottom: 20px;
    }

    .help-avatar {
        max-width: 200px;
    }
}

/* --- NEW ADDITIONS --- */
/* 1. The Skill Badge */
.skill-badge {
    display: inline-block;
    font-size: 12px;
    color: #999;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 12px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .skill-badge {
        margin-left: 0;
        margin-top: 5px;
        display: table;
    }
}

/* 2. The UPDATED Single Star Animation */
.single-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    /* Animation Name | Duration | Timing | Infinite Loop */
    animation: shootingStarMove 10s linear infinite;
}

@keyframes shootingStarMove {
    0% {
        top: 0;
        left: 0;
        opacity: 0;
        /* Start small and with no shadow */
        transform: scale(0.5);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    10% {
        opacity: 1;
    }

    50% {
        /* Mid-flight: Grow Big and add Shadow/Tail Effect */
        transform: scale(2.5);
        /* Grows much bigger */

        /* Complex shadow for the "effect when it goes" */
        box-shadow:
            0 0 15px 4px rgba(255, 255, 255, 0.9),
            /* Core glow */
            -10px -10px 30px 2px rgba(255, 255, 255, 0.5);
        /* The "Tail" trailing behind */
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        top: 100%;
        left: 100%;
        opacity: 0;
        transform: scale(0.5);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- AI FEATURE STYLES --- */
.ai-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-header h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
}

.ai-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.ai-input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s;
    width: 100%;
}

.ai-textarea:focus {
    outline: none;
    border-color: var(--purple-glow);
}

.ai-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--purple-glow), var(--orange-glow));
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.ai-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.ai-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-result {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-top: 10px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.ai-result h4 {
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-result p {
    color: #ccc;
    line-height: 1.6;
    font-size: 15px;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid #ccc;
    /* optional styling */
}

.scroll-text {
    display: inline-block;
    padding-left: 100%;
    /* start off-screen */
    animation: scroll 20s linear infinite;
    /* 20s = slower speed */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}