:root {
    --color-background: #E8E3D4;
    --color-main: #989691;
    --app-height: 741px;
    --color-main-hover: #a2a09c;
    --color-glow-text: #efefee;
    --color-glow: #c5bba0;
    --color-glow-hover: #d8d2c0;
    --color-bg: #E8E3D4;
    --color-text: #72706D;
    --color-accent: rgba(197, 187, 160, 0.7);
    --grad-light: rgba(197, 187, 160, 0.35) 0%, rgba(197, 187, 160, 0.18) 50%, rgba(197, 187, 160, 0.04) 100%;
    --grad-light-hover: rgba(216, 210, 192, 0.45) 0%, rgba(216, 210, 192, 0.25) 50%, rgba(216, 210, 192, 0.08) 100%;
    --transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --color-bg: #0f0f0f;
    --color-text: #e8e8e8;
    --color-text-hover: #ff6b6b;
    --color-accent: rgba(220, 20, 60, 0.6);
    --grad-light: rgba(40, 35, 35, 0.6) 0%, rgba(30, 25, 25, 0.4) 50%, rgba(20, 20, 20, 0.2) 100%;
    --grad-light-hover: rgba(50, 40, 40, 0.7) 0%, rgba(40, 30, 30, 0.5) 50%, rgba(30, 25, 25, 0.3) 100%;
}

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

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

body {
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    min-height: 100vh;
    color: var(--color-text);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark-mode {
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 50, 50, 0.03) 2px, rgba(255, 50, 50, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 50, 50, 0.03) 2px, rgba(255, 50, 50, 0.03) 4px),
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(178, 34, 34, 0.06) 0%, transparent 50%),
        #0f0f0f;
}

body.dark-mode::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(220, 20, 60, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(178, 34, 34, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 50% 90%, rgba(139, 0, 0, 0.05) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
}

body.dark-mode .portfolio { position: relative; z-index: 1; }

body.dark-mode .navbar {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.5) 0%, rgba(20, 20, 20, 0.3) 50%, rgba(30, 30, 30, 0.5) 100%),
        radial-gradient(ellipse at center, rgba(139, 0, 0, 0.15) 0%, rgba(60, 20, 20, 0.1) 50%, rgba(30, 30, 30, 0.05) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

body.dark-mode .navbar:hover {
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.6) 0%, rgba(25, 25, 25, 0.4) 50%, rgba(35, 35, 35, 0.6) 100%),
        radial-gradient(ellipse at center, rgba(178, 34, 34, 0.2) 0%, rgba(80, 25, 25, 0.15) 50%, rgba(40, 40, 40, 0.08) 100%);
}

body.dark-mode .nav-link:hover, body.dark-mode .project-card:hover .project-title { color: #ff6b6b; }

body.dark-mode .nav-link, body.dark-mode .section-title, body.dark-mode .name-widget h1, body.dark-mode .subtitle, body.dark-mode .text-bubble p, body.dark-mode .project-title, body.dark-mode .project-desc, body.dark-mode .certificate-name, body.dark-mode .certificate-date, body.dark-mode .certificate-card a, body.dark-mode .contact-link, body.dark-mode .social-dot i { color: #e8e8e8; }

body.dark-mode .name-widget, body.dark-mode .photo-widget, body.dark-mode .text-bubble, body.dark-mode .project-card, body.dark-mode .certificate-card, body.dark-mode .contact-widget, body.dark-mode .social-dot {
    background: radial-gradient(ellipse at center, var(--grad-light));
    border: 1px solid rgba(220, 20, 60, 0.15);
}

body.dark-mode .name-widget:hover, body.dark-mode .photo-widget:hover, body.dark-mode .text-bubble:hover, body.dark-mode .project-card:hover, body.dark-mode .certificate-card:hover, body.dark-mode .contact-widget:hover, body.dark-mode .social-dot:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
}

body.dark-mode .certificate-card a,
body.dark-mode .project-card a {
    background: radial-gradient(ellipse at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 50%, rgba(20, 20, 20, 0.1) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
    transition: background var(--transition), border var(--transition), color var(--transition);
}

body.dark-mode .certificate-card a:hover,
body.dark-mode .project-card a:hover {
    background: radial-gradient(ellipse at center, rgba(50, 35, 35, 0.6) 0%, rgba(40, 30, 30, 0.4) 50%, rgba(30, 25, 25, 0.2) 100%);
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.5);
    border: 1px solid rgba(220, 20, 60, 0.4);
    color: #ff6b6b;
}

body.dark-mode .section-title { text-shadow: 0 0 30px rgba(220, 20, 60, 0.3); }

body.dark-mode .theme-toggle,
body.dark-mode .lang-toggle,
body.dark-mode .menu-toggle {
    background: radial-gradient(circle at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 50%, rgba(20, 20, 20, 0.1) 100%);
    border: 1px solid rgba(220, 20, 60, 0.3);
}

body.dark-mode .theme-toggle i,
body.dark-mode .lang-toggle i { color: #ff6b6b; }
body.dark-mode .menu-toggle span { background: #ff6b6b; }

body.dark-mode .theme-toggle:hover,
body.dark-mode .lang-toggle:hover,
body.dark-mode .menu-toggle:hover {
    background: radial-gradient(circle at center, rgba(50, 35, 35, 0.6) 0%, rgba(40, 30, 30, 0.4) 50%, rgba(30, 25, 25, 0.2) 100%);
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.6), 0 0 20px rgba(220, 20, 60, 0.3);
    border: 1px solid rgba(220, 20, 60, 0.5);
}

.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 16px 40px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(20px);
    border-radius: 50px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(197, 187, 160, 0.08) 0%, rgba(197, 187, 160, 0.04) 50%, transparent 100%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.navbar:hover::before {
    opacity: 1;
}

.navbar:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 8px 24px rgba(197, 187, 160, 0.2);
}

.nav-container { display: flex; gap: 40px; align-items: center; }

.nav-link {
    font-size: 18px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-hover);
    transform: translateY(-1px);
}

