/* --- GLOBAL SAFETY NET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Soft, Elegant Pink Theme */
    --theme-primary: #df9ba7; 
    --theme-primary-light: #fdf3f4; 
    
    /* Distinct Section Backgrounds */
    --bg-light: #ffffff;
    --bg-alternate: #fcf7f8; 
    
    --text-main: #4a4244;
    --text-heading: #1a1a1a;
    
    /* Smooth Hover Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    /* FIX: perfectly offsets the sticky navbar so headers align exactly like your reference image */
    scroll-padding-top: 75px; 
}

body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Playfair Display', serif;
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* --- SECTION SEPARATORS --- */
.hero-section { background-color: var(--bg-alternate); padding-top: 100px; padding-bottom: 60px; }
.about-section { background-color: var(--bg-light); padding: 100px 20px; }
.project-section { background-color: var(--bg-alternate); padding: 100px 20px; }
.services-section { background-color: var(--bg-light); padding: 100px 20px; }
.p-contact-section { background-color: var(--bg-alternate); padding: 100px 20px; display: flex; justify-content: center; }

/* --- THE WRAPPER --- */
.inner-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- ORIGINAL IMAGES & ICONS BEHAVIOR --- */

/* Hero Profile Picture */
.profile-pic {
    width: 220px !important;
    height: 220px !important;
    object-fit: cover;
    border-radius: 50% !important;
    border: 4px solid #fff !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    display: block !important;
    margin: 0 auto 20px auto !important;
    animation: floatBob 4s ease-in-out infinite !important;
    transition: var(--transition-smooth);
}

.profile-pic:hover {
    box-shadow: 0 20px 40px rgba(223, 155, 167, 0.35) !important;
    transform: scale(1.03);
}

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

/* About Image (FIXED: Auto height prevents cropping, slightly smaller width so it's not too big) */
.about-image {
    flex: 0 0 auto;
    order: 2;
    padding-right: 20px; /* Safe space for rotation */
}

.about-image img, .about-pic {
    width: 320px !important;
    height: auto !important; 
    border-radius: 20px !important;
    animation: orbitRoll 16s linear infinite !important;
    transform-origin: center;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1)) !important;
    will-change: transform;
    transition: var(--transition-smooth);
}

.about-image img:hover, .about-pic:hover {
    animation-play-state: paused !important;
    filter: drop-shadow(0 20px 40px rgba(223, 155, 167, 0.4)) !important;
    transform: scale(1.02);
}

@keyframes orbitRoll {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.03); }
    100% { transform: rotate(360deg) scale(1); }
}

/* --- THE TEXT BLOCK --- */
.text-block {
    flex: 1;
    max-width: 550px;
    text-align: left;
    order: 1;
}

.text-block h2 {
    font-family: 'Parisienne', cursive;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-heading);
    letter-spacing: 1px;
}

/* --- ABOUT DESC --- */
.about-desc p, .text-block p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-main);
}

.about-desc strong, .text-block strong {
    color: var(--theme-primary);
    font-weight: 600;
}

/* SKILLS BUTTONS WITH HOVER EFFECTS */
.skill-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    padding: 7px 16px;
    border-radius: 50px;
    background: transparent;
    border: solid 2px var(--theme-primary);
    font-size: 0.82rem; 
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    color: var(--text-heading);
    transition: var(--transition-smooth);
    cursor: default;
}

