@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00fff5;
    --secondary: #b388ff;
    --dark: #0a0a0a;
    --dark-light: #1a1a2e;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s cubic-bezier(0.75, -0.5, 0.25, 1.5);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary);
}

/* Background Animation */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: blob 20s infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -10%;
    animation-delay: 7s;
}

.blob-3 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -20%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Particles */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--glass);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Glass Effect */
.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 50px;
    transition: all 0.3s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-bracket {
    color: var(--primary);
}

.logo-text {
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 50px 100px;
    position: relative;
    z-index: 2;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.hero-text {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}

.typing-text {
    display: inline-block;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 245, 0.3);
}

.btn-secondary {
    background: var(--glass);
    backdrop-filter: blur(20px);
    color: var(--text);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.hero-image {
    flex: 0 0 350px;
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-card {
    padding: 20px;
    border-radius: 30px;
    position: relative;
}

.profile-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
    animation: sparkleFloat 3s ease-in-out infinite;
    opacity: 0;
}

.sparkle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.5);
    }
}

.sparkle.gold {
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700;
}

.sparkle.gold::before,
.sparkle.gold::after {
    background: linear-gradient(to bottom, transparent, #ffd700, transparent);
}

.profile-img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(40px);
    opacity: 0.5;
    z-index: -1;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    animation: fadeIn 1s ease 1.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 60px;
}

.section-number {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tilt Effect */
.tilt {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

/* About Section */
.about-content {
    padding: 60px;
    border-radius: 30px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.skill-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    padding: 8px 15px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.project-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: scale(1.1);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-content p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    padding: 8px 15px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.gallery-overlay p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 60px;
    border-radius: 30px;
    text-align: center;
}

.contact-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    padding: 40px;
    text-align: center;
    color: var(--text-dim);
    border-top: 1px solid var(--glass-border);
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Magnetic Effect */
.magnetic {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 968px) {
    .navbar {
        width: 95%;
        padding: 15px 25px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        z-index: 9999;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 14px 20px !important;
        border-radius: 12px;
        text-align: center;
        font-size: 1rem;
        transition: background 0.2s ease;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        align-items: center;
        order: 2;
    }

    .hero-image {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 30px 0 20px;
    }

    .profile-card {
        width: 200px !important;
        max-width: 200px !important;
        padding: 10px !important;
        border-radius: 24px !important;
        margin: 0 auto !important;
    }

    .profile-ring-outer {
        inset: -3px !important;
        border-radius: 27px !important;
    }

    .profile-ring-inner {
        border-radius: 25px !important;
    }

    .profile-card::before {
        inset: -6px !important;
        border-radius: 30px !important;
        filter: blur(4px) !important;
    }

    .profile-img-wrapper {
        border-radius: 16px !important;
        overflow: hidden !important;
        max-height: 200px !important;
    }

    .profile-img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        object-position: top !important;
        border-radius: 16px !important;
        display: block !important;
    }

    .badge-top-left {
        top: -8px !important;
        left: 0px !important;
        font-size: 0.6rem !important;
        padding: 4px 9px !important;
        gap: 4px !important;
    }

    .badge-dot {
        width: 6px !important;
        height: 6px !important;
    }

    .badge-bottom-right {
        bottom: -8px !important;
        right: 0px !important;
        font-size: 0.6rem !important;
        padding: 4px 9px !important;
    }

    .corner-deco {
        width: 12px !important;
        height: 12px !important;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .container {
        padding: 0 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 100px 16px 60px;
    }

    .profile-card {
        width: 170px !important;
        max-width: 170px !important;
        padding: 8px !important;
    }

    .profile-img {
        height: 170px !important;
    }

    .profile-img-wrapper {
        max-height: 170px !important;
    }

    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .projects-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        padding: 50px 30px;
    }

    .contact-content h2 {
        font-size: 2rem;
    }
}
/* ===== PROJECT TABS ===== */
.project-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-dim);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, #00fff5, #b388ff);
    color: #0a0a0a;
    border-color: transparent;
    font-weight: 600;
}

.tab-btn.active i {
    color: #0a0a0a;
}

/* Project hidden state */
.project-card.hidden {
    display: none;
}

/* Project badges */
.project-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.webdev-badge {
    background: rgba(0, 255, 245, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 255, 245, 0.3);
}