.theme-toggle,
.lang-toggle {
    position: fixed;
    top: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: radial-gradient(circle at center, var(--grad-light));
    backdrop-filter: blur(20px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.theme-toggle::before,
.lang-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(197, 187, 160, 0.15) 0%, rgba(197, 187, 160, 0.08) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.theme-toggle:hover::before,
.lang-toggle:hover::before {
    opacity: 1;
}

.theme-toggle { right: 40px; }
.lang-toggle { left: 40px; }

.theme-toggle i,
.lang-toggle i {
    font-size: 18px;
    color: var(--color-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: radial-gradient(circle at center, var(--grad-light-hover));
    box-shadow: 0 4px 16px rgba(197, 187, 160, 0.2);
    transform: translateY(-2px);
}

.theme-toggle:hover i,
.lang-toggle:hover i {
    color: var(--color-text-hover);
    transform: rotate(15deg) scale(1.1);
}

.menu-toggle {
    position: fixed;
    top: 30px;
    left: 40px;
    width: 50px;
    height: 50px;
    border: none;
    background: radial-gradient(circle at center, var(--grad-light));
    backdrop-filter: blur(20px);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(197, 187, 160, 0.15) 0%, rgba(197, 187, 160, 0.08) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-toggle:hover::before {
    opacity: 1;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: radial-gradient(circle at center, var(--grad-light-hover));
    box-shadow: 0 4px 16px rgba(197, 187, 160, 0.2);
    transform: translateY(-2px);
}

.menu-toggle:hover span {
    background: var(--color-text-hover);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.portfolio { max-width: 900px; margin: 0 auto; padding: 120px 40px 160px; }

.about-section {
    padding: 100px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
}

.intro-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    width: 100%;
    max-width: 900px;
}

.intro-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

.name-widget {
    padding: 40px 60px;
    background: radial-gradient(ellipse at center, rgba(197, 187, 160, 0.4) 0%, rgba(197, 187, 160, 0.2) 50%, rgba(197, 187, 160, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
    position: relative;
}

.name-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(197, 187, 160, 0.1) 0%, rgba(197, 187, 160, 0.05) 50%, transparent 100%);
    border-radius: 60px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.name-widget:hover::before {
    opacity: 1;
}

.photo-widget {
    width: 220px;
    min-width: 220px;
    align-self: stretch;
    background: radial-gradient(circle at center, rgba(197, 187, 160, 0.4) 0%, rgba(197, 187, 160, 0.2) 50%, rgba(197, 187, 160, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    padding: 12px;
    position: relative;
}

.photo-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(197, 187, 160, 0.1) 0%, rgba(197, 187, 160, 0.05) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.photo-widget:hover::before {
    opacity: 1;
}

.photo-widget img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.photo-widget:hover,
.name-widget:hover {
    background: radial-gradient(ellipse at center, rgba(216, 210, 192, 0.5) 0%, rgba(216, 210, 192, 0.28) 50%, rgba(216, 210, 192, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(197, 187, 160, 0.15);
    transform: translateY(-2px);
}

.photo-widget:hover img {
    transform: scale(1.02);
}

.name-widget h1 {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    padding-left: 20px;
}

.text-bubble {
    padding: 50px 60px;
    background: radial-gradient(ellipse at center, rgba(197, 187, 160, 0.35) 0%, rgba(197, 187, 160, 0.18) 50%, rgba(197, 187, 160, 0.04) 100%);
    backdrop-filter: blur(18px);
    border-radius: 40px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
    position: relative;
}

.text-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(197, 187, 160, 0.1) 0%, rgba(197, 187, 160, 0.05) 50%, transparent 100%);
    border-radius: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.text-bubble:hover::before {
    opacity: 1;
}

.text-bubble:hover {
    background: radial-gradient(ellipse at center, rgba(216, 210, 192, 0.45) 0%, rgba(216, 210, 192, 0.25) 50%, rgba(216, 210, 192, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(197, 187, 160, 0.12);
    transform: translateY(-2px);
}

.text-bubble p {
    font-size: 22px;
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 500;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 1px;
}

.work-section {
    padding: 100px 0 40px;
    scroll-margin-top: 120px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 50px 60px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
    transform: translateY(-4px);
}

.project-card a {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-glow-text);
    text-decoration: none;
    padding: 9px 1.2rem 8px;
    background: transparent;
    backdrop-filter: none;
    border-radius: 50px;
    border: 0 solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    align-self: flex-start;
    position: relative;
    text-shadow: 0 0 40px var(--color-glow), 0 0 20px var(--color-glow), 0 0 10px var(--color-glow);
    letter-spacing: 0.5px;
}

.project-card a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card a:hover::before {
    opacity: 1;
}

.project-card a:hover {
    background: transparent;
    box-shadow: none;
    color: var(--color-glow-text);
    transform: none;
    text-shadow: 0 0 50px var(--color-glow-hover), 0 0 25px var(--color-glow-hover), 0 0 12px var(--color-glow-hover);
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--color-text-hover);
}

.project-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 500;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.skills-section {
    padding: 100px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
}

.tools-section {
    padding: 100px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
}

.certificates-section {
    padding: 100px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 120px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    width: 100%;
}

.certificate-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px 50px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.certificate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.certificate-card:hover::before {
    opacity: 1;
}

.certificate-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.1);
    transform: translateY(-4px);
}

.certificate-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    transition: color 0.3s ease;
}

.certificate-card:hover .certificate-name {
    color: var(--color-text-hover);
}

.certificate-date {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    opacity: 0.8;
}

.certificate-card a {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-glow-text);
    text-decoration: none;
    padding: 9px 1.2rem 8px;
    background: transparent;
    backdrop-filter: none;
    border-radius: 50px;
    border: 0 solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    text-shadow: 0 0 40px var(--color-glow), 0 0 20px var(--color-glow), 0 0 10px var(--color-glow);
    letter-spacing: 0.5px;
}

.certificate-card a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certificate-card a:hover::before {
    opacity: 1;
}

.certificate-card a:hover {
    background: transparent;
    box-shadow: none;
    color: var(--color-glow-text);
    transform: none;
    text-shadow: 0 0 50px var(--color-glow-hover), 0 0 25px var(--color-glow-hover), 0 0 12px var(--color-glow-hover);
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 100px 0 60px;
    scroll-margin-top: 120px;
}

.contact-widget {
    padding: 30px 60px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(18px);
    border-radius: 40px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.contact-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contact-widget:hover::before {
    opacity: 1;
}

.contact-widget:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.12);
    transform: translateY(-2px);
}

.contact-link {
    font-size: 24px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-text-hover);
}

.social-dots { display: flex; gap: 24px; }

.social-dot {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.18) 50%, rgba(180, 175, 165, 0.04) 100%);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    transition: all 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.social-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 115, 85, 0.12) 0%, rgba(139, 115, 85, 0.06) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-dot:hover::before {
    opacity: 1;
}

