* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
}

body {
    background: #0f172a;
    color: white;
    overflow-x: hidden;
    padding-top: 90px;
}

/* PARTICLES */
#particles {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

/* NAVBAR */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    z-index: 100;
}

nav a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #a855f7;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* MOBILE MENU */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    color: white;
}

.webdesigner {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.about {
    font-size: 0.9rem;
    max-width: 600px;
    line-height: 1.6;
    color: #d1d5db;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* BUTTON */
.btn {
    background: linear-gradient(45deg, #a855f7, #ec4899);
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    width: auto;
    min-width: 150px;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #984ae0;
}

/* HERO */
.hero {
    min-height: calc(85vh - 80px);
    display: flex;
    align-items: center;
    padding: 80px 70px 0;
    position: relative;
    margin-top: -40px;
}
.name {
    font-size: 2.8rem;
    line-height: 1.2;
}

.connections {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.connections p {
    margin: 0;
    font-size: 0.96rem;
}

.connections p:not(:last-child)::after {
    content: " |";
    color: #a855f7;
    margin-left: 10px;
}

.connections a {
    color: white;
    text-decoration: none;
}

.connections a:hover {
    color: #a855f7;
}
.hero-avatar {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(239, 95, 244, 0.45);
    box-shadow: 0 20px 50px rgba(168,85,247,0.2);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero span {
    background: linear-gradient(45deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    color: transparent;
}

/* BLOBS */
.blob {
    position: absolute;
    overflow: hidden;
    animation: move 10s infinite alternate;
}

.blob::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(190, 94, 239, 0.473), rgba(236,72,153,0.35));
    filter: blur(60px);
    border-radius: 30px;
    z-index: 0;
}

.blob-card{
    position: relative;
    z-index: 1;
    
}

.blob1 {
    top: 10%;
    right: 10%;
    width: 380px;
    height: 420px;
}

.blob2 {
    bottom: 10%;
    left: 10%;
    width: 260px;
    height: 260px;
}

.blob-card {
    width: 100%;
    height: 100%;
    padding: 28px;
    background: rgba(13, 20, 37, 0.781);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.blob-card h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
    color: #fff;
}

.blob-card p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.7;
    font-size: 0.98rem;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255,255,255,0.16);
    background: #1e293b;
}

@keyframes move {
    0% { transform: translate(0,0); }
    100% { transform: translate(60px, -60px); }
}

/* SECTIONS */
section {
    padding: 100px 50px;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s;
    scroll-margin-top: 120px;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding-top: 30px;
}

.card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin: 0;
    border-radius: 12px;
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #a855f7;
}

/* PROJECTS SHOWCASE */
.project-category {
    margin-top: 50px;
}

.project-category:first-of-type {
    margin-top: 30px;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 600;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Preview Cards */
.preview-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(236,72,153,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

.preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(168,85,247,0.3);
    border-color: rgba(168,85,247,0.3);
}

.preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.preview-card-header h4 {
    font-size: 1.25rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.live {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.repo {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.preview-card-desc {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.preview-card-footer {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #ec4899;
    gap: 12px;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card-link:hover svg {
    transform: translateX(3px) translateY(-3px);
}

/* CONTACT */

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-para {
    color: #d1d5db;
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: white;
    border-radius: 8px;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 10px #a855f7;
}
#home button {
    margin-top: 10px;
}
#contactForm button {
    margin-top: 18px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: min(95%, 1200px);
    max-width: 1200px;
    height: min(90vh, 900px);
    max-height: 90vh;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}

.status-message {
    margin-top: 16px;
    color: #a855f7;
    font-size: 0.95rem;
}

.status-message.success {
    color: #34d399;
}

@keyframes fadeIn {
    from {opacity:0; transform:scale(0.9);}
    to {opacity:1; transform:scale(1);}
}

/* RESPONSIVE */
@media(max-width: 768px){
    body {
        padding-top: 60px;
    }

    header {
        padding: 12px 20px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .menu-toggle {
        display: block;
        font-size: 26px;
    }

    nav {
        position: absolute;
        top: 52px;
        right: 0;
        left: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        display: none;
        padding: 15px 20px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    nav a {
        margin: 8px 0;
        padding: 12px;
        text-align: center;
        font-size: 15px;
        border-radius: 8px;
    }

    nav a:hover {
        background: rgba(168, 85, 247, 0.1);
    }

    nav.active {
        display: flex;
    }

    .hero {
        flex-direction: column;
        padding: 20px 20px 0;
        min-height: auto;
        margin-top: 0;
    }

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-avatar {
        width: 110px;
        height: 110px;
        margin: 0 auto 18px;
        border-width: 3px;
    }

    .name {
        font-size: 1.85rem;
        text-align: center;
        margin-bottom: 8px;
    }

    .webdesigner {
        font-size: 17px;
        text-align: center;
        margin-top: 8px;
        margin-bottom: 16px;
    }

    .about {
        font-size: 0.88rem;
        text-align: center;
        max-width: 100%;
        line-height: 1.55;
        padding: 0 10px;
    }

    .connections {
        justify-content: center;
        font-size: 0.88rem;
        margin: 16px 0;
        gap: 8px;
    }

    .connections p {
        font-size: 0.88rem;
    }

    .btn {
        width: auto;
        min-width: 160px;
        max-width: 100%;
        margin: 0 auto;
        padding: 11px 20px;
    }

    #home button {
        display: block;
        margin: 12px auto 0;
    }

    .blob1 {
        position: relative;
        width: calc(100% + 40px);
        height: auto;
        margin: 25px -20px 0;
        right: 0;
        top: 0;
        animation: none;
    }

    .blob::before {
        filter: blur(40px);
    }

    .blob-card {
        padding: 22px;
        border-radius: 20px;
    }

    .blob-card h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .blob-card p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    section {
        padding: 45px 20px;
    }

    section h2 {
        font-size: 1.7rem;
        text-align: center;
        margin-bottom: 25px;
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 12px;
        padding-top: 20px;
    }

    .card {
        padding: 14px 10px;
        font-size: 0.88rem;
    }

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

    .category-title {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: 18px;
    }

    .preview-card {
        padding: 18px;
    }

    .preview-card-header h4 {
        font-size: 1.15rem;
    }

    .preview-card-desc {
        font-size: 0.88rem;
    }

    .contact-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .contact-para {
        text-align: center;
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .contact-form {
        max-width: 100%;
    }

    input, textarea {
        font-size: 16px;
        padding: 12px;
    }

    textarea {
        min-height: 130px;
    }

    #contactForm button {
        width: auto;
        min-width: 160px;
        max-width: 100%;
        margin: 18px auto 0;
        display: block;
    }

    .modal-content {
        width: 92%;
        height: 82vh;
        margin: 20px auto;
    }

    .close {
        font-size: 32px;
        right: 12px;
        top: 8px;
        z-index: 10;
        background: rgba(0,0,0,0.6);
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}

@media(max-width: 480px){
    body {
        padding-top: 55px;
    }

    header {
        padding: 10px 16px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .menu-toggle {
        font-size: 24px;
        padding: 4px;
    }

    nav {
        top: 48px;
        padding: 12px 16px;
    }

    nav a {
        font-size: 14px;
        margin: 6px 0;
        padding: 10px;
    }

    .hero {
        padding: 16px 16px 0;
    }

    .hero-avatar {
        width: 95px;
        height: 95px;
        margin: 0 auto 14px;
        border-width: 3px;
    }

    .name {
        font-size: 1.55rem;
        margin-bottom: 6px;
    }

    .webdesigner {
        font-size: 15px;
        margin-top: 6px;
        margin-bottom: 14px;
    }

    .about {
        font-size: 0.82rem;
        line-height: 1.5;
        padding: 0 5px;
    }

    .connections {
        font-size: 0.8rem;
        gap: 6px;
        margin: 14px 0;
        flex-wrap: wrap;
    }

    .connections p {
        font-size: 0.8rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
        min-width: 140px;
    }

    #home button {
        margin: 10px auto 0;
    }

    .blob1 {
        width: calc(100% + 32px);
        margin: 20px -16px 0;
        position: relative;
        animation: none;
    }

    .blob1::before {
        display: none;
    }

    .blob-card {
        padding: 18px;
        border-radius: 18px;
    }

    .blob-card h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .blob-card p {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    section {
        padding: 35px 16px;
    }

    section h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
        padding-top: 16px;
    }

    .card {
        padding: 11px 8px;
        font-size: 0.8rem;
    }

    .project-category {
        margin-top: 30px;
    }

    .project-category:first-of-type {
        margin-top: 20px;
    }

    .category-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .project-grid {
        gap: 14px;
    }

    .preview-card {
        padding: 16px;
    }

    .preview-card-header {
        gap: 8px;
        flex-wrap: wrap;
    }

    .preview-card-header h4 {
        font-size: 1rem;
    }

    .preview-card-desc {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .status-badge {
        font-size: 0.68rem;
        padding: 3px 9px;
    }

    .card-link {
        font-size: 0.82rem;
    }

    .contact-title {
        font-size: 1.25rem;
    }

    .contact-para {
        font-size: 0.82rem;
        padding: 0 5px;
    }

    input, textarea {
        padding: 11px;
        font-size: 16px;
    }

    textarea {
        min-height: 110px;
    }

    #contactForm button {
        min-width: 140px;
        margin: 16px auto 0;
    }

    .modal-content {
        width: 96%;
        height: 78vh;
        margin: 10px auto;
        border-radius: 10px;
    }

    .close {
        font-size: 28px;
        right: 10px;
        top: 6px;
        width: 34px;
        height: 34px;
    }
}