/* ===========================
   Variablen
=========================== */

:root {
    --primary-color: #69b7ff;
    --primary-hover: #4fa8f5;
    --secondary-color: #4f5d75;
    --background-start: #dff5ff;
    --background-middle: #edfaff;
    --background-end: #ffffff;
    --surface-color: rgba(255, 255, 255, 0.9);
    --surface-soft: rgba(255, 255, 255, 0.72);
    --text-color: #2c3e50;
    --muted-text: #667085;
    --border-color: rgba(105, 183, 255, 0.18);
    --shadow-color: rgba(120, 170, 255, 0.15);
    --radius-lg: 28px;
}

body.dark-mode {
    --primary-color: #8dccff;
    --primary-hover: #6cbcff;
    --secondary-color: #d4d9df;
    --background-start: #17191d;
    --background-middle: #22262c;
    --background-end: #2d3239;
    --surface-color: rgba(38, 42, 49, 0.94);
    --surface-soft: rgba(41, 45, 51, 0.86);
    --text-color: #f4f7fa;
    --muted-text: #cbd2da;
    --border-color: rgba(141, 204, 255, 0.16);
    --shadow-color: rgba(0, 0, 0, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-start), var(--background-middle), var(--background-end));
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.main-nav a:focus-visible,
.btn:focus-visible,
.social-card:focus-visible,
.project-link:focus-visible {
    border-radius: 12px;
}

