/* ============================================================
   THEME TOKENS — dark HUD / circuit-board aesthetic
   Same class names as before → drop-in replacement for your HTML.
   ============================================================ */
:root {
    --void: #060608;
    --deep: #0c0e18;
    --panel: #10121c;

    --cyan: #00e5ff;
    --cyan-dim: #0099b8;
    --violet: #7c4dff;
    --magenta: #ff2e93;      /* rare accent — signature glow only */

    --ink: #f2f5f9;
    --ink-soft: #cdd3e0;
    --muted: #7c8494;

    --line: rgba(0, 229, 255, 0.16);
    --line-strong: rgba(0, 229, 255, 0.42);

    --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: 'Vazirmatn', sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sans);
    background: var(--void);
    color: var(--ink);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0;
}

/* ============================================================
   AMBIENT BACKDROP — circuit grid + drifting glow (signature)
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    background: linear-gradient(180deg, var(--void) 0%, var(--deep) 100%);
    min-height: 100vh;
    padding: 3rem 2rem;
    position: relative;
    overflow-y: auto;
    border-left: 1px solid var(--line);
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 80% 15%, rgba(124, 77, 255, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.profile-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.profile-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    border-radius: 1px;
}

.profile-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    background: conic-gradient(from 180deg, var(--cyan), var(--violet), var(--cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #ffffff;
    box-shadow:
        0 0 60px rgba(0, 229, 255, 0.35),
        inset 0 0 20px rgba(255, 255, 255, 0.12);
    border: 4px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--deep);
    z-index: 0;
}

.profile-image > * {
    position: relative;
    z-index: 1;
}

/* HUD reticle corners — the signature motif, echoed on cards below */
.profile-section {
    position: relative;
}

.profile-image::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed var(--line-strong);
    animation: spin-slow 18s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.name {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    text-align: center;
}

.title {
    color: var(--cyan);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
    font-family: var(--mono);
    position: relative;
}

.title::before {
    content: '// ';
    color: var(--violet);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.4s var(--ease);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.social-link i, .social-link svg {
    position: relative;
    z-index: 1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.08);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.4);
    border-color: transparent;
}

.contact-info, .skills-section, .languages {
    margin-bottom: 3rem;
}

.contact-info h4, .skills-section h4, .languages h4 {
    color: var(--cyan);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    position: relative;
}

.contact-info h4::before, .skills-section h4::before, .languages h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.contact-info h4::after, .skills-section h4::after, .languages h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    border-radius: 1px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--line);
    border-right: 2px solid var(--cyan-dim);
    transition: all 0.4s var(--ease);
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: var(--line-strong);
    border-right-color: var(--cyan);
    transform: translateX(-8px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.12);
}

.contact-item i {
    color: var(--cyan);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 0.95rem;
}

.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--line);
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
    border-radius: 2px;
    transition: width 1.5s var(--ease);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.55);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2.2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.language-item:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: var(--line-strong);
    transform: translateX(-5px);
}

.level {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--mono);
    background: rgba(0, 229, 255, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--line-strong);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    padding: 3rem 4rem;
    background: transparent;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(124, 77, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.header-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(12, 14, 24, 0.7));
    border-radius: 4px;
    border: 1px solid var(--line-strong);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(0, 229, 255, 0.08) 50%, transparent 70%);
    animation: headerGlow 4s ease-in-out infinite alternate;
}

/* corner brackets — signature HUD frame, reused on cards */
.header-section::after,
.section::after,
.project-card::after,
.certificate-item::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--cyan-dim), var(--cyan-dim)), linear-gradient(var(--cyan-dim), var(--cyan-dim)),
        linear-gradient(var(--cyan-dim), var(--cyan-dim)), linear-gradient(var(--cyan-dim), var(--cyan-dim));
    background-repeat: no-repeat;
    background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px;
    background-position: top 0 right 0, top 0 right 0, bottom 0 left 0, bottom 0 left 0;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.header-section:hover::after,
.section:hover::after,
.project-card:hover::after,
.certificate-item:hover::after {
    opacity: 1;
}

@keyframes headerGlow {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.main-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--cyan);
    font-weight: 500;
    letter-spacing: 1px;
    font-family: var(--mono);
    position: relative;
    z-index: 1;
}

.section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 4px;
    border: 1px solid var(--line);
    transition: all 0.4s var(--ease);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--cyan));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.section:hover::before {
    transform: scaleX(1);
}

.section:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line-strong);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.12);
}

.section h3 {
    color: var(--cyan);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--line);
    padding-bottom: 1rem;
    font-weight: 700;
}