.social-dot i {
    font-size: 20px;
    color: var(--color-text);
}

.social-dot:hover {
    background: radial-gradient(circle at center, rgba(170, 160, 145, 0.5) 0%, rgba(160, 150, 135, 0.28) 50%, rgba(150, 140, 125, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    transform: translateY(-2px) scale(1.05);
}

.social-dot i {
    font-size: 20px;
    color: var(--color-text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-dot:hover i {
    color: var(--color-text-hover);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .theme-toggle, .lang-toggle { top: 25px; width: 48px; height: 48px; }
    .theme-toggle { right: 30px; }
    .lang-toggle { left: 30px; }
    .theme-toggle i, .lang-toggle i { font-size: 17px; }
    .portfolio { padding: 100px 30px 130px; }

    .intro-layout { gap: 40px; }
    .name-widget h1 { font-size: 46px; }
    .text-bubble p { font-size: 20px; }
    .project-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
    .certificates-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; top: 15px; left: 20px; width: 44px; height: 44px; }
    .menu-toggle span { width: 20px; }
    .lang-toggle { top: 15px; left: 70px; width: 44px; height: 44px; }
    .lang-toggle i { font-size: 16px; }
    .theme-toggle { top: 15px; right: 20px; width: 44px; height: 44px; }
    .theme-toggle i { font-size: 16px; }
    .navbar {
        top: 75px; left: 20px; transform: translateX(-120%);
        min-width: 200px; padding: 30px 35px; border-radius: 30px;
        transition: transform 0.4s ease, opacity 0.4s ease;
        opacity: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    .navbar.active { transform: translateX(0); opacity: 1; }
    body.dark-mode .navbar { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
    .nav-container { flex-direction: column; gap: 20px; align-items: flex-start; }
    .nav-link { font-size: 18px; width: 100%; padding: 8px 0; transition: color 0.3s ease, transform 0.3s ease; }
    .nav-link:hover { transform: translateX(5px); }
    .portfolio { padding: 100px 24px 120px; }

    .intro-section { padding: 40px 0; }
    .about-section { padding: 80px 0 40px; }
    .intro-layout { gap: 25px; }
    .intro-content { gap: 25px; }
    .name-widget { padding: 20px 30px; align-self: stretch; }
    .name-widget h1 { font-size: 32px; }
    .photo-widget { width: 140px; min-width: 140px; min-height: 280px; padding: 8px; }
    .subtitle { padding-left: 10px; font-size: 17px; }
    .text-bubble { padding: 30px 25px; }
    .text-bubble p { font-size: 17px; line-height: 1.6; }
    .section-title { font-size: 36px; margin-bottom: 50px; }
    .work-section, .skills-section, .tools-section, .certificates-section, .contact-section { padding: 80px 0 40px; }
    .project-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-card { padding: 35px 30px; }
    .project-title { font-size: 19px; }
    .project-desc { font-size: 16px; }

    .certificates-grid { grid-template-columns: 1fr; gap: 30px; }
    .certificate-card { padding: 30px 35px; }
    .certificate-name { font-size: 18px; }
    .contact-widget { padding: 25px 40px; }
    .contact-link { font-size: 20px; }
    .social-dot { width: 45px; height: 45px; }
    .social-dot i { font-size: 18px; }
}

@media (max-width: 480px) {
    .menu-toggle { top: 10px; left: 12px; width: 40px; height: 40px; gap: 4px; }
    .menu-toggle span { width: 18px; }
    .lang-toggle { top: 10px; left: 62px; width: 40px; height: 40px; }
    .lang-toggle i { font-size: 14px; }
    .theme-toggle { top: 10px; right: 12px; width: 40px; height: 40px; }
    .theme-toggle i { font-size: 14px; }
    .navbar { top: 65px; left: 12px; padding: 25px 30px; border-radius: 25px; }
    .nav-container { gap: 10px; }
    .nav-link { font-size: 12px; }
    .portfolio { padding: 90px 16px 110px; }

    .intro-section { padding: 30px 0; }
    .about-section { padding: 60px 0 30px; }
    .intro-layout { gap: 20px; }
    .intro-content { gap: 20px; }
    .name-widget { padding: 18px 25px; border-radius: 40px; }
    .name-widget h1 { font-size: 26px; }
    .photo-widget { width: 120px; min-width: 120px; min-height: 240px; padding: 8px; border-radius: 25px; }
    .photo-widget img { border-radius: 18px; }
    .subtitle { font-size: 15px; padding-left: 8px; }
    .text-bubble { padding: 22px 18px; border-radius: 30px; }
    .text-bubble p { font-size: 15px; line-height: 1.5; }
    .section-title { font-size: 30px; margin-bottom: 40px; }
    .work-section, .skills-section, .tools-section, .certificates-section, .contact-section { padding: 60px 0 30px; }
    .project-grid { gap: 25px; grid-template-columns: 1fr; }
    .project-card { padding: 25px 20px; border-radius: 25px; }
    .project-title { font-size: 17px; }
    .project-desc { font-size: 15px; line-height: 1.5; }

    .certificates-grid { gap: 25px; }
    .certificate-card { padding: 25px; border-radius: 25px; }
    .certificate-name { font-size: 17px; }
    .certificate-date { font-size: 14px; }
    .certificate-card a { font-size: 14px; padding: 10px 20px; border-radius: 18px; }
    .contact-widget { padding: 20px 30px; border-radius: 35px; }
    .contact-link { font-size: 17px; word-break: break-all; }
    .social-dots { gap: 20px; }
    .social-dot { width: 42px; height: 42px; }
    .social-dot i { font-size: 16px; }
}

@media (max-width: 360px) {
    .menu-toggle { top: 8px; left: 10px; width: 36px; height: 36px; gap: 3px; }
    .menu-toggle span { width: 16px; }
    .lang-toggle { top: 8px; left: 52px; width: 36px; height: 36px; }
    .lang-toggle i { font-size: 13px; }
    .theme-toggle { top: 8px; right: 10px; width: 36px; height: 36px; }
    .theme-toggle i { font-size: 13px; }
    .navbar { top: 58px; left: 10px; padding: 20px 25px; border-radius: 20px; }
    .nav-container { gap: 16px; }
    .nav-link { font-size: 11px; }
    .portfolio { padding: 85px 12px 100px; }

    .intro-layout { gap: 15px; }
    .intro-content { gap: 15px; }
    .name-widget { padding: 15px 20px; }
    .name-widget h1 { font-size: 22px; }
    .photo-widget { width: 100px; min-width: 100px; min-height: 200px; padding: 6px; }
    .subtitle { font-size: 14px; padding-left: 6px; }
    .text-bubble { padding: 18px 14px; }
    .text-bubble p { font-size: 14px; }
    .section-title { font-size: 26px; }
    .project-card { padding: 20px 16px; }
    .project-grid { grid-template-columns: 1fr; }
    .certificate-card { padding: 20px; }
    .contact-link { font-size: 15px; }
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-glow-text);
    text-decoration: none;
    padding: 9px 1.2rem 8px;
    background: transparent;
    backdrop-filter: none;
    border-radius: 50px;
    border: 0 solid transparent;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 40px var(--color-glow), 0 0 20px var(--color-glow), 0 0 10px var(--color-glow);
    letter-spacing: 0.5px;
}

.project-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-link:hover::before {
    opacity: 1;
}

.project-link:hover {
    background: transparent;
    box-shadow: none;
    color: var(--color-glow-text);
    transform: none;
    text-shadow: 0 0 50px var(--color-glow-hover), 0 0 25px var(--color-glow-hover), 0 0 12px var(--color-glow-hover);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(3px);
}

.project-card {
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card a,
.project-link {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease, transform 0.3s ease;
}

.project-card a i,
.project-link i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.project-card a:hover i,
.project-link:hover i {
    transform: translateX(4px);
}

.project-card a:focus-visible,
.project-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.3), 0 4px 12px rgba(139, 115, 85, 0.15);
}

body.dark-mode .project-card a:focus-visible,
body.dark-mode .project-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.4), 0 4px 12px rgba(220, 20, 60, 0.2);
}

.project-card a:active,
.project-link:active {
    transform: scale(0.98);
}

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 8px;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(180, 175, 165, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 115, 85, 0.5);
    background-clip: padding-box;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: rgba(40, 35, 35, 0.3);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: rgba(220, 20, 60, 0.3);
    background-clip: padding-box;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 20, 60, 0.5);
    background-clip: padding-box;
}

