/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f5f0eb;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===== Reusable ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #1a1a1a;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: #777;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.arrow {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    transition: transform 0.3s;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4%;
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: 2px solid #1a1a1a;
    padding: 8px 7px;
    border-radius: 4px;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

.logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #555;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a1a1a;
}

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

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

.btn-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: #333;
}

.btn-contact:hover .arrow {
    transform: translate(2px, -2px);
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 999;
    padding: 6rem 2.5rem 2rem;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.08);
    border-right: 1px solid #eee;
}

.sidebar.open {
    left: 0;
}

.sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.sidebar a:hover {
    padding-left: 1rem;
    color: #555;
}

/* Sidebar overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 6% 4rem;
    background: #f5f0eb;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    max-width: 580px;
}

.hero-name {
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.95;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.hero-title {
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    max-width: 480px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    padding: 0.85rem 2.2rem;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.2s;
}

.hero-cta .btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.hero-cta .btn-outline {
    padding: 0.85rem 2.2rem;
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #d0cbc5;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.2s;
}

.hero-cta .btn-outline:hover {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
}

.sparkle {
    color: #1a1a1a;
    font-size: 1.5rem;
    animation: sparkleAnim 2s ease-in-out infinite;
}

.sparkle-right {
    position: absolute;
    top: 15%;
    right: -15px;
    font-size: 1.2rem;
}

@keyframes sparkleAnim {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(0.8) rotate(15deg); }
}

/* Hero Image */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: right;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    max-width: 420px;
    width: 100%;
    margin-right: 30px;
}

.hero-image {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    border-radius: 12px;
    object-fit: cover;
}

.schedule-call {
    position: absolute;
    bottom: 15%;
    left: -30px;
}

.schedule-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.4;
    transition: transform 0.3s, background 0.3s;
    animation: pulse 2s ease-in-out infinite;
}

.schedule-btn:hover {
    transform: scale(1.1);
    background: #333;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.3); }
    50% { box-shadow: 0 0 0 15px rgba(26, 26, 26, 0); }
}

.decorative-arrow {
    position: absolute;
    top: 10%;
    right: -10px;
    font-size: 1.5rem;
    color: #1a1a1a;
    animation: floatArrow 3s ease-in-out infinite;
}

@keyframes floatArrow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -5px); }
}

/* ===== Bio Strip ===== */
.bio-strip {
    padding: 3rem 4%;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

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

.bio-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    font-style: italic;
}

/* ===== Tech Marquee ===== */
.tech-marquee {
    width: 100%;
    padding: 2rem 0;
    background: #f5f0eb;
    border-bottom: 1px solid #e5ddd5;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    overflow: hidden;
}

.marquee-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
    animation: marquee-scroll 15s linear infinite;
    will-change: transform;
    min-width: 100%;
    justify-content: space-around;
}

.marquee-group img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.tech-marquee:hover .marquee-group {
    animation-play-state: paused;
}

.marquee-group img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== About ===== */
.about {
    padding: 6rem 4%;
    background: #fff;
}

.about .section-title {
    margin-bottom: 3rem;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.detail-value {
    font-weight: 700;
    color: #1a1a1a;
}

/* ===== Skills ===== */
.skills {
    padding: 6rem 4%;
    background: #f5f0eb;
}

.skills .section-title,
.skills .section-subtitle {
    text-align: center;
}

.skills-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5ddd5;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.skill-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 0.8rem;
    object-fit: contain;
}

.skill-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: #e5ddd5;
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: #1a1a1a;
    border-radius: 3px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Projects ===== */
.projects {
    padding: 6rem 4%;
    background: #fff;
}

.project-filters {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    background: transparent;
    border: 2px solid #1a1a1a;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    color: #1a1a1a;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a1a1a;
    color: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: #f5f0eb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5ddd5;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.project-card.hidden {
    display: none;
}

.project-img {
    position: relative;
    height: 240px;
    background: #ddd;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.overlay-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid #fff;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: background 0.3s;
}

.overlay-btn:hover {
    background: #fff;
    color: #1a1a1a;
}

.project-info {
    padding: 1.5rem;
}

.project-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #e5ddd5;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 0.5rem;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
}

/* ===== Contact ===== */
.contact {
    padding: 6rem 4%;
    background: #f5f0eb;
}

.contact .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
}

.info-item a {
    color: #1a1a1a;
    font-weight: 600;
    transition: color 0.3s;
}

.info-item a:hover {
    color: #555;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1.2rem;
    border: 2px solid #1a1a1a;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.social-link:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Contact Form */
.contact-form {
    flex: 1.2;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e5ddd5;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
    background: #fff;
    color: #1a1a1a;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1a1a1a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: transparent;
    color: #1a1a1a;
}

.btn-submit:hover .arrow {
    transform: translate(3px, -3px);
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 4%;
    background: #1a1a1a;
    color: #999;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}

.footer-content p {
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: #999;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-name {
        font-size: 5rem;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 5% 3rem;
    }

    .hero-left {
        max-width: 100%;
        order: 2;
    }

    .hero-right {
        order: 1;
    }

    .hero-image-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        margin-left: auto;
        margin-right: auto;
    }

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

    .schedule-call {
        left: auto;
        right: -15px;
        bottom: 10%;
    }

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

    .hero-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .about-container {
        flex-direction: column;
        text-align: left;
    }

    .detail-item {
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
    }

    .detail-value {
        font-size: 0.95rem;
    }

    .contact-container {
        flex-direction: column;
    }

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

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

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

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.8rem;
    }

    .hero-title {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

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

    .btn-contact .arrow {
        display: none;
    }

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

}