.section p {
    line-height: 1.9;
    color: var(--ink-soft);
    font-size: 1.15rem;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), rgba(124, 77, 255, 0.02));
    border-radius: 6px;
    border-left: 3px solid var(--cyan);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.experience-item:hover {
    border-left-color: var(--violet);
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h4 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.company {
    color: var(--cyan);
    font-weight: 600;
    margin-left: 1.5rem;
    font-size: 1.1rem;
}

.period {
    color: var(--muted);
    font-size: 0.9rem;
    font-family: var(--mono);
    background: rgba(0, 229, 255, 0.08);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    border: 1px solid var(--line-strong);
    display: inline-block;
    margin-top: 0.5rem;
}

.experience-item ul {
    list-style: none;
    padding-right: 0;
}

.experience-item li {
    margin-bottom: 1rem;
    padding-right: 1.6rem;
    position: relative;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.6;
}

.experience-item li::before {
    content: '▸';
    color: var(--cyan);
    position: absolute;
    right: 0;
    font-weight: bold;
}

.education-item h4 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.education-item p {
    color: var(--cyan);
    font-weight: 600;
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), rgba(124, 77, 255, 0.02));
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(124, 77, 255, 0.05));
    border-color: var(--cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
}

.project-card h5 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card p {
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.project-tech span {
    background: transparent;
    color: var(--cyan);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    border: 1px solid var(--line-strong);
    font-size: 0.85rem;
    font-family: var(--mono);
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background: var(--cyan);
    color: var(--void);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.35);
}

.certificates {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.certificate-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 229, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.certificate-item:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.25);
}

.certificate-item i {
    font-size: 1.8rem;
    color: var(--cyan);
    transition: all 0.3s ease;
}

.certificate-item:hover i {
    transform: scale(1.15);
    color: var(--magenta);
}

/* ============================================================
   RESPONSIVE — unchanged structure, same breakpoints as before
   ============================================================ */
@media (max-width: 1399.98px) {
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.8rem; }
    .main-content { padding: 2.5rem 3rem; }
    .sidebar { padding: 2.5rem 1.8rem; }
}

@media (max-width: 1199.98px) {
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
    .main-content { padding: 2.5rem 2.5rem; }
    .sidebar { padding: 2.5rem 1.5rem; }
    .main-title { font-size: 3.5rem; }
    .profile-image { width: 130px; height: 130px; font-size: 3.2rem; }
    .section { padding: 2.2rem; margin-bottom: 3.5rem; }
    .header-section { padding: 2.5rem; margin-bottom: 3.5rem; }
}

@media (max-width: 991.98px) {
    .sidebar { min-height: auto; border-left: none; border-bottom: 2px solid var(--line-strong); padding: 2rem 1.5rem; order: 2; }
    .main-content { padding: 2rem 2rem; order: 1; }
    .main-title { font-size: 3rem; }
    .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .profile-image { width: 120px; height: 120px; font-size: 3rem; }
    .section { padding: 2rem 1.8rem; margin-bottom: 3rem; }
    .header-section { padding: 2.5rem 2rem; margin-bottom: 3rem; }
    .experience-item { padding: 1.8rem; margin-bottom: 2rem; }
    .project-card { padding: 1.8rem; }
    .certificate-item { padding: 1.2rem 1.5rem; }
    .social-link { width: 45px; height: 45px; }
    .contact-item, .language-item { padding: 0.9rem 1rem; }
    .skill-item { margin-bottom: 1.3rem; }
}

@media (max-width: 767.98px) {
    .sidebar, .main-content { padding: 1.5rem 1rem; }
    .main-title { font-size: 2.5rem; }
    .subtitle { font-size: 1.1rem; }
    .section { padding: 1.8rem 1.5rem; margin-bottom: 2.5rem; }
    .header-section { padding: 2rem 1.5rem; margin-bottom: 2.5rem; }
    .profile-image { width: 100px; height: 100px; font-size: 2.5rem; }
    .name { font-size: 1.8rem; }
    .title { font-size: 1.1rem; }
    .social-link { width: 40px; height: 40px; }
    .contact-info h4, .skills-section h4, .languages h4 { font-size: 1.2rem; margin-bottom: 1.5rem; }
    .section h3 { font-size: 1.6rem; margin-bottom: 1.5rem; }
    .experience-item { padding: 1.5rem; margin-bottom: 1.8rem; }
    .experience-header h4 { font-size: 1.3rem; }
    .project-card { padding: 1.5rem; }
    .project-card h5 { font-size: 1.2rem; }
    .certificate-item { padding: 1rem 1.2rem; gap: 0.8rem; }
    .certificate-item i { font-size: 1.5rem; }
    .projects-grid { gap: 1.2rem; }
    .contact-item, .language-item { padding: 0.8rem 1rem; margin-bottom: 1rem; }
    .skill-item { margin-bottom: 1.2rem; }
    .progress { height: 7px; }
    .company { margin-left: 1rem; font-size: 1rem; }
    .period { font-size: 0.85rem; padding: 0.35rem 0.75rem; }
}

