:root {
    --color-yellow:       #efcc6e;
    --color-yellow-dark:  #d4b45a;
    --color-beige:        #cfbeae;
    --color-brown:        #968a79;
    --color-black:        #0b0907;
    --color-white:        #ffffff;

    --primary-color:      var(--color-yellow);
    --primary-dark:       var(--color-yellow-dark);

    --bg-color:           #f6f5f3;
    --bg-alt:             #e5e5e5;
    --text-color:         var(--color-black);
    --text-secondary:     #666666;
    --text-body:          var(--color-black);
    --panel-bg:           var(--color-white);
    --panel-text:         #333333;
    --border-color:       #dcd4c9;

    --footer-bg:          var(--text-color);
    --footer-text:        var(--color-white);

    --surface-elevated:       var(--color-white);
    --surface-elevated-text:  #333333;

    --btn-text:           #333333;
    --shadow-btn:         0 8px 22px rgba(11, 9, 7, 0.08);
    --btn-sheen-color:    rgba(255, 255, 255, 0.12);
    --btn-sheen-opacity:  0.9;

    --radius-sm:          6px;
    --radius-md:          12px;
    --radius-pill:        20px;
    --radius-circle:      50%;
    --transition:         0.3s;
    --section-padding:    6rem 0;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color:              #0b0907;
        --bg-alt:                #2a2a2a;
        --text-color:            #e8e5e2;
        --text-secondary:        #cfcfcf;
        --text-body:             #d0d0d0;
        --panel-bg:              #2a2a2a;
        --panel-text:            #e0e0e0;
        --border-color:          #333333;
        --footer-bg:             #070707;
        --footer-text:           #dcdcdc;
        --surface-elevated:      #404040;
        --surface-elevated-text: #e0e0e0;
        --shadow-btn:            0 6px 18px rgba(0, 0, 0, 0.45);
        --btn-sheen-color:       rgba(255, 255, 255, 0.06);
        --btn-sheen-opacity:     0.6;

        color-scheme: dark;
    }
}

body.light-mode {
    --bg-color:              #f6f5f3;
    --bg-alt:                #e5e5e5;
    --text-color:            var(--color-black);
    --text-secondary:        #666666;
    --text-body:             var(--color-black);
    --panel-bg:              var(--color-white);
    --panel-text:            #333333;
    --border-color:          #dcd4c9;
    --footer-bg:             var(--color-black);
    --footer-text:           var(--color-white);
    --primary-color:         var(--color-yellow);
    --primary-dark:          var(--color-yellow-dark);
    --surface-elevated:      var(--color-white);
    --surface-elevated-text: #333333;
    --shadow-btn:            0 8px 22px rgba(11, 9, 7, 0.08);
    --btn-sheen-color:       rgba(255, 255, 255, 0.12);
    --btn-sheen-opacity:     0.9;
    --color-yellow:          #F6BE00;

    color-scheme: light;
}

body.dark-mode {
    --bg-color:              #0b0907;
    --bg-alt:                #2a2a2a;
    --text-color:            #e8e5e2;
    --text-secondary:        #cfcfcf;
    --text-body:             #d0d0d0;
    --panel-bg:              #2a2a2a;
    --panel-text:            #e0e0e0;
    --border-color:          #333333;
    --footer-bg:             #070707;
    --footer-text:           #dcdcdc;
    --primary-color:         var(--color-yellow);
    --primary-dark:          var(--color-yellow-dark);
    --surface-elevated:      #404040;
    --surface-elevated-text: #e0e0e0;
    --shadow-btn:            0 6px 18px rgba(0, 0, 0, 0.45);
    --btn-sheen-color:       rgba(255, 255, 255, 0.06);
    --btn-sheen-opacity:     0.6;

    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about,
.skills,
.experience,
.contact {
    padding: var(--section-padding);
}

.about,
.experience {
    background: var(--bg-color);
    transition: background var(--transition);
}

.skills,
.contact {
    background: var(--bg-alt);
    transition: background var(--transition);
}

.about h2,
.skills h2,
.experience h2,
.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-color);
}