a, button {
    transition: all 0.3s ease;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: cardFadeIn 0.6s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-grid {
    max-width: 900px;
    margin: 0 auto;
}

.project-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.5) 0%, rgba(180, 175, 165, 0.25) 50%, rgba(180, 175, 165, 0.08) 100%);
    border-radius: 50%;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}

.project-icon i {
    font-size: 30px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.project-card:hover .project-icon {
    background: radial-gradient(circle at center, rgba(170, 160, 145, 0.6) 0%, rgba(160, 150, 135, 0.35) 50%, rgba(150, 140, 125, 0.12) 100%);
}

.project-card:hover .project-icon i {
    color: var(--color-text-hover);
}

body.dark-mode .project-icon {
    background: radial-gradient(circle at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 50%, rgba(20, 20, 20, 0.1) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

body.dark-mode .project-card:hover .project-icon {
    background: radial-gradient(circle at center, rgba(50, 35, 35, 0.6) 0%, rgba(40, 30, 30, 0.4) 50%, rgba(30, 25, 25, 0.2) 100%);
    border: 1px solid rgba(220, 20, 60, 0.4);
}

body.dark-mode .project-card:hover .project-icon i {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .project-icon {
        width: 60px;
        height: 60px;
    }

    .project-icon i {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .project-icon {
        width: 55px;
        height: 55px;
    }

    .project-icon i {
        font-size: 22px;
    }
}

.project-card-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 40px 50px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;

    flex-direction: unset;
}

.project-card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card-link:hover::before {
    opacity: 1;
}

.project-card-link:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 8px 28px rgba(139, 115, 85, 0.15);
    transform: translateY(-4px);
}

.project-card-link:active {
    transform: translateY(-2px);
}

.project-card-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.project-card-link .project-icon {
    width: 80px;
    height: 80px;
    margin: 0;
    flex-shrink: 0;
}

.project-card-link .project-icon i {
    font-size: 34px;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.project-card-link .project-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.project-card-link:hover .project-title {
    color: var(--color-text-hover);
}

.project-card-link .project-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    opacity: 0.85;
    margin: 0;
    text-align: left;
    font-weight: 500;
}

.project-arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.2) 100%);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.project-arrow i {
    font-size: 18px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.project-card-link:hover .project-arrow {
    background: radial-gradient(circle at center, rgba(170, 160, 145, 0.6) 0%, rgba(160, 150, 135, 0.35) 100%);
    transform: translateX(4px);
}

.project-card-link:hover .project-arrow i {
    color: var(--color-text-hover);
    transform: translateX(2px);
}

body.dark-mode .project-card-link {
    background: radial-gradient(ellipse at center, var(--grad-light));
    border: 1px solid rgba(220, 20, 60, 0.15);
}

body.dark-mode .project-card-link:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    border: 1px solid rgba(220, 20, 60, 0.3);
}