.skill-tags span:hover {
    background: var(--theme-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(223, 155, 167, 0.3);
}

@media (min-width: 769px) { .about-desc { display: none; } }

.container { width: 90%; max-width: 1100px; margin: 0 auto; text-align: center; }

:root {
    --gap: 30px;
    --duration: 17s;
}

.ticker {
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.track {
    display: flex;
    width: max-content;
    animation: scroll var(--duration) linear infinite;
}

.group {
    display: flex;
    align-items: center;
    gap: var(--gap);
    padding-right: var(--gap);
}

.group span {
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: #0F766E;
    white-space: nowrap;
    font-family: "Georgia", serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1rem;
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* --- SERVICES --- */
.ser {
    margin-bottom: 50px;
    font-family: 'Parisienne', cursive;
    letter-spacing: 5px;
    font-size: 3rem;
    color: var(--text-heading);
}

.pill-wrapper { display: flex; flex-direction: column; align-items: center; margin: 0 auto; max-width: 500px; }
.service-pill {
    display: inline-block;
    padding: 15px 45px;
    border-radius: 100px;
    font-family: 'Parisienne', cursive !important;
    font-size: 1.4rem; 
    text-transform: capitalize;
    background: #fff;
    color: var(--text-main);
     border: 1px solid #444;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: -5px;
}

.pill-1 { transform: rotate(-9deg); background-color: #ffffff; border-color: #f3e1e4; z-index: 5; margin-bottom: 4px;}
.pill-2 { transform: rotate(8deg) translateX(21px); background-color: #fdf3f4; z-index: 4; margin-bottom: 3px;}
.pill-3 { transform: rotate(-7deg) translateX(-9px); background-color: #f7e1e4; z-index: 3; margin-bottom: 3px;}
.pill-4 { transform: rotate(4.7deg) translateX(10px); background-color: #f0cfd4; z-index: 2; margin-bottom: 2px;}
.pill-5 { transform: rotate(-4deg) translateX(-5px); background-color: #eaaaaf; color: #fff; z-index: 1; }

.service-pill:hover {
    transform: rotate(0deg) scale(1.1);
    background-color: var(--theme-primary) !important;
    color: #fff;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(223, 155, 167, 0.4);
}

/* --- HERO TEXT --- */
.cur, .name { font-family: 'Parisienne', cursive !important; font-weight: normal; text-align: center; color: var(--text-heading); margin-bottom: 0px; }
.cur { font-size: 3.5rem; margin-bottom: 38px; margin-top: 20px; }
.name {
    font-size: 2.5rem; margin-top: 20px; letter-spacing: 5px; display: inline-block;
    background: linear-gradient(to bottom, transparent 50%, var(--theme-primary-light) 50%);
    padding: 0 10px; line-height: 1.2;
}

/* --- PORTFOLIO GRID --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; padding: 40px 0; justify-content: center; }
.per { font-family: 'Parisienne', cursive; letter-spacing: 5px; font-size: 3rem; color: var(--text-heading); }

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #eee;
    width: 400px;
    height: 220px;
    margin: 0 auto;
    transition: var(--transition-smooth) !important;
}

.project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 22px 40px rgba(223, 155, 167, 0.2) !important;
}

.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: rgba(223, 155, 167, 0.85); backdrop-filter: blur(5px); color: white;
    opacity: 0; transition: opacity 0.4s ease; padding: 30px; text-align: center;
}
.overlay h3 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 8px; }
.overlay p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.95rem; line-height: 1.4; }
.view-btn { 
    background: #fff; color: var(--theme-primary); border: none; border-radius: 50%; width: 40px; height: 40px; 
    margin-top: 15px; cursor: pointer; font-size: 1.2rem; transition: var(--transition-smooth);
}
.view-btn:hover {
    transform: scale(1.15);
    background: var(--text-heading);
    color: #fff;
}

.project-card:hover .overlay { opacity: 1; }
.project-card:hover img { transform: scale(1.08); }

/* --- CONTACT --- */
.p-contact-sub { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1rem; letter-spacing: 1px; color: var(--text-main); }
.p-contact-sub a { color: var(--theme-primary); text-decoration: none; font-weight: 600; transition: var(--transition-smooth); }
.p-contact-sub a:hover { color: #c9828f; }

.p-card {
    background-color: hsla(39, 17%, 84%, 0.826);
       width: 500px;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    background-color: #fdfaf500;
    display: grid; grid-template-columns: 1fr; gap: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    margin: 0 auto; border: 1px solid var(--theme-primary-light);
    transition: var(--transition-smooth);
}
.p-card:hover {
    box-shadow: 0 15px 45px rgba(223, 155, 167, 0.1);
}

.p-title { color: var(--text-heading); font-size: 2rem; font-family: 'Playfair Display', serif; margin-bottom: 10px; }

.p-field { margin-bottom: 25px; border-bottom: 1px solid #eee; transition: border-color 0.3s ease; position: relative; }
.p-field label { font-family: 'Playfair Display', serif; font-style: italic; color: black; font-size: 0.9rem; display: block; margin-bottom: 8px; transition: var(--transition-smooth);}
.p-field input, .p-field textarea { width: 100%; border: none; padding: 12px 0; background: transparent; outline: none; font-family: 'Playfair Display', serif; font-size: 1rem; color: black; letter-spacing: 0.5px; }
.p-field input::placeholder, .p-field textarea::placeholder { color: #ccc; font-style: italic; }
.p-field:focus-within { border-bottom-color: var(--theme-primary) !important; }
.p-field:focus-within label { color: var(--theme-primary); }

.p-services { margin-top: 20px; }
.p-checkboxes { display: flex; gap: 15px; flex-wrap: wrap; font-family: 'Playfair Display', serif; font-size: 0.9rem; color: var(--text-main); }
.p-checkboxes label { cursor: pointer; transition: var(--transition-smooth); }
.p-checkboxes label:hover { color: black; }

.p-btn {
    margin-top: 24px; background: var(--text-heading); color: #fff; padding: 14px 32px; border-radius: 50px;
    border: none; font-weight: 600; cursor: pointer; font-family: 'Playfair Display', serif;
    transition: var(--transition-smooth) !important;
}

.p-btn:hover { 
    background: var(--theme-primary) !important; 
    transform: translateY(-3px) !important; 
    box-shadow: 0 8px 25px rgba(223, 155, 167, 0.4) !important; 
}

/* --- FOOTER --- */
.sb-portfolio-footer { 
    width: 100%; 
    background-color: hsl(0, 3%, 12%); 
    padding: 30px 0 20px 0; 
    color:#ffffff; 
    border-top: 1px solid #1a1a1a;; 
    box-sizing: border-box; 
    font-family: 'Playfair Display', serif; 
}
.sb-footer-container { max-width: 900px; margin: 0 auto; width: 100%; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.sb-footer-brand p, .sb-footer-links, .sb-footer-copy { margin: 0; }
.sb-footer-name { font-size: 1.25rem; line-height: 1; letter-spacing: 0.9px; font-family: 'Parisienne', cursive; color: white; }
.sb-dot { color: var(--theme-primary); }
.sb-footer-tagline { font-style: italic; color: white; margin-top: 5px !important; font-size: 0.85rem; }
.sb-footer-links { list-style: none; display: flex; gap: 20px; padding: 0; }
.sb-footer-links a { text-decoration: none; color: white; font-size: 0.95rem; transition: var(--transition-smooth); font-style: italic; display: inline-block;}
.sb-footer-links a:hover { color: var(--theme-primary); transform: translateY(-2px); }
.sb-footer-copy { color: #888; font-size: 0.85rem; margin-top: 5px; font-style: italic;}

.sb-social-icons { display: flex; gap: 15px; margin-bottom: 5px;}
.sb-social-icons a { color: #bfa1a6; font-size: 1.1rem; transition: var(--transition-smooth) !important; display: inline-block;}
.sb-social-icons a:hover { color: var(--theme-primary) !important; transform: translateY(-4px) !important; }

.sb-footer-mail { color:white; text-decoration: none; font-style: italic; font-size: 0.95rem; transition: var(--transition-smooth); }
.sb-footer-mail:hover { color: var(--theme-primary); }

/* --- ORIGINAL SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVIGATION BAR --- */
.site-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 16px 40px; display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(223, 155, 167, 0.1); transition: box-shadow 0.3s ease; box-sizing: border-box;
}
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }

/* --- HEADER BRAND & ELEGANT BEE HOVER ANIMATION --- */
.nav-brand { 
    position: relative; 
    display: inline-block;
    font-family: 'Parisienne', cursive; 
    font-size: 1.8rem; 
    color: var(--text-heading); 
    text-decoration: none; 
    letter-spacing: 2px; 
}

/* SVG Bees encoded directly for premium cross-device consistency */
.nav-brand::before,
.nav-brand::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    /* Custom delicate golden-pink bee */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 11c-2-3-5-5-8-3 2 3 6 4 8 3zm0 0c2-3 5-5 8-3-2 3-6 4-8 3z" fill="%23fdf3f4" stroke="%23df9ba7" stroke-width="1"/><ellipse cx="12" cy="14" rx="3" ry="5" fill="%23df9ba7"/><circle cx="12" cy="8" r="2" fill="%23df9ba7"/></svg>');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    /* Soft glowing trail */
    filter: drop-shadow(0 2px 4px rgba(223, 155, 167, 0.6)) drop-shadow(0 0 8px rgba(223, 155, 167, 0.4));
    transform: translate(-50%, -50%) scale(0.1);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    z-index: 20;
}

/* Hover reveals bees and starts interaction */
.nav-brand:hover::before,
.nav-brand:hover::after {
    opacity: 1;
    visibility: visible;
}

.nav-brand:hover::before {
    animation: beeOrbit1 3.5s linear infinite, beeFlutter 0.08s ease-in-out infinite alternate;
}

.nav-brand:hover::after {
    animation: beeOrbit2 4.2s linear infinite, beeFlutter 0.1s ease-in-out infinite alternate;
    animation-delay: 0.15s;
}

/* Organic Orbit Keyframes (Smooth Circular Wobble) */
@keyframes beeOrbit1 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(42px) rotate(90deg) translateY(0px); }
    25% { transform: translate(-50%, -50%) rotate(90deg) translateX(38px) rotate(90deg) translateY(-3px); }
    50% { transform: translate(-50%, -50%) rotate(180deg) translateX(45px) rotate(90deg) translateY(0px); }
    75% { transform: translate(-50%, -50%) rotate(270deg) translateX(38px) rotate(90deg) translateY(3px); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(42px) rotate(90deg) translateY(0px); }
}

@keyframes beeOrbit2 {
    0% { transform: translate(-50%, -50%) rotate(180deg) translateX(55px) rotate(-90deg) translateY(0px) scale(0.85); }
    25% { transform: translate(-50%, -50%) rotate(90deg) translateX(60px) rotate(-90deg) translateY(4px) scale(0.95); }
    50% { transform: translate(-50%, -50%) rotate(0deg) translateX(50px) rotate(-90deg) translateY(0px) scale(0.85); }
    75% { transform: translate(-50%, -50%) rotate(-90deg) translateX(60px) rotate(-90deg) translateY(-4px) scale(0.75); }
    100% { transform: translate(-50%, -50%) rotate(-180deg) translateX(55px) rotate(-90deg) translateY(0px) scale(0.85); }
}

/* Wing Flutter Effect (Squashing the background simulates flapping) */
@keyframes beeFlutter {
    0% { background-size: 100% 100%; }
    100% { background-size: 70% 100%; }
}

.nav-links { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav-links a {
    text-decoration: none; color: #555; font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase;
    position: relative; transition: color 0.3s ease; font-family: 'Ovo', serif;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px;
    background: var(--theme-primary); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--theme-primary); }
.nav-links a:hover::after { width: 100%; }

/* --- HAMBURGER --- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-heading); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- MOBILE MENU --- */
.mobile-menu {
    display: none; position: fixed; top: 65px; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px);
    z-index: 999; padding: 10px 0 20px; border-bottom: 1px solid rgba(223, 155, 167, 0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.mobile-menu ul li { padding: 14px 0; border-bottom: 1px solid rgba(223, 155, 167, 0.08); }
.mobile-menu ul li a { text-decoration: none; color: var(--text-heading); font-family: 'Parisienne', cursive; font-size: 1.4rem; letter-spacing: 2px; transition: var(--transition-smooth);}
.mobile-menu ul li a:hover { color: var(--theme-primary); }

/* =============================================
   MOBILE RESPONSIVE
============================================= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .site-nav { padding: 16px 20px; }

    .cur { font-size: 2.2rem !important; margin-bottom: 24px !important; }
    .name { font-size: 1.6rem !important; letter-spacing: 3px !important; }
    .profile-pic { width: 160px !important; height: 160px !important; }
    
    .hero-section, .about-section, .project-section, .services-section, .p-contact-section { padding: 50px 16px !important; }

    .inner-wrap { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 24px !important; }
    .text-block  { order: 1 !important; text-align: center !important; max-width: 100% !important; }
    .about-image { order: 2 !important; padding-right: 0; }
    .about-desc  { order: 3 !important; text-align: center !important; display: block !important; }
    
    /* Auto height applied only for mobile */
    .about-image img, .about-pic { 
        width: 200px !important; 
        height: auto !important; 
    }
    
    .text-block h2 { font-size: 2rem !important; }
    .text-block p, .text-block .skill-tags { display: none !important; }

    .group span { font-size: 11px !important; padding: 8px 14px !important; }

    .pill-wrapper { max-width: 95% !important; }
    .service-pill { padding: 12px 28px !important; font-size: 1.1rem !important; }
    .ser { font-size: 2.2rem !important; margin-bottom: 30px !important; }

    .portfolio-grid { grid-template-columns: 1fr !important; }
    .project-card { width: 100% !important; max-width: 400px !important; }
    .per { font-size: 2.2rem !important; }

    .p-card { padding: 35px 20px !important; }
    .p-title { font-size: 1.4rem !important; }

    .sb-footer-container { flex-direction: column !important; text-align: center !important; padding: 0 20px !important; gap: 15px !important; }
    .sb-social-icons { justify-content: center !important; }
    .sb-footer-links { justify-content: center !important; flex-wrap: wrap !important; }
}

@media (max-width: 480px) {
    .cur  { font-size: 1.8rem !important; }
    .name { font-size: 1.3rem !important; }
    .profile-pic { width: 130px !important; height: 130px !important; }
    
    .about-image img, .about-pic { 
        width: 170px !important; 
        height: auto !important; 
    }
    
    .p-card { padding: 25px 16px !important; }
    .p-field input, .p-field textarea { font-size: 1rem; }
}
