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

html {
    scroll-behavior: smooth;
}

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
}

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

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 12px;
    color: #94A3B8;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    color: #94A3B8;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ffffff;
}

.btn-resume {
    background: #06B6D4;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px !important;
    transition: background 0.2s;
}

.btn-resume:hover {
    background: #0891b2;
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Animated dot field */
.hero-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Cursor-following glow */
.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 65%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 40%;
    left: 50%;
    z-index: 0;
}

/* Floating gradient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 340px;
    height: 340px;
    background: rgba(6, 182, 212, 0.08);
    top: 8%;
    right: 6%;
    animation: orbFloat 9s ease-in-out infinite;
}

.hero-orb-2 {
    width: 260px;
    height: 260px;
    background: rgba(99, 102, 241, 0.08);
    bottom: 4%;
    left: 12%;
    animation: orbFloat 12s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.08); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-avatar {
    margin-bottom: 20px;
    /* opacity: 0;
    animation: heroFadeUp 0.7s ease forwards; */
}

.avatar-img {
    width: 140px;
    height: 140px;
    /* border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; */
}

/* .avatar-img:hover {
    transform: scale(1.06) rotate(3deg);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.25);
} */

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

.hero-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.4;
    max-width: auto;
    margin: 0 0 28px;
    color: #dae1eb;
    opacity: 0;
    animation: heroFadeUp 0.7s ease 0.15s forwards;
}

.highlight {
    color: #ffffff;
    font-weight: 700;
}

.highlight-blue {
    color: #06B6D4;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 0.7s ease 0.3s forwards;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    color: #94A3B8;
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    cursor: default;
}

/* .stat-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.5);
    color: #ffffff;
    background: rgba(6, 182, 212, 0.08);
} */

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: #9BA4C4;
    margin-bottom: 40px;
    max-width: 700px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.portfolio-card {
    display: block;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.portfolio-card-disabled {
    cursor: default;
    opacity: 0.7;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    height: auto;
    position: relative;
    overflow: hidden;
    background: #0d1117;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.card-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.card-content p {
    font-size: 13px;
    color: #9BA4C4;
    line-height: 1.5;
    margin-bottom: 14px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span {
    font-size: 11px;
    color: #9BA4C4;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 15px;
    color: #94A3B8;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.about-image img {
    width: 320px;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
}

/* Experience Section */
.experience {
    padding: 80px 0;
}

.experience-list {
    margin-top: 24px;
}

.experience-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.exp-role {
    font-size: 15px;
    color: #94A3B8;
}

.exp-role span {
    color: #06B6D4;
    font-weight: 500;
}

.exp-date {
    font-size: 14px;
    color: #94A3B8;
    white-space: nowrap;
}

/* Tools Section */
.tools {
    padding: 80px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 20px;
}

.tool-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.tool-info p {
    font-size: 12px;
    color: #9BA4C4;
}

/* Skills Section */
.skills {
    padding: 80px 0;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.skills-tags span {
    font-size: 13px;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.skills-tags span:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.contact-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.highlight-green {
    color: #06B6D4;
}

.contact-text p {
    font-size: 15px;
    color: #9BA4C4;
    max-width: 400px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a {
    font-size: 18px;
    color: #ffffff;
    font-weight: 500;
}

.contact-item a:hover {
    color: #06B6D4;
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.social-link {
    font-size: 13px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.social-link:hover {
    color: #ffffff;
}

.social-link img {
    width: 18px;
    height: 18px;
}

.copyright {
    font-size: 13px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 8px 24px 16px;
    }

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

    .nav-links a {
        width: 100%;
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links .btn-resume {
        margin-top: 12px;
        text-align: center;
        padding: 12px 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 24px;
    }

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

    .about-content {
        flex-direction: column;
    }

    .about-image img {
        width: 100%;
        max-width: 320px;
    }

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

    .contact-content {
        flex-direction: column;
        gap: 40px;
    }

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

    .experience-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-stats {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-text h2 {
        font-size: 28px;
    }
}