body.dark-mode .project-card-link:hover .project-title,
body.dark-mode .project-card-link:hover .project-arrow i {
    color: #ff6b6b;
}

body.dark-mode .project-arrow {
    background: radial-gradient(circle at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

body.dark-mode .project-card-link:hover .project-arrow {
    background: radial-gradient(circle at center, rgba(50, 35, 35, 0.6) 0%, rgba(40, 30, 30, 0.4) 100%);
    border: 1px solid rgba(220, 20, 60, 0.4);
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .project-card-link {
        grid-template-columns: auto 1fr;
        gap: 20px;
        padding: 28px 30px;
    }

    .project-card-link .project-icon {
        width: 64px;
        height: 64px;
    }

    .project-card-link .project-icon i {
        font-size: 28px;
    }

    .project-card-link .project-title {
        font-size: 19px;
    }

    .project-card-link .project-desc {
        font-size: 14px;
    }

    .project-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .project-card-link {
        padding: 22px 22px;
        gap: 16px;
        border-radius: 24px;
    }

    .project-card-link .project-icon {
        width: 54px;
        height: 54px;
    }

    .project-card-link .project-icon i {
        font-size: 24px;
    }

    .project-card-link .project-title {
        font-size: 17px;
    }

    .project-card-link .project-desc {
        font-size: 13px;
        line-height: 1.4;
    }
}

.contact-link,
.project-link,
button:not(.theme-toggle):not(.lang-toggle):not(.menu-toggle):not(.currency-toggle):not(.backup-btn) {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-link:hover,
.project-link:hover,
button:not(.theme-toggle):not(.lang-toggle):not(.menu-toggle):not(.currency-toggle):not(.backup-btn):hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.15);
    color: var(--color-text-hover);
}

body.dark-mode .contact-link:hover,
body.dark-mode .project-link:hover,
body.dark-mode button:not(.theme-toggle):not(.lang-toggle):not(.menu-toggle):not(.currency-toggle):not(.backup-btn):hover {
    color: #ff6b6b;
}

.hero-advanced {
    position: relative;
    overflow: hidden;
    padding: 80px 70px;
    max-width: 820px;
}

.hero-advanced .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.hero-bg-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

@keyframes taglineFadeIn {
    to { opacity: 0.9; transform: translateY(0); }
}

@keyframes heroIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
    .hero-advanced {
        padding: 56px 36px;
    }

}

@media (max-width: 480px) {
    .hero-advanced {
        padding: 44px 22px;
    }

}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.privacy-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 60px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    text-align: center;
}

.privacy-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.privacy-card:hover::before { opacity: 1; }

.privacy-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 8px 28px rgba(139, 115, 85, 0.15);
    transform: translateY(-2px);
}

