/* ============================================
   ARSLAN LIN - CV & PORTOFOLIO
   IT Theme - Dark Mode with Neon Accents
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(18, 18, 42, 0.6);
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0c0;
    --accent-1: #00ff9d;
    --accent-2: #00b4ff;
    --accent-3: #ff3366;
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --border-color: rgba(0, 255, 157, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-neon: 0 0 30px rgba(0, 255, 157, 0.1);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 255, 157, 0.03) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(0, 180, 255, 0.03) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 80%, rgba(255, 51, 102, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Particle Canvas ---- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Container ---- */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Glass Card Effect ---- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: var(--transition);
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    border-color: var(--accent-1);
    box-shadow: var(--shadow-neon), 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* ---- Section Styles ---- */
.section {
    padding: 100px 0 60px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.section-header .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 15px auto 0;
    border-radius: 3px;
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 7px;
    background: var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-1);
}

/* ---- HERO SECTION ---- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.profile-frame {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.profile-img-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: visible;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid var(--accent-1);
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.2), 0 0 80px rgba(0, 255, 157, 0.05);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 60px rgba(0, 255, 157, 0.3), 0 0 120px rgba(0, 255, 157, 0.1);
}

.profile-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 4s linear infinite;
    z-index: 1;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--accent-1);
    z-index: -1;
    animation: glitch-left 3s infinite;
}

.glitch-text::after {
    color: var(--accent-3);
    z-index: -2;
    animation: glitch-right 3s infinite;
}

@keyframes glitch-left {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 1px); }
    94% { transform: translate(2px, -1px); }
    96% { transform: translate(-1px, 2px); }
}

@keyframes glitch-right {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(3px, -1px); }
    94% { transform: translate(-2px, 1px); }
    96% { transform: translate(1px, -2px); }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* ---- Buttons ---- */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-1);
    border: 2px solid var(--accent-1);
}

.btn-secondary:hover {
    background: rgba(0, 255, 157, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.2);
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.2rem;
    color: var(--accent-1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---- ABOUT SECTION ---- */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text p strong {
    color: var(--accent-1);
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--accent-1);
    background: rgba(0, 255, 157, 0.05);
}

.info-item i {
    font-size: 1.3rem;
    color: var(--accent-1);
    width: 30px;
    text-align: center;
}

/* ---- TIMELINE (Experience & Education) ---- */
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.column-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--accent-1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.column-title i {
    font-size: 1.3rem;
}

.timeline-items {
    position: relative;
    padding-left: 30px;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}

.timeline-item {
    position: relative;
    padding: 25px;
    margin-bottom: 25px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-1);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 15px var(--accent-1);
    z-index: 2;
}

.timeline-date {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--accent-2);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-item h5 {
    font-size: 0.95rem;
    color: var(--accent-1);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-item p,
.timeline-item ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-item ul {
    list-style: none;
    padding: 0;
}

.timeline-item ul li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.timeline-item ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: bold;
}

/* ---- SKILLS ---- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.skill-info span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.skill-percent {
    color: var(--accent-1);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    background: var(--accent-gradient);
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

/* Skill Tags (Soft Skills) */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 10px 22px;
    background: rgba(0, 255, 157, 0.06);
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.tag:hover {
    background: rgba(0, 255, 157, 0.12);
    border-color: var(--accent-1);
    color: var(--accent-1);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
    transform: translateY(-2px);
}

/* ---- DOCUMENTATION ---- */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.doc-item {
    padding: 8px;
    cursor: pointer;
}

.doc-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4/3;
}

.doc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.doc-item:hover .doc-img-wrapper img {
    transform: scale(1.1);
}

.doc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.doc-item:hover .doc-overlay {
    transform: translateY(0);
}

/* ---- EXTERNAL LINKS ---- */
.ext-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ext-link-card {
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ext-link-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 255, 157, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-1);
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 157, 0.15);
}

.ext-link-card:hover .ext-link-icon {
    background: rgba(0, 255, 157, 0.15);
    box-shadow: 0 0 35px rgba(0, 255, 157, 0.2);
    transform: scale(1.1);
}

.ext-link-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--accent-1);
}

.ext-link-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.ext-link-arrow {
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition);
    color: var(--accent-1);
    font-size: 1.2rem;
}

.ext-link-card:hover .ext-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- CONTACT SECTION ---- */
.contact-content {
    text-align: center;
    padding: 50px;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.social-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.05);
}

.social-icon.whatsapp {
    color: #25D366;
}
.social-icon.whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
    background: rgba(37, 211, 102, 0.1);
}

.social-icon.instagram {
    color: #E4405F;
}
.social-icon.instagram:hover {
    border-color: #E4405F;
    box-shadow: 0 0 30px rgba(228, 64, 95, 0.3);
    background: rgba(228, 64, 95, 0.1);
}

.social-icon.tiktok {
    color: #ffffff;
}
.social-icon.tiktok:hover {
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.social-icon.youtube {
    color: #FF0000;
}
.social-icon.youtube:hover {
    border-color: #FF0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.1);
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--accent-1);
    font-size: 1.2rem;
}

/* ---- FOOTER ---- */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0;
}

footer strong {
    color: var(--accent-1);
}

.footer-tech {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.3);
    transition: var(--transition);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.5);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ext-link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0 40px;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .profile-img-wrapper {
        width: 200px;
        height: 200px;
    }
    .doc-grid {
        grid-template-columns: 1fr;
    }
    .ext-link-grid {
        grid-template-columns: 1fr;
    }
    .contact-details {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .about-content,
    .timeline-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .profile-img-wrapper {
        width: 160px;
        height: 160px;
    }
    .social-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}
