/* ==========================================================================
   CUTE MODERN STYLE - PORTFOLIO DOMI
   ========================================================================== */

:root {
    --primary-color: #ff85a2;     /* Warm Cute Pink */
    --primary-hover: #ff6085;
    --secondary-color: #70d6ff;   /* Soft Pastel Blue */
    --accent-color: #ffd166;      /* Bright Soft Yellow */
    --bg-color: #fff9fb;          /* Soft Cream / Warm White */
    --card-bg: #ffffff;
    --text-color: #4a4a68;        /* Soft Dark Blue/Purple Grey */
    --heading-color: #2b2d42;
    --shadow-soft: 0 10px 30px rgba(255, 133, 162, 0.15);
    --shadow-hover: 0 15px 35px rgba(255, 133, 162, 0.25);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, .logo {
    font-family: 'Fredoka', cursive;
    color: var(--heading-color);
}

/* --- FLOATING BLOBS (BACKGROUND ANIMATION) --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: #ffc6ff;
    top: -50px;
    left: -50px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #bdb2ff;
    top: 40%;
    right: -100px;
    animation-delay: -3s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #caffbf;
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.1); }
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 133, 162, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 133, 162, 0.1);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8% 60px;
    min-height: 80vh;
    gap: 40px;
}

.hero-content {
    max-width: 700px;
}

.badge-tag {
    display: inline-block;
    background: #ffebf0;
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(255, 133, 162, 0.1);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #6c757d;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 133, 162, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-4px) scale(1.02);
}

.btn-secondary {
    background-color: white;
    color: var(--heading-color);
    border: 2px solid #f0f0f0;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.btn-popup {
    background: var(--secondary-color);
    color: #004e64;
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

.btn-popup:hover {
    background: #52c4efff;
    transform: translateY(-2px);
    color: #000;
}

/* --- HERO AVATAR --- */
.hero-avatar {
    position: relative;
}

.avatar-frame {
    position: relative;
    width: 460px;
    height: 460px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    background: var(--primary-color);
    box-shadow: var(--shadow-soft);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-badge {
    position: absolute;
    bottom: -10px;
    right: 10px;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- SECTIONS COMMON --- */
.section {
    padding: 80px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.underline {
    width: 70px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 10px;
    margin: 10px auto 0;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 2px solid #fff0f5;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* --- PROJECTS SECTION --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid #fff0f5;
    display: flex;
    flex-direction: column;
}

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

.card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- POPUP / MODAL --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(43, 45, 66, 0.6); 
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 100%;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-badge {
    display: inline-block;
    background: #ffebf0;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 15px 0;
}

.modal-details {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: var(--radius-md);
}

.modal-details h4 {
    margin-bottom: 5px;
    color: var(--heading-color);
}

/* --- CONTACT SECTION --- */
.contact-card {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 2px solid #fff0f5;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item .icon {
    font-size: 2rem;
    background: #ffebf0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    background: white;
    border-top: 2px solid #fff0f5;
    font-weight: 600;
    color: #888;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .avatar-frame {
        width: 240px;
        height: 240px;
    }
}
