@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --primary: #ed478f;
    --primary-light: #fef0f6;
    --primary-dark: #c02d6b;
    --secondary: #6e7c7c;
    --bg-light: #fffdfd;
    --bg-alt: #fcf6f9;
    --text-main: #3d3d3d;
    --text-muted: #666666;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(237, 71, 143, 0.12);
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    padding: 100px 10%;
    position: relative;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* --- Header --- */
header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: var(--transition);
    padding: 15px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #4a4a4a;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo:hover .brand-name {
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

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

.mobile-toggle {
    display: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.mobile-toggle:hover {
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    header {
        padding: 10px 5%;
        height: 70px;
    }

    .logo {
        gap: 8px;
        max-width: 75%;
    }

    .header-logo-img {
        height: 32px;
    }

    .brand-name {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .mobile-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding-left: 40px;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        text-align: left;
        width: 85%;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(237, 71, 143, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 18px 0;
        font-size: 1.1rem;
        font-family: 'Roboto Slab', serif;
        color: var(--text-main);
    }

    /* Distribution fix for About Me */
    .about {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-bottom: 60px;
    }

    .about-img {
        width: 80%;
        margin-bottom: 20px;
    }

    .about-text h2 {
        font-size: 2rem;
    }
}

/* --- Decorative Elements --- */
.decor-blob {
    position: absolute;
    z-index: -1;
    filter: blur(60px);
    border-radius: 50%;
    opacity: 0.4;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
    animation: pulse 8s infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #ffe4f0;
    bottom: 10%;
    left: -50px;
    animation: pulse 10s infinite alternate-reverse;
}

@keyframes pulse {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.1) translate(20px, 20px);
    }
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.decor-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.15;
    font-size: 2rem;
    animation: float 6s infinite ease-in-out;
}

.icon-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.icon-3 {
    bottom: 15%;
    left: 40%;
    animation-delay: 4s;
}

.icon-4 {
    top: 15%;
    right: 25%;
    animation-delay: 1s;
    font-size: 1.5rem;
}

.icon-5 {
    bottom: 30%;
    right: 15%;
    animation-delay: 3s;
    font-size: 1.2rem;
}

.icon-6 {
    top: 40%;
    left: 8%;
    animation-delay: 5s;
    font-size: 1.8rem;
}

.icon-7 {
    top: 10%;
    right: 45%;
    animation-delay: 0.5s;
    font-size: 1rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, var(--primary-light), var(--bg-light) 70%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1.2;
    z-index: 2;
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: var(--shadow);
}

@media (max-width: 554px) {
    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .hero-role {
        font-size: 1.4rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

.hero-name {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-name::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-light);
    z-index: -1;
    opacity: 0.4;
    border-radius: 2px;
}

.hero-role {
    font-size: 2.2rem;
    color: var(--text-main);
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    width: 100%;
    line-height: 1.7;
    border-left: 3px solid var(--primary-light);
    padding-left: 20px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(237, 71, 143, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(237, 71, 143, 0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

/* --- Section Titles --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- About Me --- */
.about {
    display: flex;
    align-items: center;
    gap: 80px;
    background: var(--bg-alt);
}

.about-img {
    flex: 1;
    position: relative;
}

.about-img img.profile-pic {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
    border: 8px solid var(--white);
}

.decor-circle {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    border: 4px dashed var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.about-text {
    flex: 1.2;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 60px 45px;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.15;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.service-card:hover::after {
    transform: scale(1.5);
    opacity: 0.3;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    font-size: 2.2rem;
    color: var(--primary);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(0deg) scale(1.1);
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* --- Books --- */
.books {
    background: var(--bg-light);
}

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

.book-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.book-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #f9f9f9;
}

.book-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.book-card:hover .book-img img {
    transform: scale(1.05);
}

.book-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.book-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.book-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.book-price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
}

.book-info .btn {
    width: 100%;
    padding: 15px 0;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(237, 71, 143, 0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.testimonial-stars {
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: #ffc107;
    /* Star yellow */
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-initials {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--white);
    box-shadow: 0 5px 15px rgba(237, 71, 143, 0.1);
}

.user-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Contact --- */
.contact {
    display: flex;
    gap: 60px;
    background: var(--bg-alt);
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-cta {
    flex: 1.5;
}

.cta-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(237, 71, 143, 0.05);
    position: relative;
    overflow: hidden;
}

.cta-icon {
    font-size: 4rem;
    color: #25d366;
    margin-bottom: 25px;
    display: inline-block;
}

.cta-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
    margin: 0 auto 35px;
}

.btn-whatsapp {
    background: #25d366 !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2) !important;
}

.btn-whatsapp:hover {
    background: #128c7e !important;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3) !important;
}

@media (max-width: 768px) {
    .cta-card {
        padding: 40px 20px;
    }
}

/* --- Footer --- */
footer {
    padding: 60px 10% 30px;
    text-align: center;
    background: var(--white);
}

footer .logo {
    margin-bottom: 30px;
    justify-content: center;
}

.header-logo-img {
    height: 45px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(237, 71, 143, 0.1);
    transition: var(--transition);
}

.header-logo-img:hover {
    transform: scale(1.05);
}

.footer-logo-img {
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid #eee;
    padding-top: 30px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {

    .about,
    .contact {
        flex-direction: column;
        gap: 50px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 8%;
    }

    header {
        padding: 12px 6%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero {
        text-align: center;
        padding-top: 100px;
        flex-direction: column;
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-content {
        z-index: 2;
        width: 100%;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
        z-index: 3;
    }

    .cta-card {
        padding: 40px 25px;
    }
}

/* --- WhatsApp Float --- */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    pointer-events: none;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition), opacity 0.5s ease;
    pointer-events: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-bubble {
    background-color: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    white-space: nowrap;
    border: 1px solid rgba(237, 71, 143, 0.1);
}

.whatsapp-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.transparent {
    opacity: 0.3 !important;
}

@media (max-width: 768px) {
    .whatsapp-float-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}

/* --- Books Float --- */
.books-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(237, 71, 143, 0.25);
    z-index: 2000;
    transition: var(--transition);
}

.books-float:hover {
    transform: scale(1.1) rotate(-5deg);
    background-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(237, 71, 143, 0.4);
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .book-img {
        height: 180px;
    }

    .book-info {
        padding: 15px;
    }

    .book-info h3 {
        font-size: 1rem;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.4rem;
    }

    .book-info p {
        display: none;
        /* Hide description to save space */
    }

    .book-price {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .book-info .btn {
        padding: 10px 0;
        font-size: 0.85rem;
    }

    .books-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}