.skills h2,
.experience h2 {
    margin-bottom: 3rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: background-color var(--transition), border-color var(--transition);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-menu .nav-link {
    font-size: 1.1rem;
}

.mobile-menu.open {
    display: flex;
    animation: menuSlideDown 0.25s ease forwards;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-logo {
    text-decoration: none;
}

.nav-logo img {
    height: 32px;
    display: block;
}

.logo-dark  { display: none; }
.logo-light { display: block; }

body.dark-mode .logo-dark   { display: block; }
body.dark-mode .logo-light  { display: none; }

body.light-mode .logo-dark  { display: none; }
body.light-mode .logo-light { display: block; }

@media (prefers-color-scheme: dark) {
    .logo-dark  { display: block; }
    .logo-light { display: none; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active,
.lang-switch:hover {
    color: var(--primary-color);
}

.lang-switch {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-color) 100%);
    transition: background var(--transition);
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.btn-animated {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 0.85rem 2.25rem;
    min-width: 160px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: var(--btn-text);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-animated span {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.btn-animated::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -40%;
    z-index: 1;
    width: 40%;
    height: 220%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.18)
    );
    transform: rotate(25deg);
    transition: left 0.65s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.btn-animated:hover::before {
    left: 120%;
}

.btn-animated:active {
    transform: translateY(1px) scale(0.997);
}

.btn-animated::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--btn-sheen-color) 50%,
        transparent 100%
    );
    mix-blend-mode: overlay;
    opacity: var(--btn-sheen-opacity);
    transform: translateX(-120%);
    animation: btn-sheen 2.2s linear infinite;
}

@keyframes btn-sheen {
    from { transform: translateX(-120%); }
    to   { transform: translateX(120%); }
}

.icon {
    width: 20px;
    height: 20px;
}

.social-link,
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-circle);
    color: var(--text-color);
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.social-link {
    width: 40px;
    height: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-link:hover,
.social-icon:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-link:hover  { transform: translateY(-2px); }
.social-icon:hover  { transform: translateY(-4px); }

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.about h2 {
    margin-bottom: 2rem;
}

.about-content {
    max-width: 810px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-body);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-group h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: var(--panel-bg);
    color: var(--panel-text);
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--panel-bg);
    transform: translateY(-2px);
}

.job {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.job:last-child {
    border-bottom: none;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.job-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.company {
    color: var(--text-secondary);
    font-size: 1rem;
}

.company a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

.company a:hover {
    text-decoration: underline;
}

.date {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.location {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.job-details {
    list-style: none;
    margin-left: 0;
}

.job-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-body);
}

.job-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.contact h2 {
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.footer {
    padding: 2rem;
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    transition: background var(--transition), color var(--transition);
}

.footer p {
    opacity: 0.8;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--btn-text);
    border: none;
    border-radius: var(--radius-circle);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: var(--shadow-btn);
    transition: transform var(--transition), box-shadow var(--transition);
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11, 9, 7, 0.18);
}

.sour-gummy-100 {
    font-family: "Sour Gummy", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.side-select {
    min-width: 400px;
    min-height: 58px;
    padding: 16px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--surface-elevated);
    color: var(--surface-elevated-text);
    font-size: 18px;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
    text-decoration: none;
    text-align: center;
}

.side-select:hover {
    background-color: var(--primary-color);
    color: var(--btn-text);
}

.sleep-symbol {
    margin-left: 260px;
    margin-bottom: -40px;
    font-weight: 600;
}

.sleep-symbol span {
    position: relative;
    display: inline-block;
    opacity: 1;
    transform: scale(1);
    animation: sleep 4s ease-in-out infinite;
}

.sleep-symbol span:nth-child(1) { animation-delay: 0s; }
.sleep-symbol span:nth-child(2) { animation-delay: 1s; margin-left: -10px; }
.sleep-symbol span:nth-child(3) { animation-delay: 2s; margin-left: -10px; }

@keyframes sleep {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    50%  { opacity: 0.5; transform: translate(-5px, -35px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-60px) scale(1.5); }
}

.thecat {
    position: relative;
    z-index: 2;
    margin-left: 220px;
    margin-bottom: -62px;
    pointer-events: none;
}

#tail     { visibility: visible; }
#longtail { visibility: hidden; }

.mouse-detector {
    padding: 20px 30px 30px 30px;
}

.mouse-detector:hover #lefteyelid    { visibility: hidden; }
.mouse-detector:hover .sleep-symbol  { visibility: hidden; }
.cat:hover #righteyelid              { visibility: hidden; }

.thecat #eyesdown { visibility: hidden; }
.cat:has(.side-select:hover) #eyesdown { visibility: visible; }

.instructions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }

    .instructions { display: none; }

    .nav-right    { display: none; }
    .hamburger    { display: flex; }
    .hero-content { padding: 0 2rem; }

    .subtitle   { font-size: 1.1rem; }
    .hero-cta   { gap: 1rem; }
    .btn        { padding: 0.65rem 1.5rem; font-size: 0.9rem; }

    .job-header { flex-direction: column; }
    .date       { white-space: normal; }

    .about h2,
    .skills h2,
    .experience h2,
    .contact h2 { font-size: 1.8rem; }

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

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 0;
    }

    .nav-container { padding: 0.75rem 1.5rem; }
    .nav-menu      { gap: 0.75rem; }
    .nav-link      { font-size: 0.85rem; }
    .container     { padding: 0 1.5rem; }
    .hero-content  { padding: 0 1.5rem; }
    .mobile-menu   { padding: 1.5rem 1.5rem; }

    .hero {
        min-height: auto;
        padding: var(--section-padding);
    }

    .side-select {
        min-width: 0;
        width: 100%;
        padding: 20px;
        font-size: 20px;
    }

    .hero-text h1  { font-size: 1.8rem; }
    .subtitle      { font-size: 1rem; }

    .thecat { margin-left: 80px; }
}