.privacy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.5) 0%, rgba(180, 175, 165, 0.25) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.privacy-icon i {
    font-size: 34px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.privacy-card:hover .privacy-icon {
    background: radial-gradient(circle at center, rgba(170, 160, 145, 0.6) 0%, rgba(160, 150, 135, 0.35) 100%);
}

.privacy-card:hover .privacy-icon i {
    color: var(--color-text-hover);
}

.privacy-lead {
    font-size: 22px;
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 500;
    margin: 0 auto 40px;
    max-width: 640px;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 18px;
    text-align: left;
}

.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 26px;
    background: rgba(180, 175, 165, 0.18);
    border-radius: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.privacy-item:hover {
    background: rgba(170, 160, 145, 0.28);
    transform: translateX(4px);
}

.privacy-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.4) 0%, rgba(180, 175, 165, 0.18) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.privacy-item-icon i {
    font-size: 18px;
    color: var(--color-text);
}

.privacy-item-content {
    flex: 1;
    min-width: 0;
}

.privacy-item-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 6px;
    line-height: 1.3;
}

.privacy-item-desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text);
    opacity: 0.85;
    margin: 0;
}

.privacy-footnote {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    opacity: 0.7;
    margin: 0 auto;
    max-width: 600px;
    font-style: italic;
}

body.dark-mode .privacy-card {
    border: 1px solid rgba(220, 20, 60, 0.15);
}

body.dark-mode .privacy-card:hover {
    border: 1px solid rgba(220, 20, 60, 0.3);
}

body.dark-mode .privacy-icon {
    background: radial-gradient(circle at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

body.dark-mode .privacy-card:hover .privacy-icon {
    background: radial-gradient(circle at center, rgba(50, 35, 35, 0.6) 0%, rgba(40, 30, 30, 0.4) 100%);
    border: 1px solid rgba(220, 20, 60, 0.4);
}

body.dark-mode .privacy-card:hover .privacy-icon i {
    color: #ff6b6b;
}

body.dark-mode .privacy-item {
    background: rgba(40, 35, 35, 0.4);
    border: 1px solid rgba(220, 20, 60, 0.1);
}

body.dark-mode .privacy-item:hover {
    background: rgba(50, 40, 40, 0.55);
    border: 1px solid rgba(220, 20, 60, 0.25);
}

body.dark-mode .privacy-item-icon {
    background: radial-gradient(circle at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

@media (max-width: 768px) {
    .privacy-card { padding: 40px 35px; }
    .privacy-icon { width: 70px; height: 70px; margin-bottom: 20px; }
    .privacy-icon i { font-size: 30px; }
    .privacy-lead { font-size: 18px; margin-bottom: 32px; }
    .privacy-item { padding: 18px 20px; gap: 14px; }
    .privacy-item-icon { width: 40px; height: 40px; min-width: 40px; }
    .privacy-item-icon i { font-size: 16px; }
    .privacy-item-title { font-size: 16px; }
    .privacy-item-desc { font-size: 14px; }
    .privacy-footnote { font-size: 13px; }
}

@media (max-width: 480px) {
    .privacy-card { padding: 32px 22px; border-radius: 24px; }
    .privacy-icon { width: 60px; height: 60px; }
    .privacy-icon i { font-size: 26px; }
    .privacy-lead { font-size: 16px; margin-bottom: 26px; }
    .privacy-list { gap: 14px; }
    .privacy-item { padding: 16px 16px; gap: 12px; border-radius: 16px; }
    .privacy-item-icon { width: 36px; height: 36px; min-width: 36px; }
    .privacy-item-icon i { font-size: 15px; }
    .privacy-item-title { font-size: 15px; }
    .privacy-item-desc { font-size: 13px; }
    .privacy-item:hover { transform: none; }
}

.backup-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 60px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: background var(--transition), box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    text-align: center;
}

.backup-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.08) 0%, rgba(139, 115, 85, 0.04) 50%, transparent 100%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.backup-card:hover::before { opacity: 1; }

.backup-card:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 8px 28px rgba(139, 115, 85, 0.15);
    transform: translateY(-2px);
}

.backup-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(180, 175, 165, 0.5) 0%, rgba(180, 175, 165, 0.25) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.backup-icon i {
    font-size: 32px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.backup-card:hover .backup-icon {
    background: radial-gradient(circle at center, rgba(170, 160, 145, 0.6) 0%, rgba(160, 150, 135, 0.35) 100%);
}

.backup-card:hover .backup-icon i { color: var(--color-text-hover); }

.backup-lead {
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 600;
    margin: 0 0 8px;
}

.backup-sub {
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text);
    opacity: 0.75;
    margin: 0 auto 32px;
    max-width: 540px;
}

.backup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
}

.backup-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: radial-gradient(ellipse at center, rgba(180, 175, 165, 0.45) 0%, rgba(180, 175, 165, 0.22) 100%);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 25px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.backup-btn:hover {
    background: radial-gradient(ellipse at center, rgba(170, 160, 145, 0.55) 0%, rgba(160, 150, 135, 0.3) 100%);
    color: var(--color-text-hover);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.18);
    transform: translateY(-2px);
}

.backup-btn:active { transform: scale(0.98); }

.backup-btn-primary {
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.55) 0%, rgba(139, 115, 85, 0.3) 100%);
}

.backup-btn-primary:hover {
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.7) 0%, rgba(139, 115, 85, 0.45) 100%);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

.backup-btn-danger {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.18) 0%, rgba(220, 20, 60, 0.08) 100%);
}