@media (max-width: 575.98px) {
    .container-fluid { padding: 0; }
    .sidebar, .main-content { padding: 1.2rem 0.8rem; }
    .main-title { font-size: 2.2rem; line-height: 1.2; }
    .subtitle { font-size: 1rem; }
    .section { padding: 1.5rem 1.2rem; margin-bottom: 2rem; border-radius: 4px; }
    .header-section { padding: 1.8rem 1.2rem; margin-bottom: 2rem; border-radius: 4px; }
    .profile-image { width: 90px; height: 90px; font-size: 2.2rem; }
    .name { font-size: 1.6rem; }
    .title { font-size: 0.9rem; }
    .social-link { width: 35px; height: 35px; }
    .contact-info h4, .skills-section h4, .languages h4 { font-size: 1.1rem; margin-bottom: 1.2rem; }
    .section h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
    .section p { font-size: 1rem; line-height: 1.7; }
    .experience-item { padding: 1.2rem; margin-bottom: 1.5rem; border-radius: 4px; }
    .experience-header h4 { font-size: 1.2rem; }
    .experience-item li { font-size: 1rem; padding-right: 1.4rem; margin-bottom: 0.8rem; }
    .project-card { padding: 1.2rem; border-radius: 4px; }
    .project-card h5 { font-size: 1.1rem; }
    .project-card p { font-size: 0.95rem; }
    .project-tech span { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
    .certificate-item { padding: 0.8rem 1rem; border-radius: 4px; }
    .certificate-item i { font-size: 1.3rem; }
    .contact-item, .language-item { padding: 0.7rem 0.9rem; border-radius: 4px; }
    .skill-item { margin-bottom: 1rem; }
    .progress { height: 6px; }
    .company { margin-left: 0.8rem; font-size: 0.95rem; }
    .period { font-size: 0.8rem; padding: 0.3rem 0.65rem; margin-top: 0.3rem; }
    .level { font-size: 0.75rem; padding: 0.3rem 0.65rem; }
    .projects-grid { gap: 1rem; }
    .certificates { gap: 1rem; }
    .social-links { gap: 1rem; }
    .contact-info, .skills-section, .languages { margin-bottom: 2.5rem; }
    .profile-section { margin-bottom: 3rem; padding-bottom: 2.5rem; }
}

@media (max-width: 480px) {
    .sidebar, .main-content { padding: 1rem 0.6rem; }
    .main-title { font-size: 2rem; }
    .subtitle { font-size: 0.95rem; }
    .section { padding: 1.3rem 1rem; margin-bottom: 1.8rem; }
    .header-section { padding: 1.5rem 1rem; margin-bottom: 1.8rem; }
    .profile-image { width: 80px; height: 80px; font-size: 2rem; }
    .name { font-size: 1.5rem; }
    .title { font-size: 0.85rem; }
    .social-link { width: 32px; height: 32px; }
    .section h3 { font-size: 1.3rem; }
    .experience-item { padding: 1rem; }
    .project-card { padding: 1rem; }
    .certificate-item { padding: 0.7rem 0.9rem; }
    .contact-item, .language-item { padding: 0.6rem 0.8rem; }
}

@media (max-width: 360px) {
    .sidebar, .main-content { padding: 0.8rem 0.5rem; }
    .main-title { font-size: 1.8rem; }
    .subtitle { font-size: 0.9rem; }
    .section { padding: 1.2rem 0.8rem; margin-bottom: 1.5rem; }
    .header-section { padding: 1.3rem 0.8rem; margin-bottom: 1.5rem; }
    .profile-image { width: 70px; height: 70px; font-size: 1.8rem; }
    .name { font-size: 1.4rem; }
    .title { font-size: 0.8rem; }
    .social-link { width: 30px; height: 30px; }
    .section h3 { font-size: 1.2rem; }
    .experience-item { padding: 0.8rem; }
    .project-card { padding: 0.8rem; }
    .certificate-item { padding: 0.6rem 0.8rem; }
    .contact-item, .language-item { padding: 0.5rem 0.7rem; }
}

@media (max-height: 600px) and (orientation: landscape) {
    .sidebar { min-height: auto; padding: 1.5rem 1rem; }
    .profile-section { margin-bottom: 2rem; padding-bottom: 1.5rem; }
    .profile-image { width: 80px; height: 80px; font-size: 2.2rem; margin-bottom: 1rem; }
    .name { font-size: 1.4rem; margin-bottom: 0.5rem; }
    .title { font-size: 1rem; margin-bottom: 1rem; }
    .social-links { gap: 0.8rem; }
    .social-link { width: 35px; height: 35px; }
    .contact-info, .skills-section, .languages { margin-bottom: 1.5rem; }
    .contact-info h4, .skills-section h4, .languages h4 { margin-bottom: 1rem; font-size: 1.1rem; }
    .contact-item, .language-item { padding: 0.6rem 0.8rem; margin-bottom: 0.8rem; }
    .skill-item { margin-bottom: 1rem; }
    .main-content { padding: 1.5rem 2rem; }
    .header-section { padding: 1.5rem 2rem; margin-bottom: 2rem; }
    .main-title { font-size: 2.5rem; margin-bottom: 0.8rem; }
    .subtitle { font-size: 1.1rem; }
    .section { padding: 1.5rem 2rem; margin-bottom: 2rem; }
    .section h3 { font-size: 1.4rem; margin-bottom: 1rem; }
    .experience-item { padding: 1.2rem; margin-bottom: 1.5rem; }
    .project-card { padding: 1.2rem; }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image { border-width: 2px; }
    .progress { border-width: 0.5px; }
    .section { border-width: 0.5px; }
    .experience-item { border-left-width: 2px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    body { background: white; color: black; }
    .sidebar { background: white; border: 1px solid #ccc; }
    .main-content { background: white; }
    .section { background: white; border: 1px solid #ccc; box-shadow: none; }
    .profile-image { background: #f0f0f0; color: #666; box-shadow: none; }
    .social-link { background: #f0f0f0; color: #666; box-shadow: none; }
    .progress-bar { background: #666; box-shadow: none; }
    .project-tech span { background: #f0f0f0; color: #333; box-shadow: none; border-color: #ccc; }
    .certificate-item { background: #f0f0f0; border: 1px solid #ccc; }
    .contact-item, .language-item { background: #f9f9f9; border: 1px solid #ddd; }
    .experience-item { background: #f9f9f9; border-left: 2px solid #666; }
    .header-section { background: #f0f0f0; border: 1px solid #ccc; }
    .main-title, .name { color: #333; -webkit-text-fill-color: #333; }
    .subtitle, .title, .company, .level, .period { color: #666; }
    .section h3 { color: #333; }
    .level, .period { background: #f0f0f0; border: 1px solid #ccc; }
    .contact-item i, .section h3 i, .certificate-item i { color: #666; }
    .experience-item li::before { color: #666; }
    .contact-info h4::after, .skills-section h4::after, .languages h4::after,
    .profile-section::after, .section::before { background: #666; }
    .progress { background: #f0f0f0; border: 1px solid #ccc; }
    .social-links { display: none; }
    body::before,
    .sidebar::before, .main-content::before, .header-section::before, .header-section::after,
    .section::after, .experience-item::before, .project-card::after,
    .certificate-item::after, .profile-image::before, .profile-image::after,
    .progress::before, .progress-bar::after, .social-link::before {
        display: none;
    }
    .profile-image, .social-link, .section, .experience-item, .project-card,
    .certificate-item, .contact-item, .language-item {
        animation: none; transform: none; transition: none;
    }
    .section:hover, .experience-item:hover, .project-card:hover,
    .certificate-item:hover, .contact-item:hover, .language-item:hover {
        transform: none; box-shadow: none; background: inherit; border-color: inherit;
    }
    .social-link:hover, .project-tech span:hover { transform: none; box-shadow: none; }
    .section:hover h3, .project-card:hover h5 { color: inherit; text-shadow: none; }
    .experience-item:hover { border-left-color: inherit; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 5px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.08);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, var(--violet), var(--cyan)); }

/* ============================================================
   ENTRANCE + GLOW ENHANCEMENTS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.section { animation: fadeInUp 0.7s var(--ease) both; }
.section:nth-child(2) { animation-delay: 0.08s; }
.section:nth-child(3) { animation-delay: 0.16s; }
.section:nth-child(4) { animation-delay: 0.24s; }
.section:nth-child(5) { animation-delay: 0.32s; }

.section:hover h3 {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.project-card:hover h5 {
    color: var(--cyan);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible,
.social-link:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}