:root {
    --bg: #faf5ef;
    --surface: #ffffff;
    --text: #2d1b0e;
    --text-secondary: #8b7a66;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --accent-light: rgba(220, 38, 38, 0.08);
    --border: #ece3d8;
    --card-shadow: 0 2px 8px rgba(45, 27, 14, 0.06), 0 1px 3px rgba(45, 27, 14, 0.04);
    --radius: 12px;
    --transition: 0.3s ease;
    --shape-1-bg: rgba(220, 38, 38, 0.12);
    --shape-2-border: rgba(220, 38, 38, 0.2);
    --shape-3-bg: rgba(220, 38, 38, 0.12);
    --shape-4-bg: rgba(220, 38, 38, 0.12);
    --shape-5-border: rgba(220, 38, 38, 0.2);
    --shape-6-border: rgba(220, 38, 38, 0.2);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #ef4444;
    --accent-hover: #dc2626;
    --accent-light: rgba(239, 68, 68, 0.1);
    --border: #334155;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shape-1-bg: rgba(239, 68, 68, 0.1);
    --shape-2-border: rgba(239, 68, 68, 0.18);
    --shape-3-bg: rgba(239, 68, 68, 0.1);
    --shape-4-bg: rgba(239, 68, 68, 0.1);
    --shape-5-border: rgba(239, 68, 68, 0.18);
    --shape-6-border: rgba(239, 68, 68, 0.18);
}

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

/* Background Shapes */
.bg-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
}

.shape-1 {
    width: clamp(180px, 30vw, 350px);
    height: clamp(180px, 30vw, 350px);
    top: -8%;
    left: -6%;
    border-radius: 50%;
    background: var(--shape-1-bg);
}

.shape-2 {
    width: clamp(120px, 20vw, 220px);
    height: clamp(120px, 20vw, 220px);
    top: 55%;
    right: -4%;
    border-radius: 50%;
    border: 2px solid var(--shape-2-border);
}

.shape-3 {
    width: clamp(80px, 14vw, 140px);
    height: clamp(80px, 14vw, 140px);
    top: 28%;
    right: 15%;
    border-radius: 0;
    background: var(--shape-3-bg);
}

.shape-4 {
    width: clamp(100px, 16vw, 180px);
    height: clamp(100px, 16vw, 180px);
    bottom: 12%;
    left: 4%;
    border-radius: 50%;
    background: var(--shape-4-bg);
}

.shape-5 {
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    top: 12%;
    right: 30%;
    border-radius: 0;
    border: 2px solid var(--shape-5-border);
}

.shape-6 {
    width: clamp(70px, 12vw, 120px);
    height: clamp(70px, 12vw, 120px);
    bottom: 30%;
    right: 10%;
    border-radius: 50%;
    border: 2px solid var(--shape-6-border);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 10000;
    width: 0;
    transition: width 0.1s linear;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

/* Typing Cursor */
.typing-cursor {
    animation: blink 0.8s step-end infinite;
    color: var(--accent);
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

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

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 8px;
    opacity: 0;
    display: inline-block;
}

.preloader-bar {
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 0;
    max-width: 120px;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition), border-color var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.theme-toggle:hover {
    background: var(--accent-light);
    color: var(--accent);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

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

.lang-selector {
    position: relative;
}

.lang-toggle {
    background: var(--surface);
    border: 2px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background var(--transition), color var(--transition);
}

.lang-toggle:hover {
    background: var(--accent);
    color: #fff;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 100;
}

.lang-dropdown.open {
    display: block;
}

.lang-list {
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
}

.lang-list li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.lang-list li:hover,
.lang-list li.active {
    background: var(--accent-light);
    color: var(--accent);
}

.lang-list li .lang-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-text {
    flex: 1;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent), #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg);
    transition: left 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover::after {
    left: 125%;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent-light);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-image {
    flex-shrink: 0;
}

.hero-photo-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    perspective: 800px;
    cursor: pointer;
}

.hero-photo-frame:hover {
    transform: scale(1.05);
    border-color: #ff2020;
    box-shadow: 0 0 50px rgba(255, 32, 32, 0.4);
}

.hero-photo-frame.flipped .flap-inner {
    transform: rotateY(180deg);
}
.hero-photo-frame.flipped:hover .flap-inner {
    transform: rotateY(180deg);
}

.flap-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.flap-front,
.flap-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flap-front {
    flex-direction: column;
}

.flap-back {
    transform: rotateY(180deg);
    background: var(--accent);
    border-radius: 50%;
}

.flap-icon {
    width: 80px;
    height: 80px;
    stroke: #fff;
    stroke-width: 1.5;
}

.hero-photo {
    width: 200px;
    height: auto;
    display: block;
    margin-top: 25px;
    border-radius: 0 0 100px 100px;
}

/* About */
.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
    text-align: justify;
}

.about-details {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 24px;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
}
.about-details::before,
.about-goal::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    border: 1px solid var(--accent);
    -webkit-mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    -webkit-mask-size: 0% 0%;
    mask-size: 0% 0%;
    -webkit-mask-position: 0% 0%;
    mask-position: 0% 0%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: -webkit-mask-size 0.6s ease, mask-size 0.6s ease;
    pointer-events: none;
}
.about-details:hover::before,
.about-goal:hover::before {
    -webkit-mask-size: 200% 200%;
    mask-size: 200% 200%;
}
.about-details:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(220,38,38,0.25), var(--card-shadow);
}

.detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-value {
    font-weight: 600;
    color: var(--text);
}
.detail-full {
    grid-column: 1 / -1;
}
.about-goal {
    position: relative;
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
}
.about-goal:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(220,38,38,0.2), var(--card-shadow);
}
.about-goal .detail-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.about-goal p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    cursor: default;
}
.skill-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    border: 1px solid var(--accent);
    -webkit-mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    -webkit-mask-size: 0% 0%;
    mask-size: 0% 0%;
    -webkit-mask-position: 0% 0%;
    mask-position: 0% 0%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: -webkit-mask-size 0.8s ease, mask-size 0.8s ease;
    pointer-events: none;
}
.skill-card:hover::before {
    -webkit-mask-size: 200% 200%;
    mask-size: 200% 200%;
}
.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(220,38,38,0.25), var(--card-shadow);
}

.skill-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: var(--accent);
    stroke-width: 1.5;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: justify;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.project-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    border: 1px solid var(--accent);
    -webkit-mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    -webkit-mask-size: 0% 0%;
    mask-size: 0% 0%;
    -webkit-mask-position: 0% 0%;
    mask-position: 0% 0%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: -webkit-mask-size 0.8s ease, mask-size 0.8s ease;
    pointer-events: none;
}
.project-card:hover::before {
    -webkit-mask-size: 200% 200%;
    mask-size: 200% 200%;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(220,38,38,0.25), var(--card-shadow);
}

.project-image {
    height: 200px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}
.project-card.synkro .project-placeholder {
    opacity: 1;
    background: rgba(59,130,246,0.15);
    border-radius: 12px;
    padding: 20px;
}
.project-card.synkro .project-placeholder svg {
    stroke: #3b82f6;
}

.project-placeholder svg {
    width: 3rem;
    height: 3rem;
    stroke: var(--accent);
    stroke-width: 1.5;
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
    text-align: justify;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tags span {
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.btn-small {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--accent-light);
    color: var(--accent);
    transition: all var(--transition);
}

.btn-small:hover {
    background: var(--accent);
    color: #ffffff;
}

/* Experience */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg);
}

.timeline-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}
.timeline-content::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    border: 1px solid var(--accent);
    -webkit-mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    -webkit-mask-size: 0% 0%;
    mask-size: 0% 0%;
    -webkit-mask-position: 0% 0%;
    mask-position: 0% 0%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: -webkit-mask-size 0.8s ease, mask-size 0.8s ease;
    pointer-events: none;
}
.timeline-content:hover::before {
    -webkit-mask-size: 200% 200%;
    mask-size: 200% 200%;
}
.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(220,38,38,0.25), var(--card-shadow);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-company {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.timeline-content p:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact */
.contact-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.contact-card {
    position: relative;
    flex: 1 1 220px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    cursor: pointer;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    border: 1px solid var(--accent);
    -webkit-mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    mask: linear-gradient(to bottom right, #000 49.8%, transparent 50.2%);
    -webkit-mask-size: 0% 0%;
    mask-size: 0% 0%;
    -webkit-mask-position: 0% 0%;
    mask-position: 0% 0%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: -webkit-mask-size 0.6s ease, mask-size 0.6s ease;
    pointer-events: none;
}
.contact-card:hover::before {
    -webkit-mask-size: 200% 200%;
    mask-size: 200% 200%;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(220,38,38,0.25), var(--card-shadow);
}

.contact-card-icon {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    stroke-width: 1.5;
}

.contact-card-label {
    font-weight: 600;
    font-size: 1rem;
}

.contact-card-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    transition: border-color var(--transition);
}

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

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-link-icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

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

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-photo-frame {
        width: 220px;
        height: 220px;
    }

    .hero-photo {
        width: 140px;
        margin-top: 18px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

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

    .about-details {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 8px 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

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

    .header-actions {
        gap: 8px;
    }

    .lang-toggle {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .lang-dropdown {
        right: auto;
        left: 0;
        width: 180px;
    }

    .hamburger {
        display: flex;
        padding: 8px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-dot {
        left: -18px;
        width: 10px;
        height: 10px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
        padding-top: 80px;
    }

    .hero-name {
        font-size: 1.9rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-greeting {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 28px;
        font-size: 1rem;
    }

    .hero-photo-frame {
        width: 160px;
        height: 160px;
    }

    .hero-photo {
        width: 100px;
        margin-top: 14px;
    }

    .about-details {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .skill-card {
        padding: 24px 20px;
    }

    .project-info {
        padding: 20px;
    }

    .timeline-content {
        padding: 20px;
    }

    .contact-cards {
        max-width: 360px;
    }

    .contact-card {
        flex: 1 1 150px;
        max-width: 170px;
        padding: 20px 24px;
    }

    .preloader-logo {
        font-size: 3.5rem;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-links a {
        padding: 8px 0;
    }
}


