body {
    background-color: #050505;
    color: #ffffff;
    padding-top: 100px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    z-index: 100;
    padding: 0 40px;
    height: 100px;
    align-items: center;
    transition: all 0.3s ease;
}


header h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar {
    margin-right: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.nav-menu {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #a0a0a0 !important;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    transform: scale(1.05);
}

.hero-section {
    display: flex;
    justify-content: space-around;
    min-height: calc(100vh - 100px);
    align-items: center;
    padding: 0 10%;
}

.hero-section>div:first-child {
    align-self: center;
    margin-bottom: 0;
}

.hero-greeting {
    color: #888;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.name-highlight {
    color: #fff;
    font-size: 90px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-img img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.about-section {
    max-width: 1200px;
    margin: 0 auto;
}

.section-container {
    padding: 120px 20px 40px;
    text-align: center;
}

.about-intro h2,
.skills-header h2,
.projects-header h2,
.section-container h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(to right, #fff, #666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.journey-section {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #333, #111);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

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

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: #000;
    border: 2px solid #666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timeline-content {
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.timeline-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.timeline-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.timeline-subtitle {
    font-size: 16px;
    color: #bbb;
    margin-bottom: 12px;
    font-weight: 500;
}

.timeline-description {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

.skill-card,
.project-card {
    background: #0f0f0f;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card:hover,
.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    margin-top: 50px;
}

.about-intro {
    padding: 30px;
}

.about-intro p {
    line-height: 35px;
    color: rgb(206, 203, 203);
}

.about-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 4fr 8fr;
    column-gap: 20px;
}

.profile-column {
    display: flex;
    justify-content: center;
}

.profile-card-wrapper {
    padding: 30px;
    width: 380px;
    border-radius: 20px;
    background-color: rgb(31, 30, 30);
}

.profile-card {
    width: 310px;
    background-color: rgb(31, 30, 30);
    color: white;
    border-radius: 20px;
    text-align: center;
}

.profile-header {
    border-bottom: 1px solid rgb(0, 0, 0);
    padding: 0px 20px 10px 20px;
    font-weight: bold;
}

.profile-header img {
    border-radius: 160px;
}

.profile-header .profile-name {
    font-size: 30px;
    font-weight: bold;
    padding: 10px;
    color: rgb(216, 211, 211);
}

.stats-box {
    border-bottom: 1px solid rgb(0, 0, 0);
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
}

.stat-number {
    font-size: 25px;
    font-weight: bold;
    text-align: center;
}

.stat-label {
    font-size: 16px;
    color: gray;
}

.tagline {
    margin-top: 30px;
    color: rgb(201, 197, 197);
    transform: scale(1, 1);
    transition: all 0.5s;
}

.tagline:hover {
    color: white;
    transform: scale(1.04, 1.04);
    text-shadow: 10px;
}

.profile-footer {
    justify-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 25px 0 10px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgb(195, 190, 190);
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-links a:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.section-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    background-color: rgb(31, 30, 30);
}

.about-text-content {
    margin-top: 20px;
}

.about-text-content p {
    color: rgb(206, 203, 203);
}

.skills-section {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    column-gap: 70px;
    row-gap: 40px;
    margin-top: 70px;
    padding: 0 100px;
}

.skills-header {
    padding: 30px;
}

p {
    line-height: 35px;
    color: rgb(206, 203, 203);
}

.skill-card {
    width: 300px;
    height: 90px;
    padding: 22px;
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.skill-card h3 {
    margin-top: 8px;
    font-weight: 600;
    font-size: 22px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.skill-card p {
    font-size: 14px;
    line-height: 24px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.skill-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

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

.skill-card:hover h3 {
    transform: translateY(-60px);
    opacity: 0.85;
}

.skill-card:hover p {
    opacity: 1;
    transform: translateY(-55px);
}

.projects-section {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.projects-header {
    padding: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 40px;
    margin-top: 20px;
    padding: 0 100px;
}

.project-card {
    width: 450px;
    height: 250px;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

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

.project-card h3 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.project-card p {
    font-size: 15px;
    line-height: 24px;
    color: rgb(206, 203, 203);
}

.repo-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: white;
    color: black;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .repo-link {
    opacity: 1;
    transform: translateY(0);
}

.repo-link:hover {
    background: #e0e0e0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.resume-section,
.contact-section {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.resume-button {
    display: inline-block;
    padding: 15px 50px;
    background-color: rgb(31, 30, 30);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.resume-button:hover {
    background-color: white;
    color: black;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 40px;
    background-color: rgb(31, 30, 30);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    background-color: rgb(15, 15, 15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

textarea.message-area {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    padding: 12px 40px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.skills-grid .out-skill-card:nth-child(2),
.projects-grid .out-project-card:nth-child(2) {
    transition-delay: 0.1s;
}

.skills-grid .out-skill-card:nth-child(3),
.projects-grid .out-project-card:nth-child(3) {
    transition-delay: 0.2s;
}

.skills-grid .out-skill-card:nth-child(4),
.projects-grid .out-project-card:nth-child(4) {
    transition-delay: 0.3s;
}

.skills-grid .out-skill-card:nth-child(5) {
    transition-delay: 0.4s;
}

.skills-grid .out-skill-card:nth-child(6) {
    transition-delay: 0.5s;
}

.timeline-item:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    transition-delay: 0.3s;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
        overflow-x: hidden;
    }

    body::before,
    body::after {
        content: "";
        position: fixed;
        width: 300px;
        height: 300px;
        filter: blur(100px);
        z-index: -1;
        border-radius: 50%;
        opacity: 0.15;
        pointer-events: none;
    }

    body::before {
        top: 10%;
        left: 10%;
        background: #fff;
        animation: glow-move 10s infinite alternate;
    }

    body::after {
        bottom: 10%;
        right: 10%;
        background: #555;
        animation: glow-move 12s infinite alternate-reverse;
    }

    @keyframes glow-move {
        from {
            transform: translate(0, 0);
        }

        to {
            transform: translate(50px, 50px);
        }
    }

    header {
        height: 80px;
        padding: 0 20px;
    }

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

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        visibility: hidden;
    }

    .navbar.active {
        right: 0;
        visibility: visible;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 0;
    }

    .navbar.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-item {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

    .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-item:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-item:nth-child(7) {
        transition-delay: 0.7s;
    }

    .nav-link {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -1px;
    }

    .hero-section {
        min-height: calc(100vh - 80px);
        flex-direction: column-reverse;
        padding: 40px 20px;
        text-align: center;
        justify-content: center;
        gap: 40px;
    }

    .hero-greeting {
        font-size: 18px;
    }

    .name-highlight {
        font-size: 55px;
        letter-spacing: -2px;
        line-height: 1;
    }

    .hero-img img {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    }

    .section-container {
        padding: 60px 20px 30px;
    }

    .about-section {
        padding: 0 20px;
    }

    .about-intro {
        padding: 0;
    }

    .about-intro h2,
    .skills-header h2,
    .projects-header h2,
    .section-container h2 {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-card-wrapper {
        width: 100%;
        padding: 20px;
    }

    .profile-card {
        width: 100%;
    }

    .about-text-content {
        text-align: left;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        column-gap: 0;
        margin-top: 30px;
    }

    .skill-card {
        width: 100%;
        height: auto;
        min-height: 100px;
        padding: 30px 20px;
    }

    .skill-card h3 {
        transform: none !important;
        opacity: 1 !important;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .skill-card p {
        position: static;
        opacity: 1;
        transform: none;
        font-size: 14px;
        margin-top: 10px;
    }

    .skill-card:hover h3,
    .skill-card:hover p {
        transform: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 30px;
    }

    .project-card {
        width: 100%;
        height: auto;
        min-height: 200px;
        padding: 30px 20px;
    }

    .project-card h3 {
        font-size: 22px;
    }

    .repo-link {
        opacity: 1;
        transform: none;
        margin-top: 15px;
    }

    .timeline-container {
        padding-left: 15px;
        margin-left: 0;
    }

    .timeline-container::before {
        left: 0;
    }

    .timeline-dot {
        left: -6px;
    }

    .timeline-content {
        padding: 20px;
        margin-left: 15px;
    }

    .resume-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .contact-form-wrapper {
        padding: 25px;
        margin: 20px 0;
    }

    .submit-button {
        width: 100%;
        font-size: 16px;
    }
}

body.menu-open {
    overflow: hidden;
}