.backup-btn-danger:hover {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.3) 0%, rgba(220, 20, 60, 0.15) 100%);
    color: rgba(220, 20, 60, 0.95);
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.2);
}

body.dark-mode .backup-card {
    border: 1px solid rgba(220, 20, 60, 0.15);
}

body.dark-mode .backup-card:hover {
    border: 1px solid rgba(220, 20, 60, 0.3);
}

body.dark-mode .backup-icon {
    background: radial-gradient(circle at center, rgba(40, 30, 30, 0.5) 0%, rgba(30, 25, 25, 0.3) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

body.dark-mode .backup-card:hover .backup-icon {
    background: radial-gradient(circle at center, rgba(50, 35, 35, 0.6) 0%, rgba(40, 30, 30, 0.4) 100%);
    border: 1px solid rgba(220, 20, 60, 0.4);
}

body.dark-mode .backup-card:hover .backup-icon i { color: #ff6b6b; }

body.dark-mode .backup-btn { border: 1px solid rgba(220, 20, 60, 0.2); }

body.dark-mode .backup-btn:hover {
    border: 1px solid rgba(220, 20, 60, 0.4);
    color: #ff6b6b;
}

body.dark-mode .backup-btn-primary {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.4) 0%, rgba(178, 34, 34, 0.25) 100%);
    border: 1px solid rgba(220, 20, 60, 0.4);
}

body.dark-mode .backup-btn-primary:hover {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.55) 0%, rgba(178, 34, 34, 0.4) 100%);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.35);
}

body.dark-mode .backup-btn-danger {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.25) 0%, rgba(178, 34, 34, 0.12) 100%);
    border: 1px solid rgba(220, 20, 60, 0.3);
}

body.dark-mode .backup-btn-danger:hover {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.4) 0%, rgba(178, 34, 34, 0.22) 100%);
    color: #ff8a8a;
}

@media (max-width: 768px) {
    .backup-card { padding: 40px 30px; }
    .backup-icon { width: 64px; height: 64px; margin-bottom: 18px; }
    .backup-icon i { font-size: 28px; }
    .backup-lead { font-size: 17px; }
    .backup-sub { font-size: 14px; margin-bottom: 24px; }
    .rect-glow-button { padding: 12px 22px; font-size: 14px; }
}

@media (max-width: 480px) {
    .backup-card { padding: 32px 22px; border-radius: 24px; }
    .backup-icon { width: 56px; height: 56px; }
    .backup-icon i { font-size: 24px; }
    .backup-lead { font-size: 16px; }
    .backup-sub { font-size: 13px; margin-bottom: 22px; }
    .backup-actions { flex-direction: column; }
    .rect-glow-button { width: 100%; justify-content: center; }
}

.site-footer {
    position: fixed;
    bottom: 30px;
    left: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.footer-container {
    width: 100%;
    padding: 18px 40px;
    background: radial-gradient(ellipse at center, var(--grad-light));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    transition: background var(--transition), box-shadow 0.3s ease;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.footer-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 115, 85, 0.06) 0%, rgba(139, 115, 85, 0.03) 50%, transparent 100%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.footer-container:hover::before { opacity: 1; }

.footer-container:hover {
    background: radial-gradient(ellipse at center, var(--grad-light-hover));
    box-shadow: 0 8px 24px rgba(139, 115, 85, 0.15);
}

.footer-year {
    font-variant-numeric: tabular-nums;
    justify-self: start;
}

.footer-brand {
    letter-spacing: 1px;
    font-weight: 600;
    justify-self: center;
}

.footer-link {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
    justify-self: end;
}

.footer-link:hover {
    color: var(--color-text-hover);
}

body.dark-mode .footer-container {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.5) 0%, rgba(20, 20, 20, 0.3) 50%, rgba(30, 30, 30, 0.5) 100%),
        radial-gradient(ellipse at center, rgba(139, 0, 0, 0.15) 0%, rgba(60, 20, 20, 0.1) 50%, rgba(30, 30, 30, 0.05) 100%);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

body.dark-mode .footer-container:hover {
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.6) 0%, rgba(25, 25, 25, 0.4) 50%, rgba(35, 35, 35, 0.6) 100%),
        radial-gradient(ellipse at center, rgba(178, 34, 34, 0.2) 0%, rgba(80, 25, 25, 0.15) 50%, rgba(40, 40, 40, 0.08) 100%);
}

