:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --accent-bg: #f3f4f6;
    --border-color: #e5e7eb;
    --font-family: 'Inter', sans-serif;
}
html {
    scroll-behavior: smooth;
}
body.dark-mode {
    --bg-color: #0a0a0a;
    --text-main: #f5f5f5;
    --text-muted: #a1a1aa;
    --accent-bg: #18181b;
    --border-color: #27272a;
}
.container {
    animation: fadeIn 0.8s ease-out forwards;
}
.navbar {
    animation: fadeInNav 0.8s ease-out forwards;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInNav {
    0% {
        opacity: 0;
        transform: translate(-50%, -15px); 
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
.dark-mode::view-transition-old(root) { z-index: 2; }
.dark-mode::view-transition-new(root) { z-index: 1; }
.hero-image .img-dark {
    display: none;
}
body.dark-mode .hero-image .img-light {
    display: none;
}
body.dark-mode .hero-image .img-dark {
    display: block;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-user-select: none; 
    user-select: none; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--bg-color), 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 30px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center; 
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 8px;
}
.nav-links a.active {
    background-color: var(--text-main);
    color: var(--bg-color);
}
@media (hover: hover) {
    .nav-links a:hover {
        background-color: var(--text-main);
        color: var(--bg-color);
    }
}
.theme-btn {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0; 
}
.theme-btn i {
    margin: 0; 
}
.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 140px 25px 30px; 
    flex: 1; 
}
section {
    scroll-margin-top: 110px;
}
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 100px;
}
.hero-content { flex: 1.2; }
.badge {
    display: inline-block;
    background-color: var(--accent-bg);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}
.hero h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 25px;
}
.hero h2 span {
    animation: blink 1s infinite;
    font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }
.hero p {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
    font-size: 1.05rem;
}
.status-location {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}
.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
}
.btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.btn.primary {
    background-color: var(--text-main);
    color: var(--bg-color);
}
.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn.secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn.secondary:hover { background-color: var(--accent-bg); }
.socials {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-muted);
    font-weight: 500;
}
.btn.disabled {
    background-color: var(--accent-bg) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
    opacity: 0.6; 
    cursor: not-allowed; 
    pointer-events: none; 
    transform: none !important;
    box-shadow: none !important;
}
.socials a {
    color: var(--text-main);
    font-size: 1.3rem;
    transition: transform 0.2s;
}
.socials a:hover { transform: translateY(-4px); }
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.hero-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}
.projects-section h3 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.project-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: var(--text-main);
}
.project-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}
.project-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}
.project-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}
.project-link:hover { gap: 12px; }
.card-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
}
.carousel-wrapper {
    position: relative;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
}
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45px; 
    z-index: 2;
    pointer-events: none;
}
.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}
.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}
.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 40px; 
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-track img {
    flex: 0 0 calc(100% - 80px); 
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: center; 
    border: 1px solid var(--border-color);
    cursor: pointer; 
    -webkit-user-drag: none; 
    user-select: none; 
    -webkit-user-select: none; 
    -webkit-touch-callout: none; 
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }
.carousel-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
}
.coming-soon {
    border: 2px dashed var(--border-color); 
    background: transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}
.coming-soon:hover {
    transform: translateY(-4px); 
}
.sub-section-title {
    font-size: 1.8rem;
    margin: 60px 0 30px 0;
    color: var(--text-muted);
    letter-spacing: -0.02em;
}
.empty-card {
    background: var(--accent-bg);
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-shadow: none;
}
.empty-card:hover {
    transform: none; 
    box-shadow: none;
}
.contact-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.contact-section h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.contact-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}
.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}
.direct-contact, .social-links-area {
    flex: 1;
    min-width: 300px;
}
.contact-container h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    background: var(--bg-color);
}
.contact-card:hover {
    border-color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.contact-icon {
    font-size: 1.5rem;
    color: var(--text-main);
    background: var(--accent-bg);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-info p {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    word-break: break-all;
}
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}
.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.social-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}
.footer {
    text-align: center;
    max-width: 1100px; 
    width: 100%;
    margin: 0 auto; 
    padding: 40px 25px; 
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-muted);
}
.footer .anime-quote {
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
    margin-top: 20px; 
    color: var(--text-muted);
}
.footer p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.footer .footer-note {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 400;
}
.image-modal {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(8px); 
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.image-modal.show {
    display: flex;
    opacity: 1;
}
.image-modal .modal-content {
    max-width: 90%;
    max-height: 85vh; 
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    -webkit-user-drag: none; 
    user-select: none; 
    -webkit-touch-callout: none;
}
.image-modal.show .modal-content {
    transform: scale(1); 
}
.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}
.close-modal:hover {
    background: rgba(255,255,255,0.2);
}
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero p { max-width: 100%; }
    .hero-image { justify-content: center; }
    .status-location { justify-content: center; }
    .actions { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .contact-container {
        gap: 40px;
        flex-direction: column;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 110px 20px 30px; 
    }
    .navbar {
        width: auto; 
        padding: 8px 14px;
        gap: 15px; 
    }
    .nav-links { gap: 4px; }
    .nav-links a { 
        padding: 8px 14px; 
        font-size: 0.8rem; 
        white-space: nowrap; 
    }
    .theme-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0; 
        flex-shrink: 0; 
    }
    .theme-btn i {
        margin: 0;
    }
    .actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn { justify-content: center; width: 100%; }
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
        gap: 10px;
    }
    .footer {
        margin-top: 0px; 
        padding: 30px 15px; 
    }
    .footer p { font-size: 0.85rem; }
    .footer .footer-note { font-size: 0.75rem; }
    .quote-wrapper {
        width: 100%;
        overflow: hidden; 
        white-space: nowrap; 
        margin-top: 20px;
        position: relative; 
    }
    .quote-wrapper::before,
    .quote-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px; 
        z-index: 2;
        pointer-events: none; 
    }
    .quote-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-color), transparent); }
    .quote-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-color), transparent); }
    .footer .anime-quote {
        display: inline-block;
        margin-top: 0;
        padding-left: 100%; 
        will-change: transform; 
    }
    .footer .anime-quote.run-marquee {
        animation: marquee 14s linear infinite; 
    }
    .carousel-track img {
        flex: 0 0 calc(100% - 40px); 
        height: 160px; 
    }
    .carousel-track {
        padding: 0 20px; 
    }
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 20px; 
    }
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        opacity: 0.8; 
    }
    .carousel-btn.prev { left: 4px; }
    .carousel-btn.next { right: 4px; }
    @keyframes marquee {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
}
@media (max-width: 380px) { 
    .nav-links a {
        font-size: 0px; 
        padding: 0; 
        width: 36px; 
        height: 36px; 
        border-radius: 50%; 
        gap: 0; 
        flex-shrink: 0; 
    }
    .nav-links a i {
        font-size: 1.15rem; 
        margin: 0;
    }
    .hero h1 {
        font-size: 2.1rem;
    }
}
