 :root {
        --bg: #080c14;
        --bg2: #0d1520;
        --bg3: #111c2d;
        --cyan: #00e5ff;
        --cyan2: #00b8d4;
        --green: #00e676;
        --amber: #ffd740;
        --purple: #b388ff;
        --text: #e8f0fe;
        --text2: #8ca0c0;
        --border: rgba(0, 229, 255, 0.15);
        --card: rgba(13, 21, 32, 0.85);
        --nav-bg: rgba(8, 12, 20, 0.85);
        --canvas-opacity: 0.35;
      }
      [data-theme="light"] {
        --bg: #eef2f7;
        --bg2: #ffffff;
        --bg3: #e3eaf3;
        --cyan: #0097a7;
        --cyan2: #00838f;
        --green: #00a152;
        --amber: #b8860b;
        --purple: #6a3fd6;
        --text: #1a2230;
        --text2: #54637a;
        --border: rgba(0, 151, 167, 0.22);
        --card: rgba(255, 255, 255, 0.9);
        --nav-bg: rgba(255, 255, 255, 0.88);
        --canvas-opacity: 0.4;
      }
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
      }
      body {
        background: var(--bg);
        color: var(--text);
        font-family: "DM Sans", sans-serif;
        overflow-x: hidden;
        transition: background 0.3s, color 0.3s;
      }
      section,
      footer {
        transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
      }
      html.lang-switching section,
      html.lang-switching footer {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(-12px);
      }

      /* ---- CANVAS BG ---- */
      #neural-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        opacity: var(--canvas-opacity);
        pointer-events: none;
      }

      /* ---- SCROLLBAR ---- */
      ::-webkit-scrollbar {
        width: 6px;
      }
      ::-webkit-scrollbar-track {
        background: var(--bg);
      }
      ::-webkit-scrollbar-thumb {
        background: var(--cyan2);
        border-radius: 3px;
      }

      /* ---- NAV ---- */
      nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 1rem 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
      }
      .nav-logo {
        display: block;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--cyan);
        transition: transform 0.2s;
      }
      .nav-logo:hover {
        transform: scale(1.08);
      }
      .nav-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      .nav-links {
        display: flex;
        gap: 1.4rem;
      }
      .nav-links a {
        color: var(--text2);
        text-decoration: none;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        white-space: nowrap;
        transition: color 0.2s;
      }
      .nav-links a:hover {
        color: var(--cyan);
      }
      .nav-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
      }
      .nav-toggle span {
        width: 24px;
        height: 2px;
        background: var(--cyan);
        transition: transform 0.3s, opacity 0.3s;
      }
      .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }
      .nav-toggle.open span:nth-child(2) {
        opacity: 0;
      }
      .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }
      .nav-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
      }
      .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.85rem;
      }
      .theme-toggle {
        background: none;
        border: 1px solid var(--border);
        border-radius: 50%;
        width: 34px;
        height: 34px;
        font-size: 1rem;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: border-color 0.2s, transform 0.2s;
      }
      .theme-toggle:hover {
        border-color: var(--cyan);
        transform: scale(1.1);
      }
      .lang-switch {
        position: relative;
        display: inline-flex;
        align-items: center;
        border: 1px solid var(--border);
        border-radius: 100px;
        background: var(--bg3);
        padding: 3px;
        cursor: pointer;
        font-family: "Space Mono", monospace;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
        transition: border-color 0.2s;
      }
      .lang-switch:hover {
        border-color: var(--cyan);
      }
      .lang-switch::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: calc(50% - 3px);
        height: calc(100% - 6px);
        background: linear-gradient(135deg, var(--cyan), var(--cyan2));
        border-radius: 100px;
        box-shadow: 0 2px 6px rgba(0, 229, 255, 0.35);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
      }
      html[lang="de"] .lang-switch::before {
        transform: translateX(100%);
      }
      .lang-opt {
        position: relative;
        z-index: 1;
        width: 32px;
        text-align: center;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: var(--text2);
        transition: color 0.32s ease;
      }
      html[lang="en"] .lang-opt[data-lang="en"],
      html[lang="de"] .lang-opt[data-lang="de"] {
        color: #07101c;
      }

      /* ---- SECTIONS ---- */
      section {
        position: relative;
        z-index: 1;
      }
      .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 2rem;
      }

      /* ---- HERO ---- */
      #hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding-top: 80px;
      }
      .hero-grid {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 4rem;
        align-items: center;
      }
      .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(0, 229, 255, 0.08);
        border: 1px solid var(--border);
        border-radius: 100px;
        padding: 0.35rem 1rem;
        font-size: 0.75rem;
        color: var(--cyan);
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
      }
      .hero-badge::before {
        content: "";
        width: 6px;
        height: 6px;
        background: var(--green);
        border-radius: 50%;
        animation: pulse 2s infinite;
      }
      h1 {
        font-family: "Space Mono", monospace;
        font-size: clamp(2rem, 5vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 1rem;
      }
      h1 span {
        color: var(--cyan);
      }
      .hero-sub {
        color: var(--text2);
        font-size: 1.05rem;
        line-height: 1.7;
        max-width: 480px;
        margin-bottom: 2rem;
      }
      .hero-ctas {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
      }
      .btn-primary {
        background: var(--cyan);
        color: var(--bg);
        padding: 0.75rem 1.75rem;
        border-radius: 6px;
        font-weight: 700;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s;
        border: none;
        cursor: pointer;
      }
      .btn-primary:hover {
        background: #33ecff;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
      }
      .btn-outline {
        border: 1px solid var(--border);
        color: var(--text);
        padding: 0.75rem 1.75rem;
        border-radius: 6px;
        font-weight: 500;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s;
        background: transparent;
        cursor: pointer;
      }
      .btn-outline:hover {
        border-color: var(--cyan);
        color: var(--cyan);
      }
      .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem;
        border-radius: 3px;
      }
      .hero-stats {
        display: flex;
        gap: 2.5rem;
        margin-top: 2.5rem;
        padding-top: 2.5rem;
        border-top: 1px solid var(--border);
      }
      .stat-item span {
        display: block;
      }
      .stat-num {
        font-family: "Space Mono", monospace;
        font-size: 1.8rem;
        color: var(--cyan);
      }
      .stat-label {
        font-size: 0.8rem;
        color: var(--text2);
      }

      /* PROFILE CARD */
      .profile-card {
        position: relative;
      }
      .profile-img-wrap {
        position: relative;
        width: 280px;
        height: 280px;
        margin: 0 auto 1.5rem;
      }
      .profile-img-wrap::before {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        background: conic-gradient(var(--cyan), var(--purple), var(--cyan));
        animation: spin 6s linear infinite;
        z-index: -1;
      }
      .profile-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        object-position: top;
        border: 4px solid var(--bg);
      }
      .profile-info-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.25rem;
        backdrop-filter: blur(10px);
      }
      .info-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      }
      .info-row:last-child {
        border-bottom: none;
      }
      .info-icon {
        color: var(--cyan);
        font-size: 1rem;
        width: 20px;
        text-align: center;
      }
      .info-text {
        font-size: 0.82rem;
        color: var(--text2);
      }
      .info-text a {
        color: var(--cyan);
        text-decoration: none;
      }
      .info-text a:hover {
        text-decoration: underline;
      }

      /* ---- SECTION TITLES ---- */
      .section-header {
        margin-bottom: 3rem;
      }
      .section-label {
        font-family: "Space Mono", monospace;
        font-size: 0.7rem;
        letter-spacing: 4px;
        color: var(--cyan);
        text-transform: uppercase;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
      }
      .section-label::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, var(--border), transparent);
      }
      .section-title {
        font-family: "Space Mono", monospace;
        font-size: clamp(1.5rem, 3vw, 2.2rem);
      }

      /* ---- SKILLS ---- */
      #skills {
        padding: 6rem 0;
      }
      .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
      }
      .skill-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.5rem;
        transition: all 0.3s;
        backdrop-filter: blur(8px);
      }
      .skill-card:hover {
        border-color: var(--cyan);
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 229, 255, 0.1);
      }
      .skill-card-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
      }
      .skill-icon {
        font-size: 1.5rem;
      }
      .skill-name {
        font-weight: 600;
        font-size: 0.95rem;
      }
      .skill-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
      }
      .tag {
        background: rgba(0, 229, 255, 0.08);
        border: 1px solid rgba(0, 229, 255, 0.2);
        color: var(--cyan);
        padding: 0.2rem 0.65rem;
        border-radius: 100px;
        font-size: 0.7rem;
        font-family: "Space Mono", monospace;
      }

      /* ---- EXPERIENCE ---- */
      #experience {
        padding: 6rem 0;
        background: linear-gradient(
          180deg,
          transparent,
          rgba(0, 229, 255, 0.02),
          transparent
        );
      }
      .timeline {
        position: relative;
        padding-left: 2rem;
      }
      .timeline::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, var(--cyan), transparent);
      }
      .timeline-item {
        position: relative;
        margin-bottom: 3rem;
      }
      .timeline-dot {
        position: absolute;
        left: -2.4rem;
        top: 0.25rem;
        width: 10px;
        height: 10px;
        background: var(--cyan);
        border-radius: 50%;
        box-shadow: 0 0 12px var(--cyan);
      }
      .job-header {
        margin-bottom: 0.75rem;
      }
      .job-title {
        font-weight: 700;
        font-size: 1.05rem;
      }
      .job-company {
        color: var(--cyan);
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
      }
      .job-meta {
        display: flex;
        gap: 1.5rem;
        color: var(--text2);
        font-size: 0.8rem;
        font-family: "Space Mono", monospace;
      }
      .job-bullets {
        list-style: none;
        margin-top: 0.75rem;
      }
      .job-bullets li {
        color: var(--text2);
        font-size: 0.88rem;
        line-height: 1.6;
        padding-left: 1rem;
        position: relative;
        margin-bottom: 0.35rem;
      }
      .job-bullets li::before {
        content: "▸";
        color: var(--cyan);
        position: absolute;
        left: 0;
      }

      /* ---- PROJECTS ---- */
      #projects {
        padding: 6rem 0;
      }
      .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
      }
      .project-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.5rem;
        transition: all 0.3s;
        backdrop-filter: blur(8px);
        display: flex;
        flex-direction: column;
      }
      .project-card:hover {
        border-color: var(--purple);
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(179, 136, 255, 0.1);
      }
      .project-title {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: var(--text);
      }
      .project-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
      }
      .tech-chip {
        background: rgba(179, 136, 255, 0.1);
        border: 1px solid rgba(179, 136, 255, 0.25);
        color: var(--purple);
        padding: 0.15rem 0.55rem;
        border-radius: 100px;
        font-size: 0.65rem;
        font-family: "Space Mono", monospace;
      }
      .project-desc {
        color: var(--text2);
        font-size: 0.84rem;
        line-height: 1.6;
        flex: 1;
      }
      .project-highlight {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
      }
      .project-links {
        margin-top: 0.85rem;
        display: flex;
        gap: 0.5rem;
      }
      .project-links .btn-sm {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
        padding: 0.4rem 0.5rem;
      }

      .highlight-val {
        font-family: "Space Mono", monospace;
        font-size: 0.9rem;
        color: var(--green);
        font-weight: 700;
      }
      .highlight-label {
        font-size: 0.75rem;
        color: var(--text2);
      }

      /* ---- EDUCATION ---- */
      #education {
        padding: 6rem 0;
      }
      .edu-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
      }
      .edu-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.5rem;
        transition: all 0.3s;
      }
      .edu-card:hover {
        border-color: var(--amber);
      }
      .edu-degree {
        font-weight: 700;
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
      }
      .edu-uni {
        color: var(--amber);
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
      }
      .edu-meta {
        color: var(--text2);
        font-size: 0.78rem;
        font-family: "Space Mono", monospace;
      }

      /* ---- CERTS ---- */
      #certs {
        padding: 4rem 0;
      }
      .certs-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
      }
      .cert-item {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.2s;
      }
      .cert-item:hover {
        border-color: var(--green);
      }
      .cert-icon {
        color: var(--green);
        font-size: 1.2rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
      }
      .cert-icon img {
        width: 32px;
        height: 32px;
        object-fit: contain;
      }
      .cert-text {
        font-size: 0.82rem;
        color: var(--text2);
      }

      /* ---- AI CHAT ---- */
      #ai-chat {
        padding: 6rem 0;
      }
      .chat-container {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
        max-width: 720px;
        margin: 0 auto;
        backdrop-filter: blur(10px);
      }
      .chat-header {
        background: var(--bg3);
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 0.75rem;
      }
      .chat-header-icon {
        color: var(--cyan);
        font-size: 1.3rem;
      }
      .chat-header-text h3 {
        font-size: 0.95rem;
        font-weight: 600;
      }
      .chat-header-text p {
        font-size: 0.75rem;
        color: var(--text2);
      }
      .chat-messages {
        height: 380px;
        overflow-y: auto;
        padding: 1.25rem;
      }
      .chat-messages::-webkit-scrollbar {
        width: 4px;
      }
      .chat-messages::-webkit-scrollbar-thumb {
        background: var(--border);
      }
      .msg {
        margin-bottom: 1rem;
        display: flex;
        gap: 0.75rem;
        animation: fadeIn 0.3s ease;
      }
      .msg.user {
        flex-direction: row-reverse;
      }
      .msg-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        flex-shrink: 0;
      }
      .msg.bot .msg-avatar {
        background: rgba(0, 229, 255, 0.15);
        color: var(--cyan);
        border: 1px solid var(--border);
      }
      .msg.user .msg-avatar {
        background: rgba(179, 136, 255, 0.15);
        color: var(--purple);
        border: 1px solid rgba(179, 136, 255, 0.3);
      }
      .msg-bubble {
        max-width: 75%;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-size: 0.85rem;
        line-height: 1.6;
      }
      .msg.bot .msg-bubble {
        background: var(--bg3);
        border: 1px solid var(--border);
        color: var(--text);
      }
      .msg.user .msg-bubble {
        background: rgba(0, 229, 255, 0.08);
        border: 1px solid rgba(0, 229, 255, 0.2);
        color: var(--text);
      }
      .chat-input-area {
        padding: 1rem 1.25rem;
        background: var(--bg3);
        border-top: 1px solid var(--border);
        display: flex;
        gap: 0.75rem;
      }
      .chat-input {
        flex: 1;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 0.65rem 1rem;
        color: var(--text);
        font-family: "DM Sans", sans-serif;
        font-size: 0.85rem;
        outline: none;
        transition: border-color 0.2s;
      }
      .chat-input:focus {
        border-color: var(--cyan);
      }
      .chat-input::placeholder {
        color: var(--text2);
      }
      .chat-send {
        background: var(--cyan);
        color: var(--bg);
        border: none;
        border-radius: 8px;
        padding: 0.65rem 1.1rem;
        cursor: pointer;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.2s;
        font-size: 0.85rem;
      }
      .chat-send:hover {
        background: #33ecff;
      }
      .chat-send:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      .typing-indicator {
        display: flex;
        gap: 4px;
        padding: 0.75rem 1rem;
      }
      .typing-dot {
        width: 6px;
        height: 6px;
        background: var(--cyan2);
        border-radius: 50%;
        animation: bounce 1.2s infinite;
      }
      .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
      }
      .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
      }
      .quick-questions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.85rem 1.25rem;
        border-top: 1px solid var(--border);
      }
      .quick-btn {
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text2);
        padding: 0.35rem 0.75rem;
        border-radius: 100px;
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 0.2s;
      }
      .quick-btn:hover {
        border-color: var(--cyan);
        color: var(--cyan);
      }

      /* ---- CONTACT ---- */
      #contact {
        padding: 6rem 0;
      }
      .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
      }
      .contact-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
      }
      .form-group {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
      }
      .form-label {
        font-size: 0.8rem;
        color: var(--text2);
        font-family: "Space Mono", monospace;
      }
      .form-input,
      .form-textarea {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 0.75rem 1rem;
        color: var(--text);
        font-family: "DM Sans", sans-serif;
        font-size: 0.85rem;
        outline: none;
        transition: border-color 0.2s;
      }
      .form-input:focus,
      .form-textarea:focus {
        border-color: var(--cyan);
      }
      .form-textarea {
        resize: vertical;
        min-height: 120px;
      }
      .form-status {
        font-size: 0.85rem;
        padding: 0.5rem;
        border-radius: 6px;
        display: none;
      }
      .form-status.success {
        background: rgba(0, 230, 118, 0.1);
        border: 1px solid rgba(0, 230, 118, 0.3);
        color: var(--green);
        display: block;
      }
      .form-status.error {
        background: rgba(255, 82, 82, 0.1);
        border: 1px solid rgba(255, 82, 82, 0.3);
        color: #ff5252;
        display: block;
      }
      .contact-info h3 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
      }
      .contact-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 10px;
        text-decoration: none;
        color: var(--text);
        transition: all 0.2s;
        margin-bottom: 0.75rem;
      }
      .contact-link:hover {
        border-color: var(--cyan);
        transform: translateX(4px);
      }
      .contact-link-icon {
        color: var(--cyan);
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
      }
      .contact-link-text {
        font-size: 0.85rem;
      }
      .contact-link-label {
        font-size: 0.7rem;
        color: var(--text2);
      }

      /* ---- FOOTER ---- */
      footer {
        text-align: center;
        padding: 2.5rem;
        color: var(--text2);
        font-size: 0.8rem;
        border-top: 1px solid var(--border);
        font-family: "Space Mono", monospace;
      }
      footer span {
        color: var(--cyan);
      }

      /* ---- ANIMATIONS ---- */
      @keyframes pulse {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.3;
        }
      }
      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      @keyframes bounce {
        0%,
        60%,
        100% {
          transform: translateY(0);
        }
        30% {
          transform: translateY(-6px);
        }
      }
      .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
      }
      .reveal.visible {
        opacity: 1;
        transform: translateY(0);
      }

      /* ---- LANG BARS ---- */
      .lang-item {
        margin-bottom: 1rem;
      }
      .lang-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.4rem;
        font-size: 0.85rem;
      }
      .lang-level {
        color: var(--text2);
        font-size: 0.75rem;
      }
      .lang-bar {
        height: 4px;
        background: var(--bg3);
        border-radius: 2px;
        overflow: hidden;
      }
      .lang-fill {
        height: 100%;
        border-radius: 2px;
        background: linear-gradient(to right, var(--cyan), var(--purple));
        transition: width 1s ease;
      }

      @media (max-width: 768px) {
        .hero-grid {
          grid-template-columns: 1fr;
        }
        .hero-grid .profile-card {
          order: -1;
        }
        .profile-img-wrap {
          width: 200px;
          height: 200px;
        }
        .contact-grid {
          grid-template-columns: 1fr;
        }
        .nav-toggle {
          display: flex;
        }
        .nav-links {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          flex-direction: column;
          gap: 0;
          background: var(--nav-bg);
          backdrop-filter: blur(16px);
          border-bottom: 1px solid var(--border);
          padding: 0.5rem 2rem 1rem;
          display: none;
        }
        .nav-links.open {
          display: flex;
        }
        .nav-links a {
          padding: 0.85rem 0;
          font-size: 0.85rem;
        }
      }