body.dark-mode .footer-link:hover { color: #ff6b6b; }

@media (max-width: 1024px) {
    .site-footer { bottom: 25px; left: 30px; right: 30px; }
    .footer-container { padding: 16px 32px; }
}

@media (max-width: 768px) {
    .site-footer { bottom: 20px; left: 20px; right: 20px; }
    .footer-container { padding: 14px 22px; border-radius: 40px; font-size: 13px; gap: 12px; }
}

@media (max-width: 600px) {
    .footer-container { font-size: 12px; padding: 12px 18px; }
    .footer-brand { letter-spacing: 0.5px; }
}

@media (max-width: 480px) {
    .site-footer { bottom: 12px; left: 12px; right: 12px; }
    .footer-container { padding: 10px 14px; border-radius: 24px; font-size: 11px; gap: 8px; }
    .footer-brand { display: none; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
    .site-footer { bottom: 10px; left: 10px; right: 10px; }
    .footer-container { padding: 9px 12px; font-size: 10px; gap: 6px; }
}

.rect-glow-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'DeepSea', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-glow);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 20px rgba(182, 183, 174, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rect-glow-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rect-glow-button:hover {
    background: var(--color-glow-hover);
    color: var(--color-text-hover);
    box-shadow: 
        0 0 30px rgba(207, 207, 201, 0.5),
        0 0 60px rgba(207, 207, 201, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.rect-glow-button:hover::before {
    opacity: 1;
}

.rect-glow-button:active {
    transform: translateY(0);
    box-shadow: 
        0 0 20px rgba(182, 183, 174, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.rect-glow-button:focus-visible {
    outline: 2px solid var(--color-glow-hover);
    outline-offset: 4px;
}

.rect-glow-button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.rect-glow-button:hover i {
    transform: scale(1.1);
}

.rect-glow-button.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

.rect-glow-button.btn-sm i {
    font-size: 16px;
}

.rect-glow-button.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.rect-glow-button.btn-lg i {
    font-size: 20px;
}

.rect-glow-button.btn-primary {
    background: var(--color-glow);
    box-shadow: 
        0 0 20px rgba(182, 183, 174, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.rect-glow-button.btn-primary:hover {
    background: var(--color-glow-hover);
    box-shadow: 
        0 0 30px rgba(207, 207, 201, 0.5),
        0 0 60px rgba(207, 207, 201, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.15);
}

.rect-glow-button.btn-danger {
    background: #d4a5a5;
    box-shadow: 
        0 0 20px rgba(212, 165, 165, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.rect-glow-button.btn-danger:hover {
    background: #e0b5b5;
    box-shadow: 
        0 0 30px rgba(224, 181, 181, 0.5),
        0 0 60px rgba(224, 181, 181, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.15);
}

body.dark-mode .rect-glow-button {
    color: #e8e8e8;
    background: rgba(182, 183, 174, 0.15);
    border: 1px solid rgba(182, 183, 174, 0.3);
    box-shadow: 
        0 0 20px rgba(182, 183, 174, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .rect-glow-button:hover {
    background: rgba(207, 207, 201, 0.25);
    border-color: rgba(207, 207, 201, 0.5);
    color: #ff6b6b;
    box-shadow: 
        0 0 30px rgba(207, 207, 201, 0.4),
        0 0 60px rgba(207, 207, 201, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .rect-glow-button.btn-danger {
    background: rgba(212, 165, 165, 0.15);
    border-color: rgba(212, 165, 165, 0.3);
    box-shadow: 
        0 0 20px rgba(212, 165, 165, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .rect-glow-button.btn-danger:hover {
    background: rgba(224, 181, 181, 0.25);
    border-color: rgba(224, 181, 181, 0.5);
    box-shadow: 
        0 0 30px rgba(224, 181, 181, 0.4),
        0 0 60px rgba(224, 181, 181, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.4);
}

.rect-glow-button:disabled,
.rect-glow-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.rect-glow-button.btn-block {
    width: 100%;
    display: flex;
}


.circular-video {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    margin: 0 auto 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.005);
}

.circle-masked-container canvas,
.circle-masked-container img,
.circle-masked-container video {
    aspect-ratio: 1/1;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cfilter id='blurFilter'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='5' /%3E%3C/filter%3E%3Cg filter='url(%23blurFilter)'%3E%3Ccircle fill='black' cx='150' cy='150' r='135' /%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cfilter id='blurFilter'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='5' /%3E%3C/filter%3E%3Cg filter='url(%23blurFilter)'%3E%3Ccircle fill='black' cx='150' cy='150' r='135' /%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.circular-video video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: auto;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.circular-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.circular-video--loaded video {
    opacity: 1;
}

.circular-video--loaded img {
    opacity: 0;
}

body.dark-mode .circular-video {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .circular-video {
        max-width: 300px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .circular-video {
        max-width: 250px;
        margin-bottom: 30px;
    }
}


.info__container-video__button-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #f2f2f2;
    padding-left: 0;
    padding-right: 0;
}

@media only screen and (min-width: 560px) {
    .info__container-video__button-overlay {
        bottom: 12px;
    }
}

.button,
button.button,
a.button {
    display: flex;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
    border: 0 solid transparent;
    border-radius: 0;
    padding: 9px 1.2rem 8px;
    transition: all 0.3s;
    margin: 0 0 0.8rem;
    outline: 0;
    background-color: rgba(0, 0, 0, 0);
    color: var(--color-main);
    font-family: inherit;
    font-feature-settings: "kern", "liga", "pnum";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.button--no-text {
    padding: 0.512rem 0.8rem;
}

.button:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.button.focus,
.button.hover,
.button:focus,
.button:hover {
    outline: 0;
    text-decoration: none;
    color: var(--color-main-hover);
}

.button:active {
    transform: scale(0.98);
}

.info .button {
    padding-top: 0;
}

.circular-video .button {
    color: #f2f2f2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.circular-video .button:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

body.dark-mode .button {
    color: #e8e8e8;
}

body.dark-mode .button:hover {
    color: #ff6b6b;
}

.backup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.backup-actions .button {
    margin: 0;
}

@media (max-width: 768px) {
    .button {
        font-size: 20px;
        padding: 8px 1rem 7px;
    }
}

@media (max-width: 480px) {
    .button {
        font-size: 17px;
        padding: 7px 0.9rem 6px;
    }
    
    .backup-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .backup-actions .button {
        width: 100%;
    }
}