.roblox-badge {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

/* Roblox card accent */
.roblox-card {
    border-color: rgba(255, 107, 53, 0.2) !important;
}

.roblox-card:hover {
    border-color: rgba(255, 107, 53, 0.5) !important;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15) !important;
}

/* ===== IMG PLACEHOLDER (no internet needed) ===== */
.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-align: center;
    letter-spacing: 1px;
}



/* ===== SVG ICON FIXES ===== */
.skill-icon svg,
.skill-icon i {
    display: block;
    margin: 0 auto;
}

.btn svg, .btn i {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

.project-link svg, .project-link i {
    display: block;
}

.social-link svg, .social-link i {
    display: block;
}

.project-badge svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}

.tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* ===== PROFILE CARD UPGRADE ===== */

/* Reset profile card jadi relative & overflow visible biar badge bisa keluar */
.profile-card {
    position: relative !important;
    overflow: visible !important;
    padding: 12px !important;
    background: rgba(255,255,255,0.04) !important;
}

/* Grid background pattern */
.profile-grid-bg {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background-image:
        linear-gradient(rgba(0,255,245,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,245,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
    overflow: hidden;
}

/* Rotating glowing border ring */
.profile-ring-outer {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    z-index: 0;
    animation: ringRotate 4s linear infinite;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #00fff5 60deg,
        #b388ff 120deg,
        transparent 180deg,
        transparent 360deg
    );
    padding: 3px;
}

.profile-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    background: var(--dark);
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Second slower ring */
.profile-card::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 32px;
    background: conic-gradient(
        from 180deg,
        transparent 0deg,
        rgba(179,136,255,0.4) 80deg,
        transparent 160deg,
        transparent 360deg
    );
    animation: ringRotate 7s linear infinite reverse;
    z-index: -1;
    filter: blur(6px);
}

/* Profile image wrapper on top of grid */
.profile-img-wrapper {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
}

.profile-img {
    border-radius: 18px !important;
}

/* Floating badges */
.profile-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: badgeFloat 3s ease-in-out infinite;
    letter-spacing: 0.3px;
}

.badge-top-left {
    top: -14px;
    left: -10px;
    background: rgba(0, 255, 245, 0.15);
    border: 1px solid rgba(0, 255, 245, 0.4);
    color: #00fff5;
    animation-delay: 0s;
}

.badge-bottom-right {
    bottom: -14px;
    right: -10px;
    background: rgba(179, 136, 255, 0.15);
    border: 1px solid rgba(179, 136, 255, 0.4);
    color: #b388ff;
    animation-delay: 1.5s;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00fff5;
    box-shadow: 0 0 6px #00fff5;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* Corner decorations */
.corner-deco {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 10;
}

.corner-deco.top-left {
    top: 6px;
    left: 6px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    border-radius: 3px 0 0 0;
}

.corner-deco.top-right {
    top: 6px;
    right: 6px;
    border-top: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    border-radius: 0 3px 0 0;
}

.corner-deco.bottom-left {
    bottom: 6px;
    left: 6px;
    border-bottom: 2px solid var(--secondary);
    border-left: 2px solid var(--secondary);
    border-radius: 0 0 0 3px;
}

.corner-deco.bottom-right {
    bottom: 6px;
    right: 6px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    border-radius: 0 0 3px 0;
}

/* ===== PROJECT MODAL ===== */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-box {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(15, 15, 25, 0.95);
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,245,0.3) transparent;
}

.project-modal-overlay.active .project-modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 80, 80, 0.3);
    border-color: rgba(255,80,80,0.5);
    transform: rotate(90deg);
}

.modal-image-wrap {
    width: 100%;
    height: 260px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    position: relative;
}

.modal-img-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
}

.modal-img-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 28px 32px 32px;
}

.modal-meta {
    margin-bottom: 12px;
}

.modal-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0,255,245,0.15);
    color: var(--primary);
    border: 1px solid rgba(0,255,245,0.3);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.7);
    margin-bottom: 22px;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.modal-tech span {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #00fff5, #b388ff);
    color: #0a0a0a;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,255,245,0.35);
}

.modal-btn-secondary {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

.modal-btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .project-modal-box {
        border-radius: 20px;
    }
    .modal-image-wrap {
        height: 200px;
        border-radius: 20px 20px 0 0;
    }
    .modal-body {
        padding: 20px;
    }
    .modal-title {
        font-size: 1.4rem;
    }
    .modal-actions {
        flex-direction: column;
    }
    .modal-btn {
        justify-content: center;
    }
}