body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #2e0249;
    /* deep blue base */
    color: #f8f6ff;
    min-height: 100vh;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: linear-gradient(120deg, rgba(255, 175, 189, 0.12) 0%, rgba(46,2,73,0.7) 100%),
                radial-gradient(circle at 80% 20%, rgba(255, 195, 113, 0.18) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(138, 201, 255, 0.12) 0%, transparent 60%);
    /* pink and cyan accents */
    pointer-events: none;
    animation: bgMove 12s ease-in-out infinite alternate;
}
@keyframes bgMove {
    0% {
        background-position: 80% 20%, 20% 80%;
    }
    100% {
        background-position: 60% 40%, 40% 60%;
    }
}
#particles-js {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    top: 0;
    left: 0;
    pointer-events: none;
}
header, main, footer {
    position: relative;
    z-index: 2;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}
.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ffafbd;
    letter-spacing: 2px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
nav a {
    color: #f3f3f3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffc371;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -4px;
}
nav a:hover {
    color: #ffc371;
}
nav a:hover::after {
    width: 100%;
}
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem 2rem;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffafbd;
    opacity: 0;
    animation: fadeInUp 1s 0.1s ease forwards;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s 0.3s ease forwards;
}
.btn {
    background: #ffafbd;
    color: #2e0249;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    opacity: 0;
    animation: fadeInUp 1s 0.5s ease forwards;
}
.btn:hover {
    background: #ffc371;
}
main {
    position: relative;
    z-index: 1;
    padding: 2rem 3rem;
    max-width: 1100px;
    margin: auto;
}
section {
    margin-bottom: 3rem;
    background: rgba(46,2,73,0.92);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}
section#about { animation-delay: 0.2s; }
section#projects { animation-delay: 0.4s; }
section#services { animation-delay: 0.6s; }
section#reviews { animation-delay: 0.8s; }
section#contact { animation-delay: 1s; }
section h2 {
    color: #ffafbd;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    margin-bottom: 0.5rem;
}
.projects-grid, .services-grid, .reviews-grid {
    display: grid;
    gap: 1.5rem;
}
.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.project-card {
    background: #3d0865;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-10px) scale(1.04) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(255,195,113,0.18);
}
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.service-card {
    background: #3d0865;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.review-card {
    background: #3d0865;
    border-radius: 12px;
    padding: 1.2rem;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.review-card span {
    display: block;
    margin-top: 1rem;
    color: #ffafbd;
    font-style: normal;
    font-weight: bold;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: auto;
}
.contact-form input, .contact-form textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    background: #2e0249;
    color: #f8f6ff;
    font-size: 1rem;
}
.contact-form button {
    background: #ffafbd;
    color: #2e0249;
    padding: 0.8rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form button:hover {
    background: #ffc371;
}
footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
    color: #bfa2d6;
    font-size: 1rem;
    background: transparent;
    z-index: 1;
    position: relative;
}
#goTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: #ffafbd;
    color: #2e0249;
    border: none;
    outline: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(46,2,73,0.18);
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s, background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#goTopBtn.hide {
    opacity: 0;
    pointer-events: none;
}
#goTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.08);
}
#goTopBtn:hover {
    background: #ffc371;
    transform: scale(1.15);
}
#darkModeBtn {
    position: fixed;
    bottom: 32px;
    right: 92px;
    z-index: 9999;
    background: #2e0249;
    color: #ffafbd;
    border: none;
    outline: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.7rem;
    box-shadow: 0 4px 16px rgba(46,2,73,0.18);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#darkModeBtn:hover {
    background: #ffc371;
    color: #2e0249;
    transform: scale(1.12);
}
@media (max-width: 700px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    main {
        padding: 1rem;
    }
    section {
        padding: 1rem;
    }
    #goTopBtn {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    #darkModeBtn {
        bottom: 16px;
        right: 64px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated floating blobs for continuous motion background */
.animated-blob {
    position: fixed;
    border-radius: 50%;
    opacity: 0.18;
    z-index: 0;
    filter: blur(16px);
    pointer-events: none;
    animation: blobMove 18s ease-in-out infinite alternate;
}
.animated-blob.blob1 {
    width: 340px;
    height: 340px;
    background: #ffafbd;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}
.animated-blob.blob2 {
    width: 220px;
    height: 220px;
    background: #ffc371;
    top: 60%;
    left: 70%;
    animation-delay: 4s;
}
.animated-blob.blob3 {
    width: 180px;
    height: 180px;
    background: #8ac9ff;
    top: 75%;
    left: 15%;
    animation-delay: 8s;
}
@keyframes blobMove {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) scale(1.08) rotate(10deg);
    }
    50% {
        transform: translateY(20px) scale(0.95) rotate(-8deg);
    }
    75% {
        transform: translateY(-15px) scale(1.04) rotate(6deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

body.light-mode {
    background: #f8f6ff;
    color: #2e0249;
}
body.light-mode .logo,
body.light-mode section h2,
body.light-mode .review-card span {
    color: #2e0249;
}
body.light-mode section {
    background: rgba(255,255,255,0.92);
}
body.light-mode .project-card,
body.light-mode .service-card,
body.light-mode .review-card {
    background: #f3e9ff;
}
body.light-mode .btn,
body.light-mode .contact-form button {
    background: #ffc371;
    color: #2e0249;
}
body.light-mode .btn:hover,
body.light-mode .contact-form button:hover {
    background: #ffafbd;
}
body.light-mode nav a:hover,
body.light-mode nav a:focus {
    color: #ffafbd;
}
body.light-mode nav a::after {
    background: #ffafbd;
}
body.light-mode #goTopBtn {
    background: #ffc371;
    color: #2e0249;
}
body.light-mode #goTopBtn:hover {
    background: #ffafbd;
}
body.light-mode #darkModeBtn {
    background: #ffc371;
    color: #2e0249;
}
body.light-mode #darkModeBtn:hover {
    background: #ffafbd;
    color: #2e0249;
}
body.light-mode input,
body.light-mode textarea {
    background: #fff;
    color: #2e0249;
}
body.light-mode footer {
    color: #2e0249;
}