@media (max-width: 1023px) {
    .hero {
        min-height: 400px;
    }
}

/* ===== Device Preview ===== */

.device-preview-btn {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    border: 2px solid var(--primary-color);
    background: var(--panel-bg);
    color: var(--primary-color);
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition),
                width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-btn);
}

.device-preview-btn:hover {
    background: var(--primary-color);
    color: var(--color-black);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11, 9, 7, 0.18);
}

body.light-mode .device-preview-btn {
    background: var(--primary-color);
    color: var(--color-black);
}


.device-preview-btn.hint,
.device-preview-btn:hover {
    width: 218px;
    border-radius: 25px;
    padding: 0 18px;
    gap: 9px;
}

.device-preview-hint-text {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease 0.28s, max-width 0.4s ease;
    flex-shrink: 0;
}

.device-preview-btn.hint .device-preview-hint-text,
.device-preview-btn:hover .device-preview-hint-text {
    opacity: 1;
    max-width: 170px;
}

@media (max-width: 1023px) {
    .device-preview-btn { display: none !important; }
}

.device-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 7, 5, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.device-preview-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.device-preview-header {
    display: flex;
    flex-shrink: 0;
}

.device-selector {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-selector-btn {
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.device-selector-btn.active {
    background: var(--primary-color);
    color: var(--color-black);
    font-weight: 600;
}

.device-selector-btn:not(.active):hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
}

.device-preview-close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.device-preview-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.device-frame-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
}

.device-frame {
    position: relative;
    background: #1c1c1e;
    box-shadow:
        inset 0 0 0 1px #3a3a3a,
        0 0 0 1px #111,
        0 28px 72px rgba(0, 0, 0, 0.75);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.device-frame.mobile {
    width: 390px;
    border-radius: 46px;
    padding: 38px 14px 30px;
}

.device-frame.tablet {
    border-radius: 26px;
    padding: 54px 18px 36px;
}

/* Mobile: punch-hole camera */
.device-frame.mobile::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #2a2a2a;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #3a3a3a;
    z-index: 2;
}

/* Mobile: home bar */
.device-frame.mobile::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 4px;
    background: #4a4a4a;
    border-radius: 2px;
}

/* Tablet: camera dot */
.device-frame.tablet::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    background: #3a3a3a;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #252525, 0 0 0 3px #3a3a3a;
}

.device-screen {
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.device-frame.mobile .device-screen {
    border-radius: 32px;
}

.device-frame.tablet .device-screen {
    border-radius: 12px;
}

.device-screen iframe {
    width: 100%;
    border: none;
    display: block;
}