body.dark-mode a:focus-visible,
body.dark-mode button:focus-visible,
body.dark-mode input:focus-visible,
body.dark-mode textarea:focus-visible,
body.dark-mode select:focus-visible,
body.dark-mode summary:focus-visible {
    outline-color: rgba(141, 204, 255, 0.72);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 8%;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

body.dark-mode .site-header {
    background: rgba(30, 30, 35, 0.9);
    border-bottom-color: rgba(141, 204, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.brand,
.main-nav a,
.footer-links a {
    text-decoration: none;
}

.brand-name {
    color: var(--primary-color);
    font-size: 30px;
    font-weight: 800;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.main-nav a {
    position: relative;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-container img {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 28px var(--shadow-color);
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: translateY(-3px);
}

#dark-mode-toggle,
#scroll-top {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--primary-color);
    background: #eef8ff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

#dark-mode-toggle:hover,
#scroll-top:hover {
    transform: translateY(-3px) scale(1.06);
    background: #dcefff;
    box-shadow: 0 10px 25px rgba(105, 183, 255, 0.25);
}

body.dark-mode #dark-mode-toggle,
body.dark-mode #scroll-top {
    color: #ffd76a;
    background: #3a4049;
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 60px 0;
}

#main-content:focus {
    outline: none;
}

.content-section {
    margin-bottom: 56px;
    padding: 54px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px var(--shadow-color);
    backdrop-filter: blur(14px);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2,
.contact-cta h2 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.section-heading p,
.about-copy p,
.contact-cta p {
    color: var(--muted-text);
}

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    padding: 80px 0;
}

.hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-glow-one {
    top: 6%;
    left: 2%;
    width: 340px;
    height: 340px;
    background: rgba(105, 183, 255, 0.18);
}

.hero-glow-two {
    right: 0;
    bottom: 5%;
    width: 290px;
    height: 290px;
    background: rgba(141, 204, 255, 0.11);
}

.hero-card {
    position: relative;
    width: min(980px, 100%);
    padding: 72px 50px 42px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 34px;
    box-shadow: 0 32px 80px var(--shadow-color), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    animation: hero-card-enter 0.75s ease both;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-avatar {
    width: 210px;
    height: 210px;
    margin-bottom: 26px;
    animation: hero-avatar-enter 0.8s 0.1s ease both;
}

.hero-avatar-ring {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 5px;
    background: conic-gradient(from 0deg, #69b7ff, #b8e4ff, #4fa8f5, #69b7ff);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(105,183,255,0.22), 0 20px 45px rgba(0,0,0,0.18);
    animation: avatar-glow 5s ease-in-out infinite;
}

.hero-avatar-ring::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: -1;
    border: 1px solid rgba(105,183,255,0.22);
    border-radius: 50%;
    animation: avatar-pulse 3s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--surface-color);
    border: 5px solid var(--surface-color);
    border-radius: 50%;
}

.hero-label {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.hero-title {
    color: var(--text-color);
    font-size: clamp(48px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    margin-top: 22px;
    color: var(--text-color);
    font-size: clamp(21px, 3vw, 29px);
    font-weight: 700;
}

.hero-description {
    max-width: 680px;
    margin-top: 20px;
    color: var(--muted-text);
    font-size: clamp(16px, 2vw, 19px);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
    color: var(--muted-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-scroll i {
    color: var(--primary-color);
    animation: scroll-bounce 1.8s ease-in-out infinite;
}

.btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    border: 2px solid transparent;
    border-radius: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-primary {
    color: white;
    background: var(--primary-color);
}

.btn-secondary {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(105,183,255,0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
    color: white;
    background: var(--primary-hover);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.about-copy p + p {
    margin-top: 18px;
}

.about-highlights {
    display: grid;
    gap: 14px;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    color: var(--secondary-color);
    background: rgba(105,183,255,0.08);
    border: 1px solid rgba(105,183,255,0.12);
    border-radius: 16px;
    font-weight: 700;
}

.about-highlight i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--primary-color);
    border-radius: 12px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
}

.skill-card {
    padding: 30px;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(105,183,255,0.11);
    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-7px);
    border-color: rgba(105,183,255,0.32);
    box-shadow: 0 24px 50px rgba(105,183,255,0.2);
}

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

.skill-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(105,183,255,0.12);
    border-radius: 18px;
    font-size: 28px;
}

.skill-status {
    padding: 7px 11px;
    color: #347fbf;
    background: rgba(105,183,255,0.12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.skill-status-learning {
    color: #7a6696;
    background: rgba(160,126,194,0.12);
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 25px;
}

.skill-card > p {
    min-height: 82px;
    margin-bottom: 22px;
    color: var(--muted-text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
}

.skill-tags li,
.project-meta span {
    padding: 8px 11px;
    color: var(--secondary-color);
    background: rgba(105,183,255,0.08);
    border: 1px solid rgba(105,183,255,0.12);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.skills-learning {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(105,183,255,0.12), rgba(255,255,255,0.45));
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.skills-learning > i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--primary-color);
    border-radius: 15px;
}

.skills-learning span {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.skills-learning p {
    color: var(--muted-text);
}

.web-project-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 42px;
    align-items: center;
    margin-bottom: 56px;
    padding: 34px;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(105,183,255,0.14);
}

.web-project-visual {
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(105,183,255,0.18), rgba(79,93,117,0.08));
    border-radius: 22px;
}

.browser-window {
    width: 100%;
    overflow: hidden;
    background: #20242b;
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(0,0,0,0.28);
}

.browser-bar {
    display: flex;
    gap: 7px;
    padding: 14px;
    background: #17191d;
}

.browser-bar span {
    width: 10px;
    height: 10px;
    background: #69b7ff;
    border-radius: 50%;
}

.browser-content {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    color: white;
    background: radial-gradient(circle at top right, rgba(105,183,255,0.22), transparent 40%), linear-gradient(145deg,#20242b,#2d3239);
}

.browser-brand {
    margin-bottom: 14px;
    color: #8dccff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.browser-content strong {
    font-size: clamp(24px,4vw,40px);
}

.browser-content p {
    margin-top: 12px;
    color: #cbd2da;
}

.web-project-info h3 {
    margin: 8px 0 14px;
    font-size: clamp(30px,4vw,44px);
}

.web-project-info > p {
    margin-bottom: 24px;
    color: var(--muted-text);
}

.project-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.project-meta i {
    color: var(--primary-color);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.portfolio-subheading {
    margin-bottom: 26px;
}

.portfolio-subheading span {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.portfolio-subheading h3 {
    margin-top: 6px;
    font-size: clamp(24px,4vw,34px);
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 25px;
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    box-shadow: 0 15px 40px var(--shadow-color);
    transition: 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(105,183,255,0.3);
    box-shadow: 0 28px 58px rgba(120,170,255,0.24);
}

.project-media {
    position: relative;
    overflow: hidden;
}

.project-card .tiktok-embed {
    width: 100%;
    min-width: 0 !important;
    margin: 0 auto !important;
}

.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 7px 11px;
    color: white;
    background: rgba(44,62,80,0.82);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
}

.project-info h3 {
    margin: 8px 0 10px;
    font-size: 22px;
}

.project-info > p {
    flex-grow: 1;
    margin-bottom: 22px;
    color: var(--muted-text);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    color: white;
    background: var(--primary-color);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.social-card {
    min-height: 130px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    color: var(--secondary-color);
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    color: white;
    background: var(--primary-color);
}

.social-card > i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(105,183,255,0.12);
    border-radius: 14px;
    font-size: 23px;
}

.social-card strong,
.social-card span {
    display: block;
}

.social-card strong {
    color: var(--text-color);
}

.social-card span {
    color: var(--muted-text);
    font-size: 12px;
}

.social-card:hover strong,
.social-card:hover span {
    color: white;
}

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    background: radial-gradient(circle at top right, rgba(105,183,255,0.18), transparent 40%), var(--surface-color);
}

.contact-cta > div {
    max-width: 720px;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.site-footer {
    padding: 30px 20px;
    color: var(--muted-text);
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.footer-content > p {
    justify-self: end;
}

.footer-content strong {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--secondary-color);
}

@keyframes hero-card-enter {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-avatar-enter {
    from { opacity: 0; transform: translateY(-20px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes avatar-glow {
    0%,100% { box-shadow: 0 0 24px rgba(105,183,255,0.18), 0 20px 45px rgba(0,0,0,0.18); }
    50% { box-shadow: 0 0 42px rgba(105,183,255,0.34), 0 24px 55px rgba(0,0,0,0.22); }
}

@keyframes avatar-pulse {
    0%,100% { opacity: 0.25; transform: scale(0.96); }
    50% { opacity: 0.65; transform: scale(1.04); }
}

@keyframes scroll-bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}


/* ===========================
   Mobile Menübutton
=========================== */

.menu-toggle {
    width: 48px;
    height: 48px;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    flex-shrink: 0;
    padding: 0;

    color: var(--primary-color);
    background: #eef8ff;

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.menu-toggle:hover {
    transform: translateY(-3px);
    background: #dcefff;
    box-shadow: 0 10px 25px rgba(105, 183, 255, 0.25);
}

.menu-toggle span {
    display: block;

    width: 21px;
    height: 2px;
    flex: 0 0 2px;

    background: currentColor;
    border-radius: 999px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.dark-mode .menu-toggle {
    color: #8dccff;
    background: #3a4049;
}

body.dark-mode .menu-toggle:hover {
    background: #454c56;
}


/* ===========================
   Scroll-Reveal-Animationen
=========================== */

.reveal {
    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}

.skill-card.reveal,
.social-card.reveal,
.project-card.reveal {
    transform: translateY(22px) scale(0.985);
}

.skill-card.reveal.is-visible,
.social-card.reveal.is-visible,
.project-card.reveal.is-visible {
    transform: translateY(0) scale(1);
}

.web-project-card.reveal {
    transform: translateY(34px);
}

.web-project-card.reveal.is-visible {
    transform: translateY(0);
}


/* ===========================
   Skip-Link
=========================== */

.skip-link {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 10000;

    padding: 12px 20px;

    color: #ffffff;
    background: var(--primary-color);

    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

    font-weight: 700;
    text-decoration: none;

    opacity: 0;
    pointer-events: none;

    transform: translate(-50%, -140%);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.skip-link:focus-visible {
    opacity: 1;
    pointer-events: auto;

    transform: translate(-50%, 0);
}


@media (max-width: 1050px) {
    .site-header {
        position: sticky;

        flex-wrap: nowrap;

        padding: 10px 24px;
    }

    .brand {
        margin-right: auto;
    }

    .header-actions {
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 24px;
        right: 24px;

        width: auto;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;

        padding: 14px;

        background: var(--surface-color);
        border: 1px solid var(--border-color);
        border-radius: 20px;

        box-shadow: 0 22px 55px var(--shadow-color);
        backdrop-filter: blur(18px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-12px) scale(0.98);
        transform-origin: top center;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0) scale(1);
    }

    .main-nav a {
        width: 100%;

        padding: 13px 15px;

        border-radius: 12px;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover {
        color: var(--primary-color);
        background: rgba(105, 183, 255, 0.1);
    }

    .web-project-card {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .tiktok-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        width: min(100%,520px);
        margin: 0 auto;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-content > p {
        justify-self: center;
    }
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 150px;
    }

    main {
        width: min(100% - 24px,1180px);
        padding-top: 36px;
    }

    .site-header {
        padding: 10px 16px;
    }

    .brand-name {
        font-size: 24px;
    }

    .logo-container img {
        width: 52px;
        height: 52px;
    }

    .content-section {
        padding: 32px 22px;
    }

    .hero-section {
        min-height: auto;
        padding: 45px 0;
    }

    .hero-card {
        padding: 55px 24px 32px;
        border-radius: 26px;
    }

    .hero-avatar {
        width: 165px;
        height: 165px;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
    }

    .hero-buttons .btn,
    .contact-cta .btn {
        width: 100%;
    }

    .skills-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }

    .skill-card > p {
        min-height: auto;
    }

    .skills-learning {
        align-items: flex-start;
    }

    .web-project-card {
        padding: 20px;
    }

    .contact-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        left: 12px;
        right: 12px;
    }

    .menu-toggle,
    #dark-mode-toggle {
        width: 44px;
        height: 44px;
    }


    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2,
    .contact-cta h2 {
        font-size: clamp(29px, 9vw, 40px);
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 1.6px;
    }

    .content-section {
        margin-bottom: 36px;
    }

    .project-info,
    .skill-card {
        padding: 24px;
    }

    .social-card {
        min-height: auto;
        padding: 18px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .project-actions {
        flex-direction: column;
    }

    .project-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* ===========================
   Consent Banner
=========================== */

.consent-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;

    width: min(920px, calc(100% - 32px));

    transform: translateX(-50%);

    z-index: 9999;

    background: var(--surface-color);
    color: var(--text-color);

    border: 1px solid var(--border-color);
    border-radius: 24px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.14),
        0 8px 25px var(--shadow-color);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    animation: consentSlideUp 0.4s ease;
}

.consent-banner[hidden] {
    display: none;
}

.consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    padding: 28px;
}

.consent-text {
    max-width: 580px;
}

.consent-label {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--primary-color);

    font-size: 0.8rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.consent-text h2 {
    margin-bottom: 10px;

    color: var(--text-color);

    font-size: 1.4rem;
    line-height: 1.3;
}

.consent-text p {
    margin-bottom: 12px;

    color: var(--muted-text);

    font-size: 0.95rem;
    line-height: 1.7;
}

.consent-privacy-link {
    display: inline-block;

    color: var(--primary-color);

    font-size: 0.9rem;
    font-weight: 500;

    text-decoration: none;

    transition: color 0.2s ease;
}

.consent-privacy-link:hover {
    color: var(--primary-hover);
}

.consent-actions {
    display: flex;
    flex-direction: column;

    gap: 10px;

    min-width: 180px;
}

.consent-btn {
    padding: 12px 20px;

    border: none;
    border-radius: 12px;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.consent-btn:hover {
    transform: translateY(-2px);
}

.consent-btn-primary {
    background: var(--primary-color);
    color: #ffffff;

    box-shadow: 0 8px 20px rgba(105, 183, 255, 0.25);
}

.consent-btn-primary:hover {
    background: var(--primary-hover);
}

.consent-btn-secondary {
    background: transparent;

    color: var(--text-color);

    border: 1px solid var(--border-color);
}

.consent-btn-secondary:hover {
    background: rgba(105, 183, 255, 0.08);
}


/* ===========================
   Animation
=========================== */

@keyframes consentSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


/* ===========================
   Mobile
=========================== */

@media (max-width: 768px) {

    .consent-banner {
        bottom: 16px;

        width: calc(100% - 24px);

        border-radius: 20px;
    }

    .consent-content {
        flex-direction: column;
        align-items: stretch;

        gap: 20px;

        padding: 22px;
    }

    .consent-text h2 {
        font-size: 1.2rem;
    }

    .consent-actions {
        width: 100%;
    }

    .consent-btn {
        width: 100%;

        padding: 13px 18px;
    }
}

.footer-consent-button {
    background: none;
    border: none;

    padding: 0;

    color: var(--muted-text);

    font-family: inherit;
    font-size: inherit;

    cursor: pointer;
}

.footer-consent-button:hover {
    color: var(--primary-color);
}


/* ===========================
   TikTok Consent Placeholder
=========================== */

.tiktok-consent-placeholder {
    width: 100%;
    min-height: 520px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 14px;

    padding: 32px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(105, 183, 255, 0.08),
            rgba(255, 255, 255, 0.5)
        );

    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.tiktok-consent-placeholder[hidden],
.tiktok-embed[hidden] {
    display: none !important;
}

.tiktok-consent-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(105, 183, 255, 0.12);
    color: var(--primary-color);

    font-size: 1.3rem;
}

.tiktok-consent-label {
    color: var(--primary-color);

    font-size: 0.75rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.tiktok-consent-placeholder h4 {
    margin: 0;

    color: var(--text-color);

    font-size: 1.3rem;
}

.tiktok-consent-placeholder p {
    max-width: 340px;

    margin: 0;

    color: var(--muted-text);

    font-size: 0.9rem;
    line-height: 1.6;
}

.tiktok-consent-button {
    margin-top: 8px;

    padding: 12px 20px;

    border: none;
    border-radius: 12px;

    background: var(--primary-color);
    color: #ffffff;

    font-family: inherit;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tiktok-consent-button:hover {
    background: var(--primary-hover);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(105, 183, 255, 0.25);
}

.tiktok-consent-privacy {
    color: var(--muted-text);

    font-size: 0.8rem;

    text-decoration: none;

    transition: color 0.2s ease;
}

.tiktok-consent-privacy:hover {
    color: var(--primary-color);
}


/* ===========================
   TikTok Consent Dark Mode
=========================== */

body.dark-mode .tiktok-consent-placeholder {
    background:
        linear-gradient(
            145deg,
            rgba(105, 183, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        );
}


/* ===========================
   TikTok Consent Mobile
=========================== */

@media (max-width: 768px) {

    .tiktok-consent-placeholder {
        min-height: 420px;

        padding: 24px;
    }

    .tiktok-consent-placeholder h4 {
        font-size: 1.15rem;
    